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: makefile.mk,v $
11 # $Revision: 1.77.16.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 #*************************************************************************
39 # --- Settings -----------------------------------------------------
41 .INCLUDE
: settings.mk
42 .INCLUDE
: i18npool
/version.mk
48 .IF
"$(ENABLE_CRASHDUMP)"!=""
49 SCPDEFS
+=-DENABLE_CRASHDUMP
52 .IF
"$(BUILD_SPECIAL)"!=""
53 SCPDEFS
+=-DBUILD_SPECIAL
56 SCPDEFS
+=-DINCLUDE_JAVA_ACCESSBRIDGE
58 .IF
"$(PROF_EDITION)"!=""
59 SCPDEFS
+=-DPROF_EDITION
63 .IF
"$(ENABLE_GTK)" != ""
65 PKGCONFIG_MODULES
=gtk
+-2.0
66 .INCLUDE
: pkg_config.mk
67 GTK_TWO_FOUR
=$(shell @
+-$(PKG_CONFIG
) --exists
'gtk+-2.0 >= 2.4.0' && echo YES
)
68 .IF
"$(GTK_TWO_FOUR)" != ""
69 SCPDEFS
+=-DGTK_TWO_FOUR
72 .ENDIF
# "$(GUI)"=="UNX"
74 .IF
"$(ENABLE_SYSTRAY_GTK)" != ""
75 SCPDEFS
+=-DENABLE_SYSTRAY_GTK
78 .IF
"$(ENABLE_KDE)" != ""
82 .IF
"$(ENABLE_KDE4)" != ""
83 SCPDEFS
+=-DENABLE_KDE4
86 .IF
"$(ENABLE_KAB)" != ""
90 .IF
"$(ENABLE_EVOAB2)" != ""
91 SCPDEFS
+=-DENABLE_EVOAB2
94 .IF
"$(ENABLE_DIRECTX)" != ""
95 SCPDEFS
+=-DENABLE_DIRECTX
98 .IF
"$(SYSTEM_FREETYPE)" == "YES"
99 SCPDEFS
+=-DSYSTEM_FREETYPE
102 .IF
"$(SYSTEM_CAIRO)" == "YES"
103 SCPDEFS
+=-DSYSTEM_CAIRO
106 .IF
"$(ENABLE_CAIRO)" == "YES"
107 SCPDEFS
+=-DENABLE_CAIRO
110 .IF
"$(SYSTEM_LIBXML)" == "YES"
111 SCPDEFS
+=-DSYSTEM_LIBXML
114 .IF
"$(SYSTEM_LIBXSLT)" == "YES"
115 SCPDEFS
+=-DSYSTEM_LIBXSLT
117 .INCLUDE
: libxsltversion.mk
118 SCPDEFS
+=-DLIBXSLT_MAJOR
=$(LIBXSLT_MAJOR
)
121 .IF
"$(SYSTEM_DB)" == "YES"
125 .IF
"$(USE_SYSTEM_STL)" == "YES" ||
"$(STLPORT4)" != "NO_STLPORT4"
126 SCPDEFS
+=-DUSE_SYSTEM_STL
129 .IF
"$(WITH_MOZILLA)" == "NO"
130 SCPDEFS
+=-DWITHOUT_MOZILLA
133 .IF
"$(WITH_MYSPELL_DICTS)" == "NO"
134 SCPDEFS
+=-DWITHOUT_MYSPELL_DICTS
137 .IF
"$(SYSTEM_MOZILLA)" == "YES"
138 SCPDEFS
+=-DSYSTEM_MOZILLA
141 .IF
"$(WITH_LDAP)" == "YES"
145 .IF
"$(SYSTEM_CURL)" == "YES"
146 SCPDEFS
+=-DSYSTEM_CURL
149 .IF
"$(SYSTEM_STDLIBS)" == "YES"
150 SCPDEFS
+=-DSYSTEM_STDLIBS
153 .IF
"$(ENABLE_MONO)" == "YES"
154 SCPDEFS
+=-DENABLE_MONO
157 .IF
"$(SYSTEM_SNDFILE)" == "YES"
158 SCPDEFS
+=-DSYSTEM_SNDFILE
161 .IF
"$(SYSTEM_PORTAUDIO)" == "YES"
162 SCPDEFS
+=-DSYSTEM_PORTAUDIO
165 .IF
"$(SYSTEM_HUNSPELL)" == "YES"
166 SCPDEFS
+=-DSYSTEM_HUNSPELL
169 .IF
"$(SYSTEM_REDLAND)" == "YES"
170 SCPDEFS
+=-DSYSTEM_REDLAND
172 .INCLUDE
: redlandversion.mk
174 -DRAPTOR_MAJOR
=$(RAPTOR_MAJOR
) \
175 -DRASQAL_MAJOR
=$(RASQAL_MAJOR
) \
176 -DREDLAND_MAJOR
=$(REDLAND_MAJOR
)
179 .IF
"$(SYSTEM_BSH)" == "YES"
180 SCPDEFS
+=-DSYSTEM_BSH
-DBSH_JAR
=\""file://$(BSH_JAR)"\"
183 .IF
"$(SYSTEM_HSQLDB)" == "YES"
184 SCPDEFS
+=-DSYSTEM_HSQLDB
-DHSQLDB_JAR
=\""file://$(HSQLDB_JAR)"\"
187 .IF
"$(SYSTEM_SAXON)" == "YES"
188 SCPDEFS
+=-DSYSTEM_SAXON
-DSAXON_JAR
=\""file://$(SAXON_JAR)"\"
191 .IF
"$(JDK)" == "gcj"
196 .IF
"$(ENABLE_CAIRO)" == "TRUE"
197 SCPDEFS
+=-DENABLE_CAIRO
200 .IF
"$(SYSTEM_LUCENE)" == "YES"
201 SCPDEFS
+=-DSYSTEM_LUCENE
204 .IF
"$(SYSTEM_ICU)" == "YES"
205 SCPDEFS
+=-DSYSTEM_ICU
207 .INCLUDE
: icuversion.mk
209 -DICU_MAJOR
=$(ICU_MAJOR
) \
210 -DICU_MINOR
=$(ICU_MINOR
) \
211 -DICU_MICRO
=$(ICU_MICRO
)
214 SCPDEFS
+=-DISOLANG_MAJOR
=$(ISOLANG_MAJOR
)
216 .IF
"$(DISABLE_NEON)" == "TRUE"
217 SCPDEFS
+=-DDISABLE_NEON
220 # if yes or unset (neon not used) -> do not install openssl library!
221 .IF
$(SYSTEM_OPENSSL
) != "YES"
225 .IF
"$(ENABLE_VBA)" == "YES"
226 .IF
"$(VBA_EXTENSION)" == "YES"
227 SCPDEFS
+=-DVBA_EXTENSION
229 SCPDEFS
+=-DENABLE_VBA
232 .IF
"$(DISABLE_ATL)"!=""
233 SCPDEFS
+=-DDISABLE_ATL
236 .IF
"$(SYSTEM_PYTHON)" == "YES"
237 SCPDEFS
+=-DSYSTEM_PYTHON
240 .IF
"$(ENABLE_SVCTAGS)" == "YES"
241 SCPDEFS
+=-DENABLE_SVCTAGS
244 .IF
"$(WITH_VC_REDIST)" == "TRUE"
245 SCPDEFS
+=-DWITH_VC_REDIST
248 .IF
"$(MINGW_GCCDLL)"!=""
249 SCPDEFS
+=-DMINGW_GCCDLL
=\""$(MINGW_GCCDLL)"\"
252 .IF
"$(MINGW_GXXDLL)"!=""
253 SCPDEFS
+=-DMINGW_GXXDLL
=\""$(MINGW_GXXDLL)"\"
258 ICUVERSION_DEPENDENT_FILES
= \
259 $(PAR
)$/$(SCP_PRODUCT_TYPE
)$/file_library_ooo.par \
260 $(PAR
)$/$(SCP_PRODUCT_TYPE
)$/shortcut_ooo.par
262 ISOLANGVERSION_DEPENDENT_FILES
= \
263 $(PAR
)$/$(SCP_PRODUCT_TYPE
)$/file_library_ooo.par
266 installation_ooo.par \
269 directory_ooo_macosx.par \
270 datacarrier_ooo.par \
274 file_library_ooo.par \
275 file_resource_ooo.par \
276 file_improvement.par \
279 module_hidden_ooo.par \
280 module_langpack.par \
281 module_lang_template.par \
283 module_systemint.par \
284 module_improvement.par \
286 profileitem_ooo.par \
291 common_brand_readme.par \
299 registryitem_ooo.par \
300 mergemodules_ooo.par \
302 windowscustomaction_ooo.par
309 module_langpack.ulf \
311 registryitem_ooo.ulf \
314 # --- File ---------------------------------------------------------
317 .IF
"$(SYSTEM_ICU)" != "YES"
318 $(ICUVERSION_DEPENDENT_FILES
) : $(SOLARINCDIR
)$/icuversion.mk
321 $(ISOLANGVERSION_DEPENDENT_FILES
) : $(SOLARINCDIR
)$/i18npool
/version.mk