1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
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 #*************************************************************************
37 # --- Settings -----------------------------------------------------
39 .INCLUDE
: settings.mk
41 .IF
"$(SYSTEM_REDLAND)" == "YES"
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."
47 # --- Files --------------------------------------------------------
49 .INCLUDE
: ..
/redlandversion.mk
53 TARFILE_NAME
=rasqal-
$(RASQALVERSION
)
54 PATCH_FILES
=..
$/$(TARFILE_NAME
).patch
56 ADDITIONAL_FILES
=src
/makefile.mk src
/rasqal_config.h
59 # there is no wntmsci build environment in the tarball; we use custom dmakefile
61 BUILD_DIR
=$(CONFIGURE_DIR
)$/src
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
)
72 # there is no wntmsci build environment in the tarball; we use custom dmakefile
74 BUILD_DIR
=$(CONFIGURE_DIR
)$/src
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"
90 # NB: SOLARDIR before SYSBASE, because linux SYSBASE contains obsolete libcrypto
91 CPPFLAGS
+:=-I
$(SOLARINCDIR
)$/external
92 LDFLAGS
+:=-L
$(SOLARLIBDIR
)
95 CPPFLAGS
+:=-I
$(SYSBASE
)$/usr
$/include
96 .IF
"$(OS)"=="SOLARIS" ||
"$(OS)"=="LINUX"
97 LDFLAGS
+:=-L
$(SYSBASE
)$/lib
-L
$(SYSBASE
)$/usr
$/lib
-lpthread
-ldl
99 .ENDIF
# "$(SYSBASE)"!=""
101 CPPFLAGS
+:=$(EXTRA_CFLAGS
)
102 LDFLAGS
+:=$(EXTRA_LINKFLAGS
)
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)
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
127 OUT2LIB
+=src
$/.libs
$/*.a
128 OUT2BIN
+=src
$/.libs
$/*.dll
129 OUT2BIN
+=src
/rasqal-config
131 # if we use dmake, this is done automagically
135 # if we use dmake, this is done automagically
138 OUT2LIB
+=src
$/.libs
$/librasqal.so
.0 src
$/.libs
$/librasqal.so
139 OUT2BIN
+=src
/rasqal-config
142 # --- Targets ------------------------------------------------------
144 .INCLUDE
: set_ext.mk