Ignore:
Timestamp:
May 27, 2006, 2:45:08 PM (19 years ago)
Author:
bird
Message:

More or less ok now..

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/tools/VCC80X86.kmk

    r434 r437  
    3434TOOL_VCC80X86_COBJSUFF           := .obj
    3535TOOL_VCC80X86_CFLAGS             := -TC -c -nologo
    36 TOOL_VCC80X86_CFLAGS.debug       := -Od -Zi
     36TOOL_VCC80X86_CFLAGS.debug       := -Zi
    3737TOOL_VCC80X86_CFLAGS.release     := -O2
    3838TOOL_VCC80X86_CFLAGS.profile     := -O2
     
    4343TOOL_VCC80X86_CXXOBJSUFF         := .obj
    4444TOOL_VCC80X86_CXXFLAGS           := -TP -c -nologo
    45 TOOL_VCC80X86_CXXFLAGS.debug     := -Od -Zi
     45TOOL_VCC80X86_CXXFLAGS.debug     := -Zi
    4646TOOL_VCC80X86_CXXFLAGS.release   := -O2
    4747TOOL_VCC80X86_CXXFLAGS.profile   := -O2
     
    5757
    5858TOOL_VCC80X86_LD                 := $(EXEC_X86_WIN32) $(PATH_TOOL_VCC80X86_BIN)/link.exe
    59 TOOL_VCC80X86_LDFLAGS            := -nologo
     59TOOL_VCC80X86_LDFLAGS            := -nologo -machine:x86
    6060TOOL_VCC80X86_LDFLAGS.debug      := -debug
    6161TOOL_VCC80X86_LDFLAGS.release    :=
     62
     63TOOL_VCC80X86_MT                 := $(EXEC_X86_WIN32) $(PATH_TOOL_VCC80X86_BIN)/mt.exe
    6264
    6365## Constructs the correct .pdb name (the name is lowercased).
     
    6971TOOL_VCC80X86_PDB                = $(1).$(2)
    7072endif
     73
    7174
    7275#ifeq ($(BUILD_PLATFORM),win32)
     
    191194# @param    $(outbase)      Output basename (full). Use this for list files and such.
    192195#
    193 TOOL_VCC80X86_LINK_PROGRAM_OUTPUT = $(outbase).map $(outbase).lib $(outbase).exp $(call TOOL_VCC80X86_PDB, $(outbase),pdb) $(outbase).ilk
     196TOOL_VCC80X86_LINK_PROGRAM_OUTPUT = $(outbase).map $(outbase).lib $(outbase).exp $(call TOOL_VCC80X86_PDB, $(outbase),pdb) $(outbase).ilk $(out).manifest
    194197TOOL_VCC80X86_LINK_PROGRAM_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)
    195198TOOL_VCC80X86_LINK_PROGRAM_DEPORD =
     
    197200        $(TOOL_VCC80X86_LD) $(flags) \
    198201                /OUT:$(out) \
    199                 /MAPINFO:EXPORTS /INCREMENTAL:NO /MAPINFO:LINES \
     202                /MAPINFO:EXPORTS /INCREMENTAL:NO \
    200203                /MAP:$(outbase).map \
    201204                $(foreach def,$(filter %.def,$(othersrc)), /DEF:$(def)) \
     
    204207                $(subst /,\\,$(objs)) \
    205208                $(subst /,\\,$(libs))
     209        if test -f $(out).manifest; then \
     210                $(TOOL_VCC80X86_MT) -manifest $(subst /,\\,$(out)).manifest -outputresource:$(subst /,\\,$(out)); \
     211        fi
    206212endef
    207213
     
    221227#
    222228# @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
     229TOOL_VCC80X86_LINK_DLL_OUTPUT = $(outbase).map $(outbase).lib $(outbase).exp $(call TOOL_VCC80X86_PDB, $(outbase),pdb) $(outbase).ilk $(out).manifest
    224230TOOL_VCC80X86_LINK_DLL_DEPEND = $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)
    225231TOOL_VCC80X86_LINK_DLL_DEPORD = $(call DIRDEP,$(PATH_LIB))
     
    228234                /OUT:$(out) \
    229235                /IMPLIB:$(outbase).lib \
    230                 /MAPINFO:EXPORTS /INCREMENTAL:NO /MAPINFO:LINES \
     236                /MAPINFO:EXPORTS /INCREMENTAL:NO \
    231237                /MAP:$(outbase).map \
    232238                /DLL \
     
    236242                $(subst /,\\,$(objs)) \
    237243                $(subst /,\\,$(libs))
     244        if test -f $(out).manifest; then \
     245                $(TOOL_VCC80X86_MT) -manifest $(subst /,\\,$(out)).manifest "-outputresource:$(subst /,\\,$(out));#2"; \
     246        fi
    238247ifeq ($(filter %.exp .def,$(othersrc)),)
    239248        if test -f $(outbase).exp; then $(CP_EXT) $(outbase).exp $(PATH_LIB)/; fi
     
    258267#
    259268# @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
     269TOOL_VCC80X86_LINK_SYSMOD_OUTPUT = $(outbase).map $(outbase).lib $(outbase).exp $(call TOOL_VCC80X86_PDB, $(outbase),pdb) $(outbase).ilk $(out).manifest
    261270TOOL_VCC80X86_LINK_SYSMOD_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)
    262271TOOL_VCC80X86_LINK_SYSMOD_DEPORD =
     
    264273        $(TOOL_VCC80X86_LD) $(flags) \
    265274                /OUT:$(out) \
    266                 /MAPINFO:EXPORTS /INCREMENTAL:NO /MAPINFO:LINES \
     275                /MAPINFO:EXPORTS /INCREMENTAL:NO \
    267276                /MAP:$(outbase).map \
    268277                $(foreach def,$(filter %.def,$(othersrc)), /DEF:$(def)) \
     
    271280                $(subst /,\\,$(objs)) \
    272281                $(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
     285endef
     286
Note: See TracChangeset for help on using the changeset viewer.