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