diff options
author | marha <marha@users.sourceforge.net> | 2011-01-28 15:43:29 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-01-28 15:43:29 +0000 |
commit | b3be16ace28c0a51052c3b76162efbab811abf84 (patch) | |
tree | 72aca06573b4901ee11033a54c837ae857b94481 /xorg-server/hw/xwin/makefile | |
parent | 3dc6a410655083df5831c5b607c2bb0626446aca (diff) | |
parent | c4d402326310d620866b1ad82ef0691526e2c311 (diff) | |
download | vcxsrv-b3be16ace28c0a51052c3b76162efbab811abf84.tar.gz vcxsrv-b3be16ace28c0a51052c3b76162efbab811abf84.tar.bz2 vcxsrv-b3be16ace28c0a51052c3b76162efbab811abf84.zip |
Enabled ROOTLESS option in dix (currenlty not really used)
Diffstat (limited to 'xorg-server/hw/xwin/makefile')
-rw-r--r-- | xorg-server/hw/xwin/makefile | 145 |
1 files changed, 98 insertions, 47 deletions
diff --git a/xorg-server/hw/xwin/makefile b/xorg-server/hw/xwin/makefile index 62867368c..d1d95274d 100644 --- a/xorg-server/hw/xwin/makefile +++ b/xorg-server/hw/xwin/makefile @@ -1,5 +1,15 @@ LIBRARY = libXWin +XWIN_MULTIWINDOW=1 +XWIN_CLIPBOARD=1 +XWIN_MULTIWINDOWEXTWM=0 # currently not working correctly +XWIN_MULTIWINDOWINTWM=0 # currently not working correctly +XWIN_RANDR=1 +XWIN_NATIVEGDI=0 # currently not working correctly +XWIN_PRIMARYFB=0 # currently not working correctly +XWIN_GLX_WINDOWS=0 # everything is in the glx makefile + +if XWIN_CLIPBOARD SRCS_CLIPBOARD = \ winclipboardinit.c \ winclipboardtextconv.c \ @@ -8,46 +18,69 @@ SRCS_CLIPBOARD = \ winclipboardwndproc.c \ winclipboardwrappers.c \ winclipboardxevents.c +DEFS_CLIPBOARD = -DXWIN_CLIPBOARD +endif -DEFINES += XWIN_CLIPBOARD +if XWIN_GLX_WINDOWS +GLX_DIR = glx +DEFS_GLX_WINDOWS = -DXWIN_GLX_WINDOWS +XWIN_GLX_LIBS = $(top_builddir)/hw/xwin/glx/libXwinGLX.la +XWIN_GLX_LINK_FLAGS = -lopengl32 +endif +if XWIN_MULTIWINDOW SRCS_MULTIWINDOW = \ winmultiwindowshape.c \ winmultiwindowwindow.c \ winmultiwindowwm.c \ winmultiwindowwndproc.c - -DEFINES += XWIN_MULTIWINDOW - -#SRCS_MULTIWINDOWEXTWM = \ -# winwin32rootless.c \ -# winwin32rootlesswindow.c \ -# winwin32rootlesswndproc.c \ -# winwindowswm.c -#DEFINES += XWIN_MULTIWINDOWEXTWM - -#SRCS_NATIVEGDI = \ -# winclip.c \ -# winfillsp.c \ -# winfont.c \ -# wingc.c \ -# wingetsp.c \ -# winnativegdi.c \ -# winpixmap.c \ -# winpolyline.c \ -# winrop.c \ -# winsetsp.c -#DEFINES += XWIN_NATIVEGDI - -#SRCS_PRIMARYFB = \ -# winpfbdd.c -#DEFINES += XWIN_PRIMARYFB - +DEFS_MULTIWINDOW = -DXWIN_MULTIWINDOW +endif + +if XWIN_MULTIWINDOWEXTWM +SRCS_MULTIWINDOWEXTWM = \ + winwin32rootless.c \ + winwin32rootlesswindow.c \ + winwin32rootlesswndproc.c \ + winwindowswm.c +DEFS_MULTIWINDOWEXTWM = -DXWIN_MULTIWINDOWEXTWM +MULTIWINDOWEXTWM_LIBS = $(top_builddir)/miext/rootless/librootless.la +endif + +if XWIN_NATIVEGDI +SRCS_NATIVEGDI = \ + winclip.c \ + winfillsp.c \ + winfont.c \ + wingc.c \ + wingetsp.c \ + winnativegdi.c \ + winpixmap.c \ + winpolyline.c \ + winrop.c \ + winsetsp.c +DEFS_NATIVEGDI = -DXWIN_NATIVEGDI +endif + +if XWIN_PRIMARYFB +SRCS_PRIMARYFB = \ + winpfbdd.c +DEFS_PRIMARYFB = -DXWIN_PRIMARYFB +endif + +if XWIN_RANDR SRCS_RANDR = \ winrandr.c -DEFINES += XWIN_RANDR RELOCATE_PROJECTROOT +DEFS_RANDR = -DXWIN_RANDR +endif + +if XWIN_XV +SRCS_XV = \ + winvideo.c +DEFS_XV = -DXWIN_XV +endif -CSRCS = InitInput.c \ +SRCS = InitInput.c \ InitOutput.c \ winallpriv.c \ winauth.c \ @@ -69,6 +102,8 @@ CSRCS = InitInput.c \ winmultiwindowclass.c \ winmultiwindowicons.c \ winprefs.c \ + winprefsyacc.y \ + winprefslex.l \ winprocarg.c \ winregistry.c \ winscrinit.c \ @@ -79,42 +114,58 @@ CSRCS = InitInput.c \ winvalargs.c \ winwakeup.c \ winwindow.c \ - winprefslex.c \ - winprefsyacc.c \ winwndproc.c \ + ddraw.h \ + winclipboard.h \ + winconfig.h \ + win.h \ + winkeybd.h \ + winkeynames.h \ + winlayouts.h \ + winmessages.h \ + winmsg.h \ + winms.h \ + winmultiwindowclass.h \ + winprefs.h \ + winresource.h \ + winwindow.h \ windisplay.c \ + XWin.rc \ $(SRCS_CLIPBOARD) \ $(SRCS_MULTIWINDOW) \ $(SRCS_MULTIWINDOWEXTWM) \ $(SRCS_NATIVEGDI) \ $(SRCS_PRIMARYFB) \ $(SRCS_RANDR) \ + $(SRCS_XV) +CSRCS=$(filter %.c,$(SRCS)) $(filter %.y,$(SRCS)) $(filter %.l,$(SRCS)) +CSRCS := $(CSRCS:%.y=%.c) +CSRCS := $(CSRCS:%.l=%.c) -DEFINES += YY_NO_UNISTD_H + DEFS = $(DEFS_CLIPBOARD) \ + $(DEFS_GLX_WINDOWS) \ + $(DEFS_MULTIWINDOW) \ + $(DEFS_MULTIWINDOWEXTWM) \ + $(DEFS_NATIVEGDI) \ + $(DEFS_PRIMARYFB) \ + $(DEFS_RANDR) \ + $(DEFS_XV) -# XWin.rc \ -# $(top_srcdir)/Xext/dpmsstubs.c \ -# $(top_srcdir)/Xi/stubs.c \ -# $(top_srcdir)/mi/miinitext.c \ -# $(top_srcdir)/fb/fbcmap_mi.c \ -# $(SRCS_PRIMARYFB) \ -# $(SRCS_XV) +DEFINES += $(DEFS:-D%=%) HAVE_XWIN_CONFIG_H PTW32_STATIC_LIB RELOCATE_PROJECTROOT INCLUDES += ..\..\miext\rootless -#.rc.o: -# $(WINDRES) --use-temp-file -i $< --input-format=rc -o $@ -O coff -I $(top_builddir)/include -DPROJECT_NAME=\"$(VENDOR_NAME_SHORT)\" -DPROJECT_VERSION=\"$(PACKAGE_VERSION)\" -DBUILD_DATE=\"$(BUILD_DATE)\" -DEFINES += HAVE_XWIN_CONFIG_H BUILD_DATE=0-0-0000 PTW32_STATIC_LIB - -#CSRCS=winkeybd.c INCLUDES += $(OBJDIR) +AM_YFLAGS = -d +AM_LFLAGS = -i + $(OBJDIR)\winprefslex.c: winprefslex.l $(OBJDIR)\winprefsyacc.h - flex -i -o$@ $< + flex $(AM_LFLAGS) -o$@ $< $(OBJDIR)\winprefsyacc.c $(OBJDIR)\winprefsyacc.h: winprefsyacc.y - bison -d -o$(OBJDIR)\winprefsyacc.c $< + bison $(AM_YFLAGS) -o$(OBJDIR)\winprefsyacc.c $< |