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_redland 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 43REDLANDVERSION=1.0.8 44 45TARFILE_NAME=redland-$(REDLANDVERSION) 46TARFILE_MD5=ca66e26082cab8bb817185a116db809b 47 48ADDITIONAL_FILES=librdf/makefile.mk librdf/rdf_config.h 49 50OOO_PATCH_FILES= \ 51 $(TARFILE_NAME).patch.autotools \ 52 $(TARFILE_NAME).patch.dmake \ 53 $(TARFILE_NAME).patch.ooo_build \ 54 $(TARFILE_NAME).patch.win32 55 56PATCH_FILES=$(OOO_PATCH_FILES) \ 57 58 59.IF "$(OS)"=="OS2" 60BUILD_ACTION=dmake 61BUILD_DIR=$(CONFIGURE_DIR)$/librdf 62ADDITIONAL_FILES+=librdf/windows.h 63OOO_PATCH_FILES+=$(TARFILE_NAME).patch.os2 64.ELIF "$(OS)"=="WNT" 65.IF "$(COM)"=="GCC" 66redland_CC=$(CC) -mthreads 67.IF "$(MINGW_SHARED_GCCLIB)"=="YES" 68redland_CC+=-shared-libgcc 69.ENDIF 70redland_LIBS= 71.IF "$(MINGW_SHARED_GXXLIB)"=="YES" 72redland_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 --with-raptor=system --with-rasqual=system --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="$(redland_CC)" CPPFLAGS="-nostdinc $(INCLUDE)" LDFLAGS="-no-undefined -Wl,--enable-runtime-pseudo-reloc-v2,--export-all-symbols -L$(ILIB:s/;/ -L/)" LIBS="$(redland_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)$/librdf 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$(PWD)$/$(INCCOM) -I$(SOLARINCDIR)$/external 102LDFLAGS+:=-L$(PWD)$/$(LB) -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 111.IF "$(OS)"=="MACOSX" 112LDFLAGS+:=-Wl,-dylib_file,@loader_path/libraptor.1.dylib:$(PWD)/$(LB)/libraptor.1.dylib 113.ENDIF 114 115CPPFLAGS+:=$(EXTRA_CDEFS) $(EXTRA_CFLAGS) 116LDFLAGS+:=$(EXTRA_LINKFLAGS) 117XSLTLIB!:=$(XSLTLIB) # expand dmake variables for xslt-config 118 119.EXPORT: CPPFLAGS 120.EXPORT: LDFLAGS 121.EXPORT: LIBXML2LIB 122.EXPORT: XSLTLIB 123 124CONFIGURE_DIR= 125CONFIGURE_ACTION=.$/configure PATH="..$/..$/..$/bin:$$PATH" 126CONFIGURE_FLAGS=--disable-static --disable-gtk-doc --with-threads --with-openssl-digests --with-xml-parser=libxml --with-raptor=system --with-rasqual=system --without-bdb --without-sqlite --without-mysql --without-postgresql --without-threestore --with-regex-library=posix --with-decimal=none --with-www=xml 127BUILD_ACTION=$(AUGMENT_LIBRARY_PATH) $(GNUMAKE) 128BUILD_FLAGS+= -j$(EXTMAXPROCESS) 129BUILD_DIR=$(CONFIGURE_DIR) 130#INSTALL_ACTION=$(GNUMAKE) install 131#INSTALL_FLAGS+=DESTDIR=$(PWD)$/$(P_INSTALL_TARGET_DIR) 132.ENDIF 133 134 135OUT2INC+=librdf$/*.h 136 137.IF "$(OS)"=="MACOSX" 138OUT2LIB+=librdf$/.libs$/librdf.$(REDLAND_MAJOR).dylib 139.ELIF "$(OS)"=="WNT" 140.IF "$(COM)"=="GCC" 141OUT2LIB+=librdf$/.libs$/*.a 142OUT2BIN+=librdf$/.libs$/*.dll 143.ELSE 144# if we use dmake, this is done automagically 145.ENDIF 146.ELIF "$(OS)"=="OS2" 147# if we use dmake, this is done automagically 148.ELSE 149OUT2LIB+=librdf$/.libs$/librdf.so.$(REDLAND_MAJOR) 150.ENDIF 151 152# --- Targets ------------------------------------------------------ 153 154.INCLUDE : set_ext.mk 155.INCLUDE : target.mk 156.INCLUDE : tg_ext.mk 157 158