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