xref: /aoo41x/main/vcl/util/makefile.mk (revision fcb37b40)
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
23cdf0e10cSrcweir
24cdf0e10cSrcweirPRJ=..
25cdf0e10cSrcweir
26cdf0e10cSrcweirPRJNAME=vcl
27cdf0e10cSrcweirTARGET=vcl
28cdf0e10cSrcweirTARGETTYPE=GUI
29cdf0e10cSrcweirUSE_DEFFILE=TRUE
30cdf0e10cSrcweirGEN_HID_OTHER=TRUE
31cdf0e10cSrcweir
32cdf0e10cSrcweir.IF "$(SNDFILE_LIBS)"!=""
33cdf0e10cSrcweirSNDFILELIB=$(SNDFILE_LIBS)
34cdf0e10cSrcweir.ENDIF
35cdf0e10cSrcweir
36cdf0e10cSrcweir# --- Settings -----------------------------------------------------------
37cdf0e10cSrcweir
38cdf0e10cSrcweir.INCLUDE :  settings.mk
39cdf0e10cSrcweir.INCLUDE :  makefile.pmk
40cdf0e10cSrcweir.INCLUDE :  makefile2.pmk
41cdf0e10cSrcweir
42cdf0e10cSrcweir.IF "$(OS)" == "SOLARIS"
43cdf0e10cSrcweir.IF "$(CPUNAME)" == "SPARC" && "$(CPU)" == "U"
44cdf0e10cSrcweirLINKFLAGSRUNPATH_OOO := -R/usr/sfw/lib/64 $(LINKFLAGSRUNPATH_OOO)
45cdf0e10cSrcweir.ELSE
46cdf0e10cSrcweirLINKFLAGSRUNPATH_OOO := -R/usr/sfw/lib $(LINKFLAGSRUNPATH_OOO)
47cdf0e10cSrcweir.ENDIF
48cdf0e10cSrcweir.ENDIF
49cdf0e10cSrcweir
50cdf0e10cSrcweir# --- Allgemein ----------------------------------------------------------
51cdf0e10cSrcweir
52cdf0e10cSrcweirHXXDEPNLST= $(INC)$/vcl$/accel.hxx       \
53cdf0e10cSrcweir            $(INC)$/vcl$/animate.hxx     \
54cdf0e10cSrcweir            $(INC)$/vcl$/apptypes.hxx    \
55cdf0e10cSrcweir            $(INC)$/vcl$/bitmap.hxx      \
56cdf0e10cSrcweir            $(INC)$/vcl$/bitmapex.hxx    \
57cdf0e10cSrcweir            $(INC)$/vcl$/bmpacc.hxx      \
58cdf0e10cSrcweir            $(INC)$/vcl$/btndlg.hxx      \
59cdf0e10cSrcweir            $(INC)$/vcl$/button.hxx      \
60cdf0e10cSrcweir            $(INC)$/vcl$/ctrl.hxx        \
61cdf0e10cSrcweir            $(INC)$/vcl$/cursor.hxx      \
62cdf0e10cSrcweir            $(INC)$/vcl$/cmdevt.hxx      \
63cdf0e10cSrcweir            $(INC)$/vcl$/decoview.hxx    \
64cdf0e10cSrcweir            $(INC)$/vcl$/dialog.hxx      \
65cdf0e10cSrcweir            $(INC)$/vcl$/dllapi.h        \
66cdf0e10cSrcweir            $(INC)$/vcl$/dockwin.hxx     \
67cdf0e10cSrcweir            $(INC)$/vcl$/edit.hxx        \
68cdf0e10cSrcweir            $(INC)$/vcl$/event.hxx       \
69cdf0e10cSrcweir            $(INC)$/vcl$/field.hxx       \
70cdf0e10cSrcweir            $(INC)$/vcl$/fixed.hxx       \
71cdf0e10cSrcweir            $(INC)$/vcl$/floatwin.hxx    \
72cdf0e10cSrcweir            $(INC)$/vcl$/font.hxx        \
73cdf0e10cSrcweir            $(INC)$/vcl$/floatwin.hxx    \
74cdf0e10cSrcweir            $(INC)$/vcl$/graph.hxx       \
75cdf0e10cSrcweir            $(INC)$/vcl$/group.hxx       \
76cdf0e10cSrcweir            $(INC)$/vcl$/help.hxx        \
77cdf0e10cSrcweir            $(INC)$/vcl$/jobset.hxx      \
78cdf0e10cSrcweir            $(INC)$/vcl$/keycodes.hxx    \
79cdf0e10cSrcweir            $(INC)$/vcl$/keycod.hxx      \
80cdf0e10cSrcweir            $(INC)$/vcl$/image.hxx       \
81cdf0e10cSrcweir            $(INC)$/vcl$/lstbox.h             \
82cdf0e10cSrcweir            $(INC)$/vcl$/lstbox.hxx      \
83cdf0e10cSrcweir            $(INC)$/vcl$/mapmod.hxx      \
84cdf0e10cSrcweir            $(INC)$/vcl$/metaact.hxx     \
85cdf0e10cSrcweir            $(INC)$/vcl$/menu.hxx        \
86cdf0e10cSrcweir            $(INC)$/vcl$/menubtn.hxx     \
87cdf0e10cSrcweir            $(INC)$/vcl$/metric.hxx      \
88cdf0e10cSrcweir            $(INC)$/vcl$/morebtn.hxx     \
89cdf0e10cSrcweir            $(INC)$/vcl$/msgbox.hxx      \
90cdf0e10cSrcweir            $(INC)$/vcl$/octree.hxx      \
91cdf0e10cSrcweir            $(INC)$/vcl$/outdev.hxx      \
92cdf0e10cSrcweir            $(INC)$/vcl$/pointr.hxx      \
93cdf0e10cSrcweir            $(INC)$/vcl$/ptrstyle.hxx    \
94cdf0e10cSrcweir            $(INC)$/vcl$/prntypes.hxx    \
95cdf0e10cSrcweir            $(INC)$/vcl$/print.hxx       \
96cdf0e10cSrcweir            $(INC)$/vcl$/prndlg.hxx      \
97cdf0e10cSrcweir            $(INC)$/vcl$/region.hxx      \
98cdf0e10cSrcweir            $(INC)$/vcl$/salbtype.hxx    \
99cdf0e10cSrcweir            $(INC)$/vcl$/scrbar.hxx      \
100cdf0e10cSrcweir            $(INC)$/vcl$/slider.hxx      \
101cdf0e10cSrcweir            $(INC)$/vcl$/seleng.hxx      \
102cdf0e10cSrcweir            $(INC)$/vcl$/settings.hxx    \
103cdf0e10cSrcweir            $(INC)$/vcl$/sound.hxx       \
104cdf0e10cSrcweir            $(INC)$/vcl$/sndstyle.hxx    \
105cdf0e10cSrcweir            $(INC)$/vcl$/split.hxx       \
106cdf0e10cSrcweir            $(INC)$/vcl$/splitwin.hxx    \
107cdf0e10cSrcweir            $(INC)$/vcl$/spin.hxx        \
108cdf0e10cSrcweir            $(INC)$/vcl$/spinfld.hxx     \
109cdf0e10cSrcweir            $(INC)$/vcl$/status.hxx      \
110cdf0e10cSrcweir            $(INC)$/vcl$/stdtext.hxx     \
111cdf0e10cSrcweir            $(INC)$/vcl$/sv.h            \
112cdf0e10cSrcweir            $(INC)$/vcl$/svapp.hxx       \
113cdf0e10cSrcweir            $(INC)$/vcl$/syschild.hxx    \
114cdf0e10cSrcweir            $(INC)$/vcl$/sysdata.hxx     \
115cdf0e10cSrcweir            $(INC)$/vcl$/syswin.hxx      \
116cdf0e10cSrcweir            $(INC)$/vcl$/tabctrl.hxx     \
117cdf0e10cSrcweir            $(INC)$/vcl$/tabdlg.hxx      \
118cdf0e10cSrcweir            $(INC)$/vcl$/tabpage.hxx     \
119cdf0e10cSrcweir            $(INC)$/vcl$/toolbox.hxx     \
120cdf0e10cSrcweir            $(INC)$/vcl$/timer.hxx       \
121cdf0e10cSrcweir            $(INC)$/vcl$/virdev.hxx      \
122cdf0e10cSrcweir            $(INC)$/vcl$/wall.hxx        \
123cdf0e10cSrcweir            $(INC)$/vcl$/waitobj.hxx     \
124cdf0e10cSrcweir            $(INC)$/vcl$/window.hxx      \
125cdf0e10cSrcweir            $(INC)$/vcl$/wrkwin.hxx
126cdf0e10cSrcweir
127cdf0e10cSrcweir.IF "$(linkinc)" != ""
128cdf0e10cSrcweirSHL11FILE=  $(MISC)$/app.slo
129cdf0e10cSrcweirSHL12FILE=  $(MISC)$/gdi.slo
130cdf0e10cSrcweirSHL13FILE=  $(MISC)$/win.slo
131cdf0e10cSrcweirSHL14FILE=  $(MISC)$/ctrl.slo
132cdf0e10cSrcweir#SHL15FILE=  $(MISC)$/ex.slo
133cdf0e10cSrcweirSHL16FILE=  $(MISC)$/salapp.slo
134cdf0e10cSrcweirSHL17FILE=  $(MISC)$/salwin.slo
135cdf0e10cSrcweirSHL18FILE=  $(MISC)$/salgdi.slo
136cdf0e10cSrcweir.ENDIF
137cdf0e10cSrcweir
138cdf0e10cSrcweirLIB1TARGET= $(SLB)$/$(TARGET).lib
139cdf0e10cSrcweirLIB1FILES=  $(SLB)$/app.lib         \
140cdf0e10cSrcweir            $(SLB)$/gdi.lib         \
141cdf0e10cSrcweir            $(SLB)$/win.lib         \
142cdf0e10cSrcweir            $(SLB)$/ctrl.lib        \
143cdf0e10cSrcweir            $(SLB)$/helper.lib	    \
144cdf0e10cSrcweir            $(SLB)$/fontsubset.lib  \
145cdf0e10cSrcweir            $(SLB)$/components.lib
146cdf0e10cSrcweir
147cdf0e10cSrcweir.IF "$(GUI)" == "UNX" && "$(GUIBASE)"!="aqua"
148cdf0e10cSrcweirLIB1FILES+= $(SLB)$/salplug.lib  \
149cdf0e10cSrcweir            $(SLB)$/fontman.lib  \
150cdf0e10cSrcweir            $(SLB)$/printer.lib
151cdf0e10cSrcweir.ELSE
152cdf0e10cSrcweirLIB1FILES+= \
153cdf0e10cSrcweir            $(SLB)$/salwin.lib  \
154cdf0e10cSrcweir            $(SLB)$/salgdi.lib  \
155cdf0e10cSrcweir            $(SLB)$/salapp.lib
156cdf0e10cSrcweir.IF "$(GUIBASE)" == "aqua"
157cdf0e10cSrcweirLIB1FILES+= $(SLB)$/dtransaqua.lib
158cdf0e10cSrcweir.ENDIF
159cdf0e10cSrcweir.ENDIF
160cdf0e10cSrcweir
161cdf0e10cSrcweirSHL1TARGET= vcl$(DLLPOSTFIX)
162cdf0e10cSrcweirSHL1IMPLIB= ivcl
163cdf0e10cSrcweirSHL1STDLIBS+=\
164cdf0e10cSrcweir            $(SOTLIB)           \
165cdf0e10cSrcweir            $(UNOTOOLSLIB)      \
166cdf0e10cSrcweir            $(TOOLSLIB)         \
167cdf0e10cSrcweir            $(I18NPAPERLIB)     \
168cdf0e10cSrcweir            $(I18NISOLANGLIB)   \
169cdf0e10cSrcweir            $(I18NUTILLIB)      \
170cdf0e10cSrcweir            $(COMPHELPERLIB)	\
171cdf0e10cSrcweir            $(UCBHELPERLIB)     \
172cdf0e10cSrcweir            $(CPPUHELPERLIB)    \
173cdf0e10cSrcweir            $(CPPULIB)          \
174cdf0e10cSrcweir            $(VOSLIB)           \
175cdf0e10cSrcweir            $(SALLIB)			\
176cdf0e10cSrcweir            $(BASEGFXLIB)		\
177cdf0e10cSrcweir            $(ICUUCLIB)			\
178cdf0e10cSrcweir			$(ICUDATALIB)		\
179cdf0e10cSrcweir            $(ICULELIB)			\
180cdf0e10cSrcweir			$(JVMACCESSLIB)
181cdf0e10cSrcweir
182cdf0e10cSrcweir.IF "$(GUI)" == "UNX"
183cdf0e10cSrcweir.IF "$(ENABLE_GRAPHITE)" != ""
184cdf0e10cSrcweir.IF "$(SYSTEM_GRAPHITE)" == "YES"
185cdf0e10cSrcweirSHL1STDLIBS+= $(GRAPHITE_LIBS)
186cdf0e10cSrcweir.ELSE
187cdf0e10cSrcweirSHL1STDLIBS+= $(SOLARVERSION)/$(INPATH)/lib$(UPDMINOREXT)/libgraphite.a
188cdf0e10cSrcweir.ENDIF
189cdf0e10cSrcweir.ENDIF
190cdf0e10cSrcweir.ENDIF
191cdf0e10cSrcweirSHL1USE_EXPORTS=name
192cdf0e10cSrcweir
193cdf0e10cSrcweir.IF "$(GUIBASE)"=="aqua"
194cdf0e10cSrcweirSHL1STDLIBS+= \
195cdf0e10cSrcweir	$(BASEBMPLIB) \
196*5a7504daSHerbert Dürr	-lAppleRemote$(DLLPOSTFIX)
197*5a7504daSHerbert Dürr
198cdf0e10cSrcweirLIB1FILES+= \
199cdf0e10cSrcweir            $(SLB)$/sala11y.lib
200cdf0e10cSrcweir.ENDIF
201cdf0e10cSrcweir
202cdf0e10cSrcweir.IF "$(USE_BUILTIN_RASTERIZER)"!=""
203cdf0e10cSrcweir    LIB1FILES +=    $(SLB)$/glyphs.lib
204cdf0e10cSrcweir    SHL1STDLIBS+=   $(FREETYPELIB)
205cdf0e10cSrcweir.ELSE
206cdf0e10cSrcweir.IF "$(ENABLE_GRAPHITE)" == "TRUE"
207cdf0e10cSrcweir    LIB1FILES +=    $(SLB)$/glyphs.lib
208cdf0e10cSrcweir.ENDIF
209cdf0e10cSrcweir.ENDIF # USE_BUILTIN_RASTERIZER
210cdf0e10cSrcweir
211cdf0e10cSrcweirSHL1LIBS=   $(LIB1TARGET)
212cdf0e10cSrcweir.IF "$(GUI)"!="UNX"
213cdf0e10cSrcweir.IF "$(COM)"!="GCC"
214cdf0e10cSrcweir#SHL1OBJS=   $(SLO)$/salshl.obj
215cdf0e10cSrcweir.ENDIF
216cdf0e10cSrcweir.ENDIF
217cdf0e10cSrcweir
218cdf0e10cSrcweir.IF "$(GUI)" != "UNX"
219cdf0e10cSrcweirSHL1RES=    $(RES)$/salsrc.res
220cdf0e10cSrcweir.ENDIF
221cdf0e10cSrcweir
222cdf0e10cSrcweirSHL1DEF=    $(MISC)$/$(SHL1TARGET).def
223cdf0e10cSrcweir
224cdf0e10cSrcweirDEF1NAME    =$(SHL1TARGET)
225cdf0e10cSrcweirDEF1DEPN    =   $(HXXDEPNLST) \
226cdf0e10cSrcweir                $(LIB1TARGET)
227cdf0e10cSrcweirDEF1DES     =VCL
228cdf0e10cSrcweirDEFLIB1NAME =vcl
229cdf0e10cSrcweir
230cdf0e10cSrcweir# --- W32 ----------------------------------------------------------------
231cdf0e10cSrcweir
232cdf0e10cSrcweir.IF "$(GUI)" == "WNT"
233cdf0e10cSrcweir
234cdf0e10cSrcweir.IF "$(ENABLE_GRAPHITE)" == "TRUE"
235cdf0e10cSrcweir.IF "$(COM)" == "GCC"
236cdf0e10cSrcweirSHL1STDLIBS += -lgraphite
237cdf0e10cSrcweir.ELSE
238cdf0e10cSrcweirSHL1STDLIBS += graphite_dll.lib
239cdf0e10cSrcweir.ENDIF
240cdf0e10cSrcweir.ENDIF
241cdf0e10cSrcweir
242cdf0e10cSrcweirSHL1STDLIBS += $(UWINAPILIB)      \
243cdf0e10cSrcweir               $(GDI32LIB)        \
244cdf0e10cSrcweir			   $(GDIPLUSLIB)	  \
245cdf0e10cSrcweir               $(MSIMG32LIB)      \
246cdf0e10cSrcweir               $(WINSPOOLLIB)     \
247cdf0e10cSrcweir               $(OLE32LIB)        \
248cdf0e10cSrcweir               $(SHELL32LIB)      \
249cdf0e10cSrcweir               $(ADVAPI32LIB)
250cdf0e10cSrcweir
251cdf0e10cSrcweirSHL1STDLIBS += $(IMM32LIB)
252cdf0e10cSrcweir
253cdf0e10cSrcweir.IF "$(GUI)$(COM)$(CPU)" == "WNTMSCI"
254cdf0e10cSrcweirLINKFLAGSSHL += /ENTRY:LibMain@12
255cdf0e10cSrcweir.ENDIF
256cdf0e10cSrcweir.ENDIF
257cdf0e10cSrcweir
258cdf0e10cSrcweir# --- OS2 ----------------------------------------------------------------
259cdf0e10cSrcweir
260cdf0e10cSrcweir.IF "$(GUI)" == "OS2"
261cdf0e10cSrcweirSTDSHL1 += ft2lib.lib
262cdf0e10cSrcweir.ENDIF
263cdf0e10cSrcweir
264cdf0e10cSrcweir# --- UNX ----------------------------------------------------------------
265cdf0e10cSrcweir
266cdf0e10cSrcweir# UNX sal plugins
267cdf0e10cSrcweir.IF "$(GUI)" == "UNX" && "$(GUIBASE)" != "aqua"
268cdf0e10cSrcweir
269cdf0e10cSrcweir# desktop detector
270cdf0e10cSrcweirLIB7TARGET=$(SLB)$/idet
271cdf0e10cSrcweirLIB7FILES=$(SLB)$/dtdetect.lib
272cdf0e10cSrcweirSHL7TARGET=desktop_detector$(DLLPOSTFIX)
273cdf0e10cSrcweirSHL7STDLIBS=\
274cdf0e10cSrcweir            $(SALLIB) \
275cdf0e10cSrcweir            $(X11LINK_DYNAMIC)
276cdf0e10cSrcweirSHL7IMPLIB=idet
277cdf0e10cSrcweirSHL7LIBS=$(LIB7TARGET)
278cdf0e10cSrcweir
279cdf0e10cSrcweir# basic pure X11 plugin
280cdf0e10cSrcweirLIB2TARGET=$(SLB)$/ipure_x
281cdf0e10cSrcweirLIB2FILES= \
282cdf0e10cSrcweir            $(SLB)$/dtransX11.lib  \
283cdf0e10cSrcweir            $(SLB)$/printergfx.lib  \
284cdf0e10cSrcweir            $(SLB)$/salwin.lib  \
285cdf0e10cSrcweir            $(SLB)$/salgdi.lib  \
286cdf0e10cSrcweir            $(SLB)$/salapp.lib
287cdf0e10cSrcweirSHL2TARGET=vclplug_gen$(DLLPOSTFIX)
288cdf0e10cSrcweirSHL2IMPLIB=ipure_x
289cdf0e10cSrcweirSHL2LIBS=$(LIB2TARGET)
290cdf0e10cSrcweirSHL2DEPN=$(SHL1IMPLIBN) $(SHL1TARGETN)
291cdf0e10cSrcweir
292cdf0e10cSrcweir# libs for generic plugin
293cdf0e10cSrcweirSHL2STDLIBS=\
294cdf0e10cSrcweir			$(VCLLIB)\
295cdf0e10cSrcweir            $(I18NPAPERLIB)     \
296cdf0e10cSrcweir            $(I18NISOLANGLIB)     \
297cdf0e10cSrcweir            $(TOOLSLIB)         \
298cdf0e10cSrcweir            $(VOSLIB)           \
299cdf0e10cSrcweir            $(BASEGFXLIB)	\
300cdf0e10cSrcweir            $(UNOTOOLSLIB) \
301cdf0e10cSrcweir            $(COMPHELPERLIB)	\
302cdf0e10cSrcweir            $(CPPUHELPERLIB) \
303cdf0e10cSrcweir            $(CPPULIB) \
304cdf0e10cSrcweir            $(SALLIB)
305cdf0e10cSrcweir
306cdf0e10cSrcweir# prepare linking of Xinerama
307cdf0e10cSrcweir.IF "$(USE_XINERAMA)" != "NO"
308cdf0e10cSrcweir
309cdf0e10cSrcweir.IF "$(OS)"=="MACOSX" || "$(OS)$(CPU)" == "LINUXX"
310cdf0e10cSrcweirXINERAMALIBS=-lXinerama
311cdf0e10cSrcweir.ELSE
312cdf0e10cSrcweir.IF "$(OS)" != "SOLARIS" || "$(USE_XINERAMA_VERSION)" == "Xorg"
313cdf0e10cSrcweir.IF "$(XINERAMA_LINK)" == "dynamic"
314cdf0e10cSrcweirXINERAMALIBS= -lXinerama
315cdf0e10cSrcweir.ELSE
316cdf0e10cSrcweirXINERAMALIBS= -Wl,-Bstatic -lXinerama -Wl,-Bdynamic
317cdf0e10cSrcweir.ENDIF # XINERAMA_LINK == dynamic
318cdf0e10cSrcweir.ENDIF # OS == SOLARIS
319cdf0e10cSrcweir.ENDIF # OS == MACOSX
320cdf0e10cSrcweir
321cdf0e10cSrcweirSHL2STDLIBS += $(XINERAMALIBS)
322cdf0e10cSrcweir.ENDIF # USE_XINERAMA != NO
323cdf0e10cSrcweir
324cdf0e10cSrcweir.IF "$(XRENDER_LINK)" == "YES"
325cdf0e10cSrcweirSHL2STDLIBS+=`pkg-config --libs xrender`
326cdf0e10cSrcweir.ENDIF
327cdf0e10cSrcweir
328cdf0e10cSrcweir.IF "$(GUIBASE)"=="unx"
329cdf0e10cSrcweir
330cdf0e10cSrcweirSHL2STDLIBS += -lXext -lSM -lICE -lX11
331cdf0e10cSrcweir.IF "$(OS)"!="MACOSX" && "$(OS)"!="FREEBSD" && "$(OS)"!="NETBSD"
332cdf0e10cSrcweir# needed by salprnpsp.cxx
333cdf0e10cSrcweirSHL2STDLIBS+= -ldl
334cdf0e10cSrcweir.ENDIF
335cdf0e10cSrcweir
336cdf0e10cSrcweir.IF "$(ENABLE_RANDR)" != ""
337cdf0e10cSrcweir.IF "$(XRANDR_DLOPEN)" == "FALSE"
338cdf0e10cSrcweirSHL2STDLIBS+= $(XRANDR_LIBS)
339cdf0e10cSrcweir.ENDIF
340cdf0e10cSrcweir.ENDIF
341cdf0e10cSrcweir
342cdf0e10cSrcweir.ENDIF          # "$(GUIBASE)"=="unx"
343cdf0e10cSrcweir
344cdf0e10cSrcweir# gtk plugin
345cdf0e10cSrcweir.IF "$(ENABLE_GTK)" != ""
346cdf0e10cSrcweirPKGCONFIG_MODULES=gtk+-2.0 gthread-2.0
347cdf0e10cSrcweir.IF "$(ENABLE_DBUS)" != ""
348cdf0e10cSrcweirPKGCONFIG_MODULES+= dbus-glib-1
349cdf0e10cSrcweir.ENDIF
350cdf0e10cSrcweir.INCLUDE: pkg_config.mk
351cdf0e10cSrcweir
352cdf0e10cSrcweirLIB4TARGET=$(SLB)$/igtk_plug_
353cdf0e10cSrcweirLIB4FILES=\
354cdf0e10cSrcweir			$(SLB)$/gtkapp.lib\
355cdf0e10cSrcweir			$(SLB)$/gtka11y.lib \
356cdf0e10cSrcweir			$(SLB)$/gtkgdi.lib\
357cdf0e10cSrcweir			$(SLB)$/gtkwin.lib
358cdf0e10cSrcweir
359cdf0e10cSrcweirSHL4TARGET=vclplug_gtk$(DLLPOSTFIX)
360cdf0e10cSrcweirSHL4IMPLIB=igtk_plug_
361cdf0e10cSrcweirSHL4LIBS=$(LIB4TARGET)
362cdf0e10cSrcweirSHL4DEPN=$(SHL1IMPLIBN) $(SHL1TARGETN) $(SHL2IMPLIBN) $(SHL2TARGETN)
363cdf0e10cSrcweir# libs for gtk plugin
364cdf0e10cSrcweirSHL4STDLIBS+=$(PKGCONFIG_LIBS:s/ -lpangoxft-1.0//)
365cdf0e10cSrcweir# hack for faked SO environment
366cdf0e10cSrcweir.IF "$(PKGCONFIG_ROOT)"!=""
367cdf0e10cSrcweirSHL4SONAME+=-z nodefs
368cdf0e10cSrcweirSHL4NOCHECK=TRUE
369cdf0e10cSrcweir.ENDIF          # "$(PKGCONFIG_ROOT)"!=""
370cdf0e10cSrcweir
371cdf0e10cSrcweir
372cdf0e10cSrcweirSHL4STDLIBS+=-l$(SHL2TARGET)
373cdf0e10cSrcweirSHL4STDLIBS+=\
374cdf0e10cSrcweir            $(VCLLIB)		\
375cdf0e10cSrcweir            $(TOOLSLIB)         \
376cdf0e10cSrcweir            $(CPPUHELPERLIB)    \
377cdf0e10cSrcweir            $(CPPULIB)          \
378cdf0e10cSrcweir            $(VOSLIB)           \
379cdf0e10cSrcweir            $(SALLIB)           \
380cdf0e10cSrcweir            $(X11LINK_DYNAMIC)
381cdf0e10cSrcweir
382cdf0e10cSrcweir.IF "$(ENABLE_RANDR)" != ""
383cdf0e10cSrcweir.IF "$(XRANDR_DLOPEN)" == "FALSE"
384cdf0e10cSrcweirSHL4STDLIBS+= $(XRANDR_LIBS)
385cdf0e10cSrcweir.ENDIF
386cdf0e10cSrcweir.ENDIF
387cdf0e10cSrcweir
388cdf0e10cSrcweir.ENDIF # "$(ENABLE_GTK)" != ""
389cdf0e10cSrcweir
390cdf0e10cSrcweir# KDE plugin
391cdf0e10cSrcweir.IF "$(ENABLE_KDE)" != ""
392cdf0e10cSrcweir.IF "$(KDE_ROOT)"!=""
393cdf0e10cSrcweirEXTRALIBPATHS+=-L$(KDE_ROOT)$/lib
394cdf0e10cSrcweir.IF "$(OS)$(CPU)" == "LINUXX"
395cdf0e10cSrcweirEXTRALIBPATHS+=-L$(KDE_ROOT)$/lib64
396cdf0e10cSrcweir.ENDIF
397cdf0e10cSrcweir.ENDIF
398cdf0e10cSrcweirLIB5TARGET=$(SLB)$/ikde_plug_
399cdf0e10cSrcweirLIB5FILES=$(SLB)$/kdeplug.lib
400cdf0e10cSrcweirSHL5TARGET=vclplug_kde$(DLLPOSTFIX)
401cdf0e10cSrcweirSHL5IMPLIB=ikde_plug_
402cdf0e10cSrcweirSHL5LIBS=$(LIB5TARGET)
403cdf0e10cSrcweirSHL5DEPN=$(SHL2TARGETN)
404cdf0e10cSrcweir# libs for KDE plugin
405cdf0e10cSrcweirSHL5LINKFLAGS+=$(KDE_LIBS)
406cdf0e10cSrcweirSHL5STDLIBS+=-l$(SHL2TARGET)
407cdf0e10cSrcweirSHL5STDLIBS+=\
408cdf0e10cSrcweir        $(VCLLIB)       \
409cdf0e10cSrcweir        $(TOOLSLIB)     \
410cdf0e10cSrcweir        $(VOSLIB)       \
411cdf0e10cSrcweir        $(SALLIB)       \
412cdf0e10cSrcweir        $(X11LINK_DYNAMIC)
413cdf0e10cSrcweir
414cdf0e10cSrcweir.IF "$(ENABLE_RANDR)" != ""
415cdf0e10cSrcweir.IF "$(XRANDR_DLOPEN)" == "FALSE"
416cdf0e10cSrcweirSHL5STDLIBS+= $(XRANDR_LIBS)
417cdf0e10cSrcweir.ENDIF
418cdf0e10cSrcweir.ENDIF
419cdf0e10cSrcweir
420cdf0e10cSrcweir.ENDIF # "$(ENABLE_KDE)" != ""
421cdf0e10cSrcweir
422cdf0e10cSrcweir# KDE4 plugin
423cdf0e10cSrcweir.IF "$(ENABLE_KDE4)" != ""
424cdf0e10cSrcweir.IF "$(KDE4_ROOT)"!=""
425cdf0e10cSrcweirEXTRALIBPATHS+=-L$(KDE4_ROOT)$/lib
426cdf0e10cSrcweir.ENDIF
427cdf0e10cSrcweirLIB6TARGET=$(SLB)$/ikde4_plug_
428cdf0e10cSrcweirLIB6FILES=$(SLB)$/kde4plug.lib
429cdf0e10cSrcweirSHL6TARGET=vclplug_kde4$(DLLPOSTFIX)
430cdf0e10cSrcweirSHL6IMPLIB=ikde4_plug_
431cdf0e10cSrcweirSHL6LIBS=$(LIB6TARGET)
432cdf0e10cSrcweirSHL6DEPN=$(SHL2TARGETN)
433cdf0e10cSrcweir# libs for KDE4 plugin
434cdf0e10cSrcweirSHL6LINKFLAGS+=$(KDE4_LIBS)
435cdf0e10cSrcweirSHL6STDLIBS+=-l$(SHL2TARGET)
436cdf0e10cSrcweirSHL6STDLIBS+=\
437cdf0e10cSrcweir        $(VCLLIB)       \
438cdf0e10cSrcweir        $(PSPLIB)	\
439cdf0e10cSrcweir        $(TOOLSLIB)     \
440cdf0e10cSrcweir        $(VOSLIB)       \
441cdf0e10cSrcweir        $(SALLIB)   \
442cdf0e10cSrcweir        $(X11LINK_DYNAMIC)
443cdf0e10cSrcweir
444cdf0e10cSrcweir.IF "$(ENABLE_RANDR)" != ""
445cdf0e10cSrcweir.IF "$(XRANDR_DLOPEN)" == "FALSE"
446cdf0e10cSrcweirSHL6STDLIBS+= $(XRANDR_LIBS)
447cdf0e10cSrcweir.ENDIF
448cdf0e10cSrcweir.ENDIF
449cdf0e10cSrcweir
450cdf0e10cSrcweir.ENDIF # "$(ENABLE_KDE4)" != ""
451cdf0e10cSrcweir
452cdf0e10cSrcweir.ENDIF # UNX
453cdf0e10cSrcweir
454cdf0e10cSrcweir# --- Allgemein ----------------------------------------------------------
455cdf0e10cSrcweir
456cdf0e10cSrcweir.INCLUDE :  target.mk
457cdf0e10cSrcweir
458cdf0e10cSrcweirALLTAR : $(MISC)/vcl.component
459cdf0e10cSrcweir
460cdf0e10cSrcweir.IF "$(OS)" == "MACOSX"
461cdf0e10cSrcweirmy_platform = .macosx
462cdf0e10cSrcweir.ELIF "$(OS)" == "WNT"
463cdf0e10cSrcweirmy_platform = .windows
464cdf0e10cSrcweir.END
465cdf0e10cSrcweir
466cdf0e10cSrcweir$(MISC)/vcl.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
467cdf0e10cSrcweir        vcl.component
468cdf0e10cSrcweir    $(XSLTPROC) --nonet --stringparam uri \
469cdf0e10cSrcweir        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
470cdf0e10cSrcweir        $(SOLARENV)/bin/createcomponent.xslt vcl$(my_platform).component
471