Update ooo320-m1
[ooovba.git] / scp2 / source / ooo / makefile.mk
blobc5f65f7d745350773a2e78a78722eacfc16d48eb
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
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 #*************************************************************************
31 PRJ=..$/..
33 PRJPCH=
35 PRJNAME=scp2
36 TARGET=ooo
37 TARGETTYPE=CUI
39 # --- Settings -----------------------------------------------------
41 .INCLUDE : settings.mk
42 .INCLUDE : i18npool/version.mk
44 .IF "$(COM)" == "MSC"
45 SCPDEFS+=-D_MSC
46 .ENDIF
48 .IF "$(ENABLE_CRASHDUMP)"!=""
49 SCPDEFS+=-DENABLE_CRASHDUMP
50 .ENDIF
52 .IF "$(BUILD_SPECIAL)"!=""
53 SCPDEFS+=-DBUILD_SPECIAL
54 .ENDIF
56 SCPDEFS+=-DINCLUDE_JAVA_ACCESSBRIDGE
58 .IF "$(PROF_EDITION)"!=""
59 SCPDEFS+=-DPROF_EDITION
60 .ENDIF
62 .IF "$(GUI)"=="UNX"
63 .IF "$(ENABLE_GTK)" != ""
64 SCPDEFS+=-DENABLE_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
70 .ENDIF
71 .ENDIF
72 .ENDIF # "$(GUI)"=="UNX"
74 .IF "$(ENABLE_SYSTRAY_GTK)" != ""
75 SCPDEFS+=-DENABLE_SYSTRAY_GTK
76 .ENDIF
78 .IF "$(ENABLE_KDE)" != ""
79 SCPDEFS+=-DENABLE_KDE
80 .ENDIF
82 .IF "$(ENABLE_KDE4)" != ""
83 SCPDEFS+=-DENABLE_KDE4
84 .ENDIF
86 .IF "$(ENABLE_KAB)" != ""
87 SCPDEFS+=-DENABLE_KAB
88 .ENDIF
90 .IF "$(ENABLE_EVOAB2)" != ""
91 SCPDEFS+=-DENABLE_EVOAB2
92 .ENDIF
94 .IF "$(ENABLE_DIRECTX)" != ""
95 SCPDEFS+=-DENABLE_DIRECTX
96 .ENDIF
98 .IF "$(SYSTEM_FREETYPE)" == "YES"
99 SCPDEFS+=-DSYSTEM_FREETYPE
100 .ENDIF
102 .IF "$(SYSTEM_CAIRO)" == "YES"
103 SCPDEFS+=-DSYSTEM_CAIRO
104 .ENDIF
106 .IF "$(ENABLE_CAIRO)" == "YES"
107 SCPDEFS+=-DENABLE_CAIRO
108 .ENDIF
110 .IF "$(SYSTEM_LIBXML)" == "YES"
111 SCPDEFS+=-DSYSTEM_LIBXML
112 .ENDIF
114 .IF "$(SYSTEM_LIBXSLT)" == "YES"
115 SCPDEFS+=-DSYSTEM_LIBXSLT
116 .ELSE
117 .INCLUDE : libxsltversion.mk
118 SCPDEFS+=-DLIBXSLT_MAJOR=$(LIBXSLT_MAJOR)
119 .ENDIF
121 .IF "$(SYSTEM_DB)" == "YES"
122 SCPDEFS+=-DSYSTEM_DB
123 .ENDIF
125 .IF "$(USE_SYSTEM_STL)" == "YES" || "$(STLPORT4)" != "NO_STLPORT4"
126 SCPDEFS+=-DUSE_SYSTEM_STL
127 .ENDIF
129 .IF "$(WITH_MOZILLA)" == "NO"
130 SCPDEFS+=-DWITHOUT_MOZILLA
131 .ENDIF
133 .IF "$(WITH_MYSPELL_DICTS)" == "NO"
134 SCPDEFS+=-DWITHOUT_MYSPELL_DICTS
135 .ENDIF
137 .IF "$(SYSTEM_MOZILLA)" == "YES"
138 SCPDEFS+=-DSYSTEM_MOZILLA
139 .ENDIF
141 .IF "$(WITH_LDAP)" == "YES"
142 SCPDEFS+=-DWITH_LDAP
143 .ENDIF
145 .IF "$(SYSTEM_CURL)" == "YES"
146 SCPDEFS+=-DSYSTEM_CURL
147 .ENDIF
149 .IF "$(SYSTEM_STDLIBS)" == "YES"
150 SCPDEFS+=-DSYSTEM_STDLIBS
151 .ENDIF
153 .IF "$(ENABLE_MONO)" == "YES"
154 SCPDEFS+=-DENABLE_MONO
155 .ENDIF
157 .IF "$(SYSTEM_SNDFILE)" == "YES"
158 SCPDEFS+=-DSYSTEM_SNDFILE
159 .ENDIF
161 .IF "$(SYSTEM_PORTAUDIO)" == "YES"
162 SCPDEFS+=-DSYSTEM_PORTAUDIO
163 .ENDIF
165 .IF "$(SYSTEM_HUNSPELL)" == "YES"
166 SCPDEFS+=-DSYSTEM_HUNSPELL
167 .ENDIF
169 .IF "$(SYSTEM_REDLAND)" == "YES"
170 SCPDEFS+=-DSYSTEM_REDLAND
171 .ELSE
172 .INCLUDE : redlandversion.mk
173 SCPDEFS+=\
174 -DRAPTOR_MAJOR=$(RAPTOR_MAJOR) \
175 -DRASQAL_MAJOR=$(RASQAL_MAJOR) \
176 -DREDLAND_MAJOR=$(REDLAND_MAJOR)
177 .ENDIF
179 .IF "$(SYSTEM_BSH)" == "YES"
180 SCPDEFS+=-DSYSTEM_BSH -DBSH_JAR=\""file://$(BSH_JAR)"\"
181 .ENDIF
183 .IF "$(SYSTEM_HSQLDB)" == "YES"
184 SCPDEFS+=-DSYSTEM_HSQLDB -DHSQLDB_JAR=\""file://$(HSQLDB_JAR)"\"
185 .ENDIF
187 .IF "$(SYSTEM_SAXON)" == "YES"
188 SCPDEFS+=-DSYSTEM_SAXON -DSAXON_JAR=\""file://$(SAXON_JAR)"\"
189 .ENDIF
191 .IF "$(JDK)" == "gcj"
192 SCPDEFS+=-DGCJ
193 .ENDIF
196 .IF "$(ENABLE_CAIRO)" == "TRUE"
197 SCPDEFS+=-DENABLE_CAIRO
198 .ENDIF
200 .IF "$(SYSTEM_LUCENE)" == "YES"
201 SCPDEFS+=-DSYSTEM_LUCENE
202 .ENDIF
204 .IF "$(SYSTEM_ICU)" == "YES"
205 SCPDEFS+=-DSYSTEM_ICU
206 .ELSE
207 .INCLUDE : icuversion.mk
208 SCPDEFS+=\
209 -DICU_MAJOR=$(ICU_MAJOR) \
210 -DICU_MINOR=$(ICU_MINOR) \
211 -DICU_MICRO=$(ICU_MICRO)
212 .ENDIF
214 SCPDEFS+=-DISOLANG_MAJOR=$(ISOLANG_MAJOR)
216 .IF "$(DISABLE_NEON)" == "TRUE"
217 SCPDEFS+=-DDISABLE_NEON
218 .ENDIF
220 # if yes or unset (neon not used) -> do not install openssl library!
221 .IF $(SYSTEM_OPENSSL) != "YES"
222 SCPDEFS+=-DOPENSSL
223 .ENDIF
225 .IF "$(ENABLE_VBA)" == "YES"
226 .IF "$(VBA_EXTENSION)" == "YES"
227 SCPDEFS+=-DVBA_EXTENSION
228 .ENDIF
229 SCPDEFS+=-DENABLE_VBA
230 .ENDIF
232 .IF "$(DISABLE_ATL)"!=""
233 SCPDEFS+=-DDISABLE_ATL
234 .ENDIF
236 .IF "$(SYSTEM_PYTHON)" == "YES"
237 SCPDEFS+=-DSYSTEM_PYTHON
238 .ENDIF
240 .IF "$(ENABLE_SVCTAGS)" == "YES"
241 SCPDEFS+=-DENABLE_SVCTAGS
242 .ENDIF
244 .IF "$(WITH_VC_REDIST)" == "TRUE"
245 SCPDEFS+=-DWITH_VC_REDIST
246 .ENDIF
248 .IF "$(MINGW_GCCDLL)"!=""
249 SCPDEFS+=-DMINGW_GCCDLL=\""$(MINGW_GCCDLL)"\"
250 .ENDIF
252 .IF "$(MINGW_GXXDLL)"!=""
253 SCPDEFS+=-DMINGW_GXXDLL=\""$(MINGW_GXXDLL)"\"
254 .ENDIF
256 SCP_PRODUCT_TYPE=osl
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
265 PARFILES= \
266 installation_ooo.par \
267 scpaction_ooo.par \
268 directory_ooo.par \
269 directory_ooo_macosx.par \
270 datacarrier_ooo.par \
271 file_ooo.par \
272 file_extra_ooo.par \
273 file_font_ooo.par \
274 file_library_ooo.par \
275 file_resource_ooo.par \
276 file_improvement.par \
277 shortcut_ooo.par \
278 module_ooo.par \
279 module_hidden_ooo.par \
280 module_langpack.par \
281 module_lang_template.par \
282 module_java.par \
283 module_systemint.par \
284 module_improvement.par \
285 profile_ooo.par \
286 profileitem_ooo.par \
287 ure.par \
288 ure_into_ooo.par \
289 ure_standalone.par \
290 common_brand.par \
291 common_brand_readme.par \
292 ooo_brand.par
294 .IF "$(GUI)"=="WNT"
295 PARFILES += \
296 file_jre_ooo.par \
297 folder_ooo.par \
298 folderitem_ooo.par \
299 registryitem_ooo.par \
300 mergemodules_ooo.par \
301 vc_redist.par \
302 windowscustomaction_ooo.par
303 .ENDIF
305 ULFFILES= \
306 directory_ooo.ulf \
307 folderitem_ooo.ulf \
308 module_ooo.ulf \
309 module_langpack.ulf \
310 module_java.ulf \
311 registryitem_ooo.ulf \
312 module_systemint.ulf
314 # --- File ---------------------------------------------------------
315 .INCLUDE : target.mk
317 .IF "$(SYSTEM_ICU)" != "YES"
318 $(ICUVERSION_DEPENDENT_FILES) : $(SOLARINCDIR)$/icuversion.mk
319 .ENDIF
321 $(ISOLANGVERSION_DEPENDENT_FILES) : $(SOLARINCDIR)$/i18npool/version.mk