2006-10-09 06:27:37 -05:00
|
|
|
#*************************************************************************
|
|
|
|
#
|
2008-04-11 01:19:05 -05:00
|
|
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
|
#
|
|
|
|
# Copyright 2008 by Sun Microsystems, Inc.
|
2006-10-09 06:27:37 -05:00
|
|
|
#
|
2008-04-11 01:19:05 -05:00
|
|
|
# OpenOffice.org - a multi-platform office productivity suite
|
2006-10-09 06:27:37 -05:00
|
|
|
#
|
2008-04-11 01:19:05 -05:00
|
|
|
# $RCSfile: makefile.mk,v $
|
2006-10-09 06:27:37 -05:00
|
|
|
#
|
2008-07-11 04:24:47 -05:00
|
|
|
# $Revision: 1.16 $
|
2006-10-09 06:27:37 -05:00
|
|
|
#
|
2008-04-11 01:19:05 -05:00
|
|
|
# This file is part of OpenOffice.org.
|
2006-10-09 06:27:37 -05:00
|
|
|
#
|
2008-04-11 01:19:05 -05:00
|
|
|
# OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
# only, as published by the Free Software Foundation.
|
2006-10-09 06:27:37 -05:00
|
|
|
#
|
2008-04-11 01:19:05 -05:00
|
|
|
# OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU Lesser General Public License version 3 for more details
|
|
|
|
# (a copy is included in the LICENSE file that accompanied this code).
|
2006-10-09 06:27:37 -05:00
|
|
|
#
|
2008-04-11 01:19:05 -05:00
|
|
|
# You should have received a copy of the GNU Lesser General Public License
|
|
|
|
# version 3 along with OpenOffice.org. If not, see
|
|
|
|
# <http://www.openoffice.org/license.html>
|
|
|
|
# for a copy of the LGPLv3 License.
|
2006-10-09 06:27:37 -05:00
|
|
|
#
|
|
|
|
#*************************************************************************
|
|
|
|
|
|
|
|
PRJ=.
|
|
|
|
|
|
|
|
PRJNAME=libxslt
|
|
|
|
TARGET=so_libxslt
|
|
|
|
|
|
|
|
# --- Settings -----------------------------------------------------
|
|
|
|
|
|
|
|
.INCLUDE : settings.mk
|
|
|
|
|
|
|
|
.IF "$(SYSTEM_LIBXSLT)" == "YES"
|
|
|
|
all:
|
|
|
|
@echo "An already available installation of libxslt should exist on your system."
|
|
|
|
@echo "Therefore the version provided here does not need to be built in addition."
|
|
|
|
.ENDIF
|
|
|
|
|
|
|
|
# --- Files --------------------------------------------------------
|
|
|
|
|
2008-07-11 04:24:47 -05:00
|
|
|
.INCLUDE : libxsltversion.mk
|
|
|
|
|
|
|
|
LIBXSLTVERSION=$(LIBXSLT_MAJOR).$(LIBXSLT_MINOR).$(LIBXSLT_MICRO)
|
2006-10-09 06:27:37 -05:00
|
|
|
|
|
|
|
TARFILE_NAME=$(PRJNAME)-$(LIBXSLTVERSION)
|
2009-02-19 01:29:28 -06:00
|
|
|
PATCH_FILES=$(TARFILE_NAME).patch
|
2006-10-09 06:27:37 -05:00
|
|
|
|
|
|
|
# This is only for UNX environment now
|
|
|
|
|
|
|
|
.IF "$(OS)"=="WNT"
|
2007-07-17 01:24:49 -05:00
|
|
|
.IF "$(COM)"=="GCC"
|
|
|
|
CONFIGURE_DIR=
|
2008-06-06 05:32:42 -05:00
|
|
|
CONFIGURE_ACTION=.$/configure
|
2009-01-20 10:36:21 -06:00
|
|
|
CONFIGURE_FLAGS=--enable-ipv6=no --without-crypto --without-python --enable-static=no --with-sax1=yes --build=i586-pc-mingw32 --host=i586-pc-mingw32 CFLAGS="$(xslt_CFLAGS) -D_MT" LDFLAGS="$(xslt_LDFLAGS) -no-undefined -L$(ILIB:s/;/ -L/)" LIBS="-lmingwthrd" LIBXML2LIB=$(LIBXML2LIB) OBJDUMP="$(WRAPCMD) objdump"
|
2008-06-06 05:32:42 -05:00
|
|
|
BUILD_ACTION=chmod 777 xslt-config && $(GNUMAKE)
|
2007-07-17 01:24:49 -05:00
|
|
|
BUILD_FLAGS+= -j$(EXTMAXPROCESS)
|
|
|
|
BUILD_DIR=$(CONFIGURE_DIR)
|
2008-03-18 08:43:57 -05:00
|
|
|
.IF "$(GUI)$(COM)"=="WNTGCC"
|
|
|
|
.EXPORT : PWD
|
|
|
|
.ENDIF
|
2007-07-17 01:24:49 -05:00
|
|
|
.ELSE
|
2006-10-09 06:27:37 -05:00
|
|
|
CONFIGURE_DIR=win32
|
|
|
|
CONFIGURE_ACTION=cscript configure.js
|
|
|
|
#CONFIGURE_FLAGS=iconv=no sax1=yes
|
|
|
|
.IF "$(debug)"!=""
|
|
|
|
CONFIGURE_FLAGS+=debug=yes
|
|
|
|
.ENDIF
|
|
|
|
BUILD_ACTION=nmake
|
|
|
|
BUILD_DIR=$(CONFIGURE_DIR)
|
2007-07-17 01:24:49 -05:00
|
|
|
.ENDIF
|
2006-10-09 06:27:37 -05:00
|
|
|
.ELSE
|
2007-08-03 06:41:11 -05:00
|
|
|
|
|
|
|
.IF "$(OS)$(COM)"=="LINUXGCC" || "$(OS)$(COM)"=="FREEBSDGCC"
|
2007-10-15 06:32:10 -05:00
|
|
|
LDFLAGS:=-Wl,-rpath,'$$$$ORIGIN:$$$$ORIGIN/../ure-link/lib' -Wl,-noinhibit-exec -Wl,-z,noexecstack
|
2007-08-03 06:41:11 -05:00
|
|
|
.ENDIF # "$(OS)$(COM)"=="LINUXGCC"
|
|
|
|
.IF "$(OS)$(COM)"=="SOLARISC52"
|
2007-10-15 06:32:10 -05:00
|
|
|
LDFLAGS:=-Wl,-R'$$$$ORIGIN:$$$$ORIGIN/../ure-link/lib'
|
2007-08-03 06:41:11 -05:00
|
|
|
.ENDIF # "$(OS)$(COM)"=="SOLARISC52"
|
|
|
|
|
2006-10-09 06:27:37 -05:00
|
|
|
.IF "$(SYSBASE)"!=""
|
2008-12-30 07:48:34 -06:00
|
|
|
CPPFLAGS+:=-I$(SOLARINCDIR)$/external -I$(SYSBASE)$/usr$/include $(EXTRA_CFLAGS)
|
2007-04-18 03:06:43 -05:00
|
|
|
.IF "$(OS)"=="SOLARIS" || "$(OS)"=="LINUX"
|
2008-12-30 07:48:34 -06:00
|
|
|
LDFLAGS+:=-L$(SOLARLIBDIR) -L$(SYSBASE)$/lib -L$(SYSBASE)$/usr$/lib -lpthread -ldl
|
2007-04-18 03:06:43 -05:00
|
|
|
.ENDIF
|
2006-10-09 06:27:37 -05:00
|
|
|
.ENDIF # "$(SYSBASE)"!=""
|
2007-08-03 06:41:11 -05:00
|
|
|
|
2008-07-11 04:24:47 -05:00
|
|
|
.EXPORT: CPPFLAGS
|
2007-08-03 06:41:11 -05:00
|
|
|
.EXPORT: LDFLAGS
|
2008-07-11 04:24:47 -05:00
|
|
|
.EXPORT: LIBXML2LIB
|
|
|
|
.EXPORT: ZLIB3RDLIB
|
2007-08-03 06:41:11 -05:00
|
|
|
|
2007-06-26 06:36:59 -05:00
|
|
|
.IF "$(COMNAME)"=="sunpro5"
|
2008-07-11 04:24:47 -05:00
|
|
|
CPPFLAGS+:=$(ARCH_FLAGS) -xc99=none
|
2007-06-26 06:36:59 -05:00
|
|
|
.ENDIF # "$(COMNAME)"=="sunpro5"
|
2006-10-09 06:27:37 -05:00
|
|
|
CONFIGURE_DIR=
|
2008-06-06 05:32:42 -05:00
|
|
|
CONFIGURE_ACTION=.$/configure
|
2008-07-11 04:24:47 -05:00
|
|
|
CONFIGURE_FLAGS=--enable-ipv6=no --without-crypto --without-python --enable-static=no --with-sax1=yes
|
2008-06-06 05:32:42 -05:00
|
|
|
BUILD_ACTION=chmod 777 xslt-config && $(GNUMAKE)
|
2006-10-09 06:27:37 -05:00
|
|
|
BUILD_FLAGS+= -j$(EXTMAXPROCESS)
|
|
|
|
BUILD_DIR=$(CONFIGURE_DIR)
|
|
|
|
.ENDIF
|
|
|
|
|
|
|
|
OUT2INC=libxslt$/*.h
|
|
|
|
|
|
|
|
.IF "$(OS)"=="MACOSX"
|
|
|
|
OUT2LIB+=libxslt$/.libs$/libxslt.*.dylib
|
2007-05-10 07:10:21 -05:00
|
|
|
OUT2LIB+=libexslt$/.libs$/libexslt.*.dylib
|
2006-10-09 06:27:37 -05:00
|
|
|
OUT2BIN+=xsltproc$/.libs$/xsltproc
|
2008-06-06 05:32:42 -05:00
|
|
|
OUT2BIN+=xslt-config
|
2006-10-09 06:27:37 -05:00
|
|
|
.ELIF "$(OS)"=="WNT"
|
2007-07-17 01:24:49 -05:00
|
|
|
.IF "$(COM)"=="GCC"
|
|
|
|
OUT2BIN+=libxslt$/.libs$/*.dll
|
|
|
|
OUT2BIN+=libexslt$/.libs$/*.dll
|
|
|
|
OUT2BIN+=xsltproc$/.libs$/*.exe*
|
2008-06-06 05:32:42 -05:00
|
|
|
OUT2BIN+=xslt-config
|
2007-07-17 01:24:49 -05:00
|
|
|
.ELSE
|
2007-04-18 03:06:43 -05:00
|
|
|
OUT2LIB+=win32$/bin.msvc$/*.lib
|
|
|
|
OUT2BIN+=win32$/bin.msvc$/*.dll
|
|
|
|
OUT2BIN+=win32$/bin.msvc$/*.exe*
|
2007-07-17 01:24:49 -05:00
|
|
|
.ENDIF
|
2006-10-09 06:27:37 -05:00
|
|
|
.ELSE
|
|
|
|
OUT2LIB+=libxslt$/.libs$/libxslt.so*
|
2007-05-10 07:10:21 -05:00
|
|
|
OUT2LIB+=libexslt$/.libs$/libexslt.so*
|
2006-10-09 06:27:37 -05:00
|
|
|
OUT2BIN+=xsltproc$/.libs$/xsltproc
|
2008-06-06 05:32:42 -05:00
|
|
|
OUT2BIN+=xslt-config
|
2006-10-09 06:27:37 -05:00
|
|
|
.ENDIF
|
|
|
|
|
|
|
|
# --- Targets ------------------------------------------------------
|
|
|
|
|
|
|
|
.INCLUDE : set_ext.mk
|
|
|
|
.INCLUDE : target.mk
|
|
|
|
.INCLUDE : tg_ext.mk
|
|
|
|
|