1*7871dc3eSAndrew Rist#************************************************************** 2*7871dc3eSAndrew Rist# 3*7871dc3eSAndrew Rist# Licensed to the Apache Software Foundation (ASF) under one 4*7871dc3eSAndrew Rist# or more contributor license agreements. See the NOTICE file 5*7871dc3eSAndrew Rist# distributed with this work for additional information 6*7871dc3eSAndrew Rist# regarding copyright ownership. The ASF licenses this file 7*7871dc3eSAndrew Rist# to you under the Apache License, Version 2.0 (the 8*7871dc3eSAndrew Rist# "License"); you may not use this file except in compliance 9*7871dc3eSAndrew Rist# with the License. You may obtain a copy of the License at 10*7871dc3eSAndrew Rist# 11*7871dc3eSAndrew Rist# http://www.apache.org/licenses/LICENSE-2.0 12*7871dc3eSAndrew Rist# 13*7871dc3eSAndrew Rist# Unless required by applicable law or agreed to in writing, 14*7871dc3eSAndrew Rist# software distributed under the License is distributed on an 15*7871dc3eSAndrew Rist# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*7871dc3eSAndrew Rist# KIND, either express or implied. See the License for the 17*7871dc3eSAndrew Rist# specific language governing permissions and limitations 18*7871dc3eSAndrew Rist# under the License. 19*7871dc3eSAndrew Rist# 20*7871dc3eSAndrew Rist#************************************************************** 21*7871dc3eSAndrew Rist 22*7871dc3eSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweirPRJ=.. 25cdf0e10cSrcweir 26cdf0e10cSrcweirPRJNAME=redland 27cdf0e10cSrcweirTARGET=so_raptor 28cdf0e10cSrcweir 29cdf0e10cSrcweir# --- Settings ----------------------------------------------------- 30cdf0e10cSrcweir 31cdf0e10cSrcweir.INCLUDE : settings.mk 32cdf0e10cSrcweir 33cdf0e10cSrcweir.IF "$(SYSTEM_REDLAND)" == "YES" 34cdf0e10cSrcweirall: 35cdf0e10cSrcweir @echo "An already available installation of Redland RDF should exist on your system." 36cdf0e10cSrcweir @echo "Therefore the version provided here does not need to be built in addition." 37cdf0e10cSrcweir.ENDIF 38cdf0e10cSrcweir 39cdf0e10cSrcweir# --- Files -------------------------------------------------------- 40cdf0e10cSrcweir 41cdf0e10cSrcweir.INCLUDE : ../redlandversion.mk 42cdf0e10cSrcweir 43cdf0e10cSrcweirRAPTORVERSION=$(RAPTOR_MAJOR).4.18 44cdf0e10cSrcweir 45cdf0e10cSrcweirTARFILE_NAME=raptor-$(RAPTORVERSION) 46cdf0e10cSrcweirTARFILE_MD5=284e768eeda0e2898b0d5bf7e26a016e 47cdf0e10cSrcweir 48cdf0e10cSrcweirADDITIONAL_FILES=src/makefile.mk src/raptor_config.h 49cdf0e10cSrcweir 50cdf0e10cSrcweirOOO_PATCH_FILES= \ 51cdf0e10cSrcweir $(TARFILE_NAME).patch.autotools \ 52cdf0e10cSrcweir $(TARFILE_NAME).patch.ooo_build \ 53cdf0e10cSrcweir $(TARFILE_NAME).patch.dmake \ 54cdf0e10cSrcweir $(TARFILE_NAME).patch.win32 \ 55cdf0e10cSrcweir 56cdf0e10cSrcweir 57cdf0e10cSrcweirPATCH_FILES=$(OOO_PATCH_FILES) 58cdf0e10cSrcweir 59cdf0e10cSrcweir 60cdf0e10cSrcweir.IF "$(OS)"=="OS2" 61cdf0e10cSrcweirBUILD_ACTION=dmake 62ab55ef1aSPedro GiffuniBUILD_DIR=$(CONFIGURE_DIR)/src 63ab55ef1aSPedro GiffuniADDITIONAL_FILES+=src/windows.h 64ab55ef1aSPedro GiffuniOOO_PATCH_FILES+=$(TARFILE_NAME).patch.os2 65cdf0e10cSrcweir.ELIF "$(OS)"=="WNT" 66cdf0e10cSrcweir.IF "$(COM)"=="GCC" 67cdf0e10cSrcweirOOO_PATCH_FILES+=$(TARFILE_NAME).patch.mingw 68cdf0e10cSrcweirraptor_CC=$(CC) -mthreads 69cdf0e10cSrcweir.IF "$(MINGW_SHARED_GCCLIB)"=="YES" 70cdf0e10cSrcweirraptor_CC+=-shared-libgcc 71cdf0e10cSrcweir.ENDIF 72cdf0e10cSrcweirraptor_LIBS= 73cdf0e10cSrcweir.IF "$(MINGW_SHARED_GXXLIB)"=="YES" 74cdf0e10cSrcweirraptor_LIBS+=$(MINGW_SHARED_LIBSTDCPP) 75cdf0e10cSrcweir.ENDIF 76cdf0e10cSrcweir 77cdf0e10cSrcweirCONFIGURE_DIR= 78cdf0e10cSrcweirCONFIGURE_ACTION=.$/configure 79cdf0e10cSrcweir# do not enable grddl parser (#i93768#) 80cdf0e10cSrcweirCONFIGURE_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)" 81cdf0e10cSrcweirBUILD_ACTION=$(GNUMAKE) 82cdf0e10cSrcweirBUILD_FLAGS+= -j$(EXTMAXPROCESS) 83cdf0e10cSrcweirBUILD_DIR=$(CONFIGURE_DIR) 84cdf0e10cSrcweir.ELSE 85cdf0e10cSrcweir# there is no wntmsci build environment in the tarball; we use custom dmakefile 86cdf0e10cSrcweirBUILD_ACTION=dmake 87cdf0e10cSrcweirBUILD_DIR=$(CONFIGURE_DIR)$/src 88cdf0e10cSrcweir.ENDIF 89cdf0e10cSrcweir 90cdf0e10cSrcweir.ELSE # "WNT" 91cdf0e10cSrcweir 92cdf0e10cSrcweir.IF "$(OS)$(COM)"=="LINUXGCC" || "$(OS)$(COM)"=="FREEBSDGCC" 93cdf0e10cSrcweirLDFLAGS:=-Wl,-rpath,'$$$$ORIGIN:$$$$ORIGIN/../ure-link/lib' -Wl,-noinhibit-exec 94cdf0e10cSrcweir.ENDIF # "$(OS)$(COM)"=="LINUXGCC" 95cdf0e10cSrcweir.IF "$(OS)$(COM)"=="SOLARISC52" 96cdf0e10cSrcweirLDFLAGS:=-Wl,-R'$$$$ORIGIN:$$$$ORIGIN/../ure-link/lib' 97cdf0e10cSrcweir.ENDIF # "$(OS)$(COM)"=="SOLARISC52" 98cdf0e10cSrcweir 99cdf0e10cSrcweir.IF "$(COM)"=="C52" && "$(CPU)"=="U" 100cdf0e10cSrcweirCFLAGS=-m64 101cdf0e10cSrcweir.EXPORT: CFLAGS 102cdf0e10cSrcweir.ENDIF 103cdf0e10cSrcweir 104cdf0e10cSrcweir# NB: SOLARDIR before SYSBASE, because linux SYSBASE contains obsolete libcrypto 105cdf0e10cSrcweirCPPFLAGS+:=-I$(SOLARINCDIR)$/external 106cdf0e10cSrcweirLDFLAGS+:=-L$(SOLARLIBDIR) 107cdf0e10cSrcweir 108cdf0e10cSrcweir.IF "$(SYSBASE)"!="" 109cdf0e10cSrcweirCPPFLAGS+:=-I$(SYSBASE)$/usr$/include 110cdf0e10cSrcweir.IF "$(OS)"=="SOLARIS" || "$(OS)"=="LINUX" 111cdf0e10cSrcweirLDFLAGS+:=-L$(SYSBASE)$/lib -L$(SYSBASE)$/usr$/lib -lpthread -ldl 112cdf0e10cSrcweir.ENDIF 113cdf0e10cSrcweir.ENDIF # "$(SYSBASE)"!="" 114cdf0e10cSrcweir 115cdf0e10cSrcweirCPPFLAGS+:=$(EXTRA_CDEFS) $(EXTRA_CFLAGS) 116cdf0e10cSrcweirLDFLAGS+:=$(EXTRA_LINKFLAGS) 117cdf0e10cSrcweirXSLTLIB!:=$(XSLTLIB) # expand dmake variables for xslt-config 118cdf0e10cSrcweir 119cdf0e10cSrcweir.EXPORT: CPPFLAGS 120cdf0e10cSrcweir.EXPORT: LDFLAGS 121cdf0e10cSrcweir.EXPORT: LIBXML2LIB 122cdf0e10cSrcweir.EXPORT: XSLTLIB 123cdf0e10cSrcweir 124cdf0e10cSrcweirCONFIGURE_DIR= 125cdf0e10cSrcweirCONFIGURE_ACTION=.$/configure 126cdf0e10cSrcweir# do not enable grddl parser (#i93768#) 127cdf0e10cSrcweirCONFIGURE_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 128cdf0e10cSrcweirBUILD_ACTION=$(GNUMAKE) 129cdf0e10cSrcweirBUILD_FLAGS+= -j$(EXTMAXPROCESS) 130cdf0e10cSrcweirBUILD_DIR=$(CONFIGURE_DIR) 131cdf0e10cSrcweir#INSTALL_ACTION=$(GNUMAKE) install 132cdf0e10cSrcweir#INSTALL_FLAGS+=DESTDIR=$(PWD)$/$(P_INSTALL_TARGET_DIR) 133cdf0e10cSrcweir.ENDIF 134cdf0e10cSrcweir 135cdf0e10cSrcweir 136ab55ef1aSPedro GiffuniOUT2INC+=src/raptor.h 137cdf0e10cSrcweir 138cdf0e10cSrcweir.IF "$(OS)"=="MACOSX" 139cdf0e10cSrcweirOUT2LIB+=src$/.libs$/libraptor.$(RAPTOR_MAJOR).dylib src$/.libs$/libraptor.dylib 140cdf0e10cSrcweirOUT2BIN+=src/raptor-config 141cdf0e10cSrcweir.ELIF "$(OS)"=="WNT" 142cdf0e10cSrcweir.IF "$(COM)"=="GCC" 143cdf0e10cSrcweirOUT2LIB+=src$/.libs$/*.a 144cdf0e10cSrcweirOUT2BIN+=src$/.libs$/*.dll 145cdf0e10cSrcweirOUT2BIN+=src/raptor-config 146cdf0e10cSrcweir.ELSE 147cdf0e10cSrcweir# if we use dmake, this is done automagically 148cdf0e10cSrcweir.ENDIF 149cdf0e10cSrcweir.ELIF "$(GUI)"=="OS2" 150cdf0e10cSrcweir# if we use dmake, this is done automagically 151cdf0e10cSrcweir.ELSE 152cdf0e10cSrcweirOUT2LIB+=src$/.libs$/libraptor.so.$(RAPTOR_MAJOR) src$/.libs$/libraptor.so 153cdf0e10cSrcweirOUT2BIN+=src/raptor-config 154cdf0e10cSrcweir.ENDIF 155cdf0e10cSrcweir 156cdf0e10cSrcweir# --- Targets ------------------------------------------------------ 157cdf0e10cSrcweir 158cdf0e10cSrcweir.INCLUDE : set_ext.mk 159cdf0e10cSrcweir.INCLUDE : target.mk 160cdf0e10cSrcweir.INCLUDE : tg_ext.mk 161cdf0e10cSrcweir 162