1cdf0e10cSrcweir#************************************************************************* 2cdf0e10cSrcweir# 3cdf0e10cSrcweir# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4cdf0e10cSrcweir# 5cdf0e10cSrcweir# Copyright 2000, 2010 Oracle and/or its affiliates. 6cdf0e10cSrcweir# 7cdf0e10cSrcweir# OpenOffice.org - a multi-platform office productivity suite 8cdf0e10cSrcweir# 9cdf0e10cSrcweir# This file is part of OpenOffice.org. 10cdf0e10cSrcweir# 11cdf0e10cSrcweir# OpenOffice.org is free software: you can redistribute it and/or modify 12cdf0e10cSrcweir# it under the terms of the GNU Lesser General Public License version 3 13cdf0e10cSrcweir# only, as published by the Free Software Foundation. 14cdf0e10cSrcweir# 15cdf0e10cSrcweir# OpenOffice.org is distributed in the hope that it will be useful, 16cdf0e10cSrcweir# but WITHOUT ANY WARRANTY; without even the implied warranty of 17cdf0e10cSrcweir# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18cdf0e10cSrcweir# GNU Lesser General Public License version 3 for more details 19cdf0e10cSrcweir# (a copy is included in the LICENSE file that accompanied this code). 20cdf0e10cSrcweir# 21cdf0e10cSrcweir# You should have received a copy of the GNU Lesser General Public License 22cdf0e10cSrcweir# version 3 along with OpenOffice.org. If not, see 23cdf0e10cSrcweir# <http://www.openoffice.org/license.html> 24cdf0e10cSrcweir# for a copy of the LGPLv3 License. 25cdf0e10cSrcweir# 26cdf0e10cSrcweir#************************************************************************* 27cdf0e10cSrcweir 28cdf0e10cSrcweirPRJ=.. 29cdf0e10cSrcweir 30cdf0e10cSrcweirPRJNAME=redland 31cdf0e10cSrcweirTARGET=so_raptor 32cdf0e10cSrcweir 33cdf0e10cSrcweir# --- Settings ----------------------------------------------------- 34cdf0e10cSrcweir 35cdf0e10cSrcweir.INCLUDE : settings.mk 36cdf0e10cSrcweir 37cdf0e10cSrcweir.IF "$(SYSTEM_REDLAND)" == "YES" 38cdf0e10cSrcweirall: 39cdf0e10cSrcweir @echo "An already available installation of Redland RDF should exist on your system." 40cdf0e10cSrcweir @echo "Therefore the version provided here does not need to be built in addition." 41cdf0e10cSrcweir.ENDIF 42cdf0e10cSrcweir 43cdf0e10cSrcweir# --- Files -------------------------------------------------------- 44cdf0e10cSrcweir 45cdf0e10cSrcweir.INCLUDE : ../redlandversion.mk 46cdf0e10cSrcweir 47cdf0e10cSrcweirRAPTORVERSION=$(RAPTOR_MAJOR).4.18 48cdf0e10cSrcweir 49cdf0e10cSrcweirTARFILE_NAME=raptor-$(RAPTORVERSION) 50cdf0e10cSrcweirTARFILE_MD5=284e768eeda0e2898b0d5bf7e26a016e 51cdf0e10cSrcweir 52cdf0e10cSrcweirADDITIONAL_FILES=src/makefile.mk src/raptor_config.h 53cdf0e10cSrcweir 54cdf0e10cSrcweirOOO_PATCH_FILES= \ 55cdf0e10cSrcweir $(TARFILE_NAME).patch.autotools \ 56cdf0e10cSrcweir $(TARFILE_NAME).patch.ooo_build \ 57cdf0e10cSrcweir $(TARFILE_NAME).patch.dmake \ 58cdf0e10cSrcweir $(TARFILE_NAME).patch.win32 \ 59cdf0e10cSrcweir 60cdf0e10cSrcweir 61cdf0e10cSrcweirPATCH_FILES=$(OOO_PATCH_FILES) 62cdf0e10cSrcweir 63cdf0e10cSrcweir 64cdf0e10cSrcweir.IF "$(OS)"=="OS2" 65cdf0e10cSrcweirBUILD_ACTION=dmake 66*ab55ef1aSPedro GiffuniBUILD_DIR=$(CONFIGURE_DIR)/src 67*ab55ef1aSPedro GiffuniADDITIONAL_FILES+=src/windows.h 68*ab55ef1aSPedro GiffuniOOO_PATCH_FILES+=$(TARFILE_NAME).patch.os2 69cdf0e10cSrcweir.ELIF "$(OS)"=="WNT" 70cdf0e10cSrcweir.IF "$(COM)"=="GCC" 71cdf0e10cSrcweirOOO_PATCH_FILES+=$(TARFILE_NAME).patch.mingw 72cdf0e10cSrcweirraptor_CC=$(CC) -mthreads 73cdf0e10cSrcweir.IF "$(MINGW_SHARED_GCCLIB)"=="YES" 74cdf0e10cSrcweirraptor_CC+=-shared-libgcc 75cdf0e10cSrcweir.ENDIF 76cdf0e10cSrcweirraptor_LIBS= 77cdf0e10cSrcweir.IF "$(MINGW_SHARED_GXXLIB)"=="YES" 78cdf0e10cSrcweirraptor_LIBS+=$(MINGW_SHARED_LIBSTDCPP) 79cdf0e10cSrcweir.ENDIF 80cdf0e10cSrcweir 81cdf0e10cSrcweirCONFIGURE_DIR= 82cdf0e10cSrcweirCONFIGURE_ACTION=.$/configure 83cdf0e10cSrcweir# do not enable grddl parser (#i93768#) 84cdf0e10cSrcweirCONFIGURE_FLAGS=--disable-static --disable-gtk-doc --with-openssl-digests --with-xml-parser=libxml --enable-parsers="rdfxml ntriples turtle trig guess rss-tag-soup" --without-bdb --without-sqlite --without-mysql --without-postgresql --without-threestore --with-regex-library=posix --with-decimal=none --with-www=xml --build=i586-pc-mingw32 --host=i586-pc-mingw32 lt_cv_cc_dll_switch="-shared" CC="$(raptor_CC)" CPPFLAGS="-nostdinc $(INCLUDE)" LDFLAGS="-no-undefined -Wl,--enable-runtime-pseudo-reloc-v2,--export-all-symbols -L$(ILIB:s/;/ -L/)" LIBS="$(raptor_LIBS)" OBJDUMP="$(WRAPCMD) objdump" LIBXML2LIB=$(LIBXML2LIB) XSLTLIB="$(XSLTLIB)" 85cdf0e10cSrcweirBUILD_ACTION=$(GNUMAKE) 86cdf0e10cSrcweirBUILD_FLAGS+= -j$(EXTMAXPROCESS) 87cdf0e10cSrcweirBUILD_DIR=$(CONFIGURE_DIR) 88cdf0e10cSrcweir.ELSE 89cdf0e10cSrcweir# there is no wntmsci build environment in the tarball; we use custom dmakefile 90cdf0e10cSrcweirBUILD_ACTION=dmake 91cdf0e10cSrcweirBUILD_DIR=$(CONFIGURE_DIR)$/src 92cdf0e10cSrcweir.ENDIF 93cdf0e10cSrcweir 94cdf0e10cSrcweir.ELSE # "WNT" 95cdf0e10cSrcweir 96cdf0e10cSrcweir.IF "$(OS)$(COM)"=="LINUXGCC" || "$(OS)$(COM)"=="FREEBSDGCC" 97cdf0e10cSrcweirLDFLAGS:=-Wl,-rpath,'$$$$ORIGIN:$$$$ORIGIN/../ure-link/lib' -Wl,-noinhibit-exec 98cdf0e10cSrcweir.ENDIF # "$(OS)$(COM)"=="LINUXGCC" 99cdf0e10cSrcweir.IF "$(OS)$(COM)"=="SOLARISC52" 100cdf0e10cSrcweirLDFLAGS:=-Wl,-R'$$$$ORIGIN:$$$$ORIGIN/../ure-link/lib' 101cdf0e10cSrcweir.ENDIF # "$(OS)$(COM)"=="SOLARISC52" 102cdf0e10cSrcweir 103cdf0e10cSrcweir.IF "$(COM)"=="C52" && "$(CPU)"=="U" 104cdf0e10cSrcweirCFLAGS=-m64 105cdf0e10cSrcweir.EXPORT: CFLAGS 106cdf0e10cSrcweir.ENDIF 107cdf0e10cSrcweir 108cdf0e10cSrcweir# NB: SOLARDIR before SYSBASE, because linux SYSBASE contains obsolete libcrypto 109cdf0e10cSrcweirCPPFLAGS+:=-I$(SOLARINCDIR)$/external 110cdf0e10cSrcweirLDFLAGS+:=-L$(SOLARLIBDIR) 111cdf0e10cSrcweir 112cdf0e10cSrcweir.IF "$(SYSBASE)"!="" 113cdf0e10cSrcweirCPPFLAGS+:=-I$(SYSBASE)$/usr$/include 114cdf0e10cSrcweir.IF "$(OS)"=="SOLARIS" || "$(OS)"=="LINUX" 115cdf0e10cSrcweirLDFLAGS+:=-L$(SYSBASE)$/lib -L$(SYSBASE)$/usr$/lib -lpthread -ldl 116cdf0e10cSrcweir.ENDIF 117cdf0e10cSrcweir.ENDIF # "$(SYSBASE)"!="" 118cdf0e10cSrcweir 119cdf0e10cSrcweirCPPFLAGS+:=$(EXTRA_CDEFS) $(EXTRA_CFLAGS) 120cdf0e10cSrcweirLDFLAGS+:=$(EXTRA_LINKFLAGS) 121cdf0e10cSrcweirXSLTLIB!:=$(XSLTLIB) # expand dmake variables for xslt-config 122cdf0e10cSrcweir 123cdf0e10cSrcweir.EXPORT: CPPFLAGS 124cdf0e10cSrcweir.EXPORT: LDFLAGS 125cdf0e10cSrcweir.EXPORT: LIBXML2LIB 126cdf0e10cSrcweir.EXPORT: XSLTLIB 127cdf0e10cSrcweir 128cdf0e10cSrcweirCONFIGURE_DIR= 129cdf0e10cSrcweirCONFIGURE_ACTION=.$/configure 130cdf0e10cSrcweir# do not enable grddl parser (#i93768#) 131cdf0e10cSrcweirCONFIGURE_FLAGS=--disable-static --disable-gtk-doc --with-threads --with-openssl-digests --with-xml-parser=libxml --enable-parsers="rdfxml ntriples turtle trig guess rss-tag-soup" --without-bdb --without-sqlite --without-mysql --without-postgresql --without-threestore --with-regex-library=posix --with-decimal=none --with-www=xml 132cdf0e10cSrcweirBUILD_ACTION=$(GNUMAKE) 133cdf0e10cSrcweirBUILD_FLAGS+= -j$(EXTMAXPROCESS) 134cdf0e10cSrcweirBUILD_DIR=$(CONFIGURE_DIR) 135cdf0e10cSrcweir#INSTALL_ACTION=$(GNUMAKE) install 136cdf0e10cSrcweir#INSTALL_FLAGS+=DESTDIR=$(PWD)$/$(P_INSTALL_TARGET_DIR) 137cdf0e10cSrcweir.ENDIF 138cdf0e10cSrcweir 139cdf0e10cSrcweir 140*ab55ef1aSPedro GiffuniOUT2INC+=src/raptor.h 141cdf0e10cSrcweir 142cdf0e10cSrcweir.IF "$(OS)"=="MACOSX" 143cdf0e10cSrcweirOUT2LIB+=src$/.libs$/libraptor.$(RAPTOR_MAJOR).dylib src$/.libs$/libraptor.dylib 144cdf0e10cSrcweirOUT2BIN+=src/raptor-config 145cdf0e10cSrcweir.ELIF "$(OS)"=="WNT" 146cdf0e10cSrcweir.IF "$(COM)"=="GCC" 147cdf0e10cSrcweirOUT2LIB+=src$/.libs$/*.a 148cdf0e10cSrcweirOUT2BIN+=src$/.libs$/*.dll 149cdf0e10cSrcweirOUT2BIN+=src/raptor-config 150cdf0e10cSrcweir.ELSE 151cdf0e10cSrcweir# if we use dmake, this is done automagically 152cdf0e10cSrcweir.ENDIF 153cdf0e10cSrcweir.ELIF "$(GUI)"=="OS2" 154cdf0e10cSrcweir# if we use dmake, this is done automagically 155cdf0e10cSrcweir.ELSE 156cdf0e10cSrcweirOUT2LIB+=src$/.libs$/libraptor.so.$(RAPTOR_MAJOR) src$/.libs$/libraptor.so 157cdf0e10cSrcweirOUT2BIN+=src/raptor-config 158cdf0e10cSrcweir.ENDIF 159cdf0e10cSrcweir 160cdf0e10cSrcweir# --- Targets ------------------------------------------------------ 161cdf0e10cSrcweir 162cdf0e10cSrcweir.INCLUDE : set_ext.mk 163cdf0e10cSrcweir.INCLUDE : target.mk 164cdf0e10cSrcweir.INCLUDE : tg_ext.mk 165cdf0e10cSrcweir 166