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 ENABLE_EXCEPTIONS
= TRUE
40 # disable caching to avoid stale objects
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"
54 .ELSE
# "$(ENABLE_MONO_CLIMAKER)" != "YES"
56 SLOFILES
= $(SLO
)$/climaker_mono.obj
58 SHL1STDLIBS
= $(CPPULIB
) $(CPPUHELPERLIB
) $(SALLIB
)
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
68 .ENDIF
# "$(ENABLE_MONO_CLIMAKER)" != "YES"
70 .ELSE
# "$(ENABLE_MONO)" == "YES"
72 .IF
"$(BUILD_FOR_CLI)" == ""
76 .ELSE
# "$(BUILD_FOR_CLI)" == ""
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":
116 CFLAGSCXX
+= -clr
:noAssembly
-wd4339
118 CFLAGSCXX
+= -clr
:oldSyntax
-LN
-wd4339
-wd4715
122 $(OBJ
)$/climaker_app.obj \
123 $(OBJ
)$/climaker_emit.obj
125 APP1TARGET
= $(TARGET
)
126 APP1OBJS
= $(OBJFILES
)
135 .IF
"$(CCNUMVER)" >= "001399999999"
144 .INCLUDE
: $(PRJ
)$/util
$/target.pmk
147 CLIMAKER_CONFIG
= $(BIN
)$/climaker.exe.config
154 #Create the config file that is used with the policy assembly
155 $(CLIMAKER_CONFIG
): climaker.exe.config
157 .IF
"$(USE_SHELL)"!="4nt"
159 .ENDIF
# "$(USE_SHELL)"!="4nt"
162 .IF
"$(BUILD_FOR_CLI)" != ""
164 $(OBJFILES
): $(BIN
)$/cli_basetypes.dll