xref: /aoo41x/main/vcl/util/makefile.mk (revision 7871dc3e)
1*7871dc3eSAndrew Rist#**************************************************************
2*7871dc3eSAndrew Rist#
3*7871dc3eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
4*7871dc3eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
5*7871dc3eSAndrew Rist#  distributed with this work for additional information
6*7871dc3eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
7*7871dc3eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
8*7871dc3eSAndrew Rist#  "License"); you may not use this file except in compliance
9*7871dc3eSAndrew Rist#  with the License.  You may obtain a copy of the License at
10*7871dc3eSAndrew Rist#
11*7871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
12*7871dc3eSAndrew Rist#
13*7871dc3eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
14*7871dc3eSAndrew Rist#  software distributed under the License is distributed on an
15*7871dc3eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*7871dc3eSAndrew Rist#  KIND, either express or implied.  See the License for the
17*7871dc3eSAndrew Rist#  specific language governing permissions and limitations
18*7871dc3eSAndrew Rist#  under the License.
19*7871dc3eSAndrew Rist#
20*7871dc3eSAndrew Rist#**************************************************************
21*7871dc3eSAndrew Rist
22*7871dc3eSAndrew 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) \
196cdf0e10cSrcweir	-lAppleRemote$(DLLPOSTFIX) \
197cdf0e10cSrcweir    -framework QuickTime
198cdf0e10cSrcweir
199cdf0e10cSrcweirLIB1FILES+= \
200cdf0e10cSrcweir            $(SLB)$/sala11y.lib
201cdf0e10cSrcweir.ENDIF
202cdf0e10cSrcweir
203cdf0e10cSrcweir.IF "$(USE_BUILTIN_RASTERIZER)"!=""
204cdf0e10cSrcweir    LIB1FILES +=    $(SLB)$/glyphs.lib
205cdf0e10cSrcweir    SHL1STDLIBS+=   $(FREETYPELIB)
206cdf0e10cSrcweir.ELSE
207cdf0e10cSrcweir.IF "$(ENABLE_GRAPHITE)" == "TRUE"
208cdf0e10cSrcweir    LIB1FILES +=    $(SLB)$/glyphs.lib
209cdf0e10cSrcweir.ENDIF
210cdf0e10cSrcweir.ENDIF # USE_BUILTIN_RASTERIZER
211cdf0e10cSrcweir
212cdf0e10cSrcweirSHL1LIBS=   $(LIB1TARGET)
213cdf0e10cSrcweir.IF "$(GUI)"!="UNX"
214cdf0e10cSrcweir.IF "$(COM)"!="GCC"
215cdf0e10cSrcweir#SHL1OBJS=   $(SLO)$/salshl.obj
216cdf0e10cSrcweir.ENDIF
217cdf0e10cSrcweir.ENDIF
218cdf0e10cSrcweir
219cdf0e10cSrcweir.IF "$(GUI)" != "UNX"
220cdf0e10cSrcweirSHL1RES=    $(RES)$/salsrc.res
221cdf0e10cSrcweir.ENDIF
222cdf0e10cSrcweir
223cdf0e10cSrcweirSHL1DEF=    $(MISC)$/$(SHL1TARGET).def
224cdf0e10cSrcweir
225cdf0e10cSrcweirDEF1NAME    =$(SHL1TARGET)
226cdf0e10cSrcweirDEF1DEPN    =   $(HXXDEPNLST) \
227cdf0e10cSrcweir                $(LIB1TARGET)
228cdf0e10cSrcweirDEF1DES     =VCL
229cdf0e10cSrcweirDEFLIB1NAME =vcl
230cdf0e10cSrcweir
231cdf0e10cSrcweir# --- W32 ----------------------------------------------------------------
232cdf0e10cSrcweir
233cdf0e10cSrcweir.IF "$(GUI)" == "WNT"
234cdf0e10cSrcweir
235cdf0e10cSrcweir.IF "$(ENABLE_GRAPHITE)" == "TRUE"
236cdf0e10cSrcweir.IF "$(COM)" == "GCC"
237cdf0e10cSrcweirSHL1STDLIBS += -lgraphite
238cdf0e10cSrcweir.ELSE
239cdf0e10cSrcweirSHL1STDLIBS += graphite_dll.lib
240cdf0e10cSrcweir.ENDIF
241cdf0e10cSrcweir.ENDIF
242cdf0e10cSrcweir
243cdf0e10cSrcweirSHL1STDLIBS += $(UWINAPILIB)      \
244cdf0e10cSrcweir               $(GDI32LIB)        \
245cdf0e10cSrcweir			   $(GDIPLUSLIB)	  \
246cdf0e10cSrcweir               $(MSIMG32LIB)      \
247cdf0e10cSrcweir               $(WINSPOOLLIB)     \
248cdf0e10cSrcweir               $(OLE32LIB)        \
249cdf0e10cSrcweir               $(SHELL32LIB)      \
250cdf0e10cSrcweir               $(ADVAPI32LIB)
251cdf0e10cSrcweir
252cdf0e10cSrcweirSHL1STDLIBS += $(IMM32LIB)
253cdf0e10cSrcweir
254cdf0e10cSrcweir.IF "$(GUI)$(COM)$(CPU)" == "WNTMSCI"
255cdf0e10cSrcweirLINKFLAGSSHL += /ENTRY:LibMain@12
256cdf0e10cSrcweir.ENDIF
257cdf0e10cSrcweir.ENDIF
258cdf0e10cSrcweir
259cdf0e10cSrcweir# --- OS2 ----------------------------------------------------------------
260cdf0e10cSrcweir
261cdf0e10cSrcweir.IF "$(GUI)" == "OS2"
262cdf0e10cSrcweirSTDSHL1 += ft2lib.lib
263cdf0e10cSrcweir.ENDIF
264cdf0e10cSrcweir
265cdf0e10cSrcweir# --- UNX ----------------------------------------------------------------
266cdf0e10cSrcweir
267cdf0e10cSrcweir# UNX sal plugins
268cdf0e10cSrcweir.IF "$(GUI)" == "UNX" && "$(GUIBASE)" != "aqua"
269cdf0e10cSrcweir
270cdf0e10cSrcweir# desktop detector
271cdf0e10cSrcweirLIB7TARGET=$(SLB)$/idet
272cdf0e10cSrcweirLIB7FILES=$(SLB)$/dtdetect.lib
273cdf0e10cSrcweirSHL7TARGET=desktop_detector$(DLLPOSTFIX)
274cdf0e10cSrcweirSHL7STDLIBS=\
275cdf0e10cSrcweir            $(SALLIB) \
276cdf0e10cSrcweir            $(X11LINK_DYNAMIC)
277cdf0e10cSrcweirSHL7IMPLIB=idet
278cdf0e10cSrcweirSHL7LIBS=$(LIB7TARGET)
279cdf0e10cSrcweir
280cdf0e10cSrcweir# basic pure X11 plugin
281cdf0e10cSrcweirLIB2TARGET=$(SLB)$/ipure_x
282cdf0e10cSrcweirLIB2FILES= \
283cdf0e10cSrcweir            $(SLB)$/dtransX11.lib  \
284cdf0e10cSrcweir            $(SLB)$/printergfx.lib  \
285cdf0e10cSrcweir            $(SLB)$/salwin.lib  \
286cdf0e10cSrcweir            $(SLB)$/salgdi.lib  \
287cdf0e10cSrcweir            $(SLB)$/salapp.lib
288cdf0e10cSrcweirSHL2TARGET=vclplug_gen$(DLLPOSTFIX)
289cdf0e10cSrcweirSHL2IMPLIB=ipure_x
290cdf0e10cSrcweirSHL2LIBS=$(LIB2TARGET)
291cdf0e10cSrcweirSHL2DEPN=$(SHL1IMPLIBN) $(SHL1TARGETN)
292cdf0e10cSrcweir
293cdf0e10cSrcweir# libs for generic plugin
294cdf0e10cSrcweirSHL2STDLIBS=\
295cdf0e10cSrcweir			$(VCLLIB)\
296cdf0e10cSrcweir            $(I18NPAPERLIB)     \
297cdf0e10cSrcweir            $(I18NISOLANGLIB)     \
298cdf0e10cSrcweir            $(TOOLSLIB)         \
299cdf0e10cSrcweir            $(VOSLIB)           \
300cdf0e10cSrcweir            $(BASEGFXLIB)	\
301cdf0e10cSrcweir            $(UNOTOOLSLIB) \
302cdf0e10cSrcweir            $(COMPHELPERLIB)	\
303cdf0e10cSrcweir            $(CPPUHELPERLIB) \
304cdf0e10cSrcweir            $(CPPULIB) \
305cdf0e10cSrcweir            $(SALLIB)
306cdf0e10cSrcweir
307cdf0e10cSrcweir# prepare linking of Xinerama
308cdf0e10cSrcweir.IF "$(USE_XINERAMA)" != "NO"
309cdf0e10cSrcweir
310cdf0e10cSrcweir.IF "$(OS)"=="MACOSX" || "$(OS)$(CPU)" == "LINUXX"
311cdf0e10cSrcweirXINERAMALIBS=-lXinerama
312cdf0e10cSrcweir.ELSE
313cdf0e10cSrcweir.IF "$(OS)" != "SOLARIS" || "$(USE_XINERAMA_VERSION)" == "Xorg"
314cdf0e10cSrcweir.IF "$(XINERAMA_LINK)" == "dynamic"
315cdf0e10cSrcweirXINERAMALIBS= -lXinerama
316cdf0e10cSrcweir.ELSE
317cdf0e10cSrcweirXINERAMALIBS= -Wl,-Bstatic -lXinerama -Wl,-Bdynamic
318cdf0e10cSrcweir.ENDIF # XINERAMA_LINK == dynamic
319cdf0e10cSrcweir.ENDIF # OS == SOLARIS
320cdf0e10cSrcweir.ENDIF # OS == MACOSX
321cdf0e10cSrcweir
322cdf0e10cSrcweirSHL2STDLIBS += $(XINERAMALIBS)
323cdf0e10cSrcweir.ENDIF # USE_XINERAMA != NO
324cdf0e10cSrcweir
325cdf0e10cSrcweir.IF "$(XRENDER_LINK)" == "YES"
326cdf0e10cSrcweirSHL2STDLIBS+=`pkg-config --libs xrender`
327cdf0e10cSrcweir.ENDIF
328cdf0e10cSrcweir
329cdf0e10cSrcweir.IF "$(GUIBASE)"=="unx"
330cdf0e10cSrcweir
331cdf0e10cSrcweirSHL2STDLIBS += -lXext -lSM -lICE -lX11
332cdf0e10cSrcweir.IF "$(OS)"!="MACOSX" && "$(OS)"!="FREEBSD" && "$(OS)"!="NETBSD"
333cdf0e10cSrcweir# needed by salprnpsp.cxx
334cdf0e10cSrcweirSHL2STDLIBS+= -ldl
335cdf0e10cSrcweir.ENDIF
336cdf0e10cSrcweir
337cdf0e10cSrcweir.IF "$(ENABLE_RANDR)" != ""
338cdf0e10cSrcweir.IF "$(XRANDR_DLOPEN)" == "FALSE"
339cdf0e10cSrcweirSHL2STDLIBS+= $(XRANDR_LIBS)
340cdf0e10cSrcweir.ENDIF
341cdf0e10cSrcweir.ENDIF
342cdf0e10cSrcweir
343cdf0e10cSrcweir.ENDIF          # "$(GUIBASE)"=="unx"
344cdf0e10cSrcweir
345cdf0e10cSrcweir# gtk plugin
346cdf0e10cSrcweir.IF "$(ENABLE_GTK)" != ""
347cdf0e10cSrcweirPKGCONFIG_MODULES=gtk+-2.0 gthread-2.0
348cdf0e10cSrcweir.IF "$(ENABLE_DBUS)" != ""
349cdf0e10cSrcweirPKGCONFIG_MODULES+= dbus-glib-1
350cdf0e10cSrcweir.ENDIF
351cdf0e10cSrcweir.INCLUDE: pkg_config.mk
352cdf0e10cSrcweir
353cdf0e10cSrcweirLIB4TARGET=$(SLB)$/igtk_plug_
354cdf0e10cSrcweirLIB4FILES=\
355cdf0e10cSrcweir			$(SLB)$/gtkapp.lib\
356cdf0e10cSrcweir			$(SLB)$/gtka11y.lib \
357cdf0e10cSrcweir			$(SLB)$/gtkgdi.lib\
358cdf0e10cSrcweir			$(SLB)$/gtkwin.lib
359cdf0e10cSrcweir
360cdf0e10cSrcweirSHL4TARGET=vclplug_gtk$(DLLPOSTFIX)
361cdf0e10cSrcweirSHL4IMPLIB=igtk_plug_
362cdf0e10cSrcweirSHL4LIBS=$(LIB4TARGET)
363cdf0e10cSrcweirSHL4DEPN=$(SHL1IMPLIBN) $(SHL1TARGETN) $(SHL2IMPLIBN) $(SHL2TARGETN)
364cdf0e10cSrcweir# libs for gtk plugin
365cdf0e10cSrcweirSHL4STDLIBS+=$(PKGCONFIG_LIBS:s/ -lpangoxft-1.0//)
366cdf0e10cSrcweir# hack for faked SO environment
367cdf0e10cSrcweir.IF "$(PKGCONFIG_ROOT)"!=""
368cdf0e10cSrcweirSHL4SONAME+=-z nodefs
369cdf0e10cSrcweirSHL4NOCHECK=TRUE
370cdf0e10cSrcweir.ENDIF          # "$(PKGCONFIG_ROOT)"!=""
371cdf0e10cSrcweir
372cdf0e10cSrcweir
373cdf0e10cSrcweirSHL4STDLIBS+=-l$(SHL2TARGET)
374cdf0e10cSrcweirSHL4STDLIBS+=\
375cdf0e10cSrcweir            $(VCLLIB)		\
376cdf0e10cSrcweir            $(TOOLSLIB)         \
377cdf0e10cSrcweir            $(CPPUHELPERLIB)    \
378cdf0e10cSrcweir            $(CPPULIB)          \
379cdf0e10cSrcweir            $(VOSLIB)           \
380cdf0e10cSrcweir            $(SALLIB)           \
381cdf0e10cSrcweir            $(X11LINK_DYNAMIC)
382cdf0e10cSrcweir
383cdf0e10cSrcweir.IF "$(ENABLE_RANDR)" != ""
384cdf0e10cSrcweir.IF "$(XRANDR_DLOPEN)" == "FALSE"
385cdf0e10cSrcweirSHL4STDLIBS+= $(XRANDR_LIBS)
386cdf0e10cSrcweir.ENDIF
387cdf0e10cSrcweir.ENDIF
388cdf0e10cSrcweir
389cdf0e10cSrcweir.ENDIF # "$(ENABLE_GTK)" != ""
390cdf0e10cSrcweir
391cdf0e10cSrcweir# KDE plugin
392cdf0e10cSrcweir.IF "$(ENABLE_KDE)" != ""
393cdf0e10cSrcweir.IF "$(KDE_ROOT)"!=""
394cdf0e10cSrcweirEXTRALIBPATHS+=-L$(KDE_ROOT)$/lib
395cdf0e10cSrcweir.IF "$(OS)$(CPU)" == "LINUXX"
396cdf0e10cSrcweirEXTRALIBPATHS+=-L$(KDE_ROOT)$/lib64
397cdf0e10cSrcweir.ENDIF
398cdf0e10cSrcweir.ENDIF
399cdf0e10cSrcweirLIB5TARGET=$(SLB)$/ikde_plug_
400cdf0e10cSrcweirLIB5FILES=$(SLB)$/kdeplug.lib
401cdf0e10cSrcweirSHL5TARGET=vclplug_kde$(DLLPOSTFIX)
402cdf0e10cSrcweirSHL5IMPLIB=ikde_plug_
403cdf0e10cSrcweirSHL5LIBS=$(LIB5TARGET)
404cdf0e10cSrcweirSHL5DEPN=$(SHL2TARGETN)
405cdf0e10cSrcweir# libs for KDE plugin
406cdf0e10cSrcweirSHL5LINKFLAGS+=$(KDE_LIBS)
407cdf0e10cSrcweirSHL5STDLIBS+=-l$(SHL2TARGET)
408cdf0e10cSrcweirSHL5STDLIBS+=\
409cdf0e10cSrcweir        $(VCLLIB)       \
410cdf0e10cSrcweir        $(TOOLSLIB)     \
411cdf0e10cSrcweir        $(VOSLIB)       \
412cdf0e10cSrcweir        $(SALLIB)       \
413cdf0e10cSrcweir        $(X11LINK_DYNAMIC)
414cdf0e10cSrcweir
415cdf0e10cSrcweir.IF "$(ENABLE_RANDR)" != ""
416cdf0e10cSrcweir.IF "$(XRANDR_DLOPEN)" == "FALSE"
417cdf0e10cSrcweirSHL5STDLIBS+= $(XRANDR_LIBS)
418cdf0e10cSrcweir.ENDIF
419cdf0e10cSrcweir.ENDIF
420cdf0e10cSrcweir
421cdf0e10cSrcweir.ENDIF # "$(ENABLE_KDE)" != ""
422cdf0e10cSrcweir
423cdf0e10cSrcweir# KDE4 plugin
424cdf0e10cSrcweir.IF "$(ENABLE_KDE4)" != ""
425cdf0e10cSrcweir.IF "$(KDE4_ROOT)"!=""
426cdf0e10cSrcweirEXTRALIBPATHS+=-L$(KDE4_ROOT)$/lib
427cdf0e10cSrcweir.ENDIF
428cdf0e10cSrcweirLIB6TARGET=$(SLB)$/ikde4_plug_
429cdf0e10cSrcweirLIB6FILES=$(SLB)$/kde4plug.lib
430cdf0e10cSrcweirSHL6TARGET=vclplug_kde4$(DLLPOSTFIX)
431cdf0e10cSrcweirSHL6IMPLIB=ikde4_plug_
432cdf0e10cSrcweirSHL6LIBS=$(LIB6TARGET)
433cdf0e10cSrcweirSHL6DEPN=$(SHL2TARGETN)
434cdf0e10cSrcweir# libs for KDE4 plugin
435cdf0e10cSrcweirSHL6LINKFLAGS+=$(KDE4_LIBS)
436cdf0e10cSrcweirSHL6STDLIBS+=-l$(SHL2TARGET)
437cdf0e10cSrcweirSHL6STDLIBS+=\
438cdf0e10cSrcweir        $(VCLLIB)       \
439cdf0e10cSrcweir        $(PSPLIB)	\
440cdf0e10cSrcweir        $(TOOLSLIB)     \
441cdf0e10cSrcweir        $(VOSLIB)       \
442cdf0e10cSrcweir        $(SALLIB)   \
443cdf0e10cSrcweir        $(X11LINK_DYNAMIC)
444cdf0e10cSrcweir
445cdf0e10cSrcweir.IF "$(ENABLE_RANDR)" != ""
446cdf0e10cSrcweir.IF "$(XRANDR_DLOPEN)" == "FALSE"
447cdf0e10cSrcweirSHL6STDLIBS+= $(XRANDR_LIBS)
448cdf0e10cSrcweir.ENDIF
449cdf0e10cSrcweir.ENDIF
450cdf0e10cSrcweir
451cdf0e10cSrcweir.ENDIF # "$(ENABLE_KDE4)" != ""
452cdf0e10cSrcweir
453cdf0e10cSrcweir.ENDIF # UNX
454cdf0e10cSrcweir
455cdf0e10cSrcweir# --- Allgemein ----------------------------------------------------------
456cdf0e10cSrcweir
457cdf0e10cSrcweir.INCLUDE :  target.mk
458cdf0e10cSrcweir
459cdf0e10cSrcweirALLTAR : $(MISC)/vcl.component
460cdf0e10cSrcweir
461cdf0e10cSrcweir.IF "$(OS)" == "MACOSX"
462cdf0e10cSrcweirmy_platform = .macosx
463cdf0e10cSrcweir.ELIF "$(OS)" == "WNT"
464cdf0e10cSrcweirmy_platform = .windows
465cdf0e10cSrcweir.END
466cdf0e10cSrcweir
467cdf0e10cSrcweir$(MISC)/vcl.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
468cdf0e10cSrcweir        vcl.component
469cdf0e10cSrcweir    $(XSLTPROC) --nonet --stringparam uri \
470cdf0e10cSrcweir        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
471cdf0e10cSrcweir        $(SOLARENV)/bin/createcomponent.xslt vcl$(my_platform).component
472