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=redland 31TARGET=so_raptor 32 33# --- Settings ----------------------------------------------------- 34 35.INCLUDE : settings.mk 36 37.IF "$(SYSTEM_REDLAND)" == "YES" 38all: 39 @echo "An already available installation of Redland RDF 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.INCLUDE : ../redlandversion.mk 46 47RAPTORVERSION=$(RAPTOR_MAJOR).4.18 48 49TARFILE_NAME=raptor-$(RAPTORVERSION) 50TARFILE_MD5=284e768eeda0e2898b0d5bf7e26a016e 51 52ADDITIONAL_FILES=src/makefile.mk src/raptor_config.h 53 54OOO_PATCH_FILES= \ 55 $(TARFILE_NAME).patch.autotools \ 56 $(TARFILE_NAME).patch.ooo_build \ 57 $(TARFILE_NAME).patch.dmake \ 58 $(TARFILE_NAME).patch.win32 \ 59 60 61PATCH_FILES=$(OOO_PATCH_FILES) 62 63 64.IF "$(OS)"=="OS2" 65BUILD_ACTION=dmake 66BUILD_DIR=$(CONFIGURE_DIR)/src 67ADDITIONAL_FILES+=src/windows.h 68OOO_PATCH_FILES+=$(TARFILE_NAME).patch.os2 69.ELIF "$(OS)"=="WNT" 70.IF "$(COM)"=="GCC" 71OOO_PATCH_FILES+=$(TARFILE_NAME).patch.mingw 72raptor_CC=$(CC) -mthreads 73.IF "$(MINGW_SHARED_GCCLIB)"=="YES" 74raptor_CC+=-shared-libgcc 75.ENDIF 76raptor_LIBS= 77.IF "$(MINGW_SHARED_GXXLIB)"=="YES" 78raptor_LIBS+=$(MINGW_SHARED_LIBSTDCPP) 79.ENDIF 80 81CONFIGURE_DIR= 82CONFIGURE_ACTION=.$/configure 83# do not enable grddl parser (#i93768#) 84CONFIGURE_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)" 85BUILD_ACTION=$(GNUMAKE) 86BUILD_FLAGS+= -j$(EXTMAXPROCESS) 87BUILD_DIR=$(CONFIGURE_DIR) 88.ELSE 89# there is no wntmsci build environment in the tarball; we use custom dmakefile 90BUILD_ACTION=dmake 91BUILD_DIR=$(CONFIGURE_DIR)$/src 92.ENDIF 93 94.ELSE # "WNT" 95 96.IF "$(OS)$(COM)"=="LINUXGCC" || "$(OS)$(COM)"=="FREEBSDGCC" 97LDFLAGS:=-Wl,-rpath,'$$$$ORIGIN:$$$$ORIGIN/../ure-link/lib' -Wl,-noinhibit-exec 98.ENDIF # "$(OS)$(COM)"=="LINUXGCC" 99.IF "$(OS)$(COM)"=="SOLARISC52" 100LDFLAGS:=-Wl,-R'$$$$ORIGIN:$$$$ORIGIN/../ure-link/lib' 101.ENDIF # "$(OS)$(COM)"=="SOLARISC52" 102 103.IF "$(COM)"=="C52" && "$(CPU)"=="U" 104CFLAGS=-m64 105.EXPORT: CFLAGS 106.ENDIF 107 108# NB: SOLARDIR before SYSBASE, because linux SYSBASE contains obsolete libcrypto 109CPPFLAGS+:=-I$(SOLARINCDIR)$/external 110LDFLAGS+:=-L$(SOLARLIBDIR) 111 112.IF "$(SYSBASE)"!="" 113CPPFLAGS+:=-I$(SYSBASE)$/usr$/include 114.IF "$(OS)"=="SOLARIS" || "$(OS)"=="LINUX" 115LDFLAGS+:=-L$(SYSBASE)$/lib -L$(SYSBASE)$/usr$/lib -lpthread -ldl 116.ENDIF 117.ENDIF # "$(SYSBASE)"!="" 118 119CPPFLAGS+:=$(EXTRA_CDEFS) $(EXTRA_CFLAGS) 120LDFLAGS+:=$(EXTRA_LINKFLAGS) 121XSLTLIB!:=$(XSLTLIB) # expand dmake variables for xslt-config 122 123.EXPORT: CPPFLAGS 124.EXPORT: LDFLAGS 125.EXPORT: LIBXML2LIB 126.EXPORT: XSLTLIB 127 128CONFIGURE_DIR= 129CONFIGURE_ACTION=.$/configure 130# do not enable grddl parser (#i93768#) 131CONFIGURE_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 132BUILD_ACTION=$(GNUMAKE) 133BUILD_FLAGS+= -j$(EXTMAXPROCESS) 134BUILD_DIR=$(CONFIGURE_DIR) 135#INSTALL_ACTION=$(GNUMAKE) install 136#INSTALL_FLAGS+=DESTDIR=$(PWD)$/$(P_INSTALL_TARGET_DIR) 137.ENDIF 138 139 140OUT2INC+=src/raptor.h 141 142.IF "$(OS)"=="MACOSX" 143OUT2LIB+=src$/.libs$/libraptor.$(RAPTOR_MAJOR).dylib src$/.libs$/libraptor.dylib 144OUT2BIN+=src/raptor-config 145.ELIF "$(OS)"=="WNT" 146.IF "$(COM)"=="GCC" 147OUT2LIB+=src$/.libs$/*.a 148OUT2BIN+=src$/.libs$/*.dll 149OUT2BIN+=src/raptor-config 150.ELSE 151# if we use dmake, this is done automagically 152.ENDIF 153.ELIF "$(GUI)"=="OS2" 154# if we use dmake, this is done automagically 155.ELSE 156OUT2LIB+=src$/.libs$/libraptor.so.$(RAPTOR_MAJOR) src$/.libs$/libraptor.so 157OUT2BIN+=src/raptor-config 158.ENDIF 159 160# --- Targets ------------------------------------------------------ 161 162.INCLUDE : set_ext.mk 163.INCLUDE : target.mk 164.INCLUDE : tg_ext.mk 165 166