xref: /aoo42x/main/cppuhelper/source/makefile.mk (revision 37ec910a)
17871dc3eSAndrew Rist#**************************************************************
27871dc3eSAndrew Rist#
37871dc3eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
47871dc3eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
57871dc3eSAndrew Rist#  distributed with this work for additional information
67871dc3eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
77871dc3eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
87871dc3eSAndrew Rist#  "License"); you may not use this file except in compliance
97871dc3eSAndrew Rist#  with the License.  You may obtain a copy of the License at
107871dc3eSAndrew Rist#
117871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
127871dc3eSAndrew Rist#
137871dc3eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
147871dc3eSAndrew Rist#  software distributed under the License is distributed on an
157871dc3eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
167871dc3eSAndrew Rist#  KIND, either express or implied.  See the License for the
177871dc3eSAndrew Rist#  specific language governing permissions and limitations
187871dc3eSAndrew Rist#  under the License.
197871dc3eSAndrew Rist#
207871dc3eSAndrew Rist#**************************************************************
217871dc3eSAndrew Rist
227871dc3eSAndrew Rist
23cdf0e10cSrcweirPRJ=..
24cdf0e10cSrcweir
25cdf0e10cSrcweirPRJNAME=cppuhelper
26cdf0e10cSrcweirTARGET=cppuhelper
27cdf0e10cSrcweir
28cdf0e10cSrcweirENABLE_EXCEPTIONS=TRUE
29cdf0e10cSrcweirUSE_DEFFILE=TRUE
30ebbaf3b8SDamjan JovanovicVISIBILITY_HIDDEN=TRUE
31cdf0e10cSrcweir
32cdf0e10cSrcweir# not strictly a bootstrap service but containing
33cdf0e10cSrcweir# bootstrap code that may require generated files
34cdf0e10cSrcweir# without "-L" (light) switch
35cdf0e10cSrcweirBOOTSTRAP_SERVICE=TRUE
36cdf0e10cSrcweir
37a4523a2bSJim Jagielski.IF "$(OS)" != "WNT" && "$(GUI)"!="OS2" && "$(OS)" != "MACOSX"
38cdf0e10cSrcweirUNIXVERSIONNAMES=UDK
39a4523a2bSJim Jagielski.ENDIF # WNT OS2 MACOSX
40cdf0e10cSrcweir
41cdf0e10cSrcweir# --- Settings -----------------------------------------------------
42cdf0e10cSrcweir
43cdf0e10cSrcweir.INCLUDE :  settings.mk
44cdf0e10cSrcweir
45cdf0e10cSrcweir# --- Files --------------------------------------------------------
46cdf0e10cSrcweir
47cdf0e10cSrcweirUNOUCRRDB=$(SOLARBINDIR)$/udkapi.rdb
48cdf0e10cSrcweirUNOUCRDEP=$(UNOUCRRDB)
49cdf0e10cSrcweirUNOUCROUT=$(OUT)$/inc$/$(TARGET)
50cdf0e10cSrcweirINCPRE+=$(OUT)$/inc$/$(TARGET) $(OUT)$/inc$/private
51cdf0e10cSrcweir
52cdf0e10cSrcweirCPPUMAKERFLAGS= -C
53cdf0e10cSrcweir
54cdf0e10cSrcweirUNOTYPES= \
55cdf0e10cSrcweir		com.sun.star.beans.PropertyAttribute \
56cdf0e10cSrcweir		com.sun.star.beans.PropertyValue \
57cdf0e10cSrcweir		com.sun.star.beans.XFastPropertySet \
58cdf0e10cSrcweir		com.sun.star.beans.XMultiPropertySet \
59cdf0e10cSrcweir		com.sun.star.beans.XPropertyAccess \
60cdf0e10cSrcweir		com.sun.star.beans.XPropertySet \
61cdf0e10cSrcweir		com.sun.star.bridge.UnoUrlResolver \
62cdf0e10cSrcweir		com.sun.star.bridge.XUnoUrlResolver \
63cdf0e10cSrcweir		com.sun.star.connection.SocketPermission \
6452046e16SHerbert Dürr		com.sun.star.container.XContentEnumerationAccess \
65cdf0e10cSrcweir		com.sun.star.container.XElementAccess \
66cdf0e10cSrcweir		com.sun.star.container.XEnumerationAccess \
67cdf0e10cSrcweir		com.sun.star.container.XHierarchicalNameAccess \
68cdf0e10cSrcweir		com.sun.star.container.XNameAccess \
69c52956d9SHerbert Dürr		com.sun.star.container.XNameReplace \
70cdf0e10cSrcweir		com.sun.star.container.XNameContainer \
71cdf0e10cSrcweir		com.sun.star.container.XSet \
72cdf0e10cSrcweir		com.sun.star.io.FilePermission \
73cdf0e10cSrcweir		com.sun.star.io.IOException \
74cdf0e10cSrcweir		com.sun.star.lang.DisposedException \
75cdf0e10cSrcweir		com.sun.star.lang.WrappedTargetRuntimeException \
76cdf0e10cSrcweir		com.sun.star.lang.XComponent \
77cdf0e10cSrcweir		com.sun.star.lang.XEventListener \
78cdf0e10cSrcweir		com.sun.star.lang.XInitialization \
79cdf0e10cSrcweir		com.sun.star.lang.XMultiComponentFactory \
80cdf0e10cSrcweir		com.sun.star.lang.XMultiServiceFactory \
81cdf0e10cSrcweir		com.sun.star.lang.XServiceInfo \
82cdf0e10cSrcweir		com.sun.star.lang.XSingleComponentFactory \
83cdf0e10cSrcweir		com.sun.star.lang.XSingleServiceFactory \
84caff391cSHerbert Dürr		com.sun.star.lang.XUnoTunnel \
85cdf0e10cSrcweir		com.sun.star.lang.XTypeProvider \
86cdf0e10cSrcweir		com.sun.star.loader.XImplementationLoader \
87cdf0e10cSrcweir		com.sun.star.reflection.XArrayTypeDescription \
88cdf0e10cSrcweir		com.sun.star.reflection.XCompoundTypeDescription \
89cdf0e10cSrcweir		com.sun.star.reflection.XEnumTypeDescription \
90cdf0e10cSrcweir		com.sun.star.reflection.XIdlClass \
91cdf0e10cSrcweir		com.sun.star.reflection.XIdlClassProvider \
92cdf0e10cSrcweir		com.sun.star.reflection.XIdlField2 \
93cdf0e10cSrcweir		com.sun.star.reflection.XIdlReflection \
94cdf0e10cSrcweir		com.sun.star.reflection.XIndirectTypeDescription \
95cdf0e10cSrcweir		com.sun.star.reflection.XInterfaceAttributeTypeDescription \
96cdf0e10cSrcweir		com.sun.star.reflection.XInterfaceAttributeTypeDescription2 \
97cdf0e10cSrcweir		com.sun.star.reflection.XInterfaceMemberTypeDescription \
98cdf0e10cSrcweir		com.sun.star.reflection.XInterfaceMethodTypeDescription \
99cdf0e10cSrcweir		com.sun.star.reflection.XInterfaceTypeDescription2 \
100cdf0e10cSrcweir		com.sun.star.reflection.XMethodParameter \
101cdf0e10cSrcweir		com.sun.star.reflection.XStructTypeDescription \
102cdf0e10cSrcweir		com.sun.star.reflection.XTypeDescription \
103cdf0e10cSrcweir		com.sun.star.reflection.XUnionTypeDescription \
104cdf0e10cSrcweir		com.sun.star.registry.XImplementationRegistration \
105cdf0e10cSrcweir		com.sun.star.registry.XRegistryKey \
106cdf0e10cSrcweir		com.sun.star.registry.XSimpleRegistry \
107cdf0e10cSrcweir		com.sun.star.security.RuntimePermission \
108cdf0e10cSrcweir		com.sun.star.security.XAccessController \
109cdf0e10cSrcweir		com.sun.star.uno.DeploymentException \
110cdf0e10cSrcweir		com.sun.star.uno.RuntimeException \
111cdf0e10cSrcweir		com.sun.star.uno.XAggregation \
112cdf0e10cSrcweir		com.sun.star.uno.XComponentContext \
113cdf0e10cSrcweir		com.sun.star.uno.XCurrentContext \
114cdf0e10cSrcweir		com.sun.star.uno.XUnloadingPreference \
115cdf0e10cSrcweir		com.sun.star.uno.XWeak \
116cdf0e10cSrcweir		com.sun.star.util.XMacroExpander
117cdf0e10cSrcweir
118cdf0e10cSrcweir.IF "$(debug)" != ""
119cdf0e10cSrcweir# msvc++: no inlining for debugging
120cdf0e10cSrcweir.IF "$(COM)" == "MSC"
121cdf0e10cSrcweirCFLAGS += -Ob0
122cdf0e10cSrcweir.ENDIF
123cdf0e10cSrcweir.ENDIF
124cdf0e10cSrcweir
125ebbaf3b8SDamjan JovanovicCFLAGS += -DCPPUHELPER_DLLIMPLEMENTATION
126ebbaf3b8SDamjan Jovanovic
127cdf0e10cSrcweirSLOFILES= \
128cdf0e10cSrcweir		$(SLO)$/typeprovider.obj 	\
129cdf0e10cSrcweir		$(SLO)$/exc_thrower.obj 	\
130cdf0e10cSrcweir		$(SLO)$/servicefactory.obj 	\
131cdf0e10cSrcweir		$(SLO)$/bootstrap.obj 		\
132caff391cSHerbert Dürr		$(SLO)$/primeweak.obj 		\
133cdf0e10cSrcweir		$(SLO)$/implbase.obj 		\
134cdf0e10cSrcweir		$(SLO)$/implbase_ex.obj 	\
135cdf0e10cSrcweir		$(SLO)$/propshlp.obj 		\
136cdf0e10cSrcweir		$(SLO)$/weak.obj		\
137cdf0e10cSrcweir		$(SLO)$/interfacecontainer.obj	\
138cdf0e10cSrcweir		$(SLO)$/stdidlclass.obj 	\
139cdf0e10cSrcweir		$(SLO)$/factory.obj		\
140cdf0e10cSrcweir		$(SLO)$/component_context.obj	\
141cdf0e10cSrcweir		$(SLO)$/component.obj		\
142cdf0e10cSrcweir		$(SLO)$/shlib.obj		\
143cdf0e10cSrcweir		$(SLO)$/tdmgr.obj		\
144cdf0e10cSrcweir		$(SLO)$/implementationentry.obj	\
145cdf0e10cSrcweir		$(SLO)$/access_control.obj	\
146cdf0e10cSrcweir		$(SLO)$/macro_expander.obj \
147cdf0e10cSrcweir	        $(SLO)$/unourl.obj \
148cdf0e10cSrcweir		$(SLO)$/propertysetmixin.obj \
149cdf0e10cSrcweir        $(SLO)$/findsofficepath.obj
150cdf0e10cSrcweir
151cdf0e10cSrcweirOBJFILES = $(OBJ)$/findsofficepath.obj
152cdf0e10cSrcweir
153cdf0e10cSrcweir.IF "$(GUI)" == "WNT"
154cdf0e10cSrcweirSHL1TARGET=$(TARGET)$(UDK_MAJOR)$(COMID)
155cdf0e10cSrcweir.ELIF "$(GUI)" == "OS2"
156cdf0e10cSrcweirSHL1TARGET=cppuh$(UDK_MAJOR)
157cdf0e10cSrcweir.ELSE
158cdf0e10cSrcweirSHL1TARGET=uno_$(TARGET)$(COMID)
159cdf0e10cSrcweir.ENDIF
160cdf0e10cSrcweir
161cdf0e10cSrcweirSHL1STDLIBS= \
162cdf0e10cSrcweir		$(SALLIB)		\
163cdf0e10cSrcweir		$(SALHELPERLIB)	\
164cdf0e10cSrcweir		$(CPPULIB)
165cdf0e10cSrcweir.IF "$(OS)" == "WNT"
166cdf0e10cSrcweirSHL1STDLIBS += $(ADVAPI32LIB)
167cdf0e10cSrcweir.ENDIF
168cdf0e10cSrcweir
169cdf0e10cSrcweirSHL1DEPN=
170cdf0e10cSrcweirSHL1IMPLIB=i$(TARGET)
171cdf0e10cSrcweirSHL1OBJS = $(SLOFILES)
172cdf0e10cSrcweirSHL1RPATH=URELIB
173cdf0e10cSrcweir
174cdf0e10cSrcweirSHL1DEF=$(MISC)$/$(SHL1TARGET).def
175cdf0e10cSrcweir
176cdf0e10cSrcweirDEF1NAME=$(SHL1TARGET)
177cdf0e10cSrcweir
17843e02c03SDamjan Jovanovic.IF "$(COMNAME)"=="msci"
179ebbaf3b8SDamjan Jovanovic.ELIF "$(COMNAME)"=="mscx"
18043e02c03SDamjan Jovanovic.ELIF "$(COMNAME)"=="sunpro5"
181cdf0e10cSrcweirSHL1VERSIONMAP=cc5_solaris_sparc.map
182cdf0e10cSrcweir.ELIF "$(GUI)$(COMNAME)"=="OS2gcc3"
183cdf0e10cSrcweirSHL1VERSIONMAP=gcc3os2.map
184caff391cSHerbert Dürr.ELSE
185*37ec910aSJim Jagielski.IF "$(OS)" != "MACOSX"
186cdf0e10cSrcweirSHL1VERSIONMAP=gcc3.map
187cdf0e10cSrcweir.ENDIF
188*37ec910aSJim Jagielski.ENDIF
189cdf0e10cSrcweir
190cdf0e10cSrcweir# --- Targets ------------------------------------------------------
191cdf0e10cSrcweir
192cdf0e10cSrcweir.IF "$(diag)"!=""
193cdf0e10cSrcweirCFLAGS += -DDIAG=$(diag)
194cdf0e10cSrcweir.ENDIF
195cdf0e10cSrcweir
196cdf0e10cSrcweir.INCLUDE :	target.mk
197