xref: /trunk/main/cppuhelper/source/makefile.mk (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
11# OpenOffice.org is free software: you can redistribute it and/or modify
12# it under the terms of the GNU Lesser General Public License version 3
13# only, as published by the Free Software Foundation.
14#
15# OpenOffice.org is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18# GNU Lesser General Public License version 3 for more details
19# (a copy is included in the LICENSE file that accompanied this code).
20#
21# You should have received a copy of the GNU Lesser General Public License
22# version 3 along with OpenOffice.org.  If not, see
23# <http://www.openoffice.org/license.html>
24# for a copy of the LGPLv3 License.
25#
26#*************************************************************************
27PRJ=..
28
29PRJNAME=cppuhelper
30TARGET=cppuhelper
31
32ENABLE_EXCEPTIONS=TRUE
33USE_DEFFILE=TRUE
34
35# not strictly a bootstrap service but containing
36# bootstrap code that may require generated files
37# without "-L" (light) switch
38BOOTSTRAP_SERVICE=TRUE
39
40.IF "$(OS)" != "WNT" && "$(GUI)"!="OS2"
41UNIXVERSIONNAMES=UDK
42.ENDIF # WNT
43
44# --- Settings -----------------------------------------------------
45
46.INCLUDE :  settings.mk
47
48# --- Files --------------------------------------------------------
49
50UNOUCRRDB=$(SOLARBINDIR)$/udkapi.rdb
51UNOUCRDEP=$(UNOUCRRDB)
52UNOUCROUT=$(OUT)$/inc$/$(TARGET)
53INCPRE+=$(OUT)$/inc$/$(TARGET) $(OUT)$/inc$/private
54
55CPPUMAKERFLAGS= -C
56
57UNOTYPES= \
58        com.sun.star.beans.PropertyAttribute \
59        com.sun.star.beans.PropertyValue \
60        com.sun.star.beans.XFastPropertySet \
61        com.sun.star.beans.XMultiPropertySet \
62        com.sun.star.beans.XPropertyAccess \
63        com.sun.star.beans.XPropertySet \
64        com.sun.star.bridge.UnoUrlResolver \
65        com.sun.star.bridge.XUnoUrlResolver \
66        com.sun.star.connection.SocketPermission \
67        com.sun.star.container.XElementAccess \
68        com.sun.star.container.XEnumerationAccess \
69        com.sun.star.container.XHierarchicalNameAccess \
70        com.sun.star.container.XNameAccess \
71        com.sun.star.container.XNameContainer \
72        com.sun.star.container.XSet \
73        com.sun.star.io.FilePermission \
74        com.sun.star.io.IOException \
75        com.sun.star.lang.DisposedException \
76        com.sun.star.lang.WrappedTargetRuntimeException \
77        com.sun.star.lang.XComponent \
78        com.sun.star.lang.XEventListener \
79        com.sun.star.lang.XInitialization \
80        com.sun.star.lang.XMultiComponentFactory \
81        com.sun.star.lang.XMultiServiceFactory \
82        com.sun.star.lang.XServiceInfo \
83        com.sun.star.lang.XSingleComponentFactory \
84        com.sun.star.lang.XSingleServiceFactory \
85        com.sun.star.lang.XTypeProvider \
86        com.sun.star.loader.XImplementationLoader \
87        com.sun.star.reflection.XArrayTypeDescription \
88        com.sun.star.reflection.XCompoundTypeDescription \
89        com.sun.star.reflection.XEnumTypeDescription \
90        com.sun.star.reflection.XIdlClass \
91        com.sun.star.reflection.XIdlClassProvider \
92        com.sun.star.reflection.XIdlField2 \
93        com.sun.star.reflection.XIdlReflection \
94        com.sun.star.reflection.XIndirectTypeDescription \
95        com.sun.star.reflection.XInterfaceAttributeTypeDescription \
96        com.sun.star.reflection.XInterfaceAttributeTypeDescription2 \
97        com.sun.star.reflection.XInterfaceMemberTypeDescription \
98        com.sun.star.reflection.XInterfaceMethodTypeDescription \
99        com.sun.star.reflection.XInterfaceTypeDescription2 \
100        com.sun.star.reflection.XMethodParameter \
101        com.sun.star.reflection.XStructTypeDescription \
102        com.sun.star.reflection.XTypeDescription \
103        com.sun.star.reflection.XUnionTypeDescription \
104        com.sun.star.registry.XImplementationRegistration \
105        com.sun.star.registry.XRegistryKey \
106        com.sun.star.registry.XSimpleRegistry \
107        com.sun.star.security.RuntimePermission \
108        com.sun.star.security.XAccessController \
109        com.sun.star.uno.DeploymentException \
110        com.sun.star.uno.RuntimeException \
111        com.sun.star.uno.XAggregation \
112        com.sun.star.uno.XComponentContext \
113        com.sun.star.uno.XCurrentContext \
114        com.sun.star.uno.XUnloadingPreference \
115        com.sun.star.uno.XWeak \
116        com.sun.star.util.XMacroExpander
117
118.IF "$(debug)" != ""
119# msvc++: no inlining for debugging
120.IF "$(COM)" == "MSC"
121CFLAGS += -Ob0
122.ENDIF
123.ENDIF
124
125SLOFILES= \
126        $(SLO)$/typeprovider.obj    \
127        $(SLO)$/exc_thrower.obj     \
128        $(SLO)$/servicefactory.obj  \
129        $(SLO)$/bootstrap.obj       \
130        $(SLO)$/implbase.obj        \
131        $(SLO)$/implbase_ex.obj     \
132        $(SLO)$/propshlp.obj        \
133        $(SLO)$/weak.obj        \
134        $(SLO)$/interfacecontainer.obj  \
135        $(SLO)$/stdidlclass.obj     \
136        $(SLO)$/factory.obj     \
137        $(SLO)$/component_context.obj   \
138        $(SLO)$/component.obj       \
139        $(SLO)$/shlib.obj       \
140        $(SLO)$/tdmgr.obj       \
141        $(SLO)$/implementationentry.obj \
142        $(SLO)$/access_control.obj  \
143        $(SLO)$/macro_expander.obj \
144            $(SLO)$/unourl.obj \
145        $(SLO)$/propertysetmixin.obj \
146        $(SLO)$/findsofficepath.obj
147
148OBJFILES = $(OBJ)$/findsofficepath.obj
149
150.IF "$(GUI)" == "WNT"
151SHL1TARGET=$(TARGET)$(UDK_MAJOR)$(COMID)
152.ELIF "$(GUI)" == "OS2"
153SHL1TARGET=cppuh
154SHL1TARGET=cppuh$(UDK_MAJOR)
155.ELSE
156SHL1TARGET=uno_$(TARGET)$(COMID)
157.ENDIF
158
159SHL1STDLIBS= \
160        $(SALLIB)       \
161        $(SALHELPERLIB) \
162        $(CPPULIB)
163.IF "$(OS)" == "WNT"
164SHL1STDLIBS += $(ADVAPI32LIB)
165.ENDIF
166
167SHL1DEPN=
168SHL1IMPLIB=i$(TARGET)
169SHL1OBJS = $(SLOFILES)
170SHL1RPATH=URELIB
171
172SHL1DEF=$(MISC)$/$(SHL1TARGET).def
173
174DEF1NAME=$(SHL1TARGET)
175
176.IF "$(COMNAME)"=="msci"
177SHL1VERSIONMAP=msvc_win32_intel.map
178.ELIF "$(COMNAME)"=="sunpro5"
179SHL1VERSIONMAP=cc5_solaris_sparc.map
180.ELIF "$(GUI)$(COMNAME)"=="OS2gcc3"
181SHL1VERSIONMAP=gcc3os2.map
182.ELIF "$(COMNAME)"=="gcc3"
183SHL1VERSIONMAP=gcc3.map
184.ENDIF
185
186# --- Targets ------------------------------------------------------
187
188.IF "$(diag)"!=""
189CFLAGS += -DDIAG=$(diag)
190.ENDIF
191
192.INCLUDE :  target.mk
193