1*7871dc3eSAndrew Rist#************************************************************** 2*7871dc3eSAndrew Rist# 3*7871dc3eSAndrew Rist# Licensed to the Apache Software Foundation (ASF) under one 4*7871dc3eSAndrew Rist# or more contributor license agreements. See the NOTICE file 5*7871dc3eSAndrew Rist# distributed with this work for additional information 6*7871dc3eSAndrew Rist# regarding copyright ownership. The ASF licenses this file 7*7871dc3eSAndrew Rist# to you under the Apache License, Version 2.0 (the 8*7871dc3eSAndrew Rist# "License"); you may not use this file except in compliance 9*7871dc3eSAndrew Rist# with the License. You may obtain a copy of the License at 10*7871dc3eSAndrew Rist# 11*7871dc3eSAndrew Rist# http://www.apache.org/licenses/LICENSE-2.0 12*7871dc3eSAndrew Rist# 13*7871dc3eSAndrew Rist# Unless required by applicable law or agreed to in writing, 14*7871dc3eSAndrew Rist# software distributed under the License is distributed on an 15*7871dc3eSAndrew Rist# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*7871dc3eSAndrew Rist# KIND, either express or implied. See the License for the 17*7871dc3eSAndrew Rist# specific language governing permissions and limitations 18*7871dc3eSAndrew Rist# under the License. 19*7871dc3eSAndrew Rist# 20*7871dc3eSAndrew Rist#************************************************************** 21*7871dc3eSAndrew Rist 22*7871dc3eSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweirPRJ=. 25cdf0e10cSrcweir 26cdf0e10cSrcweirPRJNAME=libxslt 27cdf0e10cSrcweirTARGET=so_libxslt 28cdf0e10cSrcweir 29cdf0e10cSrcweir# --- Settings ----------------------------------------------------- 30cdf0e10cSrcweir 31cdf0e10cSrcweir.INCLUDE : settings.mk 32cdf0e10cSrcweir 33cdf0e10cSrcweir.IF "$(SYSTEM_LIBXSLT)" == "YES" 34cdf0e10cSrcweirall: 35cdf0e10cSrcweir @echo "An already available installation of libxslt should exist on your system." 36cdf0e10cSrcweir @echo "Therefore the version provided here does not need to be built in addition." 37cdf0e10cSrcweir.ENDIF 38cdf0e10cSrcweir 39cdf0e10cSrcweir# --- Files -------------------------------------------------------- 40cdf0e10cSrcweir 41cdf0e10cSrcweir.IF "$(L10N_framework)"=="" 42cdf0e10cSrcweir 43cdf0e10cSrcweir.INCLUDE : libxsltversion.mk 44cdf0e10cSrcweir 45cdf0e10cSrcweirLIBXSLTVERSION=$(LIBXSLT_MAJOR).$(LIBXSLT_MINOR).$(LIBXSLT_MICRO) 46cdf0e10cSrcweir 47cdf0e10cSrcweirTARFILE_NAME=$(PRJNAME)-$(LIBXSLTVERSION) 48cdf0e10cSrcweirTARFILE_MD5=e61d0364a30146aaa3001296f853b2b9 49cdf0e10cSrcweir 50cdf0e10cSrcweir# libxslt-internal-symbols: #i112480#: Solaris ld requires symbols to be defined 51cdf0e10cSrcweirPATCH_FILES=libxslt-configure.patch \ 5235e762bdSPedro Giffuni libxslt-bsd.patch \ 53cdf0e10cSrcweir libxslt-win_manifest.patch \ 54cdf0e10cSrcweir libxslt-mingw.patch \ 55cdf0e10cSrcweir libxslt-internal-symbols.patch 56cdf0e10cSrcweir 57cdf0e10cSrcweir 58cdf0e10cSrcweir# This is only for UNX environment now 59cdf0e10cSrcweir.IF "$(OS)"=="WNT" 60cdf0e10cSrcweir.IF "$(COM)"=="GCC" 61cdf0e10cSrcweirxslt_CC=$(CC) -mthreads 62cdf0e10cSrcweir.IF "$(MINGW_SHARED_GCCLIB)"=="YES" 63cdf0e10cSrcweirxslt_CC+=-shared-libgcc 64cdf0e10cSrcweir.ENDIF 65cdf0e10cSrcweirxslt_LIBS= 66cdf0e10cSrcweir.IF "$(MINGW_SHARED_GXXLIB)"=="YES" 67cdf0e10cSrcweirxslt_LIBS+=$(MINGW_SHARED_LIBSTDCPP) 68cdf0e10cSrcweir.ENDIF 69cdf0e10cSrcweirCONFIGURE_DIR= 70cdf0e10cSrcweirCONFIGURE_ACTION=.$/configure 71cdf0e10cSrcweirCONFIGURE_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 72cdf0e10cSrcweirBUILD_ACTION=chmod 777 xslt-config && $(GNUMAKE) 73cdf0e10cSrcweirBUILD_FLAGS+= -j$(EXTMAXPROCESS) 74cdf0e10cSrcweirBUILD_DIR=$(CONFIGURE_DIR) 75cdf0e10cSrcweir.IF "$(GUI)$(COM)"=="WNTGCC" 76cdf0e10cSrcweir.EXPORT : PWD 77cdf0e10cSrcweir.ENDIF 78cdf0e10cSrcweir.ELSE 79cdf0e10cSrcweirCONFIGURE_DIR=win32 80cdf0e10cSrcweirCONFIGURE_ACTION=cscript configure.js 81cdf0e10cSrcweir#CONFIGURE_FLAGS=iconv=no sax1=yes 82cdf0e10cSrcweir.IF "$(debug)"!="" 83cdf0e10cSrcweirCONFIGURE_FLAGS+=debug=yes 84cdf0e10cSrcweir.ENDIF 85cdf0e10cSrcweirBUILD_ACTION=nmake 86cdf0e10cSrcweirBUILD_DIR=$(CONFIGURE_DIR) 87cdf0e10cSrcweir.ENDIF 88cdf0e10cSrcweir.ELSE 89cdf0e10cSrcweir 90cdf0e10cSrcweir.IF "$(OS)$(COM)"=="LINUXGCC" || "$(OS)$(COM)"=="FREEBSDGCC" 91cdf0e10cSrcweirLDFLAGS:=-Wl,-rpath,'$$$$ORIGIN:$$$$ORIGIN/../ure-link/lib' -Wl,-noinhibit-exec 92cdf0e10cSrcweir.ENDIF # "$(OS)$(COM)"=="LINUXGCC" 93cdf0e10cSrcweir.IF "$(OS)$(COM)"=="SOLARISC52" 94cdf0e10cSrcweirLDFLAGS:=-Wl,-R'$$$$ORIGIN:$$$$ORIGIN/../ure-link/lib' 95cdf0e10cSrcweir.ENDIF # "$(OS)$(COM)"=="SOLARISC52" 96cdf0e10cSrcweir 97cdf0e10cSrcweir.IF "$(SYSBASE)"!="" 98cdf0e10cSrcweirCPPFLAGS+:=-I$(SOLARINCDIR)$/external -I$(SYSBASE)$/usr$/include $(EXTRA_CFLAGS) 99cdf0e10cSrcweir.IF "$(OS)"=="SOLARIS" || "$(OS)"=="LINUX" 100cdf0e10cSrcweirLDFLAGS+:=-L$(SOLARLIBDIR) -L$(SYSBASE)$/lib -L$(SYSBASE)$/usr$/lib -lpthread -ldl 101cdf0e10cSrcweir.ENDIF 102cdf0e10cSrcweir.ENDIF # "$(SYSBASE)"!="" 103cdf0e10cSrcweir 104cdf0e10cSrcweir.EXPORT: CPPFLAGS 105cdf0e10cSrcweir.EXPORT: LDFLAGS 106cdf0e10cSrcweir.EXPORT: LIBXML2LIB 107cdf0e10cSrcweir 108cdf0e10cSrcweir.IF "$(COMNAME)"=="sunpro5" 109cdf0e10cSrcweirCPPFLAGS+:=$(ARCH_FLAGS) -xc99=none 110cdf0e10cSrcweir.ENDIF # "$(COMNAME)"=="sunpro5" 111cdf0e10cSrcweirCONFIGURE_DIR= 112cdf0e10cSrcweirCONFIGURE_ACTION=.$/configure 113cdf0e10cSrcweirCONFIGURE_FLAGS=--enable-ipv6=no --without-crypto --without-python --enable-static=no --with-sax1=yes 114cdf0e10cSrcweirBUILD_ACTION=chmod 777 xslt-config && $(GNUMAKE) 115cdf0e10cSrcweirBUILD_FLAGS+= -j$(EXTMAXPROCESS) 116cdf0e10cSrcweirBUILD_DIR=$(CONFIGURE_DIR) 117cdf0e10cSrcweir.ENDIF 118cdf0e10cSrcweir 119cdf0e10cSrcweirOUT2INC=libxslt$/*.h 120cdf0e10cSrcweir 121cdf0e10cSrcweir.IF "$(OS)"=="MACOSX" 122cdf0e10cSrcweirOUT2LIB+=libxslt$/.libs$/libxslt.*.dylib 123cdf0e10cSrcweirOUT2LIB+=libexslt$/.libs$/libexslt.*.dylib 124cdf0e10cSrcweirOUT2BIN+=xsltproc$/.libs$/xsltproc 125cdf0e10cSrcweirOUT2BIN+=xslt-config 126cdf0e10cSrcweir.ELIF "$(OS)"=="WNT" 127cdf0e10cSrcweir.IF "$(COM)"=="GCC" 128cdf0e10cSrcweirOUT2LIB+=libxslt$/.libs$/*.a 129cdf0e10cSrcweirOUT2LIB+=libexslt$/.libs$/*.a 130cdf0e10cSrcweirOUT2BIN+=libxslt$/.libs$/*.dll 131cdf0e10cSrcweirOUT2BIN+=libexslt$/.libs$/*.dll 132cdf0e10cSrcweirOUT2BIN+=xsltproc$/.libs$/*.exe* 133cdf0e10cSrcweirOUT2BIN+=xslt-config 134cdf0e10cSrcweir.ELSE 135cdf0e10cSrcweirOUT2LIB+=win32$/bin.msvc$/*.lib 136cdf0e10cSrcweirOUT2BIN+=win32$/bin.msvc$/*.dll 137cdf0e10cSrcweirOUT2BIN+=win32$/bin.msvc$/*.exe 138cdf0e10cSrcweir.ENDIF 139cdf0e10cSrcweir.ELSE 140cdf0e10cSrcweirOUT2LIB+=libxslt$/.libs$/libxslt.so* 141cdf0e10cSrcweirOUT2LIB+=libexslt$/.libs$/libexslt.so* 142cdf0e10cSrcweirOUT2BIN+=xsltproc$/.libs$/xsltproc 143cdf0e10cSrcweirOUT2BIN+=xslt-config 144cdf0e10cSrcweir.ENDIF 145cdf0e10cSrcweir 146cdf0e10cSrcweir# --- Targets ------------------------------------------------------ 147cdf0e10cSrcweir.ENDIF # L10N_framework 148cdf0e10cSrcweir.INCLUDE : set_ext.mk 149cdf0e10cSrcweir.INCLUDE : target.mk 150cdf0e10cSrcweir.INCLUDE : tg_ext.mk 151cdf0e10cSrcweir 152