update dev300-m58
[ooovba.git] / cli_ure / source / climaker / makefile.mk
blob240214c5c5149696b8a40b597cf3080f7646cf6b
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.21 $
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 #*************************************************************************
32 PRJ = ..$/..
33 PRJNAME = cli_ure
35 TARGET = climaker
36 TARGETTYPE = CUI
37 LIBTARGET = NO
38 ENABLE_EXCEPTIONS = TRUE
40 # disable caching to avoid stale objects
41 # on version changes
42 CCACHE_DISABLE=TRUE
43 .EXPORT : CCACHE_DISABLE
45 .INCLUDE : settings.mk
46 .INCLUDE : $(PRJ)$/util$/makefile.pmk
48 .IF "$(ENABLE_MONO)" == "YES"
50 .IF "$(ENABLE_MONO_CLIMAKER)" != "YES"
52 ALLTAR : # do nothing
54 .ELSE # "$(ENABLE_MONO_CLIMAKER)" != "YES"
56 SLOFILES = $(SLO)$/climaker_mono.obj
57 SHL1OBJS=$(SLOFILES)
58 SHL1STDLIBS= $(CPPULIB) $(CPPUHELPERLIB) $(SALLIB)
59 SHL1TARGET=$(TARGET)
61 ALLTAR : $(BIN)$/climaker
63 $(BIN)$/climaker : climaker_csharp.cs
64 gmcs -debug -unsafe climaker_csharp.cs -reference:$(BIN)/cli_basetypes.dll -out:$(BIN)$/climaker.exe
65 mkbundle2 --static -L $(OUT)/lib --deps -o $(BIN)$/climaker $(BIN)$/climaker.exe $(BIN)/cli_basetypes.dll
67 .INCLUDE : target.mk
68 .ENDIF # "$(ENABLE_MONO_CLIMAKER)" != "YES"
70 .ELSE # "$(ENABLE_MONO)" == "YES"
72 .IF "$(BUILD_FOR_CLI)" == ""
74 ALLTAR : # do nothing
76 .ELSE # "$(BUILD_FOR_CLI)" == ""
78 NO_OFFUH=TRUE
79 CPPUMAKERFLAGS =
81 UNOTYPES = \
82 com.sun.star.uno.TypeClass \
83 com.sun.star.uno.XAggregation \
84 com.sun.star.uno.XWeak \
85 com.sun.star.uno.XComponentContext \
86 com.sun.star.lang.XTypeProvider \
87 com.sun.star.lang.XInitialization \
88 com.sun.star.lang.XComponent \
89 com.sun.star.lang.XMultiComponentFactory \
90 com.sun.star.lang.XMultiServiceFactory \
91 com.sun.star.lang.XSingleComponentFactory \
92 com.sun.star.container.XSet \
93 com.sun.star.container.XHierarchicalNameAccess \
94 com.sun.star.loader.XImplementationLoader \
95 com.sun.star.registry.XSimpleRegistry \
96 com.sun.star.registry.XRegistryKey \
97 com.sun.star.reflection.XTypeDescriptionEnumerationAccess \
98 com.sun.star.reflection.XConstantTypeDescription \
99 com.sun.star.reflection.XConstantsTypeDescription \
100 com.sun.star.reflection.XIndirectTypeDescription \
101 com.sun.star.reflection.XEnumTypeDescription \
102 com.sun.star.reflection.XInterfaceTypeDescription2 \
103 com.sun.star.reflection.XInterfaceMethodTypeDescription \
104 com.sun.star.reflection.XInterfaceAttributeTypeDescription2 \
105 com.sun.star.reflection.XCompoundTypeDescription \
106 com.sun.star.reflection.XServiceTypeDescription2 \
107 com.sun.star.reflection.XSingletonTypeDescription2 \
108 com.sun.star.reflection.XStructTypeDescription
110 CFLAGSCXX +=-AI$(BIN)
113 # When compiling for CLR, disable "warning C4339: use of undefined type detected
114 # in CLR meta-data - use of this type may lead to a runtime exception":
115 .IF "$(COMEX)"=="10"
116 CFLAGSCXX += -clr:noAssembly -wd4339
117 .ELSE
118 CFLAGSCXX += -clr:oldSyntax -LN -wd4339 -wd4715
119 .ENDIF
121 OBJFILES = \
122 $(OBJ)$/climaker_app.obj \
123 $(OBJ)$/climaker_emit.obj
125 APP1TARGET = $(TARGET)
126 APP1OBJS = $(OBJFILES)
129 APP1STDLIBS = \
130 $(CPPUHELPERLIB) \
131 $(CPPULIB) \
132 $(SALLIB) \
133 mscoree.lib
135 .IF "$(CCNUMVER)" >= "001399999999"
136 APP1STDLIBS += \
137 msvcmrt.lib
138 .ENDIF
140 .ENDIF
144 .INCLUDE : $(PRJ)$/util$/target.pmk
145 .INCLUDE : target.mk
147 CLIMAKER_CONFIG = $(BIN)$/climaker.exe.config
149 ALLTAR: \
150 $(CLIMAKER_CONFIG)
154 #Create the config file that is used with the policy assembly
155 $(CLIMAKER_CONFIG): climaker.exe.config
156 $(COPY) $< $@
157 .IF "$(USE_SHELL)"!="4nt"
158 chmod +x $@
159 .ENDIF # "$(USE_SHELL)"!="4nt"
162 .IF "$(BUILD_FOR_CLI)" != ""
164 $(OBJFILES): $(BIN)$/cli_basetypes.dll
167 .ENDIF
169 .ENDIF