VirtualBox

source: kBuild/vendor/gnumake/3.82/NMakefile

最後變更 在這個檔案是 2579,由 bird 提交於 13 年 前

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

檔案大小: 7.1 KB
 
1# -*-Makefile-*- to build GNU make with nmake
2#
3# NOTE: If you have no 'make' program at all to process this makefile,
4# run 'build_w32.bat' instead.
5#
6# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
7# 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
23LINK = link
24CC = cl
25MAKE = nmake
26
27OUTDIR=.
28MAKEFILE=NMakefile
29SUBPROC_MAKEFILE=NMakefile
30
31CFLAGS_any = /nologo /MT /W4 /GX /Zi /YX /I . /I glob /I w32/include /D WIN32 /D WINDOWS32 /D _CONSOLE /D HAVE_CONFIG_H
32CFLAGS_debug = $(CFLAGS_any) /Od /D DEBUG /D _DEBUG /FR.\WinDebug/ /Fp.\WinDebug/make.pch /Fo.\WinDebug/ /Fd.\WinDebug/make.pdb
33CFLAGS_release = $(CFLAGS_any) /O2 /D NDEBUG /FR.\WinRel/ /Fp.\WinRel/make.pch /Fo.\WinRel/
34
35LDFLAGS_debug = w32\subproc\WinDebug\subproc.lib /NOLOGO /SUBSYSTEM:console\
36 /INCREMENTAL:no /PDB:WinDebug/make.pdb /OUT:WinDebug/make.exe /DEBUG
37LDFLAGS_release = w32\subproc\WinRel\subproc.lib /NOLOGO /SUBSYSTEM:console\
38 /INCREMENTAL:no /OUT:WinRel/make.exe
39
40all: config.h subproc Release Debug
41
42#
43# Make sure we build the subproc library first. It has it's own
44# makefile. To be portable to Windows 95, we put the instructions
45# on how to build the library into a batch file. On NT, we could
46# simply have done foo && bar && dog, but this doesn't port.
47#
48subproc: w32/subproc/WinDebug/subproc.lib w32/subproc/WinRel/subproc.lib
49
50w32/subproc/WinDebug/subproc.lib w32/subproc/WinRel/subproc.lib: w32/subproc/misc.c w32/subproc/sub_proc.c w32/subproc/w32err.c
51 subproc.bat $(SUBPROC_MAKEFILE) $(MAKE)
52 if exist WinDebug\make.exe erase WinDebug\make.exe
53 if exist WinRel\make.exe erase WinRel\make.exe
54
55config.h: config.h.W32
56 copy $? $@
57
58Release:
59 $(MAKE) /f $(MAKEFILE) LDFLAGS="$(LDFLAGS_release)" CFLAGS="$(CFLAGS_release)" OUTDIR=WinRel WinRel/make.exe
60Debug:
61 $(MAKE) /f $(MAKEFILE) LDFLAGS="$(LDFLAGS_debug)" CFLAGS="$(CFLAGS_debug)" OUTDIR=WinDebug WinDebug/make.exe
62
63clean:
64 if exist WinDebug\nul rmdir /s /q WinDebug
65 if exist WinRel\nul rmdir /s /q WinRel
66 if exist w32\subproc\WinDebug\nul rmdir /s /q w32\subproc\WinDebug
67 if exist w32\subproc\WinRel\nul rmdir /s /q w32\subproc\WinRel
68 if exist config.h erase config.h
69 erase *.pdb
70
71$(OUTDIR):
72 if not exist .\$@\nul mkdir .\$@
73
74LIBS = kernel32.lib user32.lib advapi32.lib
75
76OBJS = \
77 $(OUTDIR)/ar.obj \
78 $(OUTDIR)/arscan.obj \
79 $(OUTDIR)/commands.obj \
80 $(OUTDIR)/default.obj \
81 $(OUTDIR)/dir.obj \
82 $(OUTDIR)/expand.obj \
83 $(OUTDIR)/file.obj \
84 $(OUTDIR)/function.obj \
85 $(OUTDIR)/getloadavg.obj \
86 $(OUTDIR)/getopt.obj \
87 $(OUTDIR)/getopt1.obj \
88 $(OUTDIR)/hash.obj \
89 $(OUTDIR)/implicit.obj \
90 $(OUTDIR)/job.obj \
91 $(OUTDIR)/main.obj \
92 $(OUTDIR)/misc.obj \
93 $(OUTDIR)/read.obj \
94 $(OUTDIR)/remake.obj \
95 $(OUTDIR)/remote-stub.obj \
96 $(OUTDIR)/rule.obj \
97 $(OUTDIR)/signame.obj \
98 $(OUTDIR)/strcache.obj \
99 $(OUTDIR)/variable.obj \
100 $(OUTDIR)/version.obj \
101 $(OUTDIR)/vpath.obj \
102 $(OUTDIR)/glob.obj \
103 $(OUTDIR)/fnmatch.obj \
104 $(OUTDIR)/dirent.obj \
105 $(OUTDIR)/pathstuff.obj
106
107$(OUTDIR)/make.exe: $(OUTDIR) $(OBJS)
108 $(LINK) @<<
109 $(LDFLAGS) $(LIBS) $(OBJS)
110<<
111
112.c{$(OUTDIR)}.obj:
113 $(CC) $(CFLAGS) /c $<
114
115$(OUTDIR)/glob.obj : glob/glob.c
116 $(CC) $(CFLAGS) /c $?
117$(OUTDIR)/fnmatch.obj : glob/fnmatch.c
118 $(CC) $(CFLAGS) /c $?
119$(OUTDIR)/dirent.obj : w32/compat/dirent.c
120 $(CC) $(CFLAGS) /c $?
121$(OUTDIR)/pathstuff.obj : w32/pathstuff.c
122 $(CC) $(CFLAGS) /c $?
123
124# --------------- DEPENDENCIES
125#
126
127# .deps/alloca.Po
128# dummy
129
130# .deps/ar.Po
131$(OUTDIR)/ar.obj: ar.c make.h config.h \
132 getopt.h \
133 gettext.h \
134 filedef.h hash.h dep.h \
135
136# .deps/arscan.Po
137$(OUTDIR)/arscan.obj: arscan.c make.h config.h \
138 getopt.h \
139 gettext.h \
140
141# .deps/commands.Po
142$(OUTDIR)/commands.obj: commands.c make.h config.h \
143 getopt.h \
144 gettext.h \
145 dep.h filedef.h hash.h variable.h job.h \
146 commands.h
147
148# .deps/default.Po
149$(OUTDIR)/default.obj: default.c make.h config.h \
150 getopt.h \
151 gettext.h \
152 filedef.h hash.h variable.h rule.h dep.h \
153 job.h \
154 commands.h
155
156# .deps/dir.Po
157$(OUTDIR)/dir.obj: dir.c make.h config.h \
158 getopt.h \
159 gettext.h \
160 hash.h \
161
162# .deps/expand.Po
163$(OUTDIR)/expand.obj: expand.c make.h config.h \
164 getopt.h \
165 gettext.h \
166 filedef.h hash.h \
167 job.h \
168 commands.h variable.h \
169 rule.h
170
171# .deps/file.Po
172$(OUTDIR)/file.obj: file.c make.h config.h \
173 getopt.h \
174 gettext.h \
175 dep.h filedef.h \
176 hash.h job.h \
177 commands.h variable.h \
178 debug.h
179
180# .deps/function.Po
181$(OUTDIR)/function.obj: function.c make.h config.h \
182 getopt.h \
183 gettext.h \
184 filedef.h hash.h variable.h dep.h job.h \
185 commands.h debug.h
186
187# .deps/getloadavg.Po
188# dummy
189
190# .deps/getopt.Po
191$(OUTDIR)/getopt.obj: getopt.c config.h \
192
193# .deps/getopt1.Po
194$(OUTDIR)/getopt1.obj: getopt1.c config.h getopt.h \
195
196# .deps/hash.Po
197$(OUTDIR)/hash.obj: hash.c make.h config.h \
198 getopt.h \
199 gettext.h \
200 hash.h
201
202# .deps/implicit.Po
203$(OUTDIR)/implicit.obj: implicit.c make.h config.h \
204 getopt.h \
205 gettext.h \
206 filedef.h hash.h rule.h dep.h debug.h \
207 variable.h job.h \
208 commands.h
209
210# .deps/job.Po
211$(OUTDIR)/job.obj: job.c make.h config.h \
212 getopt.h \
213 gettext.h \
214 job.h \
215 debug.h filedef.h hash.h commands.h \
216 variable.h
217
218# .deps/loadavg-getloadavg.Po
219# dummy
220
221# .deps/main.Po
222$(OUTDIR)/main.obj: main.c make.h config.h \
223 getopt.h \
224 gettext.h \
225 dep.h filedef.h hash.h variable.h job.h \
226 commands.h rule.h debug.h getopt.h \
227
228# .deps/misc.Po
229$(OUTDIR)/misc.obj: misc.c make.h config.h \
230 getopt.h \
231 gettext.h \
232 dep.h debug.h
233
234# .deps/read.Po
235$(OUTDIR)/read.obj: read.c make.h config.h \
236 getopt.h \
237 gettext.h \
238 dep.h filedef.h hash.h job.h \
239 commands.h variable.h rule.h debug.h \
240
241# .deps/remake.Po
242$(OUTDIR)/remake.obj: remake.c make.h config.h \
243 getopt.h \
244 gettext.h \
245 filedef.h hash.h job.h \
246 commands.h dep.h variable.h debug.h \
247
248# .deps/remote-cstms.Po
249# dummy
250
251# .deps/remote-stub.Po
252$(OUTDIR)/remote-stub.obj: remote-stub.c make.h config.h \
253 getopt.h \
254 gettext.h \
255 filedef.h hash.h job.h \
256 commands.h
257
258# .deps/rule.Po
259$(OUTDIR)/rule.obj: rule.c make.h config.h \
260 getopt.h \
261 gettext.h \
262 dep.h filedef.h \
263 hash.h job.h \
264 commands.h variable.h \
265 rule.h
266
267# .deps/signame.Po
268$(OUTDIR)/signame.obj: signame.c make.h config.h \
269 getopt.h \
270 gettext.h \
271
272# .deps/strcache.Po
273$(OUTDIR)/strcache.obj: strcache.c make.h config.h \
274 getopt.h \
275 gettext.h \
276 hash.h
277
278# .deps/variable.Po
279$(OUTDIR)/variable.obj: variable.c make.h config.h \
280 getopt.h \
281 gettext.h \
282 dep.h filedef.h \
283 hash.h job.h \
284 commands.h variable.h \
285 rule.h
286
287# .deps/version.Po
288$(OUTDIR)/version.obj: version.c config.h
289
290# .deps/vmsjobs.Po
291# dummy
292
293# .deps/vpath.Po
294$(OUTDIR)/vpath.obj: vpath.c make.h config.h \
295 getopt.h \
296 gettext.h \
297 filedef.h hash.h variable.h
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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