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_redland 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 47REDLANDVERSION=1.0.8 48 49TARFILE_NAME=redland-$(REDLANDVERSION) 50TARFILE_MD5=ca66e26082cab8bb817185a116db809b 51 52ADDITIONAL_FILES=librdf/makefile.mk librdf/rdf_config.h 53 54OOO_PATCH_FILES= \ 55 $(TARFILE_NAME).patch.autotools \ 56 $(TARFILE_NAME).patch.dmake \ 57 $(TARFILE_NAME).patch.ooo_build \ 58 $(TARFILE_NAME).patch.win32 59 60PATCH_FILES=$(OOO_PATCH_FILES) \ 61 62 63.IF "$(OS)"=="OS2" 64BUILD_ACTION=dmake 65BUILD_DIR=$(CONFIGURE_DIR)$/librdf 66ADDITIONAL_FILES+=librdf/windows.h 67OOO_PATCH_FILES+=$(TARFILE_NAME).patch.os2 68.ELIF "$(OS)"=="WNT" 69.IF "$(COM)"=="GCC" 70redland_CC=$(CC) -mthreads 71.IF "$(MINGW_SHARED_GCCLIB)"=="YES" 72redland_CC+=-shared-libgcc 73.ENDIF 74redland_LIBS= 75.IF "$(MINGW_SHARED_GXXLIB)"=="YES" 76redland_LIBS+=$(MINGW_SHARED_LIBSTDCPP) 77.ENDIF 78 79CONFIGURE_DIR= 80CONFIGURE_ACTION=.$/configure PATH="..$/..$/..$/bin:$$PATH" 81CONFIGURE_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)" 82BUILD_ACTION=$(GNUMAKE) 83BUILD_FLAGS+= -j$(EXTMAXPROCESS) 84BUILD_DIR=$(CONFIGURE_DIR) 85.ELSE 86# there is no wntmsci build environment in the tarball; we use custom dmakefile 87BUILD_ACTION=dmake 88BUILD_DIR=$(CONFIGURE_DIR)$/librdf 89.ENDIF 90.ELSE # "WNT" 91 92.IF "$(OS)$(COM)"=="LINUXGCC" || "$(OS)$(COM)"=="FREEBSDGCC" 93LDFLAGS:=-Wl,-rpath,'$$$$ORIGIN:$$$$ORIGIN/../ure-link/lib' -Wl,-noinhibit-exec 94.ENDIF # "$(OS)$(COM)"=="LINUXGCC" 95.IF "$(OS)$(COM)"=="SOLARISC52" 96LDFLAGS:=-Wl,-R'$$$$ORIGIN:$$$$ORIGIN/../ure-link/lib' 97.ENDIF # "$(OS)$(COM)"=="SOLARISC52" 98 99.IF "$(COM)"=="C52" && "$(CPU)"=="U" 100CFLAGS=-m64 101.EXPORT: CFLAGS 102.ENDIF 103 104# NB: SOLARDIR before SYSBASE, because linux SYSBASE contains obsolete libcrypto 105CPPFLAGS+:=-I$(PWD)$/$(INCCOM) -I$(SOLARINCDIR)$/external 106LDFLAGS+:=-L$(PWD)$/$(LB) -L$(SOLARLIBDIR) 107 108.IF "$(SYSBASE)"!="" 109CPPFLAGS+:=-I$(SYSBASE)$/usr$/include 110.IF "$(OS)"=="SOLARIS" || "$(OS)"=="LINUX" 111LDFLAGS+:=-L$(SYSBASE)$/lib -L$(SYSBASE)$/usr$/lib -lpthread -ldl 112.ENDIF 113.ENDIF # "$(SYSBASE)"!="" 114 115.IF "$(OS)"=="MACOSX" 116LDFLAGS+:=-Wl,-dylib_file,@loader_path/libraptor.1.dylib:$(PWD)/$(LB)/libraptor.1.dylib 117.ENDIF 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 PATH="..$/..$/..$/bin:$$PATH" 130CONFIGURE_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 131BUILD_ACTION=$(AUGMENT_LIBRARY_PATH) $(GNUMAKE) 132BUILD_FLAGS+= -j$(EXTMAXPROCESS) 133BUILD_DIR=$(CONFIGURE_DIR) 134#INSTALL_ACTION=$(GNUMAKE) install 135#INSTALL_FLAGS+=DESTDIR=$(PWD)$/$(P_INSTALL_TARGET_DIR) 136.ENDIF 137 138 139OUT2INC+=librdf$/*.h 140 141.IF "$(OS)"=="MACOSX" 142OUT2LIB+=librdf$/.libs$/librdf.$(REDLAND_MAJOR).dylib 143.ELIF "$(OS)"=="WNT" 144.IF "$(COM)"=="GCC" 145OUT2LIB+=librdf$/.libs$/*.a 146OUT2BIN+=librdf$/.libs$/*.dll 147.ELSE 148# if we use dmake, this is done automagically 149.ENDIF 150.ELIF "$(OS)"=="OS2" 151# if we use dmake, this is done automagically 152.ELSE 153OUT2LIB+=librdf$/.libs$/librdf.so.$(REDLAND_MAJOR) 154.ENDIF 155 156# --- Targets ------------------------------------------------------ 157 158.INCLUDE : set_ext.mk 159.INCLUDE : target.mk 160.INCLUDE : tg_ext.mk 161 162