1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
38 .INCLUDE
: settings.mk
39 .INCLUDE
: $(PRJ
)$/util
$/makefile.pmk
41 .INCLUDE
: $(PRJ
)$/util
$/target.pmk
45 .IF
"$(USE_SHELL)"!="4nt"
51 .IF "$(BUILD_FOR_CLI)" != ""
53 .INCLUDE : $(BIN)$/cliureversion.mk
55 ASSEMBLY_ATTRIBUTES = $(MISC)$/assembly_ure_$(TARGET).cs
56 POLICY_ASSEMBLY_FILE=$(BIN)$/$(CLI_BASETYPES_POLICY_ASSEMBLY).dll
59 $(BIN)$/cli_basetypes.dll \
60 $(POLICY_ASSEMBLY_FILE)
62 .IF "$(CCNUMVER)" >= "001399999999"
63 CSCFLAGS+=-keyfile:"$(BIN)$/cliuno.snk"
68 uno$/BoundAttribute.cs \
69 uno$/ExceptionAttribute.cs \
70 uno$/ParameterizedTypeAttribute.cs \
71 uno$/TypeParametersAttribute.cs \
72 uno$/TypeArgumentsAttribute.cs \
73 uno$/OnewayAttribute.cs \
74 uno$/PolymorphicType.cs \
75 $(ASSEMBLY_ATTRIBUTES)
77 .IF "$(CCNUMVER)" <= "001399999999"
78 $(ASSEMBLY_ATTRIBUTES) : assembly.cs makefile.mk $(BIN)$/cliuno.snk $(BIN)$/cliureversion.mk
79 $(GNUCOPY) -p assembly.cs $@
81 [assembly:System.Reflection.AssemblyVersion( "$(CLI_BASETYPES_NEW_VERSION)")] \
82 [assembly:System.Reflection.AssemblyKeyFile(@"$(BIN)$/cliuno.snk")]$(ECHOQUOTE) \
85 $(ASSEMBLY_ATTRIBUTES) : assembly.cs makefile.mk $(BIN)$/cliuno.snk $(BIN)$/cliureversion.mk
86 $(GNUCOPY) -p assembly.cs $@
88 [assembly:System.Reflection.AssemblyVersion( "$(CLI_BASETYPES_NEW_VERSION)")]$(ECHOQUOTE) \
92 $(BIN)$/cli_basetypes.dll : $(CSFILES) $(BIN)$/cliureversion.mk
96 -keyfile:$(BIN)$/cliuno.snk \
97 -reference:System.dll \
99 @echo "If code has changed then provide a policy assembly and change the version!"
101 #do not forget to deliver cli_uretypes.config. It is NOT embedded in the policy file.
102 $(POLICY_ASSEMBLY_FILE) : $(BIN)$/cli_basetypes.config
103 $(WRAPCMD) $(AL) -out:$@ \
104 -version:$(CLI_BASETYPES_POLICY_VERSION) \
105 -keyfile:$(BIN)$/cliuno.snk \
106 -link:cli_basetypes.config,$(BIN)$/cli_basetypes.config
109 #Create the config file that is used with the policy assembly
110 $(BIN)$/cli_basetypes.config: cli_basetypes_config $(BIN)$/cliureversion.mk
111 $(PERL) $(SOLARENV)$/bin$/clipatchconfig.pl \