Kaydet (Commit) a50103a7 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Bin stuff for compiler versions we don't use

üst 94fb4e55
...@@ -80,11 +80,7 @@ CFLAGSCXX +=-AI$(BIN) ...@@ -80,11 +80,7 @@ CFLAGSCXX +=-AI$(BIN)
# When compiling for CLR, disable "warning C4339: use of undefined type detected # When compiling for CLR, disable "warning C4339: use of undefined type detected
# in CLR meta-data - use of this type may lead to a runtime exception": # in CLR meta-data - use of this type may lead to a runtime exception":
.IF "$(COMEX)"=="10"
CFLAGSCXX += -clr:noAssembly -wd4339
.ELSE
CFLAGSCXX += -clr:oldSyntax -LN -wd4339 -wd4715 CFLAGSCXX += -clr:oldSyntax -LN -wd4339 -wd4715
.ENDIF
OBJFILES = \ OBJFILES = \
$(OBJ)$/climaker_app.obj \ $(OBJ)$/climaker_app.obj \
...@@ -100,15 +96,11 @@ APP1STDLIBS = \ ...@@ -100,15 +96,11 @@ APP1STDLIBS = \
$(SALLIB) \ $(SALLIB) \
mscoree.lib mscoree.lib
.IF "$(CCNUMVER)" >= "001399999999"
APP1STDLIBS += \ APP1STDLIBS += \
msvcmrt.lib msvcmrt.lib
.ENDIF
.ENDIF .ENDIF
.INCLUDE : $(PRJ)$/util$/target.pmk .INCLUDE : $(PRJ)$/util$/target.pmk
.INCLUDE : target.mk .INCLUDE : target.mk
...@@ -116,22 +108,14 @@ CLIMAKER_CONFIG = $(BIN)$/climaker.exe.config ...@@ -116,22 +108,14 @@ CLIMAKER_CONFIG = $(BIN)$/climaker.exe.config
ALLTAR: \ ALLTAR: \
$(CLIMAKER_CONFIG) $(CLIMAKER_CONFIG)
#Create the config file that is used with the policy assembly #Create the config file that is used with the policy assembly
$(CLIMAKER_CONFIG): climaker.exe.config $(CLIMAKER_CONFIG): climaker.exe.config
$(COPY) $< $@ $(COPY) $< $@
chmod +x $@ chmod +x $@
.IF "$(BUILD_FOR_CLI)" != "" .IF "$(BUILD_FOR_CLI)" != ""
$(OBJFILES): $(BIN)$/cli_basetypes.dll $(OBJFILES): $(BIN)$/cli_basetypes.dll
.ENDIF .ENDIF
...@@ -79,19 +79,13 @@ UNOTYPES = \ ...@@ -79,19 +79,13 @@ UNOTYPES = \
#loader lock was solved as of VS 2005 (CCNUMVER = 0014..) #loader lock was solved as of VS 2005 (CCNUMVER = 0014..)
# When compiling for CLR, disable "warning C4339: use of undefined type detected # When compiling for CLR, disable "warning C4339: use of undefined type detected
# in CLR meta-data - use of this type may lead to a runtime exception": # in CLR meta-data - use of this type may lead to a runtime exception":
.IF "$(CCNUMVER)" >= "001399999999"
CFLAGSCXX += -clr:oldSyntax -AI $(BIN) -wd4339 CFLAGSCXX += -clr:oldSyntax -AI $(BIN) -wd4339
.ELSE
CFLAGSCXX += -clr -AI $(BIN) -wd4339
#see Microsoft Knowledge Base Article - 814472
LINKFLAGS += -NOENTRY -NODEFAULTLIB:nochkclr.obj -INCLUDE:__DllMainCRTStartup@12
.ENDIF
SLOFILES = \ SLOFILES = \
$(SLO)$/native_bootstrap.obj \ $(SLO)$/native_bootstrap.obj \
$(SLO)$/path.obj \ $(SLO)$/path.obj \
$(SLO)$/assembly_cppuhelper.obj $(SLO)$/assembly_cppuhelper.obj
SHL1OBJS = $(SLOFILES) SHL1OBJS = $(SLOFILES)
...@@ -106,10 +100,8 @@ SHL1STDLIBS = \ ...@@ -106,10 +100,8 @@ SHL1STDLIBS = \
mscoree.lib \ mscoree.lib \
Advapi32.lib Advapi32.lib
.IF "$(CCNUMVER)" >= "001399999999"
SHL1STDLIBS += \ SHL1STDLIBS += \
msvcmrt.lib msvcmrt.lib
.ENDIF
SHL1VERSIONMAP = msvc.map SHL1VERSIONMAP = msvc.map
...@@ -127,10 +119,7 @@ ALLTAR: \ ...@@ -127,10 +119,7 @@ ALLTAR: \
$(SIGN) $(SIGN)
.IF "$(CCNUMVER)" >= "001399999999"
CFLAGSCXX += -clr:oldSyntax CFLAGSCXX += -clr:oldSyntax
.ENDIF
$(ASSEMBLY_ATTRIBUTES) : assembly.cxx $(BIN)$/cliuno.snk $(BIN)$/cliureversion.mk $(ASSEMBLY_ATTRIBUTES) : assembly.cxx $(BIN)$/cliuno.snk $(BIN)$/cliureversion.mk
@echo $(ASSEMBLY_KEY_X) @echo $(ASSEMBLY_KEY_X)
...@@ -141,20 +130,14 @@ $(ASSEMBLY_ATTRIBUTES) : assembly.cxx $(BIN)$/cliuno.snk $(BIN)$/cliureversion.m ...@@ -141,20 +130,14 @@ $(ASSEMBLY_ATTRIBUTES) : assembly.cxx $(BIN)$/cliuno.snk $(BIN)$/cliureversion.m
echo \ echo \
'[assembly:System::Reflection::AssemblyKeyFile($(ASSEMBLY_KEY_X))];' \ '[assembly:System::Reflection::AssemblyKeyFile($(ASSEMBLY_KEY_X))];' \
>> $(OUT)$/misc$/assembly_cppuhelper.cxx >> $(OUT)$/misc$/assembly_cppuhelper.cxx
#make sure we build cli_cppuhelper after the version changed #make sure we build cli_cppuhelper after the version changed
$(SHL1OBJS) : $(BIN)$/cli_cppuhelper.config $(SHL1OBJS) : $(BIN)$/cli_cppuhelper.config
$(SIGN): $(SHL1TARGETN) $(SIGN): $(SHL1TARGETN)
$(WRAPCMD) sn.exe -R $(BIN)$/$(TARGET).dll $(BIN)$/cliuno.snk && $(TOUCH) $@ $(WRAPCMD) sn.exe -R $(BIN)$/$(TARGET).dll $(BIN)$/cliuno.snk && $(TOUCH) $@
#do not forget to deliver cli_cppuhelper.config. It is NOT embedded in the policy file. #do not forget to deliver cli_cppuhelper.config. It is NOT embedded in the policy file.
.IF "$(CCNUMVER)" >= "001399999999"
#.NET 2 and higher
# If the x86 switch is ommitted then the system assumes the assembly to be MSIL. # If the x86 switch is ommitted then the system assumes the assembly to be MSIL.
# The policy file is still found when an application tries to load an older # The policy file is still found when an application tries to load an older
# cli_cppuhelper.dll but the system cannot locate it. It possibly assumes that the # cli_cppuhelper.dll but the system cannot locate it. It possibly assumes that the
...@@ -165,19 +148,10 @@ $(POLICY_ASSEMBLY_FILE) : $(BIN)$/cli_cppuhelper.config ...@@ -165,19 +148,10 @@ $(POLICY_ASSEMBLY_FILE) : $(BIN)$/cli_cppuhelper.config
-keyfile:$(BIN)$/cliuno.snk \ -keyfile:$(BIN)$/cliuno.snk \
-link:$(BIN)$/cli_cppuhelper.config \ -link:$(BIN)$/cli_cppuhelper.config \
-platform:x86 -platform:x86
.ELSE
#.NET 1.1: platform flag not needed
$(POLICY_ASSEMBLY_FILE) : $(BIN)$/cli_cppuhelper.config
$(WRAPCMD) AL.exe -out:$@ \
-version:$(CLI_CPPUHELPER_POLICY_VERSION) \
-keyfile:$(BIN)$/cliuno.snk \
-link:$(BIN)$/cli_cppuhelper.config
.ENDIF
#Create the config file that is used with the policy assembly #Create the config file that is used with the policy assembly
$(BIN)$/cli_cppuhelper.config: cli_cppuhelper_config $(BIN)$/cliureversion.mk $(BIN)$/cli_cppuhelper.config: cli_cppuhelper_config $(BIN)$/cliureversion.mk
$(PERL) $(SOLARENV)$/bin$/clipatchconfig.pl \ $(PERL) $(SOLARENV)$/bin$/clipatchconfig.pl \
$< $@ $< $@
.ENDIF # "$(BUILD_FOR_CLI)" != ""
.ENDIF # "$(BUILD_FOR_CLI)" != ""
...@@ -38,26 +38,15 @@ USE_DEFFILE = TRUE ...@@ -38,26 +38,15 @@ USE_DEFFILE = TRUE
.INCLUDE : settings.mk .INCLUDE : settings.mk
.INCLUDE : $(PRJ)$/util$/makefile.pmk .INCLUDE : $(PRJ)$/util$/makefile.pmk
.IF "$(COM)" == "MSC" .IF "$(COM)" == "MSC"
# When compiling for CLR, disable "warning C4339: use of undefined type detected # When compiling for CLR, disable "warning C4339: use of undefined type detected
# in CLR meta-data - use of this type may lead to a runtime exception": # in CLR meta-data - use of this type may lead to a runtime exception":
.IF "$(CCNUMVER)" <= "001399999999"
CFLAGSCXX += -clr -AI $(DLLDEST) -AI $(SOLARBINDIR) -wd4339
.ELSE
CFLAGSCXX += -clr:oldSyntax -AI $(DLLDEST) -AI $(SOLARBINDIR) -wd4339 CFLAGSCXX += -clr:oldSyntax -AI $(DLLDEST) -AI $(SOLARBINDIR) -wd4339
.ENDIF
.IF "$(debug)" != "" .IF "$(debug)" != ""
CFLAGS += -Ob0 CFLAGS += -Ob0
.ENDIF .ENDIF
.IF "$(CCNUMVER)" <= "001399999999"
#see Microsoft Knowledge Base Article - 814472
LINKFLAGS += -NOENTRY -NODEFAULTLIB:nochkclr.obj -INCLUDE:__DllMainCRTStartup@12
.ENDIF
# --- Files -------------------------------------------------------- # --- Files --------------------------------------------------------
SLOFILES = \ SLOFILES = \
...@@ -76,10 +65,8 @@ SHL1STDLIBS = \ ...@@ -76,10 +65,8 @@ SHL1STDLIBS = \
$(SALLIB) \ $(SALLIB) \
mscoree.lib mscoree.lib
.IF "$(CCNUMVER)" >= "001399999999"
SHL1STDLIBS += \ SHL1STDLIBS += \
msvcmrt.lib msvcmrt.lib
.ENDIF
SHL1VERSIONMAP = bridge_exports.map SHL1VERSIONMAP = bridge_exports.map
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment