VirtualBox

source: kBuild/vendor/gnumake/3.82/SMakefile

Last change on this file was 2579, checked in by bird, 12 years ago

Importing make-3.82.tar.bz2 (md5sum 1a11100f3c63fcf5753818e59d63088f) with --auto-props but no keywords.

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