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"
52 .IF
"$(BUILD_FOR_CLI)" != ""
54 .INCLUDE
: $(BIN
)$/cliureversion.mk
56 ASSEMBLY_ATTRIBUTES
= $(MISC
)$/assembly_ure_
$(TARGET
).cs
58 POLICY_ASSEMBLY_FILE
=$(BIN
)$/$(CLI_URE_POLICY_ASSEMBLY
).dll
61 $(POLICY_ASSEMBLY_FILE
)
63 .IF
"$(CCNUMVER)" >= "001399999999"
64 CSCFLAGS
+=-keyfile
:"$(BIN)$/cliuno.snk"
68 uno
$/util
$/DisposeGuard.cs \
69 uno
$/util
$/WeakAdapter.cs \
70 uno
$/util
$/WeakBase.cs \
71 uno
$/util
$/WeakComponentBase.cs \
72 $(ASSEMBLY_ATTRIBUTES
)
74 .IF
"$(CCNUMVER)" <= "001399999999"
75 $(ASSEMBLY_ATTRIBUTES
) : assembly.cs makefile.mk
$(BIN
)$/cliuno.snk
$(BIN
)$/cliureversion.mk
76 $(GNUCOPY
) -p assembly.cs
$@
78 [assembly
:System.Reflection.AssemblyVersion
( "$(CLI_URE_NEW_VERSION)")] \
79 [assembly
:System.Reflection.AssemblyKeyFile
(@
"$(BIN)$/cliuno.snk")]$(ECHOQUOTE
) \
82 $(ASSEMBLY_ATTRIBUTES
) : assembly.cs makefile.mk
$(BIN
)$/cliuno.snk
$(BIN
)$/cliureversion.mk
83 $(GNUCOPY
) -p assembly.cs
$@
85 [assembly
:System.Reflection.AssemblyVersion
( "$(CLI_URE_NEW_VERSION)")]$(ECHOQUOTE
) \
89 $(BIN
)$/cli_ure.dll
: $(CSFILES
) $(BIN
)$/cli_uretypes.dll
$(BIN
)$/cliureversion.mk
93 -keyfile
:$(BIN
)$/cliuno.snk \
94 -reference
:$(OUT
)$/bin
$/cli_uretypes.dll \
95 -reference
:System.dll \
97 @echo
"If code has changed then provide a policy assembly and change the version!"
100 #do not forget to deliver cli_ure.config. It is NOT embedded in the policy file.
101 $(POLICY_ASSEMBLY_FILE
) : $(BIN
)$/cli_ure.config
102 $(WRAPCMD
) $(AL
) -out
:$@ \
103 -version
:$(CLI_URE_POLICY_VERSION
) \
104 -keyfile
:$(BIN
)$/cliuno.snk \
105 -link
:cli_ure.config
,$(BIN
)$/cli_ure.config
107 #Create the config file that is used with the policy assembly
108 $(BIN
)$/cli_ure.config
: cli_ure_config
$(BIN
)$/cliureversion.mk
109 $(PERL
) $(SOLARENV
)$/bin
$/clipatchconfig.pl \