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-win_manifest.patch \ 57 libxslt-mingw.patch \ 58 libxslt-internal-symbols.patch 59 60 61# This is only for UNX environment now 62.IF "$(OS)"=="WNT" 63.IF "$(COM)"=="GCC" 64xslt_CC=$(CC) -mthreads 65.IF "$(MINGW_SHARED_GCCLIB)"=="YES" 66xslt_CC+=-shared-libgcc 67.ENDIF 68xslt_LIBS= 69.IF "$(MINGW_SHARED_GXXLIB)"=="YES" 70xslt_LIBS+=$(MINGW_SHARED_LIBSTDCPP) 71.ENDIF 72CONFIGURE_DIR= 73CONFIGURE_ACTION=.$/configure 74CONFIGURE_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 75BUILD_ACTION=chmod 777 xslt-config && $(GNUMAKE) 76BUILD_FLAGS+= -j$(EXTMAXPROCESS) 77BUILD_DIR=$(CONFIGURE_DIR) 78.IF "$(GUI)$(COM)"=="WNTGCC" 79.EXPORT : PWD 80.ENDIF 81.ELSE 82CONFIGURE_DIR=win32 83CONFIGURE_ACTION=cscript configure.js 84#CONFIGURE_FLAGS=iconv=no sax1=yes 85.IF "$(debug)"!="" 86CONFIGURE_FLAGS+=debug=yes 87.ENDIF 88BUILD_ACTION=nmake 89BUILD_DIR=$(CONFIGURE_DIR) 90.ENDIF 91.ELSE 92 93.IF "$(OS)$(COM)"=="LINUXGCC" || "$(OS)$(COM)"=="FREEBSDGCC" 94LDFLAGS:=-Wl,-rpath,'$$$$ORIGIN:$$$$ORIGIN/../ure-link/lib' -Wl,-noinhibit-exec 95.ENDIF # "$(OS)$(COM)"=="LINUXGCC" 96.IF "$(OS)$(COM)"=="SOLARISC52" 97LDFLAGS:=-Wl,-R'$$$$ORIGIN:$$$$ORIGIN/../ure-link/lib' 98.ENDIF # "$(OS)$(COM)"=="SOLARISC52" 99 100.IF "$(SYSBASE)"!="" 101CPPFLAGS+:=-I$(SOLARINCDIR)$/external -I$(SYSBASE)$/usr$/include $(EXTRA_CFLAGS) 102.IF "$(OS)"=="SOLARIS" || "$(OS)"=="LINUX" 103LDFLAGS+:=-L$(SOLARLIBDIR) -L$(SYSBASE)$/lib -L$(SYSBASE)$/usr$/lib -lpthread -ldl 104.ENDIF 105.ENDIF # "$(SYSBASE)"!="" 106 107.EXPORT: CPPFLAGS 108.EXPORT: LDFLAGS 109.EXPORT: LIBXML2LIB 110 111.IF "$(COMNAME)"=="sunpro5" 112CPPFLAGS+:=$(ARCH_FLAGS) -xc99=none 113.ENDIF # "$(COMNAME)"=="sunpro5" 114CONFIGURE_DIR= 115CONFIGURE_ACTION=.$/configure 116CONFIGURE_FLAGS=--enable-ipv6=no --without-crypto --without-python --enable-static=no --with-sax1=yes 117BUILD_ACTION=chmod 777 xslt-config && $(GNUMAKE) 118BUILD_FLAGS+= -j$(EXTMAXPROCESS) 119BUILD_DIR=$(CONFIGURE_DIR) 120.ENDIF 121 122OUT2INC=libxslt$/*.h 123 124.IF "$(OS)"=="MACOSX" 125OUT2LIB+=libxslt$/.libs$/libxslt.*.dylib 126OUT2LIB+=libexslt$/.libs$/libexslt.*.dylib 127OUT2BIN+=xsltproc$/.libs$/xsltproc 128OUT2BIN+=xslt-config 129.ELIF "$(OS)"=="WNT" 130.IF "$(COM)"=="GCC" 131OUT2LIB+=libxslt$/.libs$/*.a 132OUT2LIB+=libexslt$/.libs$/*.a 133OUT2BIN+=libxslt$/.libs$/*.dll 134OUT2BIN+=libexslt$/.libs$/*.dll 135OUT2BIN+=xsltproc$/.libs$/*.exe* 136OUT2BIN+=xslt-config 137.ELSE 138OUT2LIB+=win32$/bin.msvc$/*.lib 139OUT2BIN+=win32$/bin.msvc$/*.dll 140OUT2BIN+=win32$/bin.msvc$/*.exe 141.ENDIF 142.ELSE 143OUT2LIB+=libxslt$/.libs$/libxslt.so* 144OUT2LIB+=libexslt$/.libs$/libexslt.so* 145OUT2BIN+=xsltproc$/.libs$/xsltproc 146OUT2BIN+=xslt-config 147.ENDIF 148 149# --- Targets ------------------------------------------------------ 150.ENDIF # L10N_framework 151.INCLUDE : set_ext.mk 152.INCLUDE : target.mk 153.INCLUDE : tg_ext.mk 154 155