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*cdf0e10cSrcweir 28*cdf0e10cSrcweirPRJ=. 29*cdf0e10cSrcweir 30*cdf0e10cSrcweirPRJNAME=libxslt 31*cdf0e10cSrcweirTARGET=so_libxslt 32*cdf0e10cSrcweir 33*cdf0e10cSrcweir# --- Settings ----------------------------------------------------- 34*cdf0e10cSrcweir 35*cdf0e10cSrcweir.INCLUDE : settings.mk 36*cdf0e10cSrcweir 37*cdf0e10cSrcweir.IF "$(SYSTEM_LIBXSLT)" == "YES" 38*cdf0e10cSrcweirall: 39*cdf0e10cSrcweir @echo "An already available installation of libxslt should exist on your system." 40*cdf0e10cSrcweir @echo "Therefore the version provided here does not need to be built in addition." 41*cdf0e10cSrcweir.ENDIF 42*cdf0e10cSrcweir 43*cdf0e10cSrcweir# --- Files -------------------------------------------------------- 44*cdf0e10cSrcweir 45*cdf0e10cSrcweir.IF "$(L10N_framework)"=="" 46*cdf0e10cSrcweir 47*cdf0e10cSrcweir.INCLUDE : libxsltversion.mk 48*cdf0e10cSrcweir 49*cdf0e10cSrcweirLIBXSLTVERSION=$(LIBXSLT_MAJOR).$(LIBXSLT_MINOR).$(LIBXSLT_MICRO) 50*cdf0e10cSrcweir 51*cdf0e10cSrcweirTARFILE_NAME=$(PRJNAME)-$(LIBXSLTVERSION) 52*cdf0e10cSrcweirTARFILE_MD5=e61d0364a30146aaa3001296f853b2b9 53*cdf0e10cSrcweir 54*cdf0e10cSrcweir# libxslt-internal-symbols: #i112480#: Solaris ld requires symbols to be defined 55*cdf0e10cSrcweirPATCH_FILES=libxslt-configure.patch \ 56*cdf0e10cSrcweir libxslt-win_manifest.patch \ 57*cdf0e10cSrcweir libxslt-mingw.patch \ 58*cdf0e10cSrcweir libxslt-internal-symbols.patch 59*cdf0e10cSrcweir 60*cdf0e10cSrcweir 61*cdf0e10cSrcweir# This is only for UNX environment now 62*cdf0e10cSrcweir.IF "$(OS)"=="WNT" 63*cdf0e10cSrcweir.IF "$(COM)"=="GCC" 64*cdf0e10cSrcweirxslt_CC=$(CC) -mthreads 65*cdf0e10cSrcweir.IF "$(MINGW_SHARED_GCCLIB)"=="YES" 66*cdf0e10cSrcweirxslt_CC+=-shared-libgcc 67*cdf0e10cSrcweir.ENDIF 68*cdf0e10cSrcweirxslt_LIBS= 69*cdf0e10cSrcweir.IF "$(MINGW_SHARED_GXXLIB)"=="YES" 70*cdf0e10cSrcweirxslt_LIBS+=$(MINGW_SHARED_LIBSTDCPP) 71*cdf0e10cSrcweir.ENDIF 72*cdf0e10cSrcweirCONFIGURE_DIR= 73*cdf0e10cSrcweirCONFIGURE_ACTION=.$/configure 74*cdf0e10cSrcweirCONFIGURE_FLAGS=--without-crypto --without-python --enable-static=no --build=i586-pc-mingw32 --host=i586-pc-mingw32 CC="$(xslt_CC)" CFLAGS="$(xslt_CFLAGS)" LDFLAGS="-no-undefined -Wl,--enable-runtime-pseudo-reloc-v2 -L$(ILIB:s/;/ -L/)" LIBS="$(xslt_LIBS)" LIBXML2LIB=$(LIBXML2LIB) OBJDUMP=objdump 75*cdf0e10cSrcweirBUILD_ACTION=chmod 777 xslt-config && $(GNUMAKE) 76*cdf0e10cSrcweirBUILD_FLAGS+= -j$(EXTMAXPROCESS) 77*cdf0e10cSrcweirBUILD_DIR=$(CONFIGURE_DIR) 78*cdf0e10cSrcweir.IF "$(GUI)$(COM)"=="WNTGCC" 79*cdf0e10cSrcweir.EXPORT : PWD 80*cdf0e10cSrcweir.ENDIF 81*cdf0e10cSrcweir.ELSE 82*cdf0e10cSrcweirCONFIGURE_DIR=win32 83*cdf0e10cSrcweirCONFIGURE_ACTION=cscript configure.js 84*cdf0e10cSrcweir#CONFIGURE_FLAGS=iconv=no sax1=yes 85*cdf0e10cSrcweir.IF "$(debug)"!="" 86*cdf0e10cSrcweirCONFIGURE_FLAGS+=debug=yes 87*cdf0e10cSrcweir.ENDIF 88*cdf0e10cSrcweirBUILD_ACTION=nmake 89*cdf0e10cSrcweirBUILD_DIR=$(CONFIGURE_DIR) 90*cdf0e10cSrcweir.ENDIF 91*cdf0e10cSrcweir.ELSE 92*cdf0e10cSrcweir 93*cdf0e10cSrcweir.IF "$(OS)$(COM)"=="LINUXGCC" || "$(OS)$(COM)"=="FREEBSDGCC" 94*cdf0e10cSrcweirLDFLAGS:=-Wl,-rpath,'$$$$ORIGIN:$$$$ORIGIN/../ure-link/lib' -Wl,-noinhibit-exec 95*cdf0e10cSrcweir.ENDIF # "$(OS)$(COM)"=="LINUXGCC" 96*cdf0e10cSrcweir.IF "$(OS)$(COM)"=="SOLARISC52" 97*cdf0e10cSrcweirLDFLAGS:=-Wl,-R'$$$$ORIGIN:$$$$ORIGIN/../ure-link/lib' 98*cdf0e10cSrcweir.ENDIF # "$(OS)$(COM)"=="SOLARISC52" 99*cdf0e10cSrcweir 100*cdf0e10cSrcweir.IF "$(SYSBASE)"!="" 101*cdf0e10cSrcweirCPPFLAGS+:=-I$(SOLARINCDIR)$/external -I$(SYSBASE)$/usr$/include $(EXTRA_CFLAGS) 102*cdf0e10cSrcweir.IF "$(OS)"=="SOLARIS" || "$(OS)"=="LINUX" 103*cdf0e10cSrcweirLDFLAGS+:=-L$(SOLARLIBDIR) -L$(SYSBASE)$/lib -L$(SYSBASE)$/usr$/lib -lpthread -ldl 104*cdf0e10cSrcweir.ENDIF 105*cdf0e10cSrcweir.ENDIF # "$(SYSBASE)"!="" 106*cdf0e10cSrcweir 107*cdf0e10cSrcweir.EXPORT: CPPFLAGS 108*cdf0e10cSrcweir.EXPORT: LDFLAGS 109*cdf0e10cSrcweir.EXPORT: LIBXML2LIB 110*cdf0e10cSrcweir 111*cdf0e10cSrcweir.IF "$(COMNAME)"=="sunpro5" 112*cdf0e10cSrcweirCPPFLAGS+:=$(ARCH_FLAGS) -xc99=none 113*cdf0e10cSrcweir.ENDIF # "$(COMNAME)"=="sunpro5" 114*cdf0e10cSrcweirCONFIGURE_DIR= 115*cdf0e10cSrcweirCONFIGURE_ACTION=.$/configure 116*cdf0e10cSrcweirCONFIGURE_FLAGS=--enable-ipv6=no --without-crypto --without-python --enable-static=no --with-sax1=yes 117*cdf0e10cSrcweirBUILD_ACTION=chmod 777 xslt-config && $(GNUMAKE) 118*cdf0e10cSrcweirBUILD_FLAGS+= -j$(EXTMAXPROCESS) 119*cdf0e10cSrcweirBUILD_DIR=$(CONFIGURE_DIR) 120*cdf0e10cSrcweir.ENDIF 121*cdf0e10cSrcweir 122*cdf0e10cSrcweirOUT2INC=libxslt$/*.h 123*cdf0e10cSrcweir 124*cdf0e10cSrcweir.IF "$(OS)"=="MACOSX" 125*cdf0e10cSrcweirOUT2LIB+=libxslt$/.libs$/libxslt.*.dylib 126*cdf0e10cSrcweirOUT2LIB+=libexslt$/.libs$/libexslt.*.dylib 127*cdf0e10cSrcweirOUT2BIN+=xsltproc$/.libs$/xsltproc 128*cdf0e10cSrcweirOUT2BIN+=xslt-config 129*cdf0e10cSrcweir.ELIF "$(OS)"=="WNT" 130*cdf0e10cSrcweir.IF "$(COM)"=="GCC" 131*cdf0e10cSrcweirOUT2LIB+=libxslt$/.libs$/*.a 132*cdf0e10cSrcweirOUT2LIB+=libexslt$/.libs$/*.a 133*cdf0e10cSrcweirOUT2BIN+=libxslt$/.libs$/*.dll 134*cdf0e10cSrcweirOUT2BIN+=libexslt$/.libs$/*.dll 135*cdf0e10cSrcweirOUT2BIN+=xsltproc$/.libs$/*.exe* 136*cdf0e10cSrcweirOUT2BIN+=xslt-config 137*cdf0e10cSrcweir.ELSE 138*cdf0e10cSrcweirOUT2LIB+=win32$/bin.msvc$/*.lib 139*cdf0e10cSrcweirOUT2BIN+=win32$/bin.msvc$/*.dll 140*cdf0e10cSrcweirOUT2BIN+=win32$/bin.msvc$/*.exe 141*cdf0e10cSrcweir.ENDIF 142*cdf0e10cSrcweir.ELSE 143*cdf0e10cSrcweirOUT2LIB+=libxslt$/.libs$/libxslt.so* 144*cdf0e10cSrcweirOUT2LIB+=libexslt$/.libs$/libexslt.so* 145*cdf0e10cSrcweirOUT2BIN+=xsltproc$/.libs$/xsltproc 146*cdf0e10cSrcweirOUT2BIN+=xslt-config 147*cdf0e10cSrcweir.ENDIF 148*cdf0e10cSrcweir 149*cdf0e10cSrcweir# --- Targets ------------------------------------------------------ 150*cdf0e10cSrcweir.ENDIF # L10N_framework 151*cdf0e10cSrcweir.INCLUDE : set_ext.mk 152*cdf0e10cSrcweir.INCLUDE : target.mk 153*cdf0e10cSrcweir.INCLUDE : tg_ext.mk 154*cdf0e10cSrcweir 155