source: trunk/kBuild/tools/VCC100X86.kmk@ 2870

Last change on this file since 2870 was 2870, checked in by bird, 9 years ago

updates

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 17.0 KB
Line 
1# $Id: VCC100X86.kmk 2870 2016-09-04 13:52:39Z bird $
2## @file
3# kBuild Tool Config - Visual C++ 10.0 (aka Visual 2010 and MSC v16), targeting x86.
4#
5
6#
7# Copyright (c) 2004-2016 knut st. osmundsen <bird-kBuild-spam-xiv@anduin.net>
8#
9# This file is part of kBuild.
10#
11# kBuild is free software; you can redistribute it and/or modify
12# it under the terms of the GNU General Public License as published by
13# the Free Software Foundation; either version 2 of the License, or
14# (at your option) any later version.
15#
16# kBuild is distributed in the hope that it will be useful,
17# but WITHOUT ANY WARRANTY; without even the implied warranty of
18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19# GNU General Public License for more details.
20#
21# You should have received a copy of the GNU General Public License
22# along with kBuild; if not, write to the Free Software
23# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24#
25#
26# As a special exception you are granted permission to include this file, via
27# the kmk include directive, as you wish without this in itself causing the
28# resulting makefile, program or whatever to be covered by the GPL license.
29# This exception does not however invalidate any other reasons why the makefile,
30# program, whatever should not be covered the GPL.
31#
32#
33
34TOOL_VCC100X86 := Visual C++ 10.0 (aka Visual 2010 and MSC v16), targeting x86.
35
36# Tool Specific Properties
37ifndef PATH_TOOL_VCC100X86
38 PATH_TOOL_VCC100X86 := $(wildcard $(KBUILD_DEVTOOLS)/win.x86/vcc/v10*)
39 ifeq ($(PATH_TOOL_VCC100X86),)
40 PATH_TOOL_VCC100X86 := $(PATH_TOOL_VCC100)
41 endif
42 ifeq ($(PATH_TOOL_VCC100X86),)
43 PATH_TOOL_VCC100X86 := $(PATH_TOOL_VCC100AMD64)
44 endif
45 ifeq ($(PATH_TOOL_VCC100X86),)
46 PATH_TOOL_VCC100X86 := $(wildcard $(KBUILD_DEVTOOLS)/x86.win32/vcc/v10*)
47 endif
48 ifeq ($(PATH_TOOL_VCC100X86),)
49 PATH_TOOL_VCC100X86 := $(wildcard $(KBUILD_DEVTOOLS)/win.amd64/vcc/v10*)
50 endif
51 ifneq ($(PATH_TOOL_VCC100X86),)
52 PATH_TOOL_VCC100X86 := $(lastword $(sort $(PATH_TOOL_VCC100X86)))
53 else
54 $(warning kBuild: PATH_TOOL_VCC100X86 cannot be determined!)
55 PATH_TOOL_VCC100X86 := $(KBUILD_DEVTOOLS)/x86.win/vcc/v10
56 endif
57else
58 # Resolve any fancy stuff once and for all.
59 PATH_TOOL_VCC100X86 := $(PATH_TOOL_VCC100X86)
60endif
61PATH_TOOL_VCC100X86_BIN ?= $(PATH_TOOL_VCC100X86)/bin
62PATH_TOOL_VCC100X86_LIB ?= $(PATH_TOOL_VCC100X86)/lib
63PATH_TOOL_VCC100X86_INC ?= $(PATH_TOOL_VCC100X86)/include
64PATH_TOOL_VCC100X86_ATLMFC ?= $(PATH_TOOL_VCC100X86)/atlmfc
65PATH_TOOL_VCC100X86_ATLMFC_INC ?= $(PATH_TOOL_VCC100X86_ATLMFC)/include
66PATH_TOOL_VCC100X86_ATLMFC_LIB ?= $(PATH_TOOL_VCC100X86_ATLMFC)/lib
67TOOL_VCC100X86_CC ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC100X86_BIN)/cl.exe
68TOOL_VCC100X86_CXX ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC100X86_BIN)/cl.exe
69TOOL_VCC100X86_AS ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC100X86_BIN)/ml.exe
70TOOL_VCC100X86_AR ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC100X86_BIN)/lib.exe
71TOOL_VCC100X86_LD ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC100X86_BIN)/link.exe
72TOOL_VCC100X86_DUMPBIN ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC100X86_BIN)/dumpbin.exe
73TOOL_VCC100X86_EDITBIN ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC100X86_BIN)/editbin.exe
74TOOL_VCC100X86_RC ?= $(EXEC_X86_WIN32) $(call TOOL_VCC100_FN_FIND_SDK_TOOL,rc.exe,[Rr][Cc].[Ee][Xx][Ee],TOOL_VCC100_RC_CACHED)
75TOOL_VCC100X86_MT ?= $(EXEC_X86_WIN32) $(call TOOL_VCC100_FN_FIND_SDK_TOOL,mt.exe,[Mm][Tt].[Ee][Xx][Ee],TOOL_VCC100_MT_CACHED)
76ifdef TOOL_VCC100X86_USE_KSUBMIT
77 ifeq ($(KBUILD_HOST),win)
78 TOOL_VCC100X86_KSUBMIT ?= kmk_builtin_kSubmit --32-bit --
79 endif
80endif
81
82# The following in duplicated in VCC100.kmk and VCC100X86.kmk.
83TOOL_VCC100_FN_FIND_SDK_TOOL_SUB = $(eval $3 := $(firstword \
84 $(if-expr defined(PATH_SDK_WINPSDK71_BIN), $(wildcard $(PATH_SDK_WINPSDK71_BIN)/$2)) \
85 $(if-expr defined(PATH_SDK_WINPSDK_BIN) , $(wildcard $(PATH_SDK_WINPSDK_BIN)/$2)) \
86 $(rsort $(wildcard $(KBUILD_DEVTOOLS_HST)/sdk/*/[Bb][Ii][Nn]/$2)) \
87 $(rsort $(wildcard $(KBUILD_DEVTOOLS_HST_ALT)/sdk/*/[Bb][Ii][Nn]/$2)) \
88 $1))
89TOOL_VCC100_FN_FIND_SDK_TOOL = $(if-expr !defined($3),$(TOOL_VCC100_FN_FIND_SDK_TOOL_SUB),)$($3)
90
91## Disabled fast DEP_IDB based dependencies.
92#VCC100X86_OLD_DEPS = 1
93
94## Constructs the correct .pdb name (the name is lowercased).
95# @param $(1) Base name, no extention.
96# @param $(2) The extension.
97TOOL_VCC100X86_PDB = $(dir $(1))$(tolower $(notdir $(1))).$(2)
98
99
100# General Properties used by kBuild
101TOOL_VCC100X86_COBJSUFF ?= .obj
102TOOL_VCC100X86_CFLAGS ?= -TC -nologo
103TOOL_VCC100X86_CFLAGS.debug ?= -Zi
104TOOL_VCC100X86_CFLAGS.dbgopt ?= -O2 -Zi
105TOOL_VCC100X86_CFLAGS.release ?= -O2
106TOOL_VCC100X86_CFLAGS.profile ?= -O2
107TOOL_VCC100X86_CINCS ?= $(PATH_TOOL_VCC100X86_INC)
108TOOL_VCC100X86_CDEFS ?=
109
110TOOL_VCC100X86_CXXOBJSUFF ?= .obj
111TOOL_VCC100X86_CXXFLAGS ?= -TP -nologo
112TOOL_VCC100X86_CXXFLAGS.debug ?= -Zi
113TOOL_VCC100X86_CXXFLAGS.dbgopt ?= -O2 -Zi
114TOOL_VCC100X86_CXXFLAGS.release ?= -O2
115TOOL_VCC100X86_CXXFLAGS.profile ?= -O2
116TOOL_VCC100X86_CXXINCS ?= $(PATH_TOOL_VCC100X86_INC) $(PATH_TOOL_VCC100X86_ATLMFC_INC)
117TOOL_VCC100X86_CXXDEFS ?=
118
119TOOL_VCC100X86_ASOBJSUFF ?= .obj
120
121TOOL_VCC100X86_RCOBJSUFF ?= .res
122TOOL_VCC100X86_RCINCS ?= $(PATH_TOOL_VCC100X86_INC) $(PATH_TOOL_VCC100X86_ATLMFC_INC)
123
124TOOL_VCC100X86_ARFLAGS ?= -nologo
125TOOL_VCC100X86_ARLIBSUFF ?= .lib
126
127TOOL_VCC100X86_LDFLAGS ?= -nologo -machine:x86
128TOOL_VCC100X86_LDFLAGS.debug ?= -debug
129TOOL_VCC100X86_LDFLAGS.dbgopt ?= -debug
130TOOL_VCC100X86_LDFLAGS.profile ?= -debug
131TOOL_VCC100X86_LDFLAGS.release ?=
132
133
134
135## Compile C source.
136# @param $(target) Normalized main target name.
137# @param $(source) Source filename (relative).
138# @param $(obj) Object file name. This shall be (re)created by the compilation.
139# @param $(dep) Dependcy file. This shall be (re)created by the compilation.
140# @param $(flags) Flags.
141# @param $(defs) Definitions. No -D or something.
142# @param $(incs) Includes. No -I or something.
143# @param $(dirdep) Directory creation dependency.
144# @param $(deps) Other dependencies.
145#
146# @param $(outbase) Output basename (full). Use this for list files and such.
147# @param $(objsuff) Object suffix.
148TOOL_VCC100X86_COMPILE_C_DEPEND =
149TOOL_VCC100X86_COMPILE_C_DEPORD =
150ifdef KBUILD_USE_KOBJCACHE
151TOOL_VCC100X86_COMPILE_C_USES_KOBJCACHE = 1
152TOOL_VCC100X86_COMPILE_C_OUTPUT = $(outbase).i
153TOOL_VCC100X86_COMPILE_C_OUTPUT_MAYBE =
154define TOOL_VCC100X86_COMPILE_C_CMDS
155 $(QUIET)$(KOBJCACHE) -f $(outbase).koc -d $(PATH_OBJCACHE) -t $(bld_trg).$(bld_trg_arch) -O2 -r\
156 --make-dep-fix-case --make-dep-gen-stubs --make-dep-quiet --make-dep-file $(dep)\
157 --kObjCache-cpp $(outbase).i\
158 $(TOOL_VCC100X86_CC) -E\
159 $(subst -Zi,-Z7,$(flags))\
160 $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
161 $(subst /,\\,$(abspath $(source))) \
162 --kObjCache-cc $(obj)\
163 $(TOOL_VCC100X86_CC) -c\
164 $(subst -Zi,-Z7,$(flags))\
165 -Fo$(obj)\
166 $(outbase).i
167endef
168else # !KBUILD_USE_KOBJCACHE
169TOOL_VCC100X86_COMPILE_C_OUTPUT = $(call TOOL_VCC100X86_PDB, $(outbase)-obj,idb)
170TOOL_VCC100X86_COMPILE_C_OUTPUT_MAYBE = $(call TOOL_VCC100X86_PDB, $(outbase)-obj,pdb)
171define TOOL_VCC100X86_COMPILE_C_CMDS
172 $(QUIET)$(TOOL_VCC100X86_KSUBMIT) $(TOOL_VCC100X86_CC) -c\
173 $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
174 -Fd$(outbase)-obj.pdb \
175 -FD\
176 -Fo$(obj)\
177 $(subst /,\\,$(abspath $(source)))
178 $(QUIET)$(DEP_IDB) -f -s -q -o $(dep) -t $(obj) $(call TOOL_VCC100X86_PDB,$(outbase)-obj,idb)
179endef
180endif # !KBUILD_USE_KOBJCACHE
181
182
183## Compile C++ source.
184# @param $(target) Normalized main target name.
185# @param $(source) Source filename (relative).
186# @param $(obj) Object file name. This shall be (re)created by the compilation.
187# @param $(dep) Dependcy file. This shall be (re)created by the compilation.
188# @param $(flags) Flags.
189# @param $(defs) Definitions. No -D or something.
190# @param $(incs) Includes. No -I or something.
191# @param $(dirdep) Directory creation dependency.
192# @param $(deps) Other dependencies.
193#
194# @param $(outbase) Output basename (full). Use this for list files and such.
195# @param $(objsuff) Object suffix.
196TOOL_VCC100X86_COMPILE_CXX_DEPEND =
197TOOL_VCC100X86_COMPILE_CXX_DEPORD =
198ifdef KBUILD_USE_KOBJCACHE
199TOOL_VCC100X86_COMPILE_CXX_USES_KOBJCACHE = 1
200TOOL_VCC100X86_COMPILE_CXX_OUTPUT = $(outbase).ii
201TOOL_VCC100X86_COMPILE_CXX_OUTPUT_MAYBE =
202define TOOL_VCC100X86_COMPILE_CXX_CMDS
203 $(QUIET)$(KOBJCACHE) -f $(outbase).koc -d $(PATH_OBJCACHE) -t $(bld_trg).$(bld_trg_arch) -O2 -r\
204 --make-dep-fix-case --make-dep-gen-stubs --make-dep-quiet --make-dep-file $(dep)\
205 --kObjCache-cpp $(outbase).ii\
206 $(TOOL_VCC100X86_CXX) -E\
207 $(subst -Zi,-Z7,$(flags))\
208 $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
209 $(subst /,\\,$(abspath $(source))) \
210 --kObjCache-cc $(obj)\
211 $(TOOL_VCC100X86_CXX) -c\
212 $(subst -Zi,-Z7,$(flags))\
213 -Fo$(obj)\
214 $(outbase).ii
215endef
216else # !KBUILD_USE_KOBJCACHE
217TOOL_VCC100X86_COMPILE_CXX_OUTPUT = $(call TOOL_VCC100X86_PDB, $(outbase)-obj,idb)
218TOOL_VCC100X86_COMPILE_CXX_OUTPUT_MAYBE = $(call TOOL_VCC100X86_PDB, $(outbase)-obj,pdb)
219define TOOL_VCC100X86_COMPILE_CXX_CMDS
220 $(QUIET)$(TOOL_VCC100X86_KSUBMIT) $(TOOL_VCC100X86_CXX) -c\
221 $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
222 -Fd$(outbase)-obj.pdb \
223 -FD\
224 -Fo$(obj)\
225 $(subst /,\\,$(abspath $(source)))
226 $(QUIET)$(DEP_IDB) -f -s -q -o $(dep) -t $(obj) $(call TOOL_VCC100X86_PDB,$(outbase)-obj,idb)
227endef
228endif # !KBUILD_USE_KOBJCACHE
229
230## @todo configure the assembler template.
231
232## Compile resource source.
233# @param $(target) Normalized main target name.
234# @param $(source) Source filename (relative).
235# @param $(obj) Object file name. This shall be (re)created by the compilation.
236# @param $(dep) Dependcy file. This shall be (re)created by the compilation.
237# @param $(flags) Flags.
238# @param $(defs) Definitions. No -D or something.
239# @param $(incs) Includes. No -I or something.
240# @param $(dirdep) Directory creation dependency.
241# @param $(deps) Other dependencies.
242#
243# @param $(outbase) Output basename (full). Use this for list files and such.
244# @param $(objsuff) Object suffix.
245TOOL_VCC100X86_COMPILE_RC_DEPEND =
246TOOL_VCC100X86_COMPILE_RC_DEPORD =
247TOOL_VCC100X86_COMPILE_RC_OUTPUT =
248define TOOL_VCC100X86_COMPILE_RC_CMDS
249 $(QUIET)$(TOOL_VCC100X86_RC) \
250 $(flags) $(addprefix /i, $(subst /,\\,$(incs))) $(addprefix /d, $(defs))\
251 /fo$(obj)\
252 $(subst /,\\,$(abspath $(source)))
253endef
254
255
256## Link library
257# @param $(target) Normalized main target name.
258# @param $(out) Library name.
259# @param $(objs) Object files to put in the library.
260# @param $(flags) Flags.
261# @param $(dirdep) Directory creation dependency.
262# @param $(deps) Other dependencies.
263# @param $(othersrc) Unhandled sources.
264# @param $(outbase) Output basename (full). Use this for list files and such.
265#
266TOOL_VCC100X86_LINK_LIBRARY_DEPEND = $(othersrc)
267TOOL_VCC100X86_LINK_LIBRARY_DEPORD =
268TOOL_VCC100X86_LINK_LIBRARY_OUTPUT = $(outbase).rsp
269TOOL_VCC100X86_LINK_LIBRARY_OUTPUT_MAYBE = $(outbase).lst $(outbase).exp $(outbase).pdb
270define TOOL_VCC100X86_LINK_LIBRARY_CMDS
271 $(QUIET)$(APPEND) -tn $(outbase).rsp \
272 $(foreach arg,\
273 $(subst /,\\,$(objs) \
274 $(filter-out %.def,$(othersrc))) \
275 $(addprefix /DEF:,$(filter %.def,$(othersrc))) \
276 ,\"$(arg)\")
277 $(QUIET)$(TOOL_VCC100X86_AR) $(flags) /OUT:$(out) @$(outbase).rsp
278endef
279
280
281## Link program
282# @param $(target) Normalized main target name.
283# @param $(out) Program name.
284# @param $(objs) Object files to link together.
285# @param $(libs) Libraries to search.
286# @param $(libpath) Library search paths.
287# @param $(flags) Flags.
288# @param $(dirdep) Directory creation dependency.
289# @param $(deps) Other dependencies.
290# @param $(othersrc) Unhandled sources.
291# @param $(custom_pre) Custom step invoked before linking.
292# @param $(custom_post) Custom step invoked after linking.
293# @param $(outbase) Output basename (full). Use this for list files and such.
294#
295TOOL_VCC100X86_LINK_PROGRAM_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)
296TOOL_VCC100X86_LINK_PROGRAM_DEPORD =
297TOOL_VCC100X86_LINK_PROGRAM_OUTPUT = $(outbase).map $(outbase).rsp
298TOOL_VCC100X86_LINK_PROGRAM_OUTPUT_MAYBE = $(outbase).lib $(outbase).exp $(outbase).ilk $(out).manifest
299TOOL_VCC100X86_LINK_PROGRAM_OUTPUT_DEBUG = $(outbase).pdb
300TOOL_VCC100X86_LINK_PROGRAM_DEBUG_INSTALL_FN = $(2).pdb=>$(basename $(3)).pdb
301define TOOL_VCC100X86_LINK_PROGRAM_CMDS
302 $(QUIET)$(APPEND) -tn $(outbase).rsp \
303 $(foreach arg,\
304 $(subst /,\\,$(objs)) \
305 $(subst /,\\,$(libs)) \
306 ,\"$(arg)\")
307 $(QUIET)$(TOOL_VCC100X86_LD) $(flags) \
308 /OUT:$(out) \
309 /MAPINFO:EXPORTS /INCREMENTAL:NO \
310 /MAP:$(outbase).map \
311 $(foreach def,$(filter %.def,$(othersrc)), /DEF:$(def)) \
312 $(subst /,\\,$(filter %.exp %.res,$(othersrc))) \
313 $(foreach p,$(libpath), /LIBPATH:$(p)) \
314 @$(outbase).rsp
315ifndef TOOL_VCC100X86_NO_AUTO_MANIFEST
316 $(QUIET)$(TEST) -f $(out).manifest -- \
317 $(TOOL_VCC100X86_MT) -manifest $(subst /,\\,$(out)).manifest -outputresource:$(subst /,\\,$(out))
318endif
319endef
320
321
322## Link DLL.
323# @param $(target) Normalized main target name.
324# @param $(out) DLL name.
325# @param $(objs) Object files to link together.
326# @param $(libs) Libraries to search.
327# @param $(libpath) Library search paths.
328# @param $(flags) Flags.
329# @param $(dirdep) Directory creation dependency.
330# @param $(deps) Other dependencies.
331# @param $(othersrc) Unhandled sources.
332# @param $(custom_pre) Custom step invoked before linking.
333# @param $(custom_post) Custom step invoked after linking.
334#
335# @param $(outbase) Output basename (full). Use this for list files and such.
336TOOL_VCC100X86_LINK_DLL_DEPEND = $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)
337TOOL_VCC100X86_LINK_DLL_DEPORD = $(call DIRDEP,$(PATH_STAGE_LIB))
338TOOL_VCC100X86_LINK_DLL_OUTPUT = $(outbase).map $(outbase).lib $(outbase).exp $(outbase).rsp
339TOOL_VCC100X86_LINK_DLL_OUTPUT_MAYBE = $(outbase).ilk $(out).manifest $(PATH_STAGE_LIB)/$(notdir $(outbase)).exp
340TOOL_VCC100X86_LINK_DLL_OUTPUT_MAYBE_PRECIOUS = $(PATH_STAGE_LIB)/$(notdir $(outbase)).lib
341TOOL_VCC100X86_LINK_DLL_OUTPUT_DEBUG = $(outbase).pdb
342TOOL_VCC100X86_LINK_DLL_DEBUG_INSTALL_FN = $(2).pdb=>$(basename $(3)).pdb
343define TOOL_VCC100X86_LINK_DLL_CMDS
344 $(QUIET)$(APPEND) -tn $(outbase).rsp \
345 $(foreach arg,\
346 $(subst /,\\,$(objs)) \
347 $(subst /,\\,$(libs)) \
348 ,\"$(arg)\")
349 $(QUIET)$(TOOL_VCC100X86_LD) $(flags) \
350 /OUT:$(out) \
351 /IMPLIB:$(outbase).lib \
352 /MAPINFO:EXPORTS /INCREMENTAL:NO \
353 /MAP:$(outbase).map \
354 /DLL \
355 $(foreach def,$(filter %.def,$(othersrc)), /DEF:$(def)) \
356 $(subst /,\\,$(filter %.exp %.res,$(othersrc))) \
357 $(foreach p,$(libpath), /LIBPATH:$(p)) \
358 @$(outbase).rsp
359ifndef TOOL_VCC100X86_NO_AUTO_MANIFEST
360 $(QUIET)$(TEST) -f $(out).manifest -- \
361 $(TOOL_VCC100X86_MT) -manifest $(subst /,\\,$(out)).manifest '-outputresource:$(subst /,\\,$(out));#2'
362endif
363 $(QUIET)$(TEST) -f $(outbase).lib -- $(KLIBTWEAKER_EXT) --clear-timestamps $(outbase).lib
364 $(QUIET)$(CP) --changed --ignore-non-existing $(outbase).exp $(outbase).lib $(PATH_STAGE_LIB)/
365$(eval _DIRS += $(PATH_STAGE_LIB))
366endef
367
368
369## Link system module (windows aka driver, linux aka kernel module)
370# @param $(target) Normalized main target name.
371# @param $(out) System module name.
372# @param $(objs) Object files to link together.
373# @param $(libs) Libraries to search.
374# @param $(libpath) Library search paths.
375# @param $(flags) Flags.
376# @param $(dirdep) Directory creation dependency.
377# @param $(deps) Other dependencies.
378# @param $(othersrc) Unhandled sources.
379# @param $(custom_pre) Custom step invoked before linking.
380# @param $(custom_post) Custom step invoked after linking.
381#
382# @param $(outbase) Output basename (full). Use this for list files and such.
383TOOL_VCC100X86_LINK_SYSMOD_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)
384TOOL_VCC100X86_LINK_SYSMOD_DEPORD =
385TOOL_VCC100X86_LINK_SYSMOD_OUTPUT = $(outbase).map $(outbase).rsp
386TOOL_VCC100X86_LINK_SYSMOD_OUTPUT_MAYBE = $(outbase).lib $(outbase).exp $(outbase).ilk $(out).manifest
387TOOL_VCC100X86_LINK_SYSMOD_OUTPUT_DEBUG = $(outbase).pdb
388TOOL_VCC100X86_LINK_SYSMOD_DEBUG_INSTALL_FN = $(2).pdb=>$(basename $(3)).pdb
389define TOOL_VCC100X86_LINK_SYSMOD_CMDS
390 $(QUIET)$(APPEND) -tn $(outbase).rsp \
391 $(foreach arg,\
392 $(subst /,\\,$(objs)) \
393 $(subst /,\\,$(libs)) \
394 ,\"$(arg)\")
395 $(QUIET)$(TOOL_VCC100X86_LD) $(flags) \
396 /OUT:$(out) \
397 /MAPINFO:EXPORTS /INCREMENTAL:NO \
398 /MAP:$(outbase).map \
399 $(foreach def,$(filter %.def,$(othersrc)), /DEF:$(def)) \
400 $(subst /,\\,$(filter %.exp %.res,$(othersrc))) \
401 $(foreach p,$(libpath), /LIBPATH:$(p)) \
402 @$(outbase).rsp
403ifndef TOOL_VCC100X86_NO_AUTO_MANIFEST
404 $(QUIET)$(TEST) -f $(out).manifest -- \
405 $(TOOL_VCC100X86_MT) -manifest $(subst /,\\,$(out)).manifest '-outputresource:$(subst /,\\,$(out));#2'
406endif
407endef
408
Note: See TracBrowser for help on using the repository browser.