xref: /trunk/main/cppuhelper/source/makefile.mk (revision bfaba8a2bfbeecb976bed59dc67e51a3365db0fb)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23PRJ=..
24
25PRJNAME=cppuhelper
26TARGET=cppuhelper
27
28ENABLE_EXCEPTIONS=TRUE
29USE_DEFFILE=TRUE
30
31# not strictly a bootstrap service but containing
32# bootstrap code that may require generated files
33# without "-L" (light) switch
34BOOTSTRAP_SERVICE=TRUE
35
36.IF "$(OS)" != "WNT" && "$(GUI)"!="OS2"
37UNIXVERSIONNAMES=UDK
38.ENDIF # WNT
39
40# --- Settings -----------------------------------------------------
41
42.INCLUDE :  settings.mk
43
44# --- Files --------------------------------------------------------
45
46UNOUCRRDB=$(SOLARBINDIR)$/udkapi.rdb
47UNOUCRDEP=$(UNOUCRRDB)
48UNOUCROUT=$(OUT)$/inc$/$(TARGET)
49INCPRE+=$(OUT)$/inc$/$(TARGET) $(OUT)$/inc$/private
50
51CPPUMAKERFLAGS= -C
52
53UNOTYPES= \
54        com.sun.star.beans.PropertyAttribute \
55        com.sun.star.beans.PropertyValue \
56        com.sun.star.beans.XFastPropertySet \
57        com.sun.star.beans.XMultiPropertySet \
58        com.sun.star.beans.XPropertyAccess \
59        com.sun.star.beans.XPropertySet \
60        com.sun.star.bridge.UnoUrlResolver \
61        com.sun.star.bridge.XUnoUrlResolver \
62        com.sun.star.connection.SocketPermission \
63        com.sun.star.container.XElementAccess \
64        com.sun.star.container.XEnumerationAccess \
65        com.sun.star.container.XHierarchicalNameAccess \
66        com.sun.star.container.XNameAccess \
67        com.sun.star.container.XNameContainer \
68        com.sun.star.container.XSet \
69        com.sun.star.io.FilePermission \
70        com.sun.star.io.IOException \
71        com.sun.star.lang.DisposedException \
72        com.sun.star.lang.WrappedTargetRuntimeException \
73        com.sun.star.lang.XComponent \
74        com.sun.star.lang.XEventListener \
75        com.sun.star.lang.XInitialization \
76        com.sun.star.lang.XMultiComponentFactory \
77        com.sun.star.lang.XMultiServiceFactory \
78        com.sun.star.lang.XServiceInfo \
79        com.sun.star.lang.XSingleComponentFactory \
80        com.sun.star.lang.XSingleServiceFactory \
81        com.sun.star.lang.XUnoTunnel \
82        com.sun.star.lang.XTypeProvider \
83        com.sun.star.loader.XImplementationLoader \
84        com.sun.star.reflection.XArrayTypeDescription \
85        com.sun.star.reflection.XCompoundTypeDescription \
86        com.sun.star.reflection.XEnumTypeDescription \
87        com.sun.star.reflection.XIdlClass \
88        com.sun.star.reflection.XIdlClassProvider \
89        com.sun.star.reflection.XIdlField2 \
90        com.sun.star.reflection.XIdlReflection \
91        com.sun.star.reflection.XIndirectTypeDescription \
92        com.sun.star.reflection.XInterfaceAttributeTypeDescription \
93        com.sun.star.reflection.XInterfaceAttributeTypeDescription2 \
94        com.sun.star.reflection.XInterfaceMemberTypeDescription \
95        com.sun.star.reflection.XInterfaceMethodTypeDescription \
96        com.sun.star.reflection.XInterfaceTypeDescription2 \
97        com.sun.star.reflection.XMethodParameter \
98        com.sun.star.reflection.XStructTypeDescription \
99        com.sun.star.reflection.XTypeDescription \
100        com.sun.star.reflection.XUnionTypeDescription \
101        com.sun.star.registry.XImplementationRegistration \
102        com.sun.star.registry.XRegistryKey \
103        com.sun.star.registry.XSimpleRegistry \
104        com.sun.star.security.RuntimePermission \
105        com.sun.star.security.XAccessController \
106        com.sun.star.uno.DeploymentException \
107        com.sun.star.uno.RuntimeException \
108        com.sun.star.uno.XAggregation \
109        com.sun.star.uno.XComponentContext \
110        com.sun.star.uno.XCurrentContext \
111        com.sun.star.uno.XUnloadingPreference \
112        com.sun.star.uno.XWeak \
113        com.sun.star.util.XMacroExpander
114
115.IF "$(debug)" != ""
116# msvc++: no inlining for debugging
117.IF "$(COM)" == "MSC"
118CFLAGS += -Ob0
119.ENDIF
120.ENDIF
121
122SLOFILES= \
123        $(SLO)$/typeprovider.obj    \
124        $(SLO)$/exc_thrower.obj     \
125        $(SLO)$/servicefactory.obj  \
126        $(SLO)$/bootstrap.obj       \
127        $(SLO)$/primeweak.obj       \
128        $(SLO)$/implbase.obj        \
129        $(SLO)$/implbase_ex.obj     \
130        $(SLO)$/propshlp.obj        \
131        $(SLO)$/weak.obj        \
132        $(SLO)$/interfacecontainer.obj  \
133        $(SLO)$/stdidlclass.obj     \
134        $(SLO)$/factory.obj     \
135        $(SLO)$/component_context.obj   \
136        $(SLO)$/component.obj       \
137        $(SLO)$/shlib.obj       \
138        $(SLO)$/tdmgr.obj       \
139        $(SLO)$/implementationentry.obj \
140        $(SLO)$/access_control.obj  \
141        $(SLO)$/macro_expander.obj \
142            $(SLO)$/unourl.obj \
143        $(SLO)$/propertysetmixin.obj \
144        $(SLO)$/findsofficepath.obj
145
146OBJFILES = $(OBJ)$/findsofficepath.obj
147
148.IF "$(GUI)" == "WNT"
149SHL1TARGET=$(TARGET)$(UDK_MAJOR)$(COMID)
150.ELIF "$(GUI)" == "OS2"
151SHL1TARGET=cppuh$(UDK_MAJOR)
152.ELSE
153SHL1TARGET=uno_$(TARGET)$(COMID)
154.ENDIF
155
156SHL1STDLIBS= \
157        $(SALLIB)       \
158        $(SALHELPERLIB) \
159        $(CPPULIB)
160.IF "$(OS)" == "WNT"
161SHL1STDLIBS += $(ADVAPI32LIB)
162.ENDIF
163
164SHL1DEPN=
165SHL1IMPLIB=i$(TARGET)
166SHL1OBJS = $(SLOFILES)
167SHL1RPATH=URELIB
168
169SHL1DEF=$(MISC)$/$(SHL1TARGET).def
170
171DEF1NAME=$(SHL1TARGET)
172
173.IF "$(COMNAME)"=="msci"
174SHL1VERSIONMAP=msvc_win32_intel.map
175.ELIF "$(COMNAME)"=="sunpro5"
176SHL1VERSIONMAP=cc5_solaris_sparc.map
177.ELIF "$(GUI)$(COMNAME)"=="OS2gcc3"
178SHL1VERSIONMAP=gcc3os2.map
179#.ELIF "$(COMNAME)"=="gcc3" || "$(COMNAME)"=="Clang"
180.ELSE
181SHL1VERSIONMAP=gcc3.map
182.ENDIF
183
184# --- Targets ------------------------------------------------------
185
186.IF "$(diag)"!=""
187CFLAGS += -DDIAG=$(diag)
188.ENDIF
189
190.INCLUDE :  target.mk
191