XCOMM $XConsortium: Imakefile,v 1.119 94/02/04 23:05:51 rws Exp $ #define IHaveSubdirs #define PassCDebugFlags CDEBUGFLAGS="$(CDEBUGFLAGS)" RELEASE = "Release 6beta" #ifndef OSName #define OSName Unknown Operating System! #endif #if BuildFonts FONTSDIR = fonts #endif #ifndef Win32Architecture DOCSDIR = doc #endif SUBDIRS = config include lib nls programs $(FONTSDIR) $(DOCSDIR) LNINSTALLDIRS = $(LIBSRC) $(EXTENSIONSRC) MakeSubdirs($(SUBDIRS)) MakeLintSubdirs($(LNINSTALLDIRS),install.ln,install.ln) MakeLintSubdirs($(LNINSTALLDIRS),external.ln,lintlib) DependSubdirs($(SUBDIRS)) #ifndef Win32Architecture VerifyOS:: @echo "" @echo Building on OSName. @echo "" includes:: MakeDir($(BUILDINCDIR)) XCOMM XCOMM Watch out!!! Make sure you do make includes after removing X11.... XCOMM clean:: $(RM) -r $(BUILDINCDIR) $(RM) -r $(BUILDLIBDIR) WORLDOPTS = -k XCOMM do not name your log file make.log when you run this ... World:: @echo "" @echo Building $(RELEASE) of the X Window System. @echo "" @date @echo "" cd $(IMAKESRC); $(MAKE) $(MFLAGS) -f Makefile.ini clean; $(MAKE) $(MFLAGS) -f Makefile.ini BOOTSTRAPCFLAGS="$(BOOTSTRAPCFLAGS)" -$(RM) Makefile.bak; $(MV) Makefile Makefile.bak $(MAKE) $(MFLAGS) -f Makefile.bak Makefile $(MAKE) $(MFLAGS) VerifyOS $(MAKE) $(MFLAGS) Makefiles $(MAKE) $(MFLAGS) clean $(MAKE) $(MFLAGS) includes $(MAKE) $(MFLAGS) depend $(MAKE) $(MFLAGS) $(WORLDOPTS) @echo "" @date @echo "" @echo Full build of $(RELEASE) of the X Window System complete. @echo "" Everything:: @echo "" @echo Rebuilding $(RELEASE) of the X Window System. @echo "" @date @echo "" cd $(IMAKESRC); $(MAKE) $(MFLAGS) -f Makefile.ini BOOTSTRAPCFLAGS="$(BOOTSTRAPCFLAGS)" -$(RM) Makefile.bak; $(MV) Makefile Makefile.bak $(MAKE) $(MFLAGS) -f Makefile.bak Makefile $(MAKE) $(MFLAGS) Makefiles $(MAKE) $(MFLAGS) includes $(MAKE) $(MFLAGS) depend $(MAKE) $(MFLAGS) $(WORLDOPTS) @echo "" @date @echo "" @echo Rebuild of $(RELEASE) of the X Window System complete. @echo "" XCOMM clean out link tree looking for stuff that should get checked in dangerous_strip_clean:: make -k clean find . -type l -exec rm {} \; find . \( \! \( -type d -o -name Makefile \) \) -print #else VerifyOS:: @echo : @echo Building on OSName. @echo : includes:: MakeDir($(BUILDINCDIR:/=\)) XCOMM XCOMM Watch out!!! Make sure you do make includes after removing X11.... XCOMM clean:: deltree /y $(BUILDINCDIR:/=\) deltree /y $(BUILDLIBDIR:/=\) WORLDOPTS = -i XCOMM do not name your log file make.log when you run this ... World World.Win32:: @echo : @echo Building $(RELEASE) of the X Window System. @echo : @echo : cd $(IMAKESRC) $(MAKE) $(MFLAGS) -f Makefile.ini clean.Win32 $(MAKE) $(MFLAGS) -f Makefile.ini imake.exe cd ..\.. RMoveToBakFile(Makefile) $(MAKE) $(MFLAGS) -f Makefile.bak Makefile $(MAKE) $(MFLAGS) VerifyOS $(MAKE) $(MFLAGS) Makefiles $(MAKE) $(MFLAGS) clean $(MAKE) $(MFLAGS) includes $(MAKE) $(MFLAGS) depend $(MAKE) $(MFLAGS) $(WORLDOPTS) @echo : @echo : @echo Full build of $(RELEASE) of the X Window System complete. @echo : Everything:: @echo : @echo Rebuilding $(RELEASE) of the X Window System. @echo : @echo : cd $(IMAKESRC) $(MAKE) $(MFLAGS) -f Makefile.ini imake.exe cd ..\.. RMoveToBakFile(Makefile) $(MAKE) $(MFLAGS) -f Makefile.bak Makefile $(MAKE) $(MFLAGS) Makefiles $(MAKE) $(MFLAGS) includes $(MAKE) $(MFLAGS) depend $(MAKE) $(MFLAGS) $(WORLDOPTS) @echo : @echo : @echo Rebuild of $(RELEASE) of the X Window System complete. @echo : #ifdef ProjectRoot install:: MakeDir($(PROJECTROOT:/=\)) #endif install:: MakeDir($(INCROOT:/=\)) MakeDir($(USRLIBDIR:/=\)) MakeDir($(LIBDIR:/=\)) #endif