summaryrefslogtreecommitdiff
path: root/Imakefile
diff options
context:
space:
mode:
authordawes <dawes>1994-04-27 07:07:10 +0000
committerdawes <dawes>1994-04-27 07:07:10 +0000
commit0eb2a9ffbce458a68d60d1a1854c115cd68feaaf (patch)
tree0d20c0850671e155b34993ba0a7bf44f02551892 /Imakefile
Initial revision
Diffstat (limited to 'Imakefile')
-rw-r--r--Imakefile164
1 files changed, 164 insertions, 0 deletions
diff --git a/Imakefile b/Imakefile
new file mode 100644
index 000000000..d28811407
--- /dev/null
+++ b/Imakefile
@@ -0,0 +1,164 @@
+XCOMM $XConsortium: Imakefile,v 1.125 94/04/08 19:57:43 rws Exp $
+#define IHaveSubdirs
+#define PassCDebugFlags CDEBUGFLAGS="$(CDEBUGFLAGS)"
+
+RELEASE = "Release 6"
+#ifndef OSName
+#define OSName Unknown Operating System!
+#endif
+
+#if BuildFonts
+ FONTSDIR = fonts
+#endif
+#ifndef Win32Architecture
+ WIPDIR = workInProgress
+ DOCSDIR = doc
+#endif
+
+ SUBDIRS = config include lib nls programs $(WIPDIR) $(FONTSDIR) $(DOCSDIR)
+ LNINSTALLDIRS = lib
+
+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::
+ RmTreeCmd $(BUILDINCDIR:/=\)
+ RmTreeCmd $(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