|
1 |
| -# $TOG: Makefile /main/18 1999/10/12 09:31:01 mgreess $ |
2 |
| -# Motif |
3 |
| -# |
4 |
| -# Copyright (c) 1987-2012, The Open Group. All rights reserved. |
5 |
| -# |
6 |
| -# These libraries and programs are free software; you can |
7 |
| -# redistribute them and/or modify them under the terms of the GNU |
8 |
| -# Lesser General Public License as published by the Free Software |
9 |
| -# Foundation; either version 2 of the License, or (at your option) |
10 |
| -# any later version. |
11 |
| -# |
12 |
| -# These libraries and programs are distributed in the hope that |
13 |
| -# they will be useful, but WITHOUT ANY WARRANTY; without even the |
14 |
| -# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR |
15 |
| -# PURPOSE. See the GNU Lesser General Public License for more |
16 |
| -# details. |
17 |
| -# |
18 |
| -# You should have received a copy of the GNU Lesser General Public |
19 |
| -# License along with these librararies and programs; if not, write |
20 |
| -# to the Free Software Foundation, Inc., 51 Franklin Street, Fifth |
21 |
| -# Floor, Boston, MA 02110-1301 USA |
22 |
| -# |
23 |
| -# HISTORY |
24 |
| -# |
25 |
| -# Makefile.ini |
26 |
| -# |
27 |
| -# This is a toplevel Makefile for bootstrapping an initial build of Motif |
28 |
| -# Release 2.x. It provides two targets: Makefile (for the cautious) and |
29 |
| -# World (for the bold). After the full Makefile has been produced, that |
30 |
| -# should be used. However, if it is accidentally corrupted, or a build |
31 |
| -# is initiated on a new platform, Makefile.ini can be used to restart. |
32 |
| -# |
33 |
| - RELEASE = "Release 2.1.32" |
34 |
| - PRODUCT = "Motif" |
35 |
| - SHELL = /bin/sh |
36 |
| - RM = rm -f |
37 |
| - MV = mv |
38 |
| - NMAKE = nmake |
39 |
| - WORLDOPTS = -k |
40 |
| -WIN32WORLDOPTS = -i |
41 |
| - TOP = . |
42 |
| - CURRENT_DIR = . |
43 |
| - CONFIGSRC = $(TOP)/config |
44 |
| - IMAKESRC = $(CONFIGSRC)/imake |
45 |
| - DEPENDSRC = $(CONFIGSRC)/makedepend |
46 |
| - DEPENDTOP = ../.. |
47 |
| - IMAKETOP = ../.. |
48 |
| - IRULESRC = $(CONFIGSRC)/cf |
49 |
| - IMAKE = $(IMAKESRC)/imake |
50 |
| - IMAKE_CMD = $(IMAKE) -I$(IRULESRC) $(IMAKE_DEFINES) |
51 |
| - MAKE_OPTS = -f xmakefile |
52 |
| - MAKE_CMD = $(MAKE) $(MAKE_OPTS) |
53 |
| - NMAKE_CMD = $(NMAKE) $(MAKE_OPTS) |
54 |
| - FLAGS = $(MFLAGS) -f Makefile.ini BOOTSTRAPCFLAGS="$(BOOTSTRAPCFLAGS)" |
55 |
| - |
56 |
| -all: |
57 |
| - @$(MAKE_CMD) xmakefile-exists || $(MAKE) all-initial |
58 |
| - @$(MAKE_CMD) $@ |
59 |
| - |
60 |
| -all-initial: |
61 |
| - @echo "Please begin by using make World or make Makefile. You may" |
62 |
| - @echo "find it necessary to set the make variable BOOTSTRAPCFLAGS in" |
63 |
| - @echo "order to compile imake. One common example is" |
64 |
| - @echo "\"BOOTSTRAPCFLAGS=-I<dir>\", where <dir> is the top of your" |
65 |
| - @echo "X11R6 source tree. Remember to check the configuration" |
66 |
| - @echo "parameters in the config directory." |
67 |
| - @echo |
68 |
| - @echo "We recommend that you read the release notes carefully before" |
69 |
| - @echo "proceeding; they can be found under the doc directory. If" |
70 |
| - @echo "the top-level Makefile gets corrupted, copy Makefile.ini to" |
71 |
| - @echo "Makefile and try again. Do not name your log file make.log or" |
72 |
| - @echo "it will be deleted." |
73 |
| - |
74 |
| -World: |
75 |
| - @echo "" |
76 |
| - @echo "Building $(RELEASE) of $(PRODUCT)" |
77 |
| - @echo "" |
78 |
| - @case "x$(BOOTSTRAPCFLAGS)" in x) \ |
79 |
| - echo I hope you checked the configuration parameters in $(IRULESRC) ; \ |
80 |
| - echo to see if you need to pass BOOTSTRAPCFLAGS. ; \ |
81 |
| - echo "" ; \ |
82 |
| - ;; esac; |
83 |
| - @date |
84 |
| - @echo "" |
85 |
| - cd $(IMAKESRC) && $(MAKE) $(FLAGS) clean |
86 |
| - $(MAKE) $(MFLAGS) Makefile.boot |
87 |
| - $(MAKE_CMD) $(MFLAGS) VerifyOS |
88 |
| - $(MAKE_CMD) $(MFLAGS) Makefiles |
89 |
| - $(MAKE_CMD) $(MFLAGS) testsMakefile |
90 |
| - $(MAKE_CMD) $(MFLAGS) clean |
91 |
| - $(MAKE_CMD) $(MFLAGS) includes |
92 |
| - $(MAKE_CMD) $(MFLAGS) depend |
93 |
| - $(MAKE_CMD) $(MFLAGS) $(WORLDOPTS) |
94 |
| - @echo "" |
95 |
| - @date |
96 |
| - @echo "" |
97 |
| - @echo "Full build of $(RELEASE) of $(PRODUCT) complete." |
98 |
| - @echo "" |
99 |
| - |
100 |
| -.PRECIOUS: Makefile |
101 |
| - |
102 |
| -# This is just a sequence of bootstrapping steps we have to do. |
103 |
| -# The steps are listed as separate targets so clearmake can wink in |
104 |
| -# the Makefile.proto files. |
105 |
| -Makefile.boot: imake.proto $(DEPENDSRC)/Makefile.proto depend.bootstrap $(IMAKESRC)/Makefile.proto imake.bootstrap |
106 |
| - |
107 |
| -imake.proto: |
108 |
| - cd $(IMAKESRC) && $(MAKE) $(FLAGS) |
109 |
| - $(RM) $(DEPENDSRC)/Makefile.proto |
110 |
| - |
111 |
| -$(DEPENDSRC)/Makefile.proto: |
112 |
| - $(IMAKE_CMD) -s $(DEPENDSRC)/Makefile.proto -f $(DEPENDSRC)/Imakefile -DTOPDIR=$(DEPENDTOP) -DCURDIR=$(DEPENDSRC) |
113 |
| - |
114 |
| -depend.bootstrap: |
115 |
| - cd $(DEPENDSRC) && $(RM) -r Makefile Makefile.dep makedepend *.o bootstrap |
116 |
| - cd $(DEPENDSRC) && $(MAKE) -f Makefile.proto bootstrap |
117 |
| - |
118 |
| -$(IMAKESRC)/Makefile.proto: |
119 |
| - $(IMAKE_CMD) -s $(IMAKESRC)/Makefile.proto -f $(IMAKESRC)/Imakefile -DTOPDIR=$(IMAKETOP) -DCURDIR=$(IMAKESRC) |
120 |
| - |
121 |
| -imake.bootstrap: |
122 |
| - cd $(IMAKESRC) && $(MAKE) -f Makefile.proto bootstrapdepend |
123 |
| - cd $(IMAKESRC) && $(MAKE) $(FLAGS) bootstrap |
124 |
| - cd $(IMAKESRC) && $(MAKE) -f Makefile.proto all |
125 |
| - -@if [ -f xmakefile ]; then set -x; \ |
126 |
| - $(RM) xmakefile.bak; $(MV) xmakefile xmakefile.bak; \ |
127 |
| - else exit 0; fi |
128 |
| - $(MAKE) $(MFLAGS) xmakefile |
129 |
| - |
130 |
| -Makefile:: |
131 |
| - $(MAKE) $(MFLAGS) xmakefile |
132 |
| - |
133 |
| -xmakefile: Imakefile |
134 |
| - $(IMAKE_CMD) -s xmakefile $(MOTIFBUILDEXTRAS) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR) |
135 |
| - |
136 |
| -World.Win32: |
137 |
| - @echo : |
138 |
| - @echo Building $(RELEASE) of $(PRODUCT). |
139 |
| - @echo : |
140 |
| - @echo : |
141 |
| - cd $(IMAKESRC) |
142 |
| - $(NMAKE) -f Makefile.ini clean.Win32 |
143 |
| - $(NMAKE) -f Makefile.ini imake.exe |
144 |
| - cd ..\.. |
145 |
| - -if exist xmakefile.bak del xmakefile.bak |
146 |
| - -if exist xmakefile ren xmakefile xmakefile.bak |
147 |
| - $(IMAKE:/=\) -s xmakefile -I$(IRULESRC) $(IMAKE_DEFINES) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR) |
148 |
| - $(NMAKE_CMD) $(MFLAGS) VerifyOS |
149 |
| - $(NMAKE_CMD) $(MFLAGS) Makefiles |
150 |
| - $(NMAKE_CMD) $(MFLAGS) testsMakefile |
151 |
| - $(NMAKE_CMD) $(MFLAGS) clean |
152 |
| - $(NMAKE_CMD) $(MFLAGS) includes |
153 |
| - $(NMAKE_CMD) $(MFLAGS) depend |
154 |
| - $(NMAKE_CMD) $(MFLAGS) $(WIN32WORLDOPTS) |
155 |
| - @echo : |
156 |
| - @echo : |
157 |
| - @echo Full build of $(RELEASE) of $(PRODUCT) complete. |
158 |
| - @echo : |
159 |
| - |
160 |
| - |
161 |
| -# don't allow any default rules in this Makefile |
162 |
| -.SUFFIXES: |
163 |
| - |
164 |
| -# a copy of every rule that might be invoked at top level |
165 |
| - |
166 |
| -clean: |
167 |
| - $(MAKE_CMD) $@ |
168 |
| -dangerous_strip_clean: |
169 |
| - $(MAKE_CMD) $@ |
170 |
| -depend: |
171 |
| - $(MAKE_CMD) $@ |
172 |
| -Everything: |
173 |
| - $(MAKE_CMD) $@ |
174 |
| -external.ln: |
175 |
| - $(MAKE_CMD) $@ |
176 |
| -includes: |
177 |
| - $(MAKE_CMD) $@ |
178 |
| -install.ln: |
179 |
| - $(MAKE_CMD) $@ |
180 |
| -install.man: |
181 |
| - $(MAKE_CMD) $@ |
182 |
| -install: |
183 |
| - $(MAKE_CMD) $@ |
184 |
| -install.cde: |
185 |
| - $(MAKE_CMD) $@ |
186 |
| -Makefiles: |
187 |
| - $(MAKE_CMD) $@ |
188 |
| -man_keywords: |
189 |
| - $(MAKE_CMD) $@ |
190 |
| -tags: |
191 |
| - $(MAKE_CMD) $@ |
192 |
| -VerifyOS: |
193 |
| - $(MAKE_CMD) $@ |
| 1 | +:MAKE: config/util localized/util - lib/Xm |
0 commit comments