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 $
11 # $Revision: 1.6.4.4 $
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
51 RAPTORVERSION
=$(RAPTOR_MAJOR
).4.18
53 TARFILE_NAME
=raptor-
$(RAPTORVERSION
)
55 ADDITIONAL_FILES
=src
/makefile.mk src
/raptor_config.h
58 $(TARFILE_NAME
).patch.legal \
59 $(TARFILE_NAME
).patch.autotools \
60 $(TARFILE_NAME
).patch.ooo_build \
61 $(TARFILE_NAME
).patch.dmake \
62 $(TARFILE_NAME
).patch.win32 \
65 PATCH_FILES
=$(OOO_PATCH_FILES
)
70 BUILD_DIR
=$(CONFIGURE_DIR
)$/src
73 OOO_PATCH_FILES
+=$(TARFILE_NAME
).patch.mingw
75 .IF
"$(MINGW_SHARED_GCCLIB)"=="YES"
76 raptor_CC
+=-shared-libgcc
78 raptor_LIBS
=-lmingwthrd
79 .IF
"$(MINGW_SHARED_GXXLIB)"=="YES"
80 raptor_LIBS
+=-lstdc
++_s
84 CONFIGURE_ACTION
=.
$/configure
85 # do not enable grddl parser (#i93768#)
86 CONFIGURE_FLAGS
=--disable-static
--disable-gtk-doc
--with-openssl-digests
--with-xml-parser
=libxml
--enable-parsers
="rdfxml ntriples turtle trig guess rss-tag-soup" --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
="$(raptor_CC)" CFLAGS
=-D_MT CPPFLAGS
="-nostdinc $(INCLUDE)" LDFLAGS
="-no-undefined -Wl,--enable-runtime-pseudo-reloc,--export-all-symbols -L$(ILIB:s/;/ -L/)" LIBS
="$(raptor_LIBS)" OBJDUMP
="$(WRAPCMD) objdump" LIBXML2LIB
=$(LIBXML2LIB
) XSLTLIB
="$(XSLTLIB)"
87 BUILD_ACTION
=$(GNUMAKE
)
88 BUILD_FLAGS
+= -j
$(EXTMAXPROCESS
)
89 BUILD_DIR
=$(CONFIGURE_DIR
)
91 # there is no wntmsci build environment in the tarball; we use custom dmakefile
93 BUILD_DIR
=$(CONFIGURE_DIR
)$/src
98 .IF
"$(OS)$(COM)"=="LINUXGCC" ||
"$(OS)$(COM)"=="FREEBSDGCC"
99 LDFLAGS
:=-Wl
,-rpath
,'$$$$ORIGIN:$$$$ORIGIN/../ure-link/lib' -Wl
,-noinhibit-exec
-Wl
,-z
,noexecstack
100 .ENDIF
# "$(OS)$(COM)"=="LINUXGCC"
101 .IF
"$(OS)$(COM)"=="SOLARISC52"
102 LDFLAGS
:=-Wl
,-R
'$$$$ORIGIN:$$$$ORIGIN/../ure-link/lib'
103 .ENDIF
# "$(OS)$(COM)"=="SOLARISC52"
105 .IF
"$(COM)"=="C52" && "$(CPU)"=="U"
110 # NB: SOLARDIR before SYSBASE, because linux SYSBASE contains obsolete libcrypto
111 CPPFLAGS
+:=-I
$(SOLARINCDIR
)$/external
112 LDFLAGS
+:=-L
$(SOLARLIBDIR
)
115 CPPFLAGS
+:=-I
$(SYSBASE
)$/usr
$/include
116 .IF
"$(OS)"=="SOLARIS" ||
"$(OS)"=="LINUX"
117 LDFLAGS
+:=-L
$(SYSBASE
)$/lib
-L
$(SYSBASE
)$/usr
$/lib
-lpthread
-ldl
119 .ENDIF
# "$(SYSBASE)"!=""
121 CPPFLAGS
+:=$(EXTRA_CDEFS
) $(EXTRA_CFLAGS
)
122 LDFLAGS
+:=$(EXTRA_LINKFLAGS
)
123 XSLTLIB
!:=$(XSLTLIB
) # expand dmake variables for xslt-config
131 CONFIGURE_ACTION
=.
$/configure
132 # do not enable grddl parser (#i93768#)
133 CONFIGURE_FLAGS
=--disable-static
--disable-gtk-doc
--with-threads
--with-openssl-digests
--with-xml-parser
=libxml
--enable-parsers
="rdfxml ntriples turtle trig guess rss-tag-soup" --without-bdb
--without-sqlite
--without-mysql
--without-postgresql
--without-threestore
--with-regex-library
=posix
--with-decimal
=none
--with-www
=xml
134 BUILD_ACTION
=$(GNUMAKE
)
135 BUILD_FLAGS
+= -j
$(EXTMAXPROCESS
)
136 BUILD_DIR
=$(CONFIGURE_DIR
)
137 #INSTALL_ACTION=$(GNUMAKE) install
138 #INSTALL_FLAGS+=DESTDIR=$(PWD)$/$(P_INSTALL_TARGET_DIR)
142 OUT2INC
+=src
$/raptor.h
144 .IF
"$(OS)"=="MACOSX"
145 OUT2LIB
+=src
$/.libs
$/libraptor.
$(RAPTOR_MAJOR
).dylib src
$/.libs
$/libraptor.dylib
146 OUT2BIN
+=src
/raptor-config
149 OUT2LIB
+=src
$/.libs
$/*.a
150 OUT2BIN
+=src
$/.libs
$/*.dll
151 OUT2BIN
+=src
/raptor-config
153 # if we use dmake, this is done automagically
155 .ELIF
"$(GUI)"=="OS2"
156 # if we use dmake, this is done automagically
158 OUT2LIB
+=src
$/.libs
$/libraptor.so.
$(RAPTOR_MAJOR
) src
$/.libs
$/libraptor.so
159 OUT2BIN
+=src
/raptor-config
162 # --- Targets ------------------------------------------------------
164 .INCLUDE
: set_ext.mk