Makefile 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. # $TOG: Makefile /main/15 1999/10/12 09:33:30 mgreess $
  2. RELEASE = Release 2.3.0a
  3. PRODUCT = CDE
  4. SHELL = /bin/sh
  5. RM = rm -f
  6. MV = mv
  7. MAKE = make
  8. NMAKE = nmake
  9. WORLDOPTS =
  10. TOP = .
  11. CURRENT_DIR = .
  12. CONFIGSRC = $(TOP)/config
  13. IMAKESRC = $(CONFIGSRC)/imake
  14. DEPENDSRC = $(CONFIGSRC)/makedepend
  15. DEPENDTOP = ../..
  16. IMAKETOP = ../..
  17. IRULESRC = $(CONFIGSRC)/cf
  18. IMAKE = $(IMAKESRC)/imake
  19. IMAKE_CMD = $(IMAKE) -I$(IRULESRC) $(IMAKE_DEFINES)
  20. MAKE_OPTS = -f xmakefile
  21. MAKE_CMD = $(MAKE) $(MAKE_OPTS)
  22. NMAKE_CMD = $(NMAKE) $(MAKE_OPTS)
  23. FLAGS = $(MFLAGS) -f Makefile.ini BOOTSTRAPCFLAGS="$(BOOTSTRAPCFLAGS)"
  24. all:
  25. @$(MAKE_CMD) xmakefile-exists || $(MAKE) all-initial
  26. @$(MAKE_CMD) $@
  27. all-initial:
  28. @echo "Please begin by using make World or make Makefile. You may"
  29. @echo "find it necessary to set the make variable BOOTSTRAPCFLAGS in"
  30. @echo "order to compile imake. One common example is"
  31. @echo "\"BOOTSTRAPCFLAGS=-I<dir>\", where <dir> is the top of your"
  32. @echo "X11R6 source tree. Remember to check the configuration"
  33. @echo "parameters in the config directory."
  34. @echo
  35. @echo "We recommend that you read the release notes carefully before"
  36. @echo "proceeding; they can be found under the doc directory. If"
  37. @echo "the top-level Makefile gets corrupted, copy Makefile.ini to"
  38. @echo "Makefile and try again. Do not name your log file make.log or"
  39. @echo "it will be deleted."
  40. World:
  41. @echo ""
  42. @echo "Building $(RELEASE) of $(PRODUCT)"
  43. @echo ""
  44. @case "x$(BOOTSTRAPCFLAGS)" in x) \
  45. echo I hope you checked the configuration parameters in $(IRULESRC) ; \
  46. echo to see if you need to pass BOOTSTRAPCFLAGS. ; \
  47. echo "" ; \
  48. ;; esac;
  49. @date
  50. @echo ""
  51. cd $(IMAKESRC) && $(MAKE) $(FLAGS) clean
  52. $(MAKE) $(MFLAGS) Makefile.boot
  53. $(MAKE_CMD) $(MFLAGS) VerifyOS
  54. $(MAKE_CMD) $(MFLAGS) Makefiles
  55. $(MAKE_CMD) $(MFLAGS) Makefiles.doc
  56. $(MAKE_CMD) $(MFLAGS) clean
  57. $(MAKE_CMD) $(MFLAGS) clean.doc
  58. $(MAKE_CMD) $(MFLAGS) includes
  59. $(MAKE_CMD) $(MFLAGS) includes.doc
  60. $(MAKE_CMD) $(MFLAGS) depend
  61. $(MAKE_CMD) $(MFLAGS) depend.doc
  62. $(MAKE_CMD) $(MFLAGS) $(WORLDOPTS)
  63. $(MAKE_CMD) $(MFLAGS) $(WORLDOPTS) all.doc
  64. @echo ""
  65. @date
  66. @echo ""
  67. @echo "Full build of $(RELEASE) of $(PRODUCT) complete."
  68. @echo ""
  69. World.dev:
  70. @echo ""
  71. @echo "Building $(RELEASE) of $(PRODUCT) excluding DOC"
  72. @echo ""
  73. @case "x$(BOOTSTRAPCFLAGS)" in x) \
  74. echo I hope you checked the configuration parameters in $(IRULESRC) ; \
  75. echo to see if you need to pass BOOTSTRAPCFLAGS. ; \
  76. echo "" ; \
  77. ;; esac;
  78. @date
  79. @echo ""
  80. cd $(IMAKESRC) && $(MAKE) $(FLAGS) clean
  81. $(MAKE) $(MFLAGS) Makefile.boot
  82. $(MAKE_CMD) $(MFLAGS) VerifyOS
  83. $(MAKE_CMD) $(MFLAGS) Makefiles
  84. $(MAKE_CMD) $(MFLAGS) clean
  85. $(MAKE_CMD) $(MFLAGS) includes
  86. $(MAKE_CMD) $(MFLAGS) depend
  87. $(MAKE_CMD) $(MFLAGS) $(WORLDOPTS)
  88. @echo ""
  89. @date
  90. @echo ""
  91. @echo "Full build of $(RELEASE) of $(PRODUCT) excluding DOC complete."
  92. @echo ""
  93. World.doc:
  94. @echo ""
  95. @echo "Building $(RELEASE) of $(PRODUCT) DOC"
  96. @echo ""
  97. @case "x$(BOOTSTRAPCFLAGS)" in x) \
  98. echo I hope you checked the configuration parameters in $(IRULESRC) ; \
  99. echo to see if you need to pass BOOTSTRAPCFLAGS. ; \
  100. echo "" ; \
  101. ;; esac;
  102. @date
  103. @echo ""
  104. cd $(IMAKESRC) && $(MAKE) $(FLAGS) clean
  105. $(MAKE) $(MFLAGS) Makefile.boot
  106. $(MAKE_CMD) $(MFLAGS) VerifyOS
  107. $(MAKE_CMD) $(MFLAGS) Makefiles.doc
  108. $(MAKE_CMD) $(MFLAGS) clean.doc
  109. $(MAKE_CMD) $(MFLAGS) includes.doc
  110. $(MAKE_CMD) $(MFLAGS) depend.doc
  111. $(MAKE_CMD) $(MFLAGS) $(WORLDOPTS) all.doc
  112. @echo ""
  113. @date
  114. @echo ""
  115. @echo "Full build of $(RELEASE) of $(PRODUCT) DOC complete."
  116. @echo ""
  117. .PRECIOUS: Makefile
  118. # This is just a sequence of bootstrapping steps we have to do.
  119. # The steps are listed as separate targets so clearmake can wink in
  120. # the Makefile.proto files.
  121. Makefile.boot: imake.proto $(DEPENDSRC)/Makefile.proto depend.bootstrap $(IMAKESRC)/Makefile.proto imake.bootstrap $(DEPENDSRC)/proto.clean
  122. imake.proto:
  123. cd $(IMAKESRC) && $(MAKE) $(FLAGS)
  124. $(RM) $(DEPENDSRC)/Makefile.proto $(DEPENDSRC)/.depend
  125. $(DEPENDSRC)/Makefile.proto:
  126. $(IMAKE_CMD) -s $(DEPENDSRC)/Makefile.proto -f $(DEPENDSRC)/Imakefile -DTOPDIR=$(DEPENDTOP) -DCURDIR=$(DEPENDSRC)
  127. depend.bootstrap:
  128. cd $(DEPENDSRC) && $(RM) -r Makefile Makefile.dep makedepend *.o bootstrap
  129. cd $(DEPENDSRC) && $(MAKE) -f Makefile.proto bootstrap
  130. $(IMAKESRC)/Makefile.proto:
  131. $(IMAKE_CMD) -s $(IMAKESRC)/Makefile.proto -f $(IMAKESRC)/Imakefile -DTOPDIR=$(IMAKETOP) -DCURDIR=$(IMAKESRC)
  132. imake.bootstrap:
  133. cd $(IMAKESRC) && $(MAKE) -f Makefile.proto bootstrapdepend
  134. cd $(IMAKESRC) && $(MAKE) $(FLAGS) bootstrap
  135. cd $(IMAKESRC) && $(MAKE) -f Makefile.proto all
  136. -@if [ -f xmakefile ]; then set -x; \
  137. $(RM) xmakefile.bak; $(MV) xmakefile xmakefile.bak; \
  138. else exit 0; fi
  139. $(MAKE) $(MFLAGS) xmakefile
  140. $(DEPENDSRC)/proto.clean:
  141. cd $(DEPENDSRC) && $(RM) -r Makefile.proto
  142. Makefile::
  143. $(MAKE) $(MFLAGS) xmakefile
  144. xmakefile: Imakefile
  145. $(IMAKE_CMD) -s xmakefile -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
  146. # don't allow any default rules in this Makefile
  147. .SUFFIXES:
  148. # a copy of every rule that might be invoked at top level
  149. clean:
  150. $(MAKE_CMD) $@
  151. dangerous_strip_clean:
  152. $(MAKE_CMD) $@
  153. depend:
  154. $(MAKE_CMD) $@
  155. Everything:
  156. $(MAKE_CMD) $@
  157. external.ln:
  158. $(MAKE_CMD) $@
  159. includes:
  160. $(MAKE_CMD) $@
  161. install.ln:
  162. $(MAKE_CMD) $@
  163. install.man:
  164. $(MAKE_CMD) $@
  165. install:
  166. $(MAKE_CMD) $@
  167. Makefiles:
  168. $(MAKE_CMD) $@
  169. man_keywords:
  170. $(MAKE_CMD) $@
  171. tags:
  172. $(MAKE_CMD) $@
  173. VerifyOS:
  174. $(MAKE_CMD) $@
  175. # dev versions
  176. Everything.dev:
  177. $(MAKE_CMD) $@
  178. # doc versions
  179. clean.doc:
  180. $(MAKE_CMD) $@
  181. depend.doc:
  182. $(MAKE_CMD) $@
  183. Everything.doc:
  184. $(MAKE_CMD) $@
  185. includes.doc:
  186. $(MAKE_CMD) $@
  187. install.man.doc:
  188. $(MAKE_CMD) $@
  189. install.doc:
  190. $(MAKE_CMD) $@
  191. Makefiles.doc:
  192. $(MAKE_CMD) $@
  193. tags.doc:
  194. $(MAKE_CMD) $@