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
44 .IF
"$(BUILD_FOR_CLI)" != "" && ("$(GUI)" == "WNT" ||
"$(ENABLE_MONO_CLIMAKER)" == "YES")
46 .IF
"$(ENABLE_MONO_CLIMAKER)" == "YES"
47 WRAPCMD
=MONO_PATH
=$(OUT
)/bin
:$(MONO_PATH
) LD_LIBRARY_PATH
=$(SOLARLIBDIR
):$(OUT
)/lib
48 CLIMAKER
=$(BIN
)$/climaker
53 .INCLUDE
: $(BIN
)$/cliureversion.mk
55 POLICY_ASSEMBLY_FILE
=$(BIN
)/$(CLI_URETYPES_POLICY_ASSEMBLY
).dll
58 $(OUT
)$/bin
$/cli_uretypes.dll \
59 $(POLICY_ASSEMBLY_FILE
)
63 CLIMAKERFLAGS
+= --verbose
66 #When changing the assembly version then this must also be done in scp2
67 $(OUT
)$/bin
$/cli_uretypes.dll
: $(CLIMAKER
) $(SOLARBINDIR
)$/types.rdb
$(BIN
)$/cliureversion.mk
68 $(WRAPCMD
) $(CLIMAKER
) $(CLIMAKERFLAGS
) \
70 --keyfile
$(BIN
)$/cliuno.snk \
71 --assembly-version
$(CLI_URETYPES_NEW_VERSION
) \
72 --assembly-description
"This assembly contains metadata for the StarOffice/OpenOffice.org API." \
73 --assembly-company
"OpenOffice.org" \
74 $(SOLARBINDIR
)$/udkapi.rdb
76 #do not forget to deliver cli_uretypes.config. It is NOT embedded in the policy file.
77 #see i62886 for the dependency on cli_uretypes.dll
78 $(POLICY_ASSEMBLY_FILE
) : $(BIN
)$/cli_uretypes.config
$(OUT
)$/bin
$/cli_uretypes.dll
79 $(WRAPCMD
) $(AL
) -out
:$@ \
80 -version
:$(CLI_URETYPES_POLICY_VERSION
) \
81 -keyfile
:$(BIN
)$/cliuno.snk \
82 -link
:cli_uretypes.config
,$(BIN
)$/cli_uretypes.config
84 #Create the config file that is used with the policy assembly
85 $(BIN
)$/cli_uretypes.config
: cli_uretypes_config
$(BIN
)$/cliureversion.mk
86 $(PERL
) $(SOLARENV
)$/bin
$/clipatchconfig.pl \