CWS-TOOLING: integrate CWS sb107
[LibreOffice.git] / redland / rasqal / makefile.mk
blobe739671eef1322fc4fdcc8b25ff92bf0c02c8509
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.8 $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
32 PRJ=..
34 PRJNAME=redland
35 TARGET=so_rasqal
37 # --- Settings -----------------------------------------------------
39 .INCLUDE : settings.mk
41 .IF "$(SYSTEM_REDLAND)" == "YES"
42 all:
43 @echo "An already available installation of Redland RDF should exist on your system."
44 @echo "Therefore the version provided here does not need to be built in addition."
45 .ENDIF
47 # --- Files --------------------------------------------------------
49 .INCLUDE : ../redlandversion.mk
51 RASQALVERSION=0.9.15
53 TARFILE_NAME=rasqal-$(RASQALVERSION)
54 PATCH_FILES=..$/$(TARFILE_NAME).patch
56 ADDITIONAL_FILES=src/makefile.mk src/rasqal_config.h
58 .IF "$(OS)"=="OS2"
59 # there is no wntmsci build environment in the tarball; we use custom dmakefile
60 BUILD_ACTION=dmake
61 BUILD_DIR=$(CONFIGURE_DIR)$/src
63 .ELIF "$(OS)"=="WNT"
64 .IF "$(COM)"=="GCC"
65 CONFIGURE_DIR=
66 CONFIGURE_ACTION=.$/configure PATH="..$/..$/..$/bin:$$PATH"
67 CONFIGURE_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" CFLAGS=-D_MT CPPFLAGS="-nostdinc $(INCLUDE)" LDFLAGS="-no-undefined -Wl,--enable-runtime-pseudo-reloc,--export-all-symbols -L$(ILIB:s/;/ -L/)" LIBS=-lmingwthrd OBJDUMP="$(WRAPCMD) objdump" LIBXML2LIB=$(LIBXML2LIB) ZLIB3RDLIB=$(ZLIB3RDLIB) XSLTLIB="$(XSLTLIB)"
68 BUILD_ACTION=$(GNUMAKE)
69 BUILD_FLAGS+= -j$(EXTMAXPROCESS)
70 BUILD_DIR=$(CONFIGURE_DIR)
71 .ELSE
72 # there is no wntmsci build environment in the tarball; we use custom dmakefile
73 BUILD_ACTION=dmake
74 BUILD_DIR=$(CONFIGURE_DIR)$/src
75 .ENDIF
76 .ELSE # "WNT"
78 .IF "$(OS)$(COM)"=="LINUXGCC" || "$(OS)$(COM)"=="FREEBSDGCC"
79 LDFLAGS:=-Wl,-rpath,'$$$$ORIGIN:$$$$ORIGIN/../ure-link/lib' -Wl,-noinhibit-exec -Wl,-z,noexecstack
80 .ENDIF # "$(OS)$(COM)"=="LINUXGCC"
81 .IF "$(OS)$(COM)"=="SOLARISC52"
82 LDFLAGS:=-Wl,-R'$$$$ORIGIN:$$$$ORIGIN/../ure-link/lib'
83 .ENDIF # "$(OS)$(COM)"=="SOLARISC52"
85 .IF "$(COM)"=="C52" && "$(CPU)"=="U"
86 CFLAGS=-m64
87 .EXPORT: CFLAGS
88 .ENDIF
90 # NB: SOLARDIR before SYSBASE, because linux SYSBASE contains obsolete libcrypto
91 CPPFLAGS+:=-I$(SOLARINCDIR)$/external
92 LDFLAGS+:=-L$(SOLARLIBDIR)
94 .IF "$(SYSBASE)"!=""
95 CPPFLAGS+:=-I$(SYSBASE)$/usr$/include
96 .IF "$(OS)"=="SOLARIS" || "$(OS)"=="LINUX"
97 LDFLAGS+:=-L$(SYSBASE)$/lib -L$(SYSBASE)$/usr$/lib -lpthread -ldl
98 .ENDIF
99 .ENDIF # "$(SYSBASE)"!=""
101 CPPFLAGS+:=$(EXTRA_CFLAGS)
102 LDFLAGS+:=$(EXTRA_LINKFLAGS)
104 .EXPORT: CPPFLAGS
105 .EXPORT: LDFLAGS
106 .EXPORT: LIBXML2LIB
107 .EXPORT: ZLIB3RDLIB
109 CONFIGURE_DIR=
110 CONFIGURE_ACTION=.$/configure PATH="..$/..$/..$/bin:$$PATH"
111 CONFIGURE_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
112 BUILD_ACTION=$(AUGMENT_LIBRARY_PATH) $(GNUMAKE)
113 BUILD_FLAGS+= -j$(EXTMAXPROCESS)
114 BUILD_DIR=$(CONFIGURE_DIR)
115 #INSTALL_ACTION=$(GNUMAKE) install
116 #INSTALL_FLAGS+=DESTDIR=$(PWD)$/$(P_INSTALL_TARGET_DIR)
117 .ENDIF
120 OUT2INC+=src$/rasqal.h
122 .IF "$(OS)"=="MACOSX"
123 OUT2LIB+=src$/.libs$/librasqal.0.dylib src$/.libs$/librasqal.dylib
124 OUT2BIN+=src/rasqal-config
125 .ELIF "$(OS)"=="WNT"
126 .IF "$(COM)"=="GCC"
127 OUT2LIB+=src$/.libs$/*.a
128 OUT2BIN+=src$/.libs$/*.dll
129 OUT2BIN+=src/rasqal-config
130 .ELSE
131 # if we use dmake, this is done automagically
132 .ENDIF
134 .ELIF "$(OS)"=="OS2"
135 # if we use dmake, this is done automagically
137 .ELSE
138 OUT2LIB+=src$/.libs$/librasqal.so.0 src$/.libs$/librasqal.so
139 OUT2BIN+=src/rasqal-config
140 .ENDIF
142 # --- Targets ------------------------------------------------------
144 .INCLUDE : set_ext.mk
145 .INCLUDE : target.mk
146 .INCLUDE : tg_ext.mk