VirtualBox

source: kBuild/vendor/gnumake/3.81/SMakefile

Last change on this file was 501, checked in by bird, 18 years ago

Load make-3.81/ into vendor/gnumake/current.

  • Property svn:eol-style set to native
File size: 9.9 KB
Line 
1# -*-Makefile-*- for building GNU make with smake
2#
3# NOTE: If you have no 'make' program at all to process this makefile,
4# run 'build.sh' instead.
5#
6# Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
7# 2005, 2006 Free Software Foundation, Inc.
8# This file is part of GNU Make.
9#
10# GNU Make is free software; you can redistribute it and/or modify it under the
11# terms of the GNU General Public License as published by the Free Software
12# Foundation; either version 2, or (at your option) any later version.
13#
14# GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
15# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
16# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
17#
18# You should have received a copy of the GNU General Public License along with
19# GNU Make; see the file COPYING. If not, write to the Free Software
20# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
21
22#
23# Makefile for GNU Make
24#
25
26# Ultrix 2.2 make doesn't expand the value of VPATH.
27VPATH = /make-3.81/
28# This must repeat the value, because configure will remove `VPATH = .'.
29srcdir = /make-3.81/
30
31CC = sc
32RM = delete
33MAKE = smake
34
35CFLAGS =
36CPPFLAGS =
37LDFLAGS =
38
39# Define these for your system as follows:
40# -DNO_ARCHIVES To disable `ar' archive support.
41# -DNO_FLOAT To avoid using floating-point numbers.
42# -DENUM_BITFIELDS If the compiler isn't GCC but groks enum foo:2.
43# Some compilers apparently accept this
44# without complaint but produce losing code,
45# so beware.
46# NeXT 1.0a uses an old version of GCC, which required -D__inline=inline.
47# See also `config.h'.
48defines =
49
50# Which flavor of remote job execution support to use.
51# The code is found in `remote-$(REMOTE).c'.
52REMOTE = stub
53
54# If you are using the GNU C library, or have the GNU getopt functions in
55# your C library, you can comment these out.
56GETOPT = getopt.o getopt1.o
57GETOPT_SRC = $(srcdir)getopt.c $(srcdir)getopt1.c $(srcdir)getopt.h
58
59# If you are using the GNU C library, or have the GNU glob functions in
60# your C library, you can comment this out. GNU make uses special hooks
61# into the glob functions to be more efficient (by using make's directory
62# cache for globbing), so you must use the GNU functions even if your
63# system's C library has the 1003.2 glob functions already. Also, the glob
64# functions in the AIX and HPUX C libraries are said to be buggy.
65GLOB = Lib glob/glob.lib
66
67# If your system doesn't have alloca, or the one provided is bad, define this.
68ALLOCA = alloca.o
69ALLOCA_SRC = $(srcdir)alloca.c
70
71# If your system needs extra libraries loaded in, define them here.
72# System V probably need -lPW for alloca. HP-UX 7.0's alloca in
73# libPW.a is broken on HP9000s300 and HP9000s400 machines. Use
74# alloca.c instead on those machines.
75LOADLIBES =
76
77# Any extra object files your system needs.
78extras = amiga.o
79
80# Common prefix for machine-independent installed files.
81prefix =
82# Common prefix for machine-dependent installed files.
83exec_prefix =
84
85# Directory to install `make' in.
86bindir = sc:c
87# Directory to find libraries in for `-lXXX'.
88libdir = lib:
89# Directory to search by default for included makefiles.
90includedir = include:
91# Directory to install the Info files in.
92infodir = doc:
93# Directory to install the man page in.
94mandir = t:
95# Number to put on the man page filename.
96manext = 1
97# Prefix to put on installed `make' binary file name.
98binprefix =
99# Prefix to put on installed `make' man page file name.
100manprefix = $(binprefix)
101
102# Whether or not make needs to be installed setgid.
103# The value should be either `true' or `false'.
104# On many systems, the getloadavg function (used to implement the `-l'
105# switch) will not work unless make is installed setgid kmem.
106install_setgid = false
107# Install make setgid to this group so it can read /dev/kmem.
108group = sys
109
110# Program to install `make'.
111INSTALL_PROGRAM = copy
112# Program to install the man page.
113INSTALL_DATA = copy
114# Generic install program.
115INSTALL = copy
116
117# Program to format Texinfo source into Info files.
118MAKEINFO = makeinfo
119# Program to format Texinfo source into DVI files.
120TEXI2DVI = texi2dvi
121
122# Programs to make tags files.
123ETAGS = etags -w
124CTAGS = ctags -w
125
126objs = commands.o job.o dir.o file.o misc.o main.o read.o remake.o \
127 rule.o implicit.o default.o variable.o expand.o function.o \
128 vpath.o version.o ar.o arscan.o signame.o strcache.o hash.o \
129 remote-$(REMOTE).o $(GLOB) $(GETOPT) $(ALLOCA) $(extras)
130srcs = $(srcdir)commands.c $(srcdir)job.c $(srcdir)dir.c \
131 $(srcdir)file.c $(srcdir)getloadavg.c $(srcdir)misc.c \
132 $(srcdir)main.c $(srcdir)read.c $(srcdir)remake.c \
133 $(srcdir)rule.c $(srcdir)implicit.c $(srcdir)default.c \
134 $(srcdir)variable.c $(srcdir)expand.c $(srcdir)function.c \
135 $(srcdir)vpath.c $(srcdir)version.c $(srcdir)hash.c \
136 $(srcdir)remote-$(REMOTE).c \
137 $(srcdir)ar.c $(srcdir)arscan.c $(srcdir)strcache.c \
138 $(srcdir)signame.c $(srcdir)signame.h $(GETOPT_SRC) \
139 $(srcdir)commands.h $(srcdir)dep.h $(srcdir)file.h \
140 $(srcdir)job.h $(srcdir)make.h $(srcdir)rule.h \
141 $(srcdir)variable.h $(ALLOCA_SRC) $(srcdir)config.h.in
142
143
144.SUFFIXES:
145.SUFFIXES: .o .c .h .ps .dvi .info .texinfo
146
147all: make
148info: make.info
149dvi: make.dvi
150# Some makes apparently use .PHONY as the default goal if it is before `all'.
151.PHONY: all check info dvi
152
153make.info: make.texinfo
154 $(MAKEINFO) -I$(srcdir) $(srcdir)make.texinfo -o make.info
155
156make.dvi: make.texinfo
157 $(TEXI2DVI) $(srcdir)make.texinfo
158
159make.ps: make.dvi
160 dvi2ps make.dvi > make.ps
161
162make: $(objs) glob/glob.lib
163 $(CC) Link $(LDFLAGS) $(objs) $(LOADLIBES) To make.new
164 -delete quiet make
165 rename make.new make
166
167# -I. is needed to find config.h in the build directory.
168.c.o:
169 $(CC) $(defines) IDir "" IDir $(srcdir)glob \
170 $(CPPFLAGS) $(CFLAGS) $< $(OUTPUT_OPTION)
171
172glob/glob.lib:
173 execute <<
174 cd glob
175 smake
176<
177
178tagsrcs = $(srcs) $(srcdir)remote-*.c
179TAGS: $(tagsrcs)
180 $(ETAGS) $(tagsrcs)
181tags: $(tagsrcs)
182 $(CTAGS) $(tagsrcs)
183
184.PHONY: install installdirs
185install:
186 copy make sc:c
187
188loadavg: loadavg.c config.h
189 $(CC) $(defines) -DTEST -I. -I$(srcdir) $(CFLAGS) $(LDFLAGS) \
190 loadavg.c $(LOADLIBES) -o $@
191
192clean: glob-clean
193 -$(RM) -f make loadavg *.o core make.dvi
194
195distclean: clean glob-realclean
196 -$(RM) -f Makefile config.h config.status build.sh
197 -$(RM) -f config.log config.cache
198 -$(RM) -f TAGS tags
199 -$(RM) -f make.?? make.??s make.log make.toc make.*aux
200 -$(RM) -f loadavg.c
201
202realclean: distclean
203 -$(RM) -f make.info*
204
205mostlyclean: clean
206
207.PHONY: glob-clean glob-realclean
208
209glob-clean glob-realclean:
210 execute <<
211 cd glob
212 smake $@
213<
214
215# --------------- DEPENDENCIES
216#
217
218# .deps/alloca.Po
219# dummy
220
221# .deps/ar.Po
222ar.o ar.o: ar.c make.h config.h \
223 getopt.h \
224 gettext.h filedef.h hash.h dep.h \
225
226# .deps/arscan.Po
227arscan.o arscan.o: arscan.c make.h config.h \
228 getopt.h \
229 gettext.h \
230
231# .deps/commands.Po
232commands.o commands.o: commands.c make.h config.h \
233 getopt.h \
234 gettext.h dep.h filedef.h hash.h variable.h \
235 job.h commands.h
236
237# .deps/default.Po
238default.o default.o: default.c make.h config.h \
239 getopt.h \
240 gettext.h filedef.h hash.h variable.h rule.h \
241 dep.h job.h commands.h
242
243# .deps/dir.Po
244dir.o dir.o: dir.c make.h config.h \
245 getopt.h \
246 gettext.h hash.h \
247
248# .deps/expand.Po
249expand.o expand.o: expand.c make.h config.h \
250 getopt.h \
251 gettext.h filedef.h hash.h \
252 job.h commands.h \
253 variable.h rule.h
254
255# .deps/file.Po
256file.o file.o: file.c make.h config.h \
257 getopt.h \
258 gettext.h dep.h filedef.h \
259 hash.h job.h commands.h \
260 variable.h debug.h
261
262# .deps/function.Po
263function.o function.o: function.c make.h config.h \
264 getopt.h \
265 gettext.h filedef.h hash.h variable.h dep.h \
266 job.h commands.h debug.h
267
268# .deps/getloadavg.Po
269# dummy
270
271# .deps/getopt.Po
272getopt.o getopt.o: getopt.c config.h \
273
274# .deps/getopt1.Po
275getopt1.o getopt1.o: getopt1.c config.h getopt.h \
276
277# .deps/hash.Po
278hash.o hash.o: hash.c make.h config.h \
279 getopt.h \
280 gettext.h hash.h
281
282# .deps/implicit.Po
283implicit.o implicit.o: implicit.c make.h config.h \
284 getopt.h \
285 gettext.h filedef.h hash.h rule.h dep.h debug.h \
286 variable.h job.h \
287 commands.h
288
289# .deps/job.Po
290job.o job.o: job.c make.h config.h \
291 getopt.h \
292 gettext.h job.h \
293 debug.h filedef.h hash.h \
294 commands.h variable.h \
295
296# .deps/loadavg-getloadavg.Po
297loadavg-getloadavg.o loadavg-getloadavg.o: getloadavg.c config.h \
298 make.h \
299 getopt.h \
300 gettext.h \
301
302# .deps/main.Po
303main.o main.o: main.c make.h config.h \
304 getopt.h \
305 gettext.h dep.h filedef.h hash.h variable.h \
306 job.h commands.h rule.h \
307 debug.h getopt.h \
308
309# .deps/misc.Po
310misc.o misc.o: misc.c make.h config.h \
311 getopt.h \
312 gettext.h dep.h debug.h
313
314# .deps/read.Po
315read.o read.o: read.c make.h config.h \
316 getopt.h \
317 gettext.h \
318 dep.h filedef.h hash.h job.h \
319 commands.h variable.h rule.h debug.h \
320
321# .deps/remake.Po
322remake.o remake.o: remake.c make.h config.h \
323 getopt.h \
324 gettext.h filedef.h hash.h job.h \
325 commands.h dep.h \
326 variable.h debug.h
327
328# .deps/remote-cstms.Po
329# dummy
330
331# .deps/remote-stub.Po
332remote-stub.o remote-stub.o: remote-stub.c make.h config.h \
333 getopt.h \
334 gettext.h filedef.h hash.h job.h \
335 commands.h
336
337# .deps/rule.Po
338rule.o rule.o: rule.c make.h config.h \
339 getopt.h \
340 gettext.h dep.h filedef.h hash.h job.h \
341 commands.h variable.h \
342 rule.h
343
344# .deps/signame.Po
345signame.o signame.o: signame.c make.h config.h \
346 getopt.h \
347 gettext.h
348
349# .deps/strcache.Po
350strcache.o strcache.o: strcache.c make.h config.h \
351 getopt.h \
352 gettext.h hash.h
353
354# .deps/variable.Po
355variable.o variable.o: variable.c make.h config.h \
356 getopt.h \
357 gettext.h dep.h filedef.h \
358 hash.h job.h commands.h \
359 variable.h rule.h
360
361# .deps/version.Po
362version.o version.o: version.c config.h
363
364# .deps/vmsjobs.Po
365# dummy
366
367# .deps/vpath.Po
368vpath.o vpath.o: vpath.c make.h config.h \
369 getopt.h \
370 gettext.h filedef.h hash.h variable.h
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette