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