1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: libs.mk,v $
11 # $Revision: 1.134.2.3 $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
31 LIBSMKREV
!:="$$Revision: 1.134.2.3 $$"
33 .IF
("$(GUI)"=="UNX" ||
"$(COM)"=="GCC") && "$(GUI)"!="OS2"
39 #externe libs in plattform.mk
41 .IF
"$(GUI)$(COM)"=="WNTGCC"
42 AWTLIB
*=$(JAVA_HOME
)/lib
/jawt.lib
43 .ELSE
# "$(GUI)$(COM)"=="WNTGCC"
45 .ENDIF
# "$(GUI)$(COM)"=="WNTGCC"
46 AVMEDIALIB
=-lavmedia
$(DLLPOSTFIX
)
47 .IF
"$(GUI)$(COM)"=="WNTGCC"
48 .INCLUDE .IGNORE
: icuversion.mk
49 ICUINLIB
=-licuin
$(ICU_MAJOR
)$(ICU_MINOR
)
50 ICULELIB
=-licule
$(ICU_MAJOR
)$(ICU_MINOR
)
51 ICUUCLIB
=-licuuc
$(ICU_MAJOR
)$(ICU_MINOR
)
52 ICUDATALIB
=-licudt
$(ICU_MAJOR
)$(ICU_MINOR
)
53 .ELSE
# "$(GUI)$(COM)"=="WNTGCC"
58 .ENDIF
# "$(GUI)$(COM)"=="WNTGCC"
59 I18NUTILLIB
=-li18nutil
$(COMID
)
60 .INCLUDE .IGNORE
: i18npool
/version.mk
61 I18NISOLANGLIB
=-li18nisolang
$(ISOLANG_MAJOR
)$(COMID
)
62 I18NPAPERLIB
=-li18npaper
$(DLLPOSTFIX
)
63 .IF
"$(GUI)$(COM)"=="WNTGCC"
64 SALHELPERLIB
=-lsalhelper
$(UDK_MAJOR
)$(COMID
)
65 .ELSE
# "$(GUI)$(COM)"=="WNTGCC"
66 SALHELPERLIB
=-luno_salhelper
$(COMID
)
67 .ENDIF
# "$(GUI)$(COM)"=="WNTGCC"
68 XMLSCRIPTLIB
=-lxcr
$(DLLPOSTFIX
)
69 .INCLUDE .IGNORE
: comphelper
/version.mk
70 COMPHELPERLIB
=-lcomphelp
$(COMPHLP_MAJOR
)$(COMID
)
71 CONNECTIVITYLIB
=-lconnectivity
75 TOOLSLIB
=-ltl
$(DLLPOSTFIX
)
76 .IF
"$(GUI)$(COM)"=="WNTGCC"
77 CPPULIB
=-lcppu
$(UDK_MAJOR
)
78 CPPUHELPERLIB
=-lcppuhelper
$(UDK_MAJOR
)$(COMID
)
79 .ELSE
# "$(GUI)$(COM)"=="WNTGCC"
81 CPPUHELPERLIB
=-luno_cppuhelper
$(COMID
)
82 .ENDIF
# "$(GUI)$(COM)"=="WNTGCC"
83 .INCLUDE .IGNORE
: ucbhelper
/version.mk
84 UCBHELPERLIB
=-lucbhelper
$(UCBHELPER_MAJOR
)$(COMID
)
85 .IF
"$(SYSTEM_OPENSSL)" == "YES"
86 OPENSSLLIB
=$(OPENSSL_LIBS
)
87 OPENSSLLIBST
=$(STATIC
) $(OPENSSL_LIBS
) $(DYNAMIC
)
88 .ELSE
# "$(SYSTEM_OPENSSL)" == "YES
89 OPENSSLLIB
=-lssl
-lcrypto
90 .IF
"$(GUI)$(COM)"=="WNTGCC"
91 OPENSSLLIBST
=-lssl_static
-lcrypto_static
92 .ELSE
# "$(GUI)$(COM)"=="WNTGCC"
93 OPENSSLLIBST
=$(STATIC
) -lssl
-lcrypto
$(DYNAMIC
)
94 .ENDIF
# "$(GUI)$(COM)"=="WNTGCC"
95 .ENDIF
# "$(SYSTEM_OPENSSL)" == "YES"
96 .IF
"$(GUI)$(COM)"=="WNTGCC"
97 REGLIB
=-lreg
$(UDK_MAJOR
)
98 .ELSE
# "$(GUI)$(COM)"=="WNTGCC"
100 .ENDIF
# "$(GUI)$(COM)"=="WNTGCC"
101 .INCLUDE .IGNORE
: vos
/version.mk
102 VOSLIB
=-lvos
$(VOS_MAJOR
)$(COMID
)
103 XMLOFFLIB
=-lxo
$(DLLPOSTFIX
)
105 .IF
"$(GUI)$(COM)"=="WNTGCC"
106 STORELIB
=-lstore
$(UDK_MAJOR
)
107 SALLIB
=-lsal
$(UDK_MAJOR
)
108 .ELSE
# "$(GUI)$(COM)"=="WNTGCC"
111 .ENDIF
# "$(GUI)$(COM)"=="WNTGCC"
112 .INCLUDE .IGNORE
: connectivity
/version.mk
113 ODBCLIB
=-lodbc
$(DLLPOSTFIX
)
114 ODBCBASELIB
=-lodbcbase
$(DLLPOSTFIX
)
115 DBFILELIB
=-lfile
$(DLLPOSTFIX
)
116 .IF
"$(GUI)$(COM)"=="WNTGCC"
117 RMCXTLIB
=-lrmcxt
$(UDK_MAJOR
)
118 .ELSE
# "$(GUI)$(COM)"=="WNTGCC"
120 .ENDIF
# "$(GUI)$(COM)"=="WNTGCC"
122 BTSTRPDTLIB
=-lbootstrpdt
$(DLLPOSTFIX
)
123 SOLDEPLIB
=-lsoldep
$(DLLPOSTFIX
)
127 UNOTOOLSLIB
=-lutl
$(DLLPOSTFIX
)
128 SOTLIB
=-lsot
$(DLLPOSTFIX
)
129 .IF
"$(GUI)$(COM)"=="WNTGCC"
130 MOZBASELIBST
=$(STATIC
) -lnspr4_s
-lxpcombase_s
131 .ELSE
# "$(GUI)$(COM)"=="WNTGCC"
132 MOZBASELIBST
=$(STATIC
) -lnspr4
-lxpcombase_s
$(DYNAMIC
)
133 .ENDIF
# "$(GUI)$(COM)"=="WNTGCC"
134 MOZBASELIB
=-lnspr4
-lxpcom
135 .IF
"$(GUI)$(COM)"=="WNTGCC"
136 LDAPSDKLIB
=-lnsldap32v50
137 .ELSE
# "$(GUI)$(COM)"=="WNTGCC"
138 .IF
"$(WITH_OPENLDAP)" == "YES"
143 .ENDIF
# "$(GUI)$(COM)"=="WNTGCC"
145 ICOLIB
=-lico
$(DLLPOSTFIX
)
146 VCLLIB
=-lvcl
$(DLLPOSTFIX
)
147 OOXLIB
=-loox
$(DLLPOSTFIX
)
148 BASEGFXLIB
=-lbasegfx
$(DLLPOSTFIX
)
149 DRAWINGLAYERLIB
=-ldrawinglayer
$(DLLPOSTFIX
)
150 BASEBMPLIB
=-lbasebmp
$(DLLPOSTFIX
)
151 CANVASTOOLSLIB
=-lcanvastools
$(DLLPOSTFIX
)
152 CPPCANVASLIB
=-lcppcanvas
$(DLLPOSTFIX
)
153 FORLIB
=-lfor
$(DLLPOSTFIX
)
154 FORUILIB
=-lforui
$(DLLPOSTFIX
)
156 .IF
"$(SYSTEM_AGG)" == "YES"
159 AGGLIB
=-lagg
$(DLLPOSTFIX
)
161 FREETYPE_LIBS
*=-lfreetype
162 FREETYPELIB
=$(FREETYPE_LIBS
)
163 TKLIB
=-ltk
$(DLLPOSTFIX
)
164 LAYOUTLIB
=-ltklayout
$(DLLPOSTFIX
)
165 SVTOOLLIB
=-lsvt
$(DLLPOSTFIX
)
167 XMLSECLIB-NSS
=-lxmlsec1-nss
168 .IF
"$(SYSTEM_LIBXML)"=="YES"
169 LIBXML2LIB
=$(LIBXML_LIBS
)
176 NSSCRYPTOLIBS
=$(LIBXML2LIB
) $(XMLSECLIB
) $(XMLSECLIB-NSS
) $(NSS3LIB
) $(NSPR4LIB
) $(PLC4LIB
)
177 .IF
"$(GUI)$(COM)"=="WNTGCC"
178 XMLSECLIB-MS
=-lxmlsec1-mscrypto-1
179 MSCRYPTOLIBS
=$(LIBXML2LIB
) $(XMLSECLIB
) $(XMLSECLIB-MS
) $(CRYPT32LIB
) $(ADVAPI32LIB
)
180 .ENDIF
# "$(GUI)$(COM)"=="WNTGCC"
181 BROOKERLIB
=-lbrooker
$(DLLPOSTFIX
)
182 SIMPLECMLIB
=-lsimplecm
$(DLLPOSTFIX
)
183 COMMUNILIB
=-lcommuni
$(DLLPOSTFIX
)
184 BTCOMMUNILIB
=-lbtcommuni
$(DLLPOSTFIX
)
185 AUTOMATIONLIB
=-lsts
$(DLLPOSTFIX
)
186 SVLLIB
=-lsvl
$(DLLPOSTFIX
)
187 TKTLIB
=-ltkt
$(DLLPOSTFIX
)
188 GOODIESLIB
=-lgo
$(DLLPOSTFIX
)
189 SAXLIB
=-lsax
$(DLLPOSTFIX
)
191 DOCMGRLIB
=-ldmg
$(DLLPOSTFIX
)
192 BASICLIB
=-lsb
$(DLLPOSTFIX
)
193 VBAHELPERLIB
=-lvbahelper
$(DLLPOSTFIX
)
194 DBTOOLSLIB
=-ldbtools
$(DLLPOSTFIX
)
198 LNGLIB
=-llng
$(DLLPOSTFIX
)
199 .IF
"$(SYSTEM_EXPAT)"=="YES"
201 EXPATASCII3RDLIB
=-lexpat
203 EXPAT3RDLIB
=-lexpat_xmlparse
-lexpat_xmltok
204 EXPATASCII3RDLIB
=-lascii_expat_xmlparse
-lexpat_xmltok
206 .IF
"$(SYSTEM_ZLIB)"=="YES"
211 .IF
"$(SYSTEM_JPEG)"=="YES"
212 .IF
"$(SOLAR_JAVA)" != "" && "$(JDK)" != "gcj" && "$(OS)" != "MACOSX"
213 #i34482# Blackdown/Sun jdk is in the libsearch patch and has a libjpeg :-(
214 .IF
"$(OS)" == "FREEBSD"
215 JPEG3RDLIB
=/usr
/local
/lib
/libjpeg.so
216 .ELIF
"$(CPUNAME)" == "X86_64"
217 JPEG3RDLIB
=/usr
/lib64
/libjpeg.so
219 JPEG3RDLIB
=/usr
/lib
/libjpeg.so
227 .IF
"$(SYSTEM_NEON)" == "YES" ||
"$(GUI)$(COM)"=="WNTGCC"
229 .ELIF
"$(OS)" == "MACOSX"
230 NEON3RDLIB
=$(SOLARLIBDIR
)/libneon.a
232 NEON3RDLIB
=$(STATIC
) -lneon
$(DYNAMIC
)
234 .IF
"$(SYSTEM_DB)" == "YES"
240 SFX2LIB
=-lsfx
$(DLLPOSTFIX
)
241 SFXLIB
=-lsfx
$(DLLPOSTFIX
)
242 EGGTRAYLIB
=-leggtray
$(DLLPOSTFIX
)
244 FWELIB
=-lfwe
$(DLLPOSTFIX
)
245 FWILIB
=-lfwi
$(DLLPOSTFIX
)
246 SVXCORELIB
=-lsvxcore
$(DLLPOSTFIX
)
247 SVXMSFILTERLIB
=-lsvxmsfilter
$(DLLPOSTFIX
)
248 SVXLIB
=-lsvx
$(DLLPOSTFIX
)
249 BASCTLLIB
=-lbasctl
$(DLLPOSTFIX
)
252 CHAOSLIB
=-lcnt
$(DLLPOSTFIX
)
253 UUILIB
=-luui
$(DLLPOSTFIX
)
257 OFALIB
=-lofa
$(DLLPOSTFIX
)
258 PRXLIB
=-llprx2
$(DLLPOSTFIX
)
259 PAPILIB
=-lpap
$(DLLPOSTFIX
)
264 ISWLIB
=-lsw
$(DLLPOSTFIX
)
265 ISCLIB
=-lsc
$(DLLPOSTFIX
)
266 ISDLIB
=-lsd
$(DLLPOSTFIX
)
267 PKGCHKLIB
=-lpkgchk
$(DLLPOSTFIX
)
268 HELPLINKERLIB
=-lhelplinker
$(DLLPOSTFIX
)
269 .IF
"$(GUI)$(COM)"=="WNTGCC"
270 JVMACCESSLIB
= -ljvmaccess
$(UDK_MAJOR
)$(COMID
)
271 .ELSE
# "$(GUI)$(COM)"=="WNTGCC"
272 JVMACCESSLIB
= -ljvmaccess
$(COMID
)
273 .ENDIF
# "$(GUI)$(COM)"=="WNTGCC"
274 CPPUNITLIB
= -lcppunit
$(DLLPOSTFIX
)
275 .IF
"$(SYSTEM_LIBXSLT)"=="YES"
276 XSLTLIB
=$(LIBXSLT_LIBS
)
278 XSLTLIB
=-lxslt
$(ZLIB3RDLIB
) $(LIBXML2LIB
)
280 .IF
"$(GUI)$(COM)"=="WNTGCC"
281 JVMFWKLIB
= -ljvmfwk
$(UDK_MAJOR
)
282 .ELSE
# "$(GUI)$(COM)"=="WNTGCC"
284 .ENDIF
# "$(GUI)$(COM)"=="WNTGCC"
285 .IF
"$(SYSTEM_REDLAND)"=="YES"
286 REDLANDLIB
=$(REDLAND_LIBS
)
293 # For BinFilters, some libs were added.
296 BFSVXLIB
=-lbf_svx
$(DLLPOSTFIX
)
302 BFOFALIB
=-lbf_ofa
$(DLLPOSTFIX
)
303 LEGACYSMGRLIB
=-llegacy_binfilters
$(DLLPOSTFIX
)
304 BFXMLOFFLIB
=-lbf_xo
$(DLLPOSTFIX
)
305 BFGOODIESLIB
=-lbf_go
$(DLLPOSTFIX
)
306 BFBASICLIB
=-lbf_sb
$(DLLPOSTFIX
)
307 BFSO3LIB
=-lbf_so
$(DLLPOSTFIX
)
308 BFSVTOOLLIB
=-lbf_svt
$(DLLPOSTFIX
)
312 # Variablen, in denen in gueltiger Reihenfolge ALLE Libraries,
313 # die unterhalb von %NAME% liegen, zusammengefasst werden
318 USED_VOS_LIBS
= $(OSLLIB
)
319 USED_UNO_LIBS
= $(VOSLIB
) $(OSLLIB
)
321 USED_SOT_LIBS
= $(TOOLSLIB
)
322 USED_VCL_LIBS
= $(SOTLIB
) $(TOOLSLIB
) $(USED_UNO_LIBS
)
325 USED_BOOTSTRP_LIBS
= $(TOOLSLIB
)
326 USED_RCLIENT_LIBS
= $(VCLLIB
) $(SOTLIB
) $(TOOLSLIB
) \
329 SABLOT3RDLIB
=-lsablot
331 SAMPLE3RDLIB
=-lsample
337 .IF
"$(SYSTEM_HUNSPELL)" == "YES"
338 HUNSPELLLIB
=$(HUNSPELL_LIBS
)
340 HUNSPELLLIB
=-lhunspell-1.2
344 LPSOLVELIB
=-llpsolve55
345 SOFFICELIB
=-lsofficeapp
346 UNOPKGAPPLIB
=-lunopkgapp
348 .ELSE
# ("$(GUI)"=="UNX" || "$(COM)"=="GCC") && "$(GUI)"!="OS2"
350 ODMA_LIB_LIB
=odma_lib.lib
352 AVMEDIALIB
=iavmedia.lib
359 ICUDATALIB
=icudata.lib
361 I18NUTILLIB
=ii18nutil.lib
362 I18NISOLANGLIB
=ii18nisolang.lib
363 I18NPAPERLIB
=ii18npaper.lib
364 SALHELPERLIB
=isalhelper.lib
365 XMLSCRIPTLIB
=ixcr.lib
366 COMPHELPERLIB
=icomphelp.lib
367 CONNECTIVITYLIB
=connectivity.lib
368 LDAPBERLIB
=ldapber.lib
370 CPPUHELPERLIB
=icppuhelper.lib
371 UCBHELPERLIB
=iucbhelper.lib
373 OPENSSLLIB
=ssl.lib crypto.lib
375 OPENSSLLIB
=ssleay32.lib libeay32.lib
378 ODBCBASELIB
=iodbcbase.lib
381 TOOLSLIBST
=atools.lib
382 BPICONVLIB
=bpiconv.lib
395 MOZBASELIBST
=nspr4_s.lib xpcombase_s.lib
396 MOZBASELIB
=nspr4.lib xpcom.lib
397 LDAPSDKLIB
=nsldap32v50.lib
404 BTSTRPDTLIB
=bootstrpdt.lib
406 TRANSEXLIB
=transex.lib
409 XMLSECLIB
=libxmlsec.lib
410 XMLSECLIB-MS
=libxmlsec-mscrypto.lib
411 XMLSECLIB-NSS
=libxmlsec-nss.lib
412 LIBXML2LIB
=libxml2.lib
416 NSSCRYPTOLIBS
=$(LIBXML2LIB
) $(XMLSECLIB
) $(XMLSECLIB-NSS
) $(NSS3LIB
) $(NSPR4LIB
) $(PLC4LIB
)
417 MSCRYPTOLIBS
=$(LIBXML2LIB
) $(XMLSECLIB
) $(XMLSECLIB-MS
) crypt32.lib advapi32.lib
418 BROOKERLIB
=ibrooker.lib
419 SIMPLECMLIB
=isimplecm.lib
420 COMMUNILIB
=icommuni.lib
421 BTCOMMUNILIB
=ibtcommuni.lib
422 AUTOMATIONLIB
=ists.lib
424 PLUGAPPLIB
=plugapp.lib
430 VBAHELPERLIB
=vbahelper.lib
432 SVXCORELIB
=isvxcore.lib
433 SVXMSFILTERLIB
=isvxmsfilter.lib
436 BASICIDELIB
=ybctl.lib
438 DBTOOLSLIB
=idbtools.lib
439 HM2LIBSH
=hmwrpdll.lib
443 EXPAT3RDLIB
=expat_xmltok.lib expat_xmlparse.lib
444 EXPATASCII3RDLIB
=expat_xmltok.lib ascii_expat_xmlparse.lib
446 JPEG3RDLIB
=jpeglib.lib
448 BERKELEYLIB
=libdb47.lib
466 BASEGFXLIB
=ibasegfx.lib
467 DRAWINGLAYERLIB
=idrawinglayer.lib
468 BASEBMPLIB
=ibasebmp.lib
469 CANVASTOOLSLIB
=icanvastools.lib
470 CPPCANVASLIB
=icppcanvas.lib
475 LAYOUTLIB
=itklayout.lib
477 FREETYPELIB
=freetype.lib
478 PKGCHKLIB
=ipkgchk.lib
479 HELPLINKERLIB
=ihelplinker.lib
480 JVMACCESSLIB
= ijvmaccess.lib
481 CPPUNITLIB
= cppunit.lib
482 XSLTLIB
= libxslt.lib
$(ZLIB3RDLIB
) $(LIBXML2LIB
)
484 REDLANDLIB
= raptor.a rasqal.a rdf.a
$(LIBXML2LIB
) $(OPENSSLLIB
) pthread.lib
486 REDLANDLIB
= librdf.lib
489 JVMFWKLIB
= ijvmfwk.lib
492 # For BinFilters, some libs were added.
502 BFXMLOFFLIB
=ibf_xo.lib
503 BFGOODIESLIB
=bf_go.lib
506 LEGACYSMGRLIB
=ilegacy_binfilters.lib
507 BFSVTOOLLIB
=bf_svt.lib
509 SABLOT3RDLIB
= $(LIBPRE
) sablot.lib
510 APP3RDLIB
= $(LIBPRE
) app.lib
511 SAMPLE3RDLIB
= $(LIBPRE
) sample.lib
513 MYSPELLLIB
= $(LIBPRE
) myspell.lib
514 COSVLIB
= $(LIBPRE
) cosv.lib
515 UDMLIB
= $(LIBPRE
) udm.lib
516 ULINGULIB
=$(LIBPRE
) libulingu.lib
517 .IF
"$(SYSTEM_HUNSPELL)" == "YES"
518 HUNSPELLLIB
=$(HUNSPELL_LIBS
)
520 HUNSPELLLIB
=$(LIBPRE
) libhunspell.lib
522 MYTHESLIB
=libmythes.lib
524 LPSOLVELIB
=lpsolve55.lib
525 SOFFICELIB
=isofficeapp.lib
526 UNOPKGAPPLIB
=iunopkgapp.lib
528 .ENDIF
# ("$(GUI)"=="UNX" || "$(COM)"=="GCC") && "$(GUI)"!="OS2"