merge the formfield patch from ooo-build
[ooovba.git] / cli_ure / source / bootstrap / makefile.mk
blob37bd577647bd9e8ed46b37faf40d6360eab73b59
1 #************************************************************************
3 # $RCSfile: $
5 # $Revision: $
7 # last change: $Author: $ $Date: $
9 # The Contents of this file are made available subject
10 # to the terms of GNU Lesser General Public License Version 2.1
13 # GNU Lesser General Public License Version 2.1
14 # =============================================
15 # Copyright 2000 by Sun Microsystems, Inc.
16 # 901 San Antonio Road, Palo Alto, CA 94303, USA
18 # This library is free software; you can redistribute it and/or
19 # modify it under the terms of the GNU Lesser General Public
20 # License version 2.1, as published by the Free Software Foundation.
22 # This library is distributed in the hope that it will be useful,
23 # but WITHOUT ANY WARRANTY; without even the implied warranty of
24 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
25 # Lesser General Public License for more details.
27 # You should have received a copy of the GNU Lesser General Public
28 # License along with this library; if not, write to the Free Software
29 # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
30 # MA 02111-1307 USA
32 #***********************************************************************/
34 PRJ = ..$/..
35 PRJNAME = cli_ure
37 TARGET = cli_uno_glue
38 ENABLE_EXCEPTIONS=TRUE
40 .INCLUDE : settings.mk
41 .INCLUDE : $(PRJ)$/util$/makefile.pmk
43 .IF "$(USE_SHELL)"!="4nt"
44 ECHOQUOTE='
45 # emacs is a fool: '
46 .ELSE
47 ECHOQUOTE=
48 .ENDIF
50 .IF "$(ENABLE_MONO)" != "YES"
51 dummy:
52 @echo "Mono binding disabled - skipping ..."
53 .ELSE
55 .INCLUDE : $(BIN)$/cliureversion.mk
57 ASSEMBLY_KEY="$(BIN)$/cliuno.snk"
59 ASSEMBLY_ATTRIBUTES = $(MISC)$/assembly_cppuhelper.cs
61 POLICY_ASSEMBLY_FILE=$(BIN)$/$(CLI_CPPUHELPER_POLICY_ASSEMBLY).dll
63 ALLTAR : \
64 $(SHL1TARGETN) \
65 $(ASSEMBLY_ATTRIBUTES) \
66 $(BIN)$/cli_cppuhelper.dll \
67 $(BIN)$/cli_cppuhelper.config \
68 $(POLICY_ASSEMBLY_FILE)
70 CSFILES = \
71 managed_bootstrap.cs \
72 $(ASSEMBLY_ATTRIBUTES)
74 $(ASSEMBLY_ATTRIBUTES) .PHONY: assembly.cs $(BIN)$/cliuno.snk $(BIN)$/cliureversion.mk
75 $(GNUCOPY) -p assembly.cs $@
76 +echo $(ECHOQUOTE) \
77 [assembly:System.Reflection.AssemblyVersion( "$(CLI_CPPUHELPER_NEW_VERSION)" )] $(ECHOQUOTE) \
78 $(ECHOQUOTE) [assembly:System.Reflection.AssemblyKeyFile($(ASSEMBLY_KEY))] $(ECHOQUOTE) \
79 >> $@
81 EXTERNAL_DIR=$(PRJ)$/..$/external/cli
83 .IF "$(ENABLE_MONO_CLIMAKER)" != "YES"
85 $(OUT)$/bin$/cli_uretypes.dll : $(EXTERNAL_DIR)$/cli_uretypes.dll $(EXTERNAL_DIR)$/cli_uretypes.config $(EXTERNAL_DIR)$/policy.1.0.cli_uretypes.dll
86 +$(COPY) $? $(OUT)$/bin$/
88 .ENDIF
90 $(BIN)$/cli_cppuhelper.dll : $(CSFILES) $(OUT)$/bin$/cli_uretypes.dll
91 +$(CSC) $(CSCFLAGS) \
92 -target:library \
93 -out:$@ \
94 -keyfile:$(BIN)$/cliuno.snk \
95 -reference:$(OUT)$/bin$/cli_uretypes.dll \
96 -reference:System.dll \
97 $(CSFILES)
98 @echo "If code has changed then provide a policy assembly and change the version!"
100 CFLAGS += $(MONO_CFLAGS)
102 SLOFILES= \
103 $(SLO)$/native_glue.obj
105 SHL1OBJS = $(SLOFILES)
107 SHL1STDLIBS = \
108 $(SALLIB) \
109 $(CPPULIB) \
110 $(CPPUHELPERLIB)
112 SHL1STDLIBS += $(MONO_LIBS)
114 SHL1TARGET = $(TARGET)
116 $(POLICY_ASSEMBLY_FILE) : $(BIN)$/cli_cppuhelper.config
117 $(WRAPCMD) $(AL) -out:$@ \
118 -version:$(CLI_CPPUHELPER_POLICY_VERSION) \
119 -keyfile:$(BIN)$/cliuno.snk \
120 -link:cli_cppuhelper.config,$(BIN)$/cli_cppuhelper.config
122 #Create the config file that is used with the policy assembly
123 $(BIN)$/cli_cppuhelper.config: ../native/cli_cppuhelper_config $(BIN)$/cliureversion.mk
124 $(PERL) $(SOLARENV)$/bin$/clipatchconfig.pl \
125 $< $@
127 .ENDIF
129 .INCLUDE : $(PRJ)$/util$/target.pmk
130 .INCLUDE : target.mk