1#************************************************************************* 2# 3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4# 5# Copyright 2000, 2010 Oracle and/or its affiliates. 6# 7# OpenOffice.org - a multi-platform office productivity suite 8# 9# This file is part of OpenOffice.org. 10# 11# OpenOffice.org is free software: you can redistribute it and/or modify 12# it under the terms of the GNU Lesser General Public License version 3 13# only, as published by the Free Software Foundation. 14# 15# OpenOffice.org is distributed in the hope that it will be useful, 16# but WITHOUT ANY WARRANTY; without even the implied warranty of 17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18# GNU Lesser General Public License version 3 for more details 19# (a copy is included in the LICENSE file that accompanied this code). 20# 21# You should have received a copy of the GNU Lesser General Public License 22# version 3 along with OpenOffice.org. If not, see 23# <http://www.openoffice.org/license.html> 24# for a copy of the LGPLv3 License. 25# 26#************************************************************************* 27 28PRJ=. 29 30PRJNAME=libxslt 31TARGET=so_libxslt 32 33# --- Settings ----------------------------------------------------- 34 35.INCLUDE : settings.mk 36 37.IF "$(SYSTEM_LIBXSLT)" == "YES" 38all: 39 @echo "An already available installation of libxslt should exist on your system." 40 @echo "Therefore the version provided here does not need to be built in addition." 41.ENDIF 42 43# --- Files -------------------------------------------------------- 44 45.IF "$(L10N_framework)"=="" 46 47.INCLUDE : libxsltversion.mk 48 49LIBXSLTVERSION=$(LIBXSLT_MAJOR).$(LIBXSLT_MINOR).$(LIBXSLT_MICRO) 50 51TARFILE_NAME=$(PRJNAME)-$(LIBXSLTVERSION) 52TARFILE_MD5=e61d0364a30146aaa3001296f853b2b9 53 54# libxslt-internal-symbols: #i112480#: Solaris ld requires symbols to be defined 55PATCH_FILES=libxslt-configure.patch \ 56 libxslt-bsd.patch \ 57 libxslt-win_manifest.patch \ 58 libxslt-mingw.patch \ 59 libxslt-internal-symbols.patch 60 61 62# This is only for UNX environment now 63.IF "$(OS)"=="WNT" 64.IF "$(COM)"=="GCC" 65xslt_CC=$(CC) -mthreads 66.IF "$(MINGW_SHARED_GCCLIB)"=="YES" 67xslt_CC+=-shared-libgcc 68.ENDIF 69xslt_LIBS= 70.IF "$(MINGW_SHARED_GXXLIB)"=="YES" 71xslt_LIBS+=$(MINGW_SHARED_LIBSTDCPP) 72.ENDIF 73CONFIGURE_DIR= 74CONFIGURE_ACTION=.$/configure 75CONFIGURE_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 76BUILD_ACTION=chmod 777 xslt-config && $(GNUMAKE) 77BUILD_FLAGS+= -j$(EXTMAXPROCESS) 78BUILD_DIR=$(CONFIGURE_DIR) 79.IF "$(GUI)$(COM)"=="WNTGCC" 80.EXPORT : PWD 81.ENDIF 82.ELSE 83CONFIGURE_DIR=win32 84CONFIGURE_ACTION=cscript configure.js 85#CONFIGURE_FLAGS=iconv=no sax1=yes 86.IF "$(debug)"!="" 87CONFIGURE_FLAGS+=debug=yes 88.ENDIF 89BUILD_ACTION=nmake 90BUILD_DIR=$(CONFIGURE_DIR) 91.ENDIF 92.ELSE 93 94.IF "$(OS)$(COM)"=="LINUXGCC" || "$(OS)$(COM)"=="FREEBSDGCC" 95LDFLAGS:=-Wl,-rpath,'$$$$ORIGIN:$$$$ORIGIN/../ure-link/lib' -Wl,-noinhibit-exec 96.ENDIF # "$(OS)$(COM)"=="LINUXGCC" 97.IF "$(OS)$(COM)"=="SOLARISC52" 98LDFLAGS:=-Wl,-R'$$$$ORIGIN:$$$$ORIGIN/../ure-link/lib' 99.ENDIF # "$(OS)$(COM)"=="SOLARISC52" 100 101.IF "$(SYSBASE)"!="" 102CPPFLAGS+:=-I$(SOLARINCDIR)$/external -I$(SYSBASE)$/usr$/include $(EXTRA_CFLAGS) 103.IF "$(OS)"=="SOLARIS" || "$(OS)"=="LINUX" 104LDFLAGS+:=-L$(SOLARLIBDIR) -L$(SYSBASE)$/lib -L$(SYSBASE)$/usr$/lib -lpthread -ldl 105.ENDIF 106.ENDIF # "$(SYSBASE)"!="" 107 108.EXPORT: CPPFLAGS 109.EXPORT: LDFLAGS 110.EXPORT: LIBXML2LIB 111 112.IF "$(COMNAME)"=="sunpro5" 113CPPFLAGS+:=$(ARCH_FLAGS) -xc99=none 114.ENDIF # "$(COMNAME)"=="sunpro5" 115CONFIGURE_DIR= 116CONFIGURE_ACTION=.$/configure 117CONFIGURE_FLAGS=--enable-ipv6=no --without-crypto --without-python --enable-static=no --with-sax1=yes 118BUILD_ACTION=chmod 777 xslt-config && $(GNUMAKE) 119BUILD_FLAGS+= -j$(EXTMAXPROCESS) 120BUILD_DIR=$(CONFIGURE_DIR) 121.ENDIF 122 123OUT2INC=libxslt$/*.h 124 125.IF "$(OS)"=="MACOSX" 126OUT2LIB+=libxslt$/.libs$/libxslt.*.dylib 127OUT2LIB+=libexslt$/.libs$/libexslt.*.dylib 128OUT2BIN+=xsltproc$/.libs$/xsltproc 129OUT2BIN+=xslt-config 130.ELIF "$(OS)"=="WNT" 131.IF "$(COM)"=="GCC" 132OUT2LIB+=libxslt$/.libs$/*.a 133OUT2LIB+=libexslt$/.libs$/*.a 134OUT2BIN+=libxslt$/.libs$/*.dll 135OUT2BIN+=libexslt$/.libs$/*.dll 136OUT2BIN+=xsltproc$/.libs$/*.exe* 137OUT2BIN+=xslt-config 138.ELSE 139OUT2LIB+=win32$/bin.msvc$/*.lib 140OUT2BIN+=win32$/bin.msvc$/*.dll 141OUT2BIN+=win32$/bin.msvc$/*.exe 142.ENDIF 143.ELSE 144OUT2LIB+=libxslt$/.libs$/libxslt.so* 145OUT2LIB+=libexslt$/.libs$/libexslt.so* 146OUT2BIN+=xsltproc$/.libs$/xsltproc 147OUT2BIN+=xslt-config 148.ENDIF 149 150# --- Targets ------------------------------------------------------ 151.ENDIF # L10N_framework 152.INCLUDE : set_ext.mk 153.INCLUDE : target.mk 154.INCLUDE : tg_ext.mk 155 156