Changeset 1031 for trunk/kBuild/tools/VCC80.kmk
- Timestamp:
- Jun 4, 2007, 3:56:58 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/tools/VCC80.kmk
r857 r1031 142 142 # @param $(outbase) Output basename (full). Use this for list files and such. 143 143 # @param $(objsuff) Object suffix. 144 TOOL_VCC80_COMPILE_C_OUTPUT = $(call TOOL_VCC80_PDB, $(outbase)-obj,pdb) $(call TOOL_VCC80_PDB, $(outbase)-obj,idb)145 144 TOOL_VCC80_COMPILE_C_DEPEND = 146 145 TOOL_VCC80_COMPILE_C_DEPORD = 147 ifndef VCC80_OLD_DEPS 146 TOOL_VCC80_COMPILE_C_OUTPUT = $(call TOOL_VCC80_PDB, $(outbase)-obj,pdb) $(call TOOL_VCC80_PDB, $(outbase)-obj,idb) 148 147 define TOOL_VCC80_COMPILE_C_CMDS 149 148 $(QUIET)$(TOOL_VCC80_CC) -c\ … … 155 154 $(QUIET)$(DEP_IDB) -f -s -o $(dep) -t $(obj) $(call TOOL_VCC80_PDB,$(outbase)-obj,idb) 156 155 endef 157 else158 define TOOL_VCC80_COMPILE_C_CMDS159 $(QUIET)$(TOOL_VCC80_CC) -c\160 $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\161 -Fd$(outbase)-obj.pdb \162 -Fo$(obj)\163 $(subst /,\\,$(abspath $(source)))164 $(QUIET)$(TOOL_VCC80_CC) -E\165 $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\166 $(subst /,\\,$(abspath $(source)))\167 | $(DEP_PRE) -f -s -o $(dep) -t $(obj) -168 endef169 endif170 156 171 157 … … 183 169 # @param $(outbase) Output basename (full). Use this for list files and such. 184 170 # @param $(objsuff) Object suffix. 185 TOOL_VCC80_COMPILE_CXX_OUTPUT = $(call TOOL_VCC80_PDB, $(outbase)-obj,pdb) $(call TOOL_VCC80_PDB, $(outbase)-obj,idb)186 171 TOOL_VCC80_COMPILE_CXX_DEPEND = 187 172 TOOL_VCC80_COMPILE_CXX_DEPORD = 188 ifndef VCC80_OLD_DEPS 173 TOOL_VCC80_COMPILE_CXX_OUTPUT = $(call TOOL_VCC80_PDB, $(outbase)-obj,pdb) $(call TOOL_VCC80_PDB, $(outbase)-obj,idb) 189 174 define TOOL_VCC80_COMPILE_CXX_CMDS 190 175 $(QUIET)$(TOOL_VCC80_CXX) -c\ … … 196 181 $(QUIET)$(DEP_IDB) -f -s -o $(dep) -t $(obj) $(call TOOL_VCC80_PDB,$(outbase)-obj,idb) 197 182 endef 198 else199 define TOOL_VCC80_COMPILE_CXX_CMDS200 $(QUIET)$(TOOL_VCC80_CXX) -c\201 $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\202 -Fd$(outbase)-obj.pdb \203 -Fo$(obj)\204 $(subst /,\\,$(abspath $(source)))205 $(QUIET)$(TOOL_VCC80_CXX) -E\206 $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\207 $(subst /,\\,$(abspath $(source)))\208 | $(DEP_PRE) -f -s -o $(dep) -t $(obj) -209 endef210 endif211 183 212 184 … … 247 219 TOOL_VCC80_LINK_LIBRARY_DEPEND = $(othersrc) 248 220 TOOL_VCC80_LINK_LIBRARY_DEPORD = 249 ifeq ($(filter append-dash-n,$(KMK_FEATURES)),append-dash-n) 250 TOOL_VCC80_LINK_LIBRARY_OUTPUT = $(outbase).lst $(outbase).exp $(outbase).pdb $(outbase).rsp221 TOOL_VCC80_LINK_LIBRARY_OUTPUT = $(outbase).rsp 222 TOOL_VCC80_LINK_LIBRARY_OUTPUT_MAYBE = $(outbase).lst $(outbase).exp $(outbase).pdb 251 223 define TOOL_VCC80_LINK_LIBRARY_CMDS 252 224 $(QUIET)$(APPEND) -n $(outbase).rsp \ … … 258 230 $(QUIET)$(TOOL_VCC80_AR) $(flags) /OUT:$(out) @$(outbase).rsp 259 231 endef 260 else261 TOOL_VCC80_LINK_LIBRARY_OUTPUT = $(outbase).lst $(outbase).exp $(outbase).pdb262 define TOOL_VCC80_LINK_LIBRARY_CMDS263 $(QUIET)$(TOOL_VCC80_AR) $(flags) /OUT:$(out) $(subst /,\\,$(objs) $(filter %.a %.lib,$(othersrc))) \264 $(foreach def,$(filter %.def,$(othersrc)), /DEF:$(def))265 endef266 endif267 232 268 233 … … 283 248 # @param $(outbase) Output basename (full). Use this for list files and such. 284 249 # 285 TOOL_VCC80_LINK_PROGRAM_OUTPUT = $(outbase).map $(outbase).lib $(outbase).exp $(outbase).pdb $(outbase).ilk $(out).manifest286 250 TOOL_VCC80_LINK_PROGRAM_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc) 287 251 TOOL_VCC80_LINK_PROGRAM_DEPORD = 252 TOOL_VCC80_LINK_PROGRAM_OUTPUT = $(outbase).map 253 TOOL_VCC80_LINK_PROGRAM_OUTPUT_MAYBE = $(outbase).map $(outbase).lib $(outbase).exp $(outbase).pdb $(outbase).ilk $(out).manifest 288 254 define TOOL_VCC80_LINK_PROGRAM_CMDS 289 255 $(QUIET)$(TOOL_VCC80_LD) $(flags) \ … … 316 282 # 317 283 # @param $(outbase) Output basename (full). Use this for list files and such. 318 TOOL_VCC80_LINK_DLL_OUTPUT = $(outbase).map $(outbase).lib $(outbase).exp $(outbase).pdb $(outbase).ilk $(out).manifest319 284 TOOL_VCC80_LINK_DLL_DEPEND = $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc) 320 285 TOOL_VCC80_LINK_DLL_DEPORD = $(call DIRDEP,$(PATH_LIB)) 286 TOOL_VCC80_LINK_DLL_OUTPUT = $(outbase).map $(outbase).lib $(outbase).exp 287 TOOL_VCC80_LINK_DLL_OUTPUT_MAYBE = $(outbase).pdb $(outbase).ilk $(out).manifest 321 288 define TOOL_VCC80_LINK_DLL_CMDS 322 289 $(QUIET)$(TOOL_VCC80_LD) $(flags) \ … … 356 323 # 357 324 # @param $(outbase) Output basename (full). Use this for list files and such. 358 TOOL_VCC80_LINK_SYSMOD_OUTPUT = $(outbase).map $(outbase).lib $(outbase).exp $(outbase).pdb $(outbase).ilk $(out).manifest359 325 TOOL_VCC80_LINK_SYSMOD_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc) 360 326 TOOL_VCC80_LINK_SYSMOD_DEPORD = 327 TOOL_VCC80_LINK_SYSMOD_OUTPUT = $(outbase).map 328 TOOL_VCC80_LINK_SYSMOD_OUTPUT_MAYBE = $(outbase).lib $(outbase).exp $(outbase).pdb $(outbase).ilk $(out).manifest 361 329 define TOOL_VCC80_LINK_SYSMOD_CMDS 362 330 $(QUIET)$(TOOL_VCC80_LD) $(flags) \
Note:
See TracChangeset
for help on using the changeset viewer.