update dev300-m58
[ooovba.git] / applied_patches / 0309-cli_ure-source-bootstrap-makefile-mk.diff
blobf2f28a0f996842398daa4475ef1e5756eb634192
1 --- /dev/null
2 +++ cli_ure/source/bootstrap/makefile.mk
3 @@ -0,0 +1,111 @@
4 +#************************************************************************
5 +#
6 +# $RCSfile: $
7 +#
8 +# $Revision: $
9 +#
10 +# last change: $Author: $ $Date: $
12 +# The Contents of this file are made available subject
13 +# to the terms of GNU Lesser General Public License Version 2.1
16 +# GNU Lesser General Public License Version 2.1
17 +# =============================================
18 +# Copyright 2000 by Sun Microsystems, Inc.
19 +# 901 San Antonio Road, Palo Alto, CA 94303, USA
21 +# This library is free software; you can redistribute it and/or
22 +# modify it under the terms of the GNU Lesser General Public
23 +# License version 2.1, as published by the Free Software Foundation.
25 +# This library is distributed in the hope that it will be useful,
26 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
27 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
28 +# Lesser General Public License for more details.
30 +# You should have received a copy of the GNU Lesser General Public
31 +# License along with this library; if not, write to the Free Software
32 +# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
33 +# MA 02111-1307 USA
35 +#***********************************************************************/
37 +PRJ = ..$/..
38 +PRJNAME = cli_ure
40 +TARGET = cli_uno_glue
41 +ENABLE_EXCEPTIONS=TRUE
43 +.INCLUDE : settings.mk
44 +.INCLUDE : $(PRJ)$/util$/makefile.pmk
46 +.IF "$(USE_SHELL)"!="4nt"
47 +ECHOQUOTE='
48 +# emacs is a fool: '
49 +.ELSE
50 +ECHOQUOTE=
51 +.ENDIF
53 +.IF "$(ENABLE_MONO)" != "YES"
54 +dummy:
55 + @echo "Mono binding disabled - skipping ..."
56 +.ELSE
58 +.INCLUDE : $(BIN)$/cliureversion.mk
60 +ASSEMBLY_KEY="$(BIN)$/cliuno.snk"
62 +ASSEMBLY_ATTRIBUTES = $(MISC)$/assembly_cppuhelper.cs
64 +ALLTAR : \
65 + $(SHL1TARGETN) \
66 + $(ASSEMBLY_ATTRIBUTES) \
67 + $(BIN)$/cli_cppuhelper.dll
69 +CSFILES = \
70 + managed_bootstrap.cs \
71 + $(ASSEMBLY_ATTRIBUTES)
73 +$(ASSEMBLY_ATTRIBUTES) .PHONY: assembly.cs $(BIN)$/cliuno.snk $(BIN)$/cliureversion.mk
74 + $(GNUCOPY) -p assembly.cs $@
75 + +echo $(ECHOQUOTE) \
76 + [assembly:System.Reflection.AssemblyVersion( "$(CLI_CPPUHELPER_NEW_VERSION)" )] $(ECHOQUOTE) \
77 + $(ECHOQUOTE) [assembly:System.Reflection.AssemblyKeyFile($(ASSEMBLY_KEY))] $(ECHOQUOTE) \
78 + >> $@
80 +EXTERNAL_DIR=$(PRJ)$/..$/external/cli
82 +$(OUT)$/bin$/cli_uretypes.dll : $(EXTERNAL_DIR)$/cli_uretypes.dll
83 + +$(COPY) $< $@
85 +$(BIN)$/cli_cppuhelper.dll : $(CSFILES) $(OUT)$/bin$/cli_uretypes.dll
86 + +$(CSC) $(CSCFLAGS) \
87 + -target:library \
88 + -out:$@ \
89 + -reference:$(OUT)$/bin$/cli_uretypes.dll \
90 + -reference:System.dll \
91 + $(CSFILES)
92 + @echo "If code has changed then provide a policy assembly and change the version!"
94 +CFLAGS += $(MONO_CFLAGS)
96 +SLOFILES= \
97 + $(SLO)$/native_glue.obj
99 +SHL1OBJS = $(SLOFILES)
101 +SHL1STDLIBS = \
102 + $(SALLIB) \
103 + $(CPPULIB) \
104 + $(CPPUHELPERLIB)
106 +SHL1STDLIBS += $(MONO_LIBS)
108 +SHL1TARGET = $(TARGET)
110 +.ENDIF
112 +.INCLUDE : $(PRJ)$/util$/target.pmk
113 +.INCLUDE : target.mk