source: trunk/kBuild/tools/VCC100.kmk@ 2611

Last change on this file since 2611 was 2611, checked in by bird, 13 years ago

VCC100*: Fixed kObjCache support.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 17.0 KB
Line 
1# $Id: VCC100.kmk 2611 2012-07-27 08:14:26Z bird $
2## @file
3# kBuild Tool Config - Visual C++ 10.0 (aka Visual 2010 and MSC v16), targeting $(KBUILD_TARGET).
4#
5
6#
7# Copyright (c) 2004-2010 knut st. osmundsen <bird-kBuild-spamx@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_VCC100 := Visual C++ 10.0 (aka Visual 2010 and MSC v16), targeting $(KBUILD_TARGET).
35
36# Tool Specific Properties
37ifndef PATH_TOOL_VCC100
38 PATH_TOOL_VCC100 := $(wildcard $(PATH_DEVTOOLS_TRG)/vcc/v10*)
39 ifeq ($(PATH_TOOL_VCC100),)
40 PATH_TOOL_VCC100 := $(wildcard $(PATH_DEVTOOLS)/win.x86/vcc/v10*)
41 endif
42 ifeq ($(PATH_TOOL_VCC100),)
43 PATH_TOOL_VCC100 := $(wildcard $(PATH_DEVTOOLS)/x86.win32/vcc/v10*)
44 endif
45 ifeq ($(PATH_TOOL_VCC100),)
46 PATH_TOOL_VCC100 := $(wildcard $(PATH_DEVTOOLS)/win.amd64/vcc/v10*)
47 endif
48 ifeq ($(PATH_TOOL_VCC100),)
49 PATH_TOOL_VCC100 := $(lastword $(sort $(PATH_TOOL_VCC100)))
50 endif
51 # if not found, we'll enter 'pathless' mode.
52else
53 # Resolve any fancy stuff once and for all.
54 PATH_TOOL_VCC100 := $(PATH_TOOL_VCC100)
55endif
56ifneq ($(PATH_TOOL_VCC100),)
57 ifeq ($(KBUILD_HOST).$(KBUILD_HOST_ARCH),win.amd64)
58 PATH_TOOL_VCC100_BIN.amd64 ?= $(PATH_TOOL_VCC100)/bin/amd64
59 else
60 PATH_TOOL_VCC100_BIN.amd64 ?= $(PATH_TOOL_VCC100)/bin/x86_amd64
61 endif
62 PATH_TOOL_VCC100_BIN.x86 ?= $(PATH_TOOL_VCC100)/bin
63 PATH_TOOL_VCC100_BIN ?= $(PATH_TOOL_VCC100_BIN.$(KBUILD_TARGET_ARCH))
64 PATH_TOOL_VCC100_LIB.amd64 ?= $(PATH_TOOL_VCC100)/lib/amd64
65 PATH_TOOL_VCC100_LIB.x86 ?= $(PATH_TOOL_VCC100)/lib
66 PATH_TOOL_VCC100_LIB ?= $(PATH_TOOL_VCC100_LIB.$(KBUILD_TARGET_ARCH))
67 PATH_TOOL_VCC100_INC ?= $(PATH_TOOL_VCC100)/include
68 PATH_TOOL_VCC100_ATLMFC ?= $(PATH_TOOL_VCC100X86)/atlmfc
69 PATH_TOOL_VCC100_ATLMFC_INC ?= $(PATH_TOOL_VCC100_ATLMFC)/include
70 PATH_TOOL_VCC100_ATLMFC_LIB.amd64 ?= $(PATH_TOOL_VCC100_ATLMFC)/lib
71 PATH_TOOL_VCC100_ATLMFC_LIB.x86 ?= $(PATH_TOOL_VCC100_ATLMFC)/lib/amd64
72 PATH_TOOL_VCC100_ATLMFC_LIB ?= $(PATH_TOOL_VCC100_ATLMFC_LIB.$(KBUILD_TARGET_ARCH))
73 TOOL_VCC100_CC ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC100_BIN)/cl.exe
74 TOOL_VCC100_CXX ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC100_BIN)/cl.exe
75 TOOL_VCC100_AS ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC100_BIN)/ml64.exe
76 TOOL_VCC100_AR ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC100_BIN)/lib.exe
77 TOOL_VCC100_LD ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC100_BIN)/link.exe
78else
79 # Pathless, relies on the environment.
80 TOOL_VCC100_CC ?= $(EXEC_X86_WIN32) cl.exe
81 TOOL_VCC100_CXX ?= $(EXEC_X86_WIN32) cl.exe
82 TOOL_VCC100_AS ?= $(EXEC_X86_WIN32) ml64.exe
83 TOOL_VCC100_AR ?= $(EXEC_X86_WIN32) lib.exe
84 TOOL_VCC100_LD ?= $(EXEC_X86_WIN32) link.exe
85endif
86TOOL_VCC100_RC ?= $(EXEC_X86_WIN32) $(call TOOL_VCC100_FN_FIND_SDK_TOOL,rc.exe,[Rr][Cc].[Ee][Xx][Ee],TOOL_VCC100_RC_CACHED)
87TOOL_VCC100_MT ?= $(EXEC_X86_WIN32) $(call TOOL_VCC100_FN_FIND_SDK_TOOL,mt.exe,[Mm][Tt].[Ee][Xx][Ee],TOOL_VCC100_MT_CACHED)
88
89# The following in duplicated in VCC100.kmk and VCC100X86.kmk.
90TOOL_VCC100_FN_FIND_SDK_TOOL_SUB = $(eval $3 := $(firstword \
91 $(if-expr defined(PATH_SDK_WINPSDK71_BIN), $(wildcard $(PATH_SDK_WINPSDK71_BIN)/$2)) \
92 $(if-expr defined(PATH_SDK_WINPSDK_BIN) , $(wildcard $(PATH_SDK_WINPSDK_BIN)/$2)) \
93 $(rsort $(wildcard $(KBUILD_DEVTOOLS_HST)/sdk/*/[Bb][Ii][Nn]/$2)) \
94 $(rsort $(wildcard $(KBUILD_DEVTOOLS_HST_ALT)/sdk/*/[Bb][Ii][Nn]/$2)) \
95 $1))
96TOOL_VCC100_FN_FIND_SDK_TOOL = $(if-expr !defined($3),$(TOOL_VCC100_FN_FIND_SDK_TOOL_SUB),)$($3)
97
98## Disabled fast DEP_IDB based dependencies.
99#VCC100_OLD_DEPS = 1
100
101## Constructs the correct .pdb name (the name is lowercased).
102# @param $(1) Base name, no extention.
103# @param $(2) The extension.
104TOOL_VCC100_PDB = $(dir $(1))$(tolower $(notdir $(1))).$(2)
105
106TOOL_VCC100_COBJSUFF ?= .obj
107TOOL_VCC100_CFLAGS ?= -TC -nologo
108TOOL_VCC100_CFLAGS.debug ?= -Od -Zi
109TOOL_VCC100_CFLAGS.release ?= -O2
110TOOL_VCC100_CFLAGS.profile ?= -O2
111TOOL_VCC100_CINCS ?= $(PATH_TOOL_VCC100_INC)
112TOOL_VCC100_CDEFS ?=
113
114TOOL_VCC100_CXXOBJSUFF ?= .obj
115TOOL_VCC100_CXXFLAGS ?= -TP -nologo
116TOOL_VCC100_CXXFLAGS.debug ?= -Od -Zi
117TOOL_VCC100_CXXFLAGS.release ?= -O2
118TOOL_VCC100_CXXFLAGS.profile ?= -O2
119TOOL_VCC100_CXXINCS ?= $(PATH_TOOL_VCC100_INC) $(PATH_TOOL_VCC100_ATLMFC_INC)
120TOOL_VCC100_CXXDEFS ?=
121
122TOOL_VCC100_ASOBJSUFF ?= .obj
123
124TOOL_VCC100_RCOBJSUFF ?= .res
125TOOL_VCC100_RCINCS ?= $(PATH_TOOL_VCC100_INC) $(PATH_TOOL_VCC100_ATLMFC_INC)
126
127TOOL_VCC100_ARFLAGS.amd64 ?= -machine:amd64
128TOOL_VCC100_ARFLAGS.x86 ?= -machine:x86
129TOOL_VCC100_ARFLAGS ?= -nologo
130TOOL_VCC100_ARLIBSUFF ?= .lib
131
132TOOL_VCC100_LDFLAGS.amd64 ?= -machine:amd64
133TOOL_VCC100_LDFLAGS.x86 ?= -machine:x86
134TOOL_VCC100_LDFLAGS ?= -nologo
135TOOL_VCC100_LDFLAGS.debug ?= -debug
136TOOL_VCC100_LDFLAGS.release ?=
137TOOL_VCC100_LIBPATH.amd64 ?= $(PATH_TOOL_VCC100_LIB.amd64) $(PATH_TOOL_VCC100_ATLMFC_LIB.amd64)
138TOOL_VCC100_LIBPATH.x86 ?= $(PATH_TOOL_VCC100_LIB.x86) $(PATH_TOOL_VCC100_ATLMFC_LIB.x86)
139
140
141
142## Compile C source.
143# @param $(target) Normalized main target name.
144# @param $(source) Source filename (relative).
145# @param $(obj) Object file name. This shall be (re)created by the compilation.
146# @param $(dep) Dependcy file. This shall be (re)created by the compilation.
147# @param $(flags) Flags.
148# @param $(defs) Definitions. No -D or something.
149# @param $(incs) Includes. No -I or something.
150# @param $(dirdep) Directory creation dependency.
151# @param $(deps) Other dependencies.
152#
153# @param $(outbase) Output basename (full). Use this for list files and such.
154# @param $(objsuff) Object suffix.
155TOOL_VCC100_COMPILE_C_DEPEND =
156TOOL_VCC100_COMPILE_C_DEPORD =
157TOOL_VCC100_COMPILE_C_OUTPUT_MAYBE = $(call TOOL_VCC100_PDB, $(outbase)-obj,pdb)
158ifdef KBUILD_USE_KOBJCACHE
159TOOL_VCC100_COMPILE_C_USES_KOBJCACHE = 1
160TOOL_VCC100_COMPILE_C_OUTPUT = $(call TOOL_VCC100_PDB, $(outbase)-obj,idb) $(outbase).i
161define TOOL_VCC100_COMPILE_C_CMDS
162 $(QUIET)$(KOBJCACHE) -f $(outbase).koc -d $(PATH_OBJCACHE) -t $(bld_trg).$(bld_trg_arch) -r\
163 --kObjCache-cpp $(outbase).i\
164 $(TOOL_VCC100_CC) -E\
165 $(flags)\
166 $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
167 $(subst /,\\,$(abspath $(source))) \
168 --kObjCache-cc $(obj)\
169 $(TOOL_VCC100_C) -c\
170 $(flags)\
171 -Fd$(outbase)-obj.pdb \
172 -FD\
173 -Fo$(obj)\
174 $(outbase).i
175 $(QUIET)$(DEP_IDB) -f -s -q -o $(dep) -t $(obj) $(call TOOL_VCC100_PDB,$(outbase)-obj,idb)
176endef
177else # !KBUILD_USE_KOBJCACHE
178TOOL_VCC100_COMPILE_C_OUTPUT = $(call TOOL_VCC100_PDB, $(outbase)-obj,idb)
179define TOOL_VCC100_COMPILE_C_CMDS
180 $(QUIET)$(TOOL_VCC100_CC) -c\
181 $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
182 -Fd$(outbase)-obj.pdb \
183 -FD\
184 -Fo$(obj)\
185 $(subst /,\\,$(abspath $(source)))
186 $(QUIET)$(DEP_IDB) -f -s -q -o $(dep) -t $(obj) $(call TOOL_VCC100_PDB,$(outbase)-obj,idb)
187endef
188endif # !KBUILD_USE_KOBJCACHE
189
190
191## Compile C++ source.
192# @param $(target) Normalized main target name.
193# @param $(source) Source filename (relative).
194# @param $(obj) Object file name. This shall be (re)created by the compilation.
195# @param $(dep) Dependcy file. This shall be (re)created by the compilation.
196# @param $(flags) Flags.
197# @param $(defs) Definitions. No -D or something.
198# @param $(incs) Includes. No -I or something.
199# @param $(dirdep) Directory creation dependency.
200# @param $(deps) Other dependencies.
201#
202# @param $(outbase) Output basename (full). Use this for list files and such.
203# @param $(objsuff) Object suffix.
204TOOL_VCC100_COMPILE_CXX_DEPEND =
205TOOL_VCC100_COMPILE_CXX_DEPORD =
206TOOL_VCC100_COMPILE_CXX_OUTPUT_MAYBE = $(call TOOL_VCC100_PDB, $(outbase)-obj,pdb)
207ifdef KBUILD_USE_KOBJCACHE
208TOOL_VCC100_COMPILE_CXX_USES_KOBJCACHE = 1
209TOOL_VCC100_COMPILE_CXX_OUTPUT = $(call TOOL_VCC100_PDB, $(outbase)-obj,idb) $(outbase).ii
210define TOOL_VCC100_COMPILE_CXX_CMDS
211 $(QUIET)$(KOBJCACHE) -f $(outbase).koc -d $(PATH_OBJCACHE) -t $(bld_trg).$(bld_trg_arch) -r\
212 --kObjCache-cpp $(outbase).ii\
213 $(TOOL_VCC100_CXX) -E\
214 $(flags)\
215 $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
216 $(subst /,\\,$(abspath $(source))) \
217 --kObjCache-cc $(obj)\
218 $(TOOL_VCC100_CXX) -c\
219 $(flags)\
220 -Fd$(outbase)-obj.pdb \
221 -FD\
222 -Fo$(obj)\
223 $(outbase).ii
224 $(QUIET)$(DEP_IDB) -f -s -q -o $(dep) -t $(obj) $(call TOOL_VCC100_PDB,$(outbase)-obj,idb)
225endef
226else # !KBUILD_USE_KOBJCACHE
227TOOL_VCC100_COMPILE_CXX_OUTPUT = $(call TOOL_VCC100_PDB, $(outbase)-obj,idb)
228define TOOL_VCC100_COMPILE_CXX_CMDS
229 $(QUIET)$(TOOL_VCC100_CXX) -c\
230 $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
231 -Fd$(outbase)-obj.pdb \
232 -FD\
233 -Fo$(obj)\
234 $(subst /,\\,$(abspath $(source)))
235 $(QUIET)$(DEP_IDB) -f -s -q -o $(dep) -t $(obj) $(call TOOL_VCC100_PDB,$(outbase)-obj,idb)
236endef
237endif # !KBUILD_USE_KOBJCACHE
238
239## @todo configure the assembler template.
240
241## Compile resource source.
242# @param $(target) Normalized main target name.
243# @param $(source) Source filename (relative).
244# @param $(obj) Object file name. This shall be (re)created by the compilation.
245# @param $(dep) Dependcy file. This shall be (re)created by the compilation.
246# @param $(flags) Flags.
247# @param $(defs) Definitions. No -D or something.
248# @param $(incs) Includes. No -I or something.
249# @param $(dirdep) Directory creation dependency.
250# @param $(deps) Other dependencies.
251#
252# @param $(outbase) Output basename (full). Use this for list files and such.
253# @param $(objsuff) Object suffix.
254TOOL_VCC100_COMPILE_RC_OUTPUT =
255TOOL_VCC100_COMPILE_RC_DEPEND =
256TOOL_VCC100_COMPILE_RC_DEPORD =
257define TOOL_VCC100_COMPILE_RC_CMDS
258 $(QUIET)$(TOOL_VCC100_RC) \
259 $(flags) $(addprefix /i, $(subst /,\\,$(incs))) $(addprefix /d, $(defs))\
260 /fo$(obj)\
261 $(subst /,\\,$(abspath $(source)))
262endef
263
264
265## Link library
266# @param $(target) Normalized main target name.
267# @param $(out) Library name.
268# @param $(objs) Object files to put in the library.
269# @param $(flags) Flags.
270# @param $(dirdep) Directory creation dependency.
271# @param $(deps) Other dependencies.
272# @param $(othersrc) Unhandled sources.
273# @param $(outbase) Output basename (full). Use this for list files and such.
274#
275TOOL_VCC100_LINK_LIBRARY_DEPEND = $(othersrc)
276TOOL_VCC100_LINK_LIBRARY_DEPORD =
277TOOL_VCC100_LINK_LIBRARY_OUTPUT = $(outbase).rsp
278TOOL_VCC100_LINK_LIBRARY_OUTPUT_MAYBE = $(outbase).lst $(outbase).exp $(outbase).pdb
279define TOOL_VCC100_LINK_LIBRARY_CMDS
280 $(QUIET)$(APPEND) -tn $(outbase).rsp \
281 $(foreach arg,\
282 $(subst /,\\,$(objs) \
283 $(filter-out %.def,$(othersrc))) \
284 $(addprefix /DEF:,$(filter %.def,$(othersrc))) \
285 ,\"$(arg)\")
286 $(QUIET)$(TOOL_VCC100_AR) $(flags) /OUT:$(out) @$(outbase).rsp
287endef
288
289
290
291
292## Link program
293# @param $(target) Normalized main target name.
294# @param $(out) Program name.
295# @param $(objs) Object files to link together.
296# @param $(libs) Libraries to search.
297# @param $(libpath) Library search paths.
298# @param $(flags) Flags.
299# @param $(dirdep) Directory creation dependency.
300# @param $(deps) Other dependencies.
301# @param $(othersrc) Unhandled sources.
302# @param $(custom_pre) Custom step invoked before linking.
303# @param $(custom_post) Custom step invoked after linking.
304# @param $(outbase) Output basename (full). Use this for list files and such.
305#
306TOOL_VCC100_LINK_PROGRAM_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)
307TOOL_VCC100_LINK_PROGRAM_DEPORD =
308TOOL_VCC100_LINK_PROGRAM_OUTPUT = $(outbase).map $(outbase).rsp
309TOOL_VCC100_LINK_PROGRAM_OUTPUT_MAYBE = $(outbase).map $(outbase).lib $(outbase).exp $(outbase).ilk $(out).manifest
310TOOL_VCC100_LINK_PROGRAM_OUTPUT_DEBUG = $(outbase).pdb
311TOOL_VCC100_LINK_PROGRAM_DEBUG_INSTALL_FN = $(2).pdb=>$(basename $(3)).pdb
312define TOOL_VCC100_LINK_PROGRAM_CMDS
313 $(QUIET)$(APPEND) -tn $(outbase).rsp \
314 $(foreach arg,\
315 $(subst /,\\,$(objs)) \
316 $(subst /,\\,$(libs)) \
317 ,\"$(arg)\")
318 $(QUIET)$(TOOL_VCC100_LD) $(flags) \
319 /OUT:$(out) \
320 /MAPINFO:EXPORTS /INCREMENTAL:NO \
321 /MAP:$(outbase).map \
322 $(foreach def,$(filter %.def,$(othersrc)), /DEF:$(def)) \
323 $(subst /,\\,$(filter %.exp %.res,$(othersrc))) \
324 $(foreach p,$(libpath), /LIBPATH:$(p)) \
325 @$(outbase).rsp
326 $(QUIET)$(TEST) -f $(out).manifest -- \
327 $(TOOL_VCC100_MT) -manifest $(subst /,\\,$(out)).manifest -outputresource:$(subst /,\\,$(out))
328endef
329
330
331## Link DLL.
332# @param $(target) Normalized main target name.
333# @param $(out) DLL name.
334# @param $(objs) Object files to link together.
335# @param $(libs) Libraries to search.
336# @param $(libpath) Library search paths.
337# @param $(flags) Flags.
338# @param $(dirdep) Directory creation dependency.
339# @param $(deps) Other dependencies.
340# @param $(othersrc) Unhandled sources.
341# @param $(custom_pre) Custom step invoked before linking.
342# @param $(custom_post) Custom step invoked after linking.
343#
344# @param $(outbase) Output basename (full). Use this for list files and such.
345TOOL_VCC100_LINK_DLL_DEPEND = $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)
346TOOL_VCC100_LINK_DLL_DEPORD = $(call DIRDEP,$(PATH_STAGE_LIB))
347TOOL_VCC100_LINK_DLL_OUTPUT = $(outbase).map $(outbase).lib $(outbase).exp $(outbase).rsp
348TOOL_VCC100_LINK_DLL_OUTPUT_MAYBE = $(outbase).ilk $(out).manifest $(PATH_STAGE_LIB)/$(notdir $(outbase)).lib $(PATH_STAGE_LIB)/$(notdir $(outbase)).exp
349TOOL_VCC100_LINK_DLL_OUTPUT_DEBUG = $(outbase).pdb
350TOOL_VCC100_LINK_DLL_DEBUG_INSTALL_FN = $(2).pdb=>$(basename $(3)).pdb
351define TOOL_VCC100_LINK_DLL_CMDS
352 $(QUIET)$(APPEND) -tn $(outbase).rsp \
353 $(foreach arg,\
354 $(subst /,\\,$(objs)) \
355 $(subst /,\\,$(libs)) \
356 ,\"$(arg)\")
357 $(QUIET)$(TOOL_VCC100_LD) $(flags) \
358 /OUT:$(out) \
359 /IMPLIB:$(outbase).lib \
360 /MAPINFO:EXPORTS /INCREMENTAL:NO \
361 /MAP:$(outbase).map \
362 /DLL \
363 $(foreach def,$(filter %.def,$(othersrc)), /DEF:$(def)) \
364 $(subst /,\\,$(filter %.exp %.res,$(othersrc))) \
365 $(foreach p,$(libpath), /LIBPATH:$(p)) \
366 @$(outbase).rsp
367 $(QUIET)$(TEST) -f $(out).manifest -- \
368 $(TOOL_VCC100_MT) -manifest $(subst /,\\,$(out)).manifest '-outputresource:$(subst /,\\,$(out));#2'
369 $(QUIET)$(CP) --changed --ignore-non-existing $(outbase).exp $(outbase).lib $(PATH_STAGE_LIB)/
370$(eval _DIRS += $(PATH_STAGE_LIB))
371endef
372
373
374## Link system module (windows aka driver, linux aka kernel module)
375# @param $(target) Normalized main target name.
376# @param $(out) System module name.
377# @param $(objs) Object files to link together.
378# @param $(libs) Libraries to search.
379# @param $(libpath) Library search paths.
380# @param $(flags) Flags.
381# @param $(dirdep) Directory creation dependency.
382# @param $(deps) Other dependencies.
383# @param $(othersrc) Unhandled sources.
384# @param $(custom_pre) Custom step invoked before linking.
385# @param $(custom_post) Custom step invoked after linking.
386#
387# @param $(outbase) Output basename (full). Use this for list files and such.
388TOOL_VCC100_LINK_SYSMOD_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)
389TOOL_VCC100_LINK_SYSMOD_DEPORD =
390TOOL_VCC100_LINK_SYSMOD_OUTPUT = $(outbase).map $(outbase).rsp
391TOOL_VCC100_LINK_SYSMOD_OUTPUT_MAYBE = $(outbase).lib $(outbase).exp $(outbase).ilk $(out).manifest
392TOOL_VCC100_LINK_SYSMOD_OUTPUT_DEBUG = $(outbase).pdb
393TOOL_VCC100_LINK_SYSMOD_DEBUG_INSTALL_FN = $(2).pdb=>$(basename $(3)).pdb
394define TOOL_VCC100_LINK_SYSMOD_CMDS
395 $(QUIET)$(APPEND) -tn $(outbase).rsp \
396 $(foreach arg,\
397 $(subst /,\\,$(objs)) \
398 $(subst /,\\,$(libs)) \
399 ,\"$(arg)\")
400 $(QUIET)$(TOOL_VCC100_LD) $(flags) \
401 /OUT:$(out) \
402 /MAPINFO:EXPORTS /INCREMENTAL:NO \
403 /MAP:$(outbase).map \
404 $(foreach def,$(filter %.def,$(othersrc)), /DEF:$(def)) \
405 $(subst /,\\,$(filter %.exp %.res,$(othersrc))) \
406 $(foreach p,$(libpath), /LIBPATH:$(p)) \
407 @$(outbase).rsp
408 $(QUIET)$(TEST) -f $(out).manifest -- \
409 $(TOOL_VCC100_MT) -manifest $(subst /,\\,$(out)).manifest '-outputresource:$(subst /,\\,$(out));#2'
410endef
411
Note: See TracBrowser for help on using the repository browser.