NULL = #define IHaveSubdirs #define PassCDebugFlags /**/ #if BuildGlxExt GLXDIR = GL #endif SUBDIRS = extensions $(GLXDIR) AU_HEADERS = Xauth.h #ifdef Win32Architecture EXTRA_HEADERS = Xw32defs.h Xwinsock.h Xwindows.h #elif defined(cygwinArchitecture) EXTRA_HEADERS = Xwindows.h #endif HEADERS = \ DECkeysym.h \ HPkeysym.h \ Sunkeysym.h \ X.h \ XF86keysym.h \ XWDFile.h \ Xalloca.h \ Xarch.h \ Xatom.h \ Xdefs.h \ Xfuncproto.h \ Xfuncs.h \ Xmd.h \ Xos.h \ Xos_r.h \ Xosdefs.h \ Xpoll.h \ Xproto.h \ Xprotostr.h \ Xthreads.h \ ap_keysym.h \ keysym.h \ keysymdef.h \ $(AU_HEADERS) \ $(EXTRA_HEADERS) \ $(NULL) all:: BuildIncludes($(HEADERS),nx-X11,..) includes:: -$(RM) $(BUILDINCDIR)/X11 -$(LN) nx-X11 $(BUILDINCDIR)/X11 #if BuildLibraries InstallMultipleFlags($(HEADERS),$(INCDIR)/nx-X11,$(INSTINCFLAGS)) #endif MakeSubdirs($(SUBDIRS)) DependSubdirs($(SUBDIRS)) InstallDriverSDKNonExecFile(X.h,$(DRIVERSDKINCLUDEDIR)) InstallDriverSDKNonExecFile(Xalloca.h,$(DRIVERSDKINCLUDEDIR)) InstallDriverSDKNonExecFile(Xarch.h,$(DRIVERSDKINCLUDEDIR)) InstallDriverSDKNonExecFile(Xdefs.h,$(DRIVERSDKINCLUDEDIR)) InstallDriverSDKNonExecFile(Xdefs.h,$(DRIVERSDKINCLUDEDIR)/X11) InstallDriverSDKNonExecFile(Xfuncproto.h,$(DRIVERSDKINCLUDEDIR)) InstallDriverSDKNonExecFile(Xfuncs.h,$(DRIVERSDKINCLUDEDIR)) InstallDriverSDKNonExecFile(Xmd.h,$(DRIVERSDKINCLUDEDIR)) InstallDriverSDKNonExecFile(Xosdefs.h,$(DRIVERSDKINCLUDEDIR)) InstallDriverSDKNonExecFile(Xproto.h,$(DRIVERSDKINCLUDEDIR)) InstallDriverSDKNonExecFile(Xprotostr.h,$(DRIVERSDKINCLUDEDIR)) InstallDriverSDKNonExecFile(keysym.h,$(DRIVERSDKINCLUDEDIR)) /* _XOPEN_SOURCE is defined where needed to move __fds_bits to fds_bits. */ USE_FDS_BITS = fds_bits Xpoll.h: Xpoll.h.in sed -e "s/@USE_FDS_BITS@/$(USE_FDS_BITS)/;" < Xpoll.h.in > Xpoll.h clean:: -$(RM) Xpoll.h XCOMM For the Linux/OpenGL base standard #if AlternateIncRoot install:: MakeDir($(DESTDIR)$(SYSTEMUSRINCDIR)) -$(RM) $(DESTDIR)$(SYSTEMUSRINCDIR)/GL @if [ ! -d $(DESTDIR)$(SYSTEMUSRINCDIR)/GL ]; then \ set -x; $(LN) $(INCDIR)/GL $(DESTDIR)$(SYSTEMUSRINCDIR)/GL; \ fi #endif