xref: /aoo42x/main/scp2/source/ooo/makefile.mk (revision 0bd633ab)
1cdf0e10cSrcweir#*************************************************************************
2cdf0e10cSrcweir#
3cdf0e10cSrcweir# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4cdf0e10cSrcweir#
5cdf0e10cSrcweir# Copyright 2000, 2010 Oracle and/or its affiliates.
6cdf0e10cSrcweir#
7cdf0e10cSrcweir# OpenOffice.org - a multi-platform office productivity suite
8cdf0e10cSrcweir#
9cdf0e10cSrcweir# This file is part of OpenOffice.org.
10cdf0e10cSrcweir#
11cdf0e10cSrcweir# OpenOffice.org is free software: you can redistribute it and/or modify
12cdf0e10cSrcweir# it under the terms of the GNU Lesser General Public License version 3
13cdf0e10cSrcweir# only, as published by the Free Software Foundation.
14cdf0e10cSrcweir#
15cdf0e10cSrcweir# OpenOffice.org is distributed in the hope that it will be useful,
16cdf0e10cSrcweir# but WITHOUT ANY WARRANTY; without even the implied warranty of
17cdf0e10cSrcweir# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18cdf0e10cSrcweir# GNU Lesser General Public License version 3 for more details
19cdf0e10cSrcweir# (a copy is included in the LICENSE file that accompanied this code).
20cdf0e10cSrcweir#
21cdf0e10cSrcweir# You should have received a copy of the GNU Lesser General Public License
22cdf0e10cSrcweir# version 3 along with OpenOffice.org.  If not, see
23cdf0e10cSrcweir# <http://www.openoffice.org/license.html>
24cdf0e10cSrcweir# for a copy of the LGPLv3 License.
25cdf0e10cSrcweir#
26cdf0e10cSrcweir#*************************************************************************
27cdf0e10cSrcweirPRJ=..$/..
28cdf0e10cSrcweir
29cdf0e10cSrcweirPRJPCH=
30cdf0e10cSrcweir
31cdf0e10cSrcweirPRJNAME=scp2
32cdf0e10cSrcweirTARGET=ooo
33cdf0e10cSrcweirTARGETTYPE=CUI
34cdf0e10cSrcweir
35cdf0e10cSrcweir# --- Settings -----------------------------------------------------
36cdf0e10cSrcweir
37cdf0e10cSrcweir.INCLUDE :  settings.mk
38cdf0e10cSrcweir.INCLUDE :  i18npool/version.mk
39cdf0e10cSrcweir
40cdf0e10cSrcweir.IF "$(COM)" == "MSC"
41cdf0e10cSrcweirSCPDEFS+=-D_MSC
42cdf0e10cSrcweir.ENDIF
43cdf0e10cSrcweir
44cdf0e10cSrcweir.IF "$(BUILD_SPECIAL)"!=""
45cdf0e10cSrcweirSCPDEFS+=-DBUILD_SPECIAL
46cdf0e10cSrcweir.ENDIF
47cdf0e10cSrcweir
48cdf0e10cSrcweir.IF "$(BUILD_X64)"!=""
49cdf0e10cSrcweirSCPDEFS+=-DBUILD_X64
50cdf0e10cSrcweir.ENDIF
51cdf0e10cSrcweir
52cdf0e10cSrcweir.IF "$(PROF_EDITION)"!=""
53cdf0e10cSrcweirSCPDEFS+=-DPROF_EDITION
54cdf0e10cSrcweir.ENDIF
55cdf0e10cSrcweir
56cdf0e10cSrcweir.IF "$(GUI)"=="UNX"
57cdf0e10cSrcweir.IF "$(ENABLE_GTK)" != ""
58cdf0e10cSrcweirSCPDEFS+=-DENABLE_GTK
59cdf0e10cSrcweirPKGCONFIG_MODULES=gtk+-2.0
60cdf0e10cSrcweir.INCLUDE: pkg_config.mk
61cdf0e10cSrcweirGTK_TWO_FOUR=$(shell @+-$(PKG_CONFIG) --exists 'gtk+-2.0 >= 2.4.0' && echo YES)
62cdf0e10cSrcweir.IF "$(GTK_TWO_FOUR)" != ""
63cdf0e10cSrcweirSCPDEFS+=-DGTK_TWO_FOUR
64cdf0e10cSrcweir.ENDIF
65cdf0e10cSrcweir.ENDIF
66cdf0e10cSrcweir.ENDIF			# "$(GUI)"=="UNX"
67cdf0e10cSrcweir
68cdf0e10cSrcweir.IF "$(ENABLE_SYSTRAY_GTK)" != ""
69cdf0e10cSrcweirSCPDEFS+=-DENABLE_SYSTRAY_GTK
70cdf0e10cSrcweir.ENDIF
71cdf0e10cSrcweir
72cdf0e10cSrcweir.IF "$(ENABLE_GSTREAMER)" != ""
73cdf0e10cSrcweirSCPDEFS+=-DENABLE_GSTREAMER
74cdf0e10cSrcweir.ENDIF
75cdf0e10cSrcweir
76cdf0e10cSrcweir.IF "$(ENABLE_KDE)" != ""
77cdf0e10cSrcweirSCPDEFS+=-DENABLE_KDE
78cdf0e10cSrcweir.ENDIF
79cdf0e10cSrcweir
80cdf0e10cSrcweir.IF "$(ENABLE_KDE4)" != ""
81cdf0e10cSrcweirSCPDEFS+=-DENABLE_KDE4
82cdf0e10cSrcweir.ENDIF
83cdf0e10cSrcweir
84cdf0e10cSrcweir.IF "$(ENABLE_KAB)" != ""
85cdf0e10cSrcweirSCPDEFS+=-DENABLE_KAB
86cdf0e10cSrcweir.ENDIF
87cdf0e10cSrcweir
88cdf0e10cSrcweir.IF "$(ENABLE_EVOAB2)" != ""
89cdf0e10cSrcweirSCPDEFS+=-DENABLE_EVOAB2
90cdf0e10cSrcweir.ENDIF
91cdf0e10cSrcweir
92cdf0e10cSrcweir.IF "$(ENABLE_DIRECTX)" != ""
93cdf0e10cSrcweirSCPDEFS+=-DENABLE_DIRECTX
94cdf0e10cSrcweir.ENDIF
95cdf0e10cSrcweir
96cdf0e10cSrcweir.IF "$(SYSTEM_FREETYPE)" == "YES"
97cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_FREETYPE
98cdf0e10cSrcweir.ENDIF
99cdf0e10cSrcweir
100cdf0e10cSrcweir.IF "$(SYSTEM_CAIRO)" == "YES"
101cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_CAIRO
102cdf0e10cSrcweir.ENDIF
103cdf0e10cSrcweir
104cdf0e10cSrcweir.IF "$(ENABLE_CAIRO)" == "YES"
105cdf0e10cSrcweirSCPDEFS+=-DENABLE_CAIRO
106cdf0e10cSrcweir.ENDIF
107cdf0e10cSrcweir
108cdf0e10cSrcweir.IF "$(SYSTEM_LIBXML)" == "YES"
109cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_LIBXML
110cdf0e10cSrcweir.ENDIF
111cdf0e10cSrcweir
112*0bd633abSJürgen Schmidt.IF "$(SYSTEM_LIBWPD)" == "YES"
113*0bd633abSJürgen SchmidtSCPDEFS+=-DSYSTEM_LIBWPD
114*0bd633abSJürgen Schmidt.ENDIF
115*0bd633abSJürgen Schmidt
116cdf0e10cSrcweir.IF "$(SYSTEM_LIBXSLT)" == "YES"
117cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_LIBXSLT
118cdf0e10cSrcweir.ELSE
119cdf0e10cSrcweir.INCLUDE :  libxsltversion.mk
120cdf0e10cSrcweirSCPDEFS+=-DLIBXSLT_MAJOR=$(LIBXSLT_MAJOR)
121cdf0e10cSrcweir.ENDIF
122cdf0e10cSrcweir
123cdf0e10cSrcweir.IF "$(SYSTEM_DB)" == "YES"
124cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_DB
125cdf0e10cSrcweir.ENDIF
126cdf0e10cSrcweir
127cdf0e10cSrcweir.IF "$(USE_SYSTEM_STL)" == "YES" || "$(STLPORT4)" != "NO_STLPORT4"
128cdf0e10cSrcweirSCPDEFS+=-DUSE_SYSTEM_STL
129cdf0e10cSrcweir.ENDIF
130cdf0e10cSrcweir
131cdf0e10cSrcweir.IF "$(WITH_MOZILLA)" == "NO"
132cdf0e10cSrcweirSCPDEFS+=-DWITHOUT_MOZILLA
133cdf0e10cSrcweir.ENDIF
134cdf0e10cSrcweir
135cdf0e10cSrcweir.IF "$(WITH_MYSPELL_DICTS)" == "NO"
136cdf0e10cSrcweirSCPDEFS+=-DWITHOUT_MYSPELL_DICTS
137cdf0e10cSrcweir.ENDIF
138cdf0e10cSrcweir
139cdf0e10cSrcweir.IF "$(SYSTEM_MOZILLA)" == "YES"
140cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_MOZILLA
141cdf0e10cSrcweir.ENDIF
142cdf0e10cSrcweir
143cdf0e10cSrcweir.IF "$(WITH_LDAP)" == "YES"
144cdf0e10cSrcweirSCPDEFS+=-DWITH_LDAP
145cdf0e10cSrcweir.ENDIF
146cdf0e10cSrcweir
147cdf0e10cSrcweir.IF "$(SYSTEM_CURL)" == "YES"
148cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_CURL
149cdf0e10cSrcweir.ENDIF
150cdf0e10cSrcweir
151cdf0e10cSrcweir.IF "$(SYSTEM_STDLIBS)" == "YES"
152cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_STDLIBS
153cdf0e10cSrcweir.ENDIF
154cdf0e10cSrcweir
155cdf0e10cSrcweir.IF "$(SYSTEM_SNDFILE)" == "YES"
156cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_SNDFILE
157cdf0e10cSrcweir.ENDIF
158cdf0e10cSrcweir
159cdf0e10cSrcweir.IF "$(SYSTEM_PORTAUDIO)" == "YES"
160cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_PORTAUDIO
161cdf0e10cSrcweir.ENDIF
162cdf0e10cSrcweir
163cdf0e10cSrcweir.IF "$(SYSTEM_HUNSPELL)" == "YES"
164cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_HUNSPELL
165cdf0e10cSrcweir.ENDIF
166cdf0e10cSrcweir
167cdf0e10cSrcweir.IF "$(SYSTEM_REDLAND)" == "YES"
168cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_REDLAND
169cdf0e10cSrcweir.ELSE
170cdf0e10cSrcweir.INCLUDE :  redlandversion.mk
171cdf0e10cSrcweirSCPDEFS+=\
172cdf0e10cSrcweir    -DRAPTOR_MAJOR=$(RAPTOR_MAJOR) \
173cdf0e10cSrcweir    -DRASQAL_MAJOR=$(RASQAL_MAJOR) \
174cdf0e10cSrcweir    -DREDLAND_MAJOR=$(REDLAND_MAJOR)
175cdf0e10cSrcweir.ENDIF
176cdf0e10cSrcweir
177cdf0e10cSrcweir.IF "$(SYSTEM_BSH)" == "YES"
178cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_BSH -DBSH_JAR=\""file://$(BSH_JAR)"\"
179cdf0e10cSrcweir.ENDIF
180cdf0e10cSrcweir
181cdf0e10cSrcweir.IF "$(SYSTEM_HSQLDB)" == "YES"
182cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_HSQLDB -DHSQLDB_JAR=\""file://$(HSQLDB_JAR)"\"
183cdf0e10cSrcweir.ENDIF
184cdf0e10cSrcweir
185cdf0e10cSrcweir.IF "$(SYSTEM_SAXON)" == "YES"
186cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_SAXON -DSAXON_JAR=\""file://$(SAXON_JAR)"\"
187cdf0e10cSrcweir.ENDIF
188cdf0e10cSrcweir
1890ea1a209SEike Rathke.IF "$(DISABLE_SAXON)" == "TRUE"
1900ea1a209SEike RathkeSCPDEFS+=-DDISABLE_SAXON
1910ea1a209SEike Rathke.ENDIF
1920ea1a209SEike Rathke
1930ea1a209SEike Rathke.IF "$(DISABLE_LIBWPD)" == "TRUE"
1940ea1a209SEike RathkeSCPDEFS+=-DDISABLE_LIBWPD
1950ea1a209SEike Rathke.ENDIF
1960ea1a209SEike Rathke
1970ea1a209SEike Rathke.IF "$(DISABLE_HUNSPELL)" == "TRUE"
1980ea1a209SEike RathkeSCPDEFS+=-DDISABLE_HUNSPELL
1990ea1a209SEike Rathke.ENDIF
2000ea1a209SEike Rathke
2010ea1a209SEike Rathke.IF "$(DISABLE_HYPHEN)" == "TRUE"
2020ea1a209SEike RathkeSCPDEFS+=-DDISABLE_HYPHEN
2030ea1a209SEike Rathke.ENDIF
2040ea1a209SEike Rathke
205cdf0e10cSrcweir.IF "$(JDK)" == "gcj"
206cdf0e10cSrcweirSCPDEFS+=-DGCJ
207cdf0e10cSrcweir.ENDIF
208cdf0e10cSrcweir
209cdf0e10cSrcweir
210cdf0e10cSrcweir.IF "$(ENABLE_CAIRO)" == "TRUE"
211cdf0e10cSrcweirSCPDEFS+=-DENABLE_CAIRO
212cdf0e10cSrcweir.ENDIF
213cdf0e10cSrcweir
214cdf0e10cSrcweir.IF "$(SYSTEM_LUCENE)" == "YES"
215cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_LUCENE
216cdf0e10cSrcweir.ENDIF
217cdf0e10cSrcweir
218cdf0e10cSrcweir.IF "$(SYSTEM_ICU)" == "YES"
219cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_ICU
220cdf0e10cSrcweir.ELSE
221cdf0e10cSrcweir.INCLUDE :  icuversion.mk
222cdf0e10cSrcweirSCPDEFS+=\
223cdf0e10cSrcweir    -DICU_MAJOR=$(ICU_MAJOR) \
224cdf0e10cSrcweir    -DICU_MINOR=$(ICU_MINOR) \
225cdf0e10cSrcweir    -DICU_MICRO=$(ICU_MICRO)
226cdf0e10cSrcweir.ENDIF
227cdf0e10cSrcweir
228cdf0e10cSrcweirSCPDEFS+=-DISOLANG_MAJOR=$(ISOLANG_MAJOR)
229cdf0e10cSrcweir
230cdf0e10cSrcweir.IF "$(SYSTEM_NEON)" == "YES"
231cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_NEON
232cdf0e10cSrcweir.ENDIF
233cdf0e10cSrcweir
234cdf0e10cSrcweir# if yes or unset (neon not used) -> do not install openssl library!
235cdf0e10cSrcweir.IF $(SYSTEM_OPENSSL) != "YES"
236cdf0e10cSrcweirSCPDEFS+=-DOPENSSL
237cdf0e10cSrcweir.ENDIF
238cdf0e10cSrcweir
239cdf0e10cSrcweir.IF "$(DISABLE_ATL)"!=""
240cdf0e10cSrcweirSCPDEFS+=-DDISABLE_ATL
241cdf0e10cSrcweir.ENDIF
242cdf0e10cSrcweir
243cdf0e10cSrcweir.IF "$(SYSTEM_PYTHON)" == "YES"
244cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_PYTHON
245cdf0e10cSrcweir.ENDIF
246cdf0e10cSrcweir
247cdf0e10cSrcweir.IF "$(SYSTEM_LIBTEXTCAT)" == "YES"
248cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_LIBTEXTCAT
249cdf0e10cSrcweir.ENDIF
250cdf0e10cSrcweir
251cdf0e10cSrcweir.IF "$(SYSTEM_LIBTEXTCAT_DATA)" != ""
252cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_LIBTEXTCAT_DATA
253cdf0e10cSrcweir.ENDIF
254cdf0e10cSrcweir
255cdf0e10cSrcweir.IF "$(ENABLE_SVCTAGS)" == "YES"
256cdf0e10cSrcweirSCPDEFS+=-DENABLE_SVCTAGS
257cdf0e10cSrcweir.ENDIF
258cdf0e10cSrcweir
259cdf0e10cSrcweir.IF "$(WITH_VC_REDIST)" == "TRUE"
260cdf0e10cSrcweirSCPDEFS+=-DWITH_VC_REDIST
261cdf0e10cSrcweir.ENDIF
262cdf0e10cSrcweir
263cdf0e10cSrcweir.IF "$(MINGW_GCCDLL)"!=""
264cdf0e10cSrcweirSCPDEFS+=-DMINGW_GCCDLL=\""$(MINGW_GCCDLL)"\"
265cdf0e10cSrcweir.ENDIF
266cdf0e10cSrcweir
267cdf0e10cSrcweir.IF "$(MINGW_GXXDLL)"!=""
268cdf0e10cSrcweirSCPDEFS+=-DMINGW_GXXDLL=\""$(MINGW_GXXDLL)"\"
269cdf0e10cSrcweir.ENDIF
270cdf0e10cSrcweir
271cdf0e10cSrcweir.IF "$(SYSTEM_GDKPIXBUF)" == "YES"
272cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_GDKPIXBUF
273cdf0e10cSrcweir.ENDIF
274cdf0e10cSrcweir
275cdf0e10cSrcweir.IF "$(SYSTEM_GETTEXT)" == "YES"
276cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_GETTEXT
277cdf0e10cSrcweir.ENDIF
278cdf0e10cSrcweir
279cdf0e10cSrcweir.IF "$(SYSTEM_GLIB)" == "YES"
280cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_GLIB
281cdf0e10cSrcweir.ENDIF
282cdf0e10cSrcweir
283cdf0e10cSrcweir.IF "$(SYSTEM_LIBJPEG)" == "YES"
284cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_LIBJPEG
285cdf0e10cSrcweir.ENDIF
286cdf0e10cSrcweir
287cdf0e10cSrcweir.IF "$(SYSTEM_PANGO)" == "YES"
288cdf0e10cSrcweirSCPDEFS+=-DSYSTEM_PANGO
289cdf0e10cSrcweir.ENDIF
290cdf0e10cSrcweir
291cdf0e10cSrcweirSCP_PRODUCT_TYPE=osl
292cdf0e10cSrcweir
293cdf0e10cSrcweirICUVERSION_DEPENDENT_FILES= \
294cdf0e10cSrcweir		$(PAR)$/$(SCP_PRODUCT_TYPE)$/file_library_ooo.par \
295cdf0e10cSrcweir		$(PAR)$/$(SCP_PRODUCT_TYPE)$/shortcut_ooo.par
296cdf0e10cSrcweir
297cdf0e10cSrcweirISOLANGVERSION_DEPENDENT_FILES= \
298cdf0e10cSrcweir		$(PAR)$/$(SCP_PRODUCT_TYPE)$/file_library_ooo.par
299cdf0e10cSrcweir
300cdf0e10cSrcweirPARFILES=                          \
301cdf0e10cSrcweir        installation_ooo.par       \
302cdf0e10cSrcweir        scpaction_ooo.par          \
303cdf0e10cSrcweir        directory_ooo.par          \
304cdf0e10cSrcweir        directory_ooo_macosx.par   \
305cdf0e10cSrcweir        datacarrier_ooo.par        \
306cdf0e10cSrcweir        file_ooo.par               \
307cdf0e10cSrcweir        file_extra_ooo.par         \
308cdf0e10cSrcweir        file_font_ooo.par          \
309cdf0e10cSrcweir        file_library_ooo.par       \
310cdf0e10cSrcweir        file_resource_ooo.par      \
311cdf0e10cSrcweir        file_improvement.par       \
312cdf0e10cSrcweir        shortcut_ooo.par           \
313cdf0e10cSrcweir        module_ooo.par             \
314cdf0e10cSrcweir        module_hidden_ooo.par      \
315cdf0e10cSrcweir        module_langpack.par        \
316cdf0e10cSrcweir        module_lang_template.par   \
317cdf0e10cSrcweir        module_java.par            \
318cdf0e10cSrcweir        module_systemint.par       \
319cdf0e10cSrcweir        module_improvement.par     \
320cdf0e10cSrcweir        profile_ooo.par            \
321cdf0e10cSrcweir        profileitem_ooo.par        \
322cdf0e10cSrcweir        ure.par                    \
323cdf0e10cSrcweir        ure_into_ooo.par           \
324cdf0e10cSrcweir        ure_standalone.par         \
325cdf0e10cSrcweir        common_brand.par           \
326cdf0e10cSrcweir        common_brand_readme.par    \
327cdf0e10cSrcweir        ooo_brand.par
328cdf0e10cSrcweir
329cdf0e10cSrcweir.IF "$(GUI)"=="WNT"
330cdf0e10cSrcweirPARFILES +=                        \
331cdf0e10cSrcweir        file_jre_ooo.par           \
332cdf0e10cSrcweir        folder_ooo.par             \
333cdf0e10cSrcweir        folderitem_ooo.par         \
334cdf0e10cSrcweir        registryitem_ooo.par       \
335cdf0e10cSrcweir        vc_redist.par              \
336cdf0e10cSrcweir        windowscustomaction_ooo.par
337cdf0e10cSrcweir.ENDIF
338cdf0e10cSrcweir
339cdf0e10cSrcweirULFFILES=                          \
340cdf0e10cSrcweir        directory_ooo.ulf          \
341cdf0e10cSrcweir        folderitem_ooo.ulf         \
342cdf0e10cSrcweir        module_ooo.ulf             \
343cdf0e10cSrcweir        module_langpack.ulf        \
344cdf0e10cSrcweir        module_java.ulf            \
345cdf0e10cSrcweir        registryitem_ooo.ulf       \
346cdf0e10cSrcweir        module_systemint.ulf
347cdf0e10cSrcweir
348cdf0e10cSrcweir# --- File ---------------------------------------------------------
349cdf0e10cSrcweir.INCLUDE :  target.mk
350cdf0e10cSrcweir
351cdf0e10cSrcweir.IF "$(SYSTEM_ICU)" != "YES"
352cdf0e10cSrcweir$(ICUVERSION_DEPENDENT_FILES) : $(SOLARINCDIR)$/icuversion.mk
353cdf0e10cSrcweir.ENDIF
354cdf0e10cSrcweir
355cdf0e10cSrcweir$(ISOLANGVERSION_DEPENDENT_FILES) : $(SOLARINCDIR)$/i18npool/version.mk
356cdf0e10cSrcweir
357