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_rasqal 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 47RASQALVERSION=0.9.16 48 49TARFILE_NAME=rasqal-$(RASQALVERSION) 50TARFILE_MD5=fca8706f2c4619e2fa3f8f42f8fc1e9d 51 52ADDITIONAL_FILES=src/makefile.mk src/rasqal_config.h 53 54OOO_PATCH_FILES= \ 55 $(TARFILE_NAME).patch.legal \ 56 $(TARFILE_NAME).patch.autotools \ 57 $(TARFILE_NAME).patch.ooo_build \ 58 $(TARFILE_NAME).patch.dmake \ 59 $(TARFILE_NAME).patch.win32 60 61PATCH_FILES=$(OOO_PATCH_FILES) 62 63 64.IF "$(OS)"=="OS2" 65BUILD_ACTION=dmake 66BUILD_DIR=$(CONFIGURE_DIR)$/src 67.ELIF "$(OS)"=="WNT" 68.IF "$(COM)"=="GCC" 69rasqal_CC=$(CC) -mthreads 70.IF "$(MINGW_SHARED_GCCLIB)"=="YES" 71rasqal_CC+=-shared-libgcc 72.ENDIF 73rasqal_LIBS= 74.IF "$(MINGW_SHARED_GXXLIB)"=="YES" 75rasqal_LIBS+=$(MINGW_SHARED_LIBSTDCPP) 76.ENDIF 77 78CONFIGURE_DIR= 79CONFIGURE_ACTION=.$/configure PATH="..$/..$/..$/bin:$$PATH" 80CONFIGURE_FLAGS=--disable-static --disable-gtk-doc --with-openssl-digests --with-xml-parser=libxml --without-bdb --without-sqlite --without-mysql --without-postgresql --without-threestore --disable-pcre --with-decimal=none --with-www=xml --build=i586-pc-mingw32 --host=i586-pc-mingw32 lt_cv_cc_dll_switch="-shared" CC="$(rasqal_CC)" CPPFLAGS="-nostdinc $(INCLUDE)" LDFLAGS="-no-undefined -Wl,--enable-runtime-pseudo-reloc-v2,--export-all-symbols -L$(ILIB:s/;/ -L/)" LIBS="$(rasqal_LIBS)" OBJDUMP="$(WRAPCMD) objdump" LIBXML2LIB=$(LIBXML2LIB) XSLTLIB="$(XSLTLIB)" 81BUILD_ACTION=$(GNUMAKE) 82BUILD_FLAGS+= -j$(EXTMAXPROCESS) 83BUILD_DIR=$(CONFIGURE_DIR) 84.ELSE 85# there is no wntmsci build environment in the tarball; we use custom dmakefile 86BUILD_ACTION=dmake 87BUILD_DIR=$(CONFIGURE_DIR)$/src 88.ENDIF 89.ELSE # "WNT" 90 91.IF "$(OS)$(COM)"=="LINUXGCC" || "$(OS)$(COM)"=="FREEBSDGCC" 92LDFLAGS:=-Wl,-rpath,'$$$$ORIGIN:$$$$ORIGIN/../ure-link/lib' -Wl,-noinhibit-exec 93.ENDIF # "$(OS)$(COM)"=="LINUXGCC" 94.IF "$(OS)$(COM)"=="SOLARISC52" 95LDFLAGS:=-Wl,-R'$$$$ORIGIN:$$$$ORIGIN/../ure-link/lib' 96.ENDIF # "$(OS)$(COM)"=="SOLARISC52" 97 98.IF "$(COM)"=="C52" && "$(CPU)"=="U" 99CFLAGS=-m64 100.EXPORT: CFLAGS 101.ENDIF 102 103# NB: SOLARDIR before SYSBASE, because linux SYSBASE contains obsolete libcrypto 104CPPFLAGS+:=-I$(SOLARINCDIR)$/external 105LDFLAGS+:=-L$(SOLARLIBDIR) 106 107.IF "$(SYSBASE)"!="" 108CPPFLAGS+:=-I$(SYSBASE)$/usr$/include 109.IF "$(OS)"=="SOLARIS" || "$(OS)"=="LINUX" 110LDFLAGS+:=-L$(SYSBASE)$/lib -L$(SYSBASE)$/usr$/lib -lpthread -ldl 111.ENDIF 112.ENDIF # "$(SYSBASE)"!="" 113 114CPPFLAGS+:=$(EXTRA_CDEFS) $(EXTRA_CFLAGS) 115LDFLAGS+:=$(EXTRA_LINKFLAGS) 116XSLTLIB!:=$(XSLTLIB) # expand dmake variables for xslt-config 117 118.EXPORT: CPPFLAGS 119.EXPORT: LDFLAGS 120.EXPORT: LIBXML2LIB 121.EXPORT: XSLTLIB 122 123CONFIGURE_DIR= 124CONFIGURE_ACTION=.$/configure PATH="..$/..$/..$/bin:$$PATH" 125CONFIGURE_FLAGS=--disable-static --disable-gtk-doc --with-threads --with-openssl-digests --with-xml-parser=libxml --without-bdb --without-sqlite --without-mysql --without-postgresql --without-threestore --with-regex-library=posix --with-decimal=none --with-www=xml 126BUILD_ACTION=$(AUGMENT_LIBRARY_PATH) $(GNUMAKE) 127BUILD_FLAGS+= -j$(EXTMAXPROCESS) 128BUILD_DIR=$(CONFIGURE_DIR) 129#INSTALL_ACTION=$(GNUMAKE) install 130#INSTALL_FLAGS+=DESTDIR=$(PWD)$/$(P_INSTALL_TARGET_DIR) 131.ENDIF 132 133 134OUT2INC+=src$/rasqal.h 135 136.IF "$(OS)"=="MACOSX" 137OUT2LIB+=src$/.libs$/librasqal.$(RASQAL_MAJOR).dylib src$/.libs$/librasqal.dylib 138OUT2BIN+=src/rasqal-config 139.ELIF "$(OS)"=="WNT" 140.IF "$(COM)"=="GCC" 141OUT2LIB+=src$/.libs$/*.a 142OUT2BIN+=src$/.libs$/*.dll 143OUT2BIN+=src/rasqal-config 144.ELSE 145# if we use dmake, this is done automagically 146.ENDIF 147.ELIF "$(OS)"=="OS2" 148# if we use dmake, this is done automagically 149.ELSE 150OUT2LIB+=src$/.libs$/librasqal.so.$(RASQAL_MAJOR) src$/.libs$/librasqal.so 151OUT2BIN+=src/rasqal-config 152.ENDIF 153 154# --- Targets ------------------------------------------------------ 155 156.INCLUDE : set_ext.mk 157.INCLUDE : target.mk 158.INCLUDE : tg_ext.mk 159 160