Changeset 437 for trunk/kBuild/tools
- Timestamp:
- May 27, 2006, 2:45:08 PM (19 years ago)
- Location:
- trunk/kBuild/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/tools/VCC80AMD64.kmk
r434 r437 29 29 PATH_TOOL_VCC80AMD64 ?= $(PATH_DEV)/x86.win32/vcc80 30 30 PATH_TOOL_VCC80AMD64_LIB ?= $(PATH_DEV)/x86.win32/vcc80/lib 31 ifeq ($(BUILD_PLATFORM),win64 32 PATH_TOOL_VCC80AMD64_BIN ?= $(PATH_DEV)/x86.win32/vcc80/ amd64/bin31 ifeq ($(BUILD_PLATFORM),win64) 32 PATH_TOOL_VCC80AMD64_BIN ?= $(PATH_DEV)/x86.win32/vcc80/bin/amd64 33 33 else 34 PATH_TOOL_VCC80AMD64_BIN ?= $(PATH_DEV)/x86.win32/vcc80/ x86_amd64/bin35 endif 36 37 TOOL_VCC80AMD64_CC := $(EXEC_ AMD64_WIN32) $(PATH_TOOL_VCC80AMD64_BIN)/cl.exe34 PATH_TOOL_VCC80AMD64_BIN ?= $(PATH_DEV)/x86.win32/vcc80/bin/x86_amd64 35 endif 36 37 TOOL_VCC80AMD64_CC := $(EXEC_X86_WIN32) $(PATH_TOOL_VCC80AMD64_BIN)/cl.exe 38 38 TOOL_VCC80AMD64_COBJSUFF := .obj 39 39 TOOL_VCC80AMD64_CFLAGS := -TC -c -nologo … … 44 44 TOOL_VCC80AMD64_CDEFS := 45 45 46 TOOL_VCC80AMD64_CXX := $(EXEC_ AMD64_WIN32) $(PATH_TOOL_VCC80AMD64_BIN)/cl.exe46 TOOL_VCC80AMD64_CXX := $(EXEC_X86_WIN32) $(PATH_TOOL_VCC80AMD64_BIN)/cl.exe 47 47 TOOL_VCC80AMD64_CXXOBJSUFF := .obj 48 48 TOOL_VCC80AMD64_CXXFLAGS := -TP -c -nologo … … 53 53 TOOL_VCC80AMD64_CXXDEFS := 54 54 55 TOOL_VCC80AMD64_AS := $(EXEC_ AMD64_WIN32) $(PATH_TOOL_VCC80AMD64_BIN)/ml.exe55 TOOL_VCC80AMD64_AS := $(EXEC_X86_WIN32) $(PATH_TOOL_VCC80AMD64_BIN)/ml.exe 56 56 TOOL_VCC80AMD64_ASOBJSUFF := .obj 57 57 58 TOOL_VCC80AMD64_AR := $(EXEC_ AMD64_WIN32) $(PATH_TOOL_VCC80AMD64_BIN)/lib.exe58 TOOL_VCC80AMD64_AR := $(EXEC_X86_WIN32) $(PATH_TOOL_VCC80AMD64_BIN)/lib.exe 59 59 TOOL_VCC80AMD64_ARFLAGS := -nologo 60 60 TOOL_VCC80AMD64_ARLIBSUFF := .lib 61 61 62 TOOL_VCC80AMD64_LD := $(EXEC_ AMD64_WIN32) $(PATH_TOOL_VCC80AMD64_BIN)/link.exe63 TOOL_VCC80AMD64_LDFLAGS := -nologo 62 TOOL_VCC80AMD64_LD := $(EXEC_X86_WIN32) $(PATH_TOOL_VCC80AMD64_BIN)/link.exe 63 TOOL_VCC80AMD64_LDFLAGS := -nologo -machine:amd64 64 64 TOOL_VCC80AMD64_LDFLAGS.debug := -debug 65 65 TOOL_VCC80AMD64_LDFLAGS.release := 66 67 TOOL_VCC80AMD64_MT := $(EXEC_X86_WIN32) $(PATH_TOOL_VCC80AMD64_BIN)/mt.exe 68 66 69 67 70 ## Constructs the correct .pdb name (the name is lowercased). … … 195 198 # @param $(outbase) Output basename (full). Use this for list files and such. 196 199 # 197 TOOL_VCC80AMD64_LINK_PROGRAM_OUTPUT = $(outbase).map $(outbase).lib $(outbase).exp $(call TOOL_VCC80AMD64_PDB, $(outbase),pdb) $(outbase).ilk 200 TOOL_VCC80AMD64_LINK_PROGRAM_OUTPUT = $(outbase).map $(outbase).lib $(outbase).exp $(call TOOL_VCC80AMD64_PDB, $(outbase),pdb) $(outbase).ilk $(out).manifest 198 201 TOOL_VCC80AMD64_LINK_PROGRAM_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc) 199 202 TOOL_VCC80AMD64_LINK_PROGRAM_DEPORD = … … 201 204 $(TOOL_VCC80AMD64_LD) $(flags) \ 202 205 /OUT:$(out) \ 203 /MAPINFO:EXPORTS /INCREMENTAL:NO /MAPINFO:LINES\206 /MAPINFO:EXPORTS /INCREMENTAL:NO \ 204 207 /MAP:$(outbase).map \ 205 208 $(foreach def,$(filter %.def,$(othersrc)), /DEF:$(def)) \ … … 208 211 $(subst /,\\,$(objs)) \ 209 212 $(subst /,\\,$(libs)) 213 if test -f $(out).manifest; then \ 214 $(TOOL_VCC80AMD64_MT) -manifest $(subst /,\\,$(out)).manifest -outputresource:$(subst /,\\,$(out)); \ 215 fi 210 216 endef 211 217 … … 225 231 # 226 232 # @param $(outbase) Output basename (full). Use this for list files and such. 227 TOOL_VCC80AMD64_LINK_DLL_OUTPUT = $(outbase).map $(outbase).lib $(outbase).exp $(call TOOL_VCC80AMD64_PDB, $(outbase),pdb) $(outbase).ilk 233 TOOL_VCC80AMD64_LINK_DLL_OUTPUT = $(outbase).map $(outbase).lib $(outbase).exp $(call TOOL_VCC80AMD64_PDB, $(outbase),pdb) $(outbase).ilk $(out).manifest 228 234 TOOL_VCC80AMD64_LINK_DLL_DEPEND = $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc) 229 235 TOOL_VCC80AMD64_LINK_DLL_DEPORD = $(call DIRDEP,$(PATH_LIB)) … … 232 238 /OUT:$(out) \ 233 239 /IMPLIB:$(outbase).lib \ 234 /MAPINFO:EXPORTS /INCREMENTAL:NO /MAPINFO:LINES\240 /MAPINFO:EXPORTS /INCREMENTAL:NO \ 235 241 /MAP:$(outbase).map \ 236 242 /DLL \ … … 240 246 $(subst /,\\,$(objs)) \ 241 247 $(subst /,\\,$(libs)) 248 if test -f $(out).manifest; then \ 249 $(TOOL_VCC80AMD64_MT) -manifest $(subst /,\\,$(out)).manifest "-outputresource:$(subst /,\\,$(out));#2"; \ 250 fi 242 251 ifeq ($(filter %.exp .def,$(othersrc)),) 243 252 if test -f $(outbase).exp; then $(CP_EXT) $(outbase).exp $(PATH_LIB)/; fi … … 262 271 # 263 272 # @param $(outbase) Output basename (full). Use this for list files and such. 264 TOOL_VCC80AMD64_LINK_SYSMOD_OUTPUT = $(outbase).map $(outbase).lib $(outbase).exp $(call TOOL_VCC80AMD64_PDB, $(outbase),pdb) $(outbase).ilk 273 TOOL_VCC80AMD64_LINK_SYSMOD_OUTPUT = $(outbase).map $(outbase).lib $(outbase).exp $(call TOOL_VCC80AMD64_PDB, $(outbase),pdb) $(outbase).ilk $(out).manifest 265 274 TOOL_VCC80AMD64_LINK_SYSMOD_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc) 266 275 TOOL_VCC80AMD64_LINK_SYSMOD_DEPORD = … … 268 277 $(TOOL_VCC80AMD64_LD) $(flags) \ 269 278 /OUT:$(out) \ 270 /MAPINFO:EXPORTS /INCREMENTAL:NO /MAPINFO:LINES\279 /MAPINFO:EXPORTS /INCREMENTAL:NO \ 271 280 /MAP:$(outbase).map \ 272 281 $(foreach def,$(filter %.def,$(othersrc)), /DEF:$(def)) \ … … 275 284 $(subst /,\\,$(objs)) \ 276 285 $(subst /,\\,$(libs)) 277 endef 278 286 if test -f $(out).manifest; then \ 287 $(TOOL_VCC80AMD64_MT) -manifest $(subst /,\\,$(out)).manifest "-outputresource:$(subst /,\\,$(out));#2"; \ 288 fi 289 endef 290 -
trunk/kBuild/tools/VCC80X86.kmk
r434 r437 34 34 TOOL_VCC80X86_COBJSUFF := .obj 35 35 TOOL_VCC80X86_CFLAGS := -TC -c -nologo 36 TOOL_VCC80X86_CFLAGS.debug := - Od -Zi36 TOOL_VCC80X86_CFLAGS.debug := -Zi 37 37 TOOL_VCC80X86_CFLAGS.release := -O2 38 38 TOOL_VCC80X86_CFLAGS.profile := -O2 … … 43 43 TOOL_VCC80X86_CXXOBJSUFF := .obj 44 44 TOOL_VCC80X86_CXXFLAGS := -TP -c -nologo 45 TOOL_VCC80X86_CXXFLAGS.debug := - Od -Zi45 TOOL_VCC80X86_CXXFLAGS.debug := -Zi 46 46 TOOL_VCC80X86_CXXFLAGS.release := -O2 47 47 TOOL_VCC80X86_CXXFLAGS.profile := -O2 … … 57 57 58 58 TOOL_VCC80X86_LD := $(EXEC_X86_WIN32) $(PATH_TOOL_VCC80X86_BIN)/link.exe 59 TOOL_VCC80X86_LDFLAGS := -nologo 59 TOOL_VCC80X86_LDFLAGS := -nologo -machine:x86 60 60 TOOL_VCC80X86_LDFLAGS.debug := -debug 61 61 TOOL_VCC80X86_LDFLAGS.release := 62 63 TOOL_VCC80X86_MT := $(EXEC_X86_WIN32) $(PATH_TOOL_VCC80X86_BIN)/mt.exe 62 64 63 65 ## Constructs the correct .pdb name (the name is lowercased). … … 69 71 TOOL_VCC80X86_PDB = $(1).$(2) 70 72 endif 73 71 74 72 75 #ifeq ($(BUILD_PLATFORM),win32) … … 191 194 # @param $(outbase) Output basename (full). Use this for list files and such. 192 195 # 193 TOOL_VCC80X86_LINK_PROGRAM_OUTPUT = $(outbase).map $(outbase).lib $(outbase).exp $(call TOOL_VCC80X86_PDB, $(outbase),pdb) $(outbase).ilk 196 TOOL_VCC80X86_LINK_PROGRAM_OUTPUT = $(outbase).map $(outbase).lib $(outbase).exp $(call TOOL_VCC80X86_PDB, $(outbase),pdb) $(outbase).ilk $(out).manifest 194 197 TOOL_VCC80X86_LINK_PROGRAM_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc) 195 198 TOOL_VCC80X86_LINK_PROGRAM_DEPORD = … … 197 200 $(TOOL_VCC80X86_LD) $(flags) \ 198 201 /OUT:$(out) \ 199 /MAPINFO:EXPORTS /INCREMENTAL:NO /MAPINFO:LINES\202 /MAPINFO:EXPORTS /INCREMENTAL:NO \ 200 203 /MAP:$(outbase).map \ 201 204 $(foreach def,$(filter %.def,$(othersrc)), /DEF:$(def)) \ … … 204 207 $(subst /,\\,$(objs)) \ 205 208 $(subst /,\\,$(libs)) 209 if test -f $(out).manifest; then \ 210 $(TOOL_VCC80X86_MT) -manifest $(subst /,\\,$(out)).manifest -outputresource:$(subst /,\\,$(out)); \ 211 fi 206 212 endef 207 213 … … 221 227 # 222 228 # @param $(outbase) Output basename (full). Use this for list files and such. 223 TOOL_VCC80X86_LINK_DLL_OUTPUT = $(outbase).map $(outbase).lib $(outbase).exp $(call TOOL_VCC80X86_PDB, $(outbase),pdb) $(outbase).ilk 229 TOOL_VCC80X86_LINK_DLL_OUTPUT = $(outbase).map $(outbase).lib $(outbase).exp $(call TOOL_VCC80X86_PDB, $(outbase),pdb) $(outbase).ilk $(out).manifest 224 230 TOOL_VCC80X86_LINK_DLL_DEPEND = $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc) 225 231 TOOL_VCC80X86_LINK_DLL_DEPORD = $(call DIRDEP,$(PATH_LIB)) … … 228 234 /OUT:$(out) \ 229 235 /IMPLIB:$(outbase).lib \ 230 /MAPINFO:EXPORTS /INCREMENTAL:NO /MAPINFO:LINES\236 /MAPINFO:EXPORTS /INCREMENTAL:NO \ 231 237 /MAP:$(outbase).map \ 232 238 /DLL \ … … 236 242 $(subst /,\\,$(objs)) \ 237 243 $(subst /,\\,$(libs)) 244 if test -f $(out).manifest; then \ 245 $(TOOL_VCC80X86_MT) -manifest $(subst /,\\,$(out)).manifest "-outputresource:$(subst /,\\,$(out));#2"; \ 246 fi 238 247 ifeq ($(filter %.exp .def,$(othersrc)),) 239 248 if test -f $(outbase).exp; then $(CP_EXT) $(outbase).exp $(PATH_LIB)/; fi … … 258 267 # 259 268 # @param $(outbase) Output basename (full). Use this for list files and such. 260 TOOL_VCC80X86_LINK_SYSMOD_OUTPUT = $(outbase).map $(outbase).lib $(outbase).exp $(call TOOL_VCC80X86_PDB, $(outbase),pdb) $(outbase).ilk 269 TOOL_VCC80X86_LINK_SYSMOD_OUTPUT = $(outbase).map $(outbase).lib $(outbase).exp $(call TOOL_VCC80X86_PDB, $(outbase),pdb) $(outbase).ilk $(out).manifest 261 270 TOOL_VCC80X86_LINK_SYSMOD_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc) 262 271 TOOL_VCC80X86_LINK_SYSMOD_DEPORD = … … 264 273 $(TOOL_VCC80X86_LD) $(flags) \ 265 274 /OUT:$(out) \ 266 /MAPINFO:EXPORTS /INCREMENTAL:NO /MAPINFO:LINES\275 /MAPINFO:EXPORTS /INCREMENTAL:NO \ 267 276 /MAP:$(outbase).map \ 268 277 $(foreach def,$(filter %.def,$(othersrc)), /DEF:$(def)) \ … … 271 280 $(subst /,\\,$(objs)) \ 272 281 $(subst /,\\,$(libs)) 273 endef 274 282 if test -f $(out).manifest; then \ 283 $(TOOL_VCC80X86_MT) -manifest $(subst /,\\,$(out)).manifest "-outputresource:$(subst /,\\,$(out));#2"; \ 284 fi 285 endef 286
Note:
See TracChangeset
for help on using the changeset viewer.