makefile.mk (429c3491) makefile.mk (f78a4bb8)
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

--- 26 unchanged lines hidden (view full) ---

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
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

--- 26 unchanged lines hidden (view full) ---

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
43RAPTORVERSION=$(RAPTOR_MAJOR).4.18
43RAPTORVERSION=2.0.15
44
44
45TARFILE_NAME=raptor-$(RAPTORVERSION)
46TARFILE_MD5=284e768eeda0e2898b0d5bf7e26a016e
45TARFILE_NAME=raptor2-$(RAPTORVERSION)
46TARFILE_MD5=a39f6c07ddb20d7dd2ff1f95fa21e2cd
47
48ADDITIONAL_FILES=src/makefile.mk src/raptor_config.h
49
50OOO_PATCH_FILES= \
47
48ADDITIONAL_FILES=src/makefile.mk src/raptor_config.h
49
50OOO_PATCH_FILES= \
51 $(TARFILE_NAME).patch.autotools \
52 $(TARFILE_NAME).patch.ooo_build \
53 $(TARFILE_NAME).patch.dmake \
51 $(TARFILE_NAME).patch.dmake \
54 $(TARFILE_NAME).patch.win32 \
55 $(TARFILE_NAME).patch.fixes
56
57PATCH_FILES=$(OOO_PATCH_FILES)
58
59
60.IF "$(OS)"=="OS2"
61BUILD_ACTION=dmake
62BUILD_DIR=$(CONFIGURE_DIR)/src
63ADDITIONAL_FILES+=src/windows.h

--- 8 unchanged lines hidden (view full) ---

72raptor_LIBS=
73.IF "$(MINGW_SHARED_GXXLIB)"=="YES"
74raptor_LIBS+=$(MINGW_SHARED_LIBSTDCPP)
75.ENDIF
76
77CONFIGURE_DIR=
78CONFIGURE_ACTION=.$/configure
79# do not enable grddl parser (#i93768#)
52
53PATCH_FILES=$(OOO_PATCH_FILES)
54
55
56.IF "$(OS)"=="OS2"
57BUILD_ACTION=dmake
58BUILD_DIR=$(CONFIGURE_DIR)/src
59ADDITIONAL_FILES+=src/windows.h

--- 8 unchanged lines hidden (view full) ---

68raptor_LIBS=
69.IF "$(MINGW_SHARED_GXXLIB)"=="YES"
70raptor_LIBS+=$(MINGW_SHARED_LIBSTDCPP)
71.ENDIF
72
73CONFIGURE_DIR=
74CONFIGURE_ACTION=.$/configure
75# do not enable grddl parser (#i93768#)
80CONFIGURE_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)" CPPFLAGS="-nostdinc $(INCLUDE)" LDFLAGS="-no-undefined -Wl,--enable-runtime-pseudo-reloc-v2,--export-all-symbols -L$(ILIB:s/;/ -L/)" LIBS="$(raptor_LIBS)" OBJDUMP="$(WRAPCMD) objdump" LIBXML2LIB=$(LIBXML2LIB) XSLTLIB="$(XSLTLIB)"
76CONFIGURE_FLAGS=--disable-static --disable-gtk-doc --with-openssl-digests --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" --prefix=$(PWD)/$(OUT) --includedir=(PWD)$/$(INCCOM) --libdir=$(PWD)$/$(LB) --CC="$(raptor_CC)" CPPFLAGS="-nostdinc $(INCLUDE)" LDFLAGS="-no-undefined -Wl,--enable-runtime-pseudo-reloc-v2,--export-all-symbols -L$(ILIB:s/;/ -L/)" LIBS="$(raptor_LIBS)" OBJDUMP="$(WRAPCMD) objdump" LIBXML2LIB=$(LIBXML2LIB) XSLTLIB="$(XSLTLIB)"
81BUILD_ACTION=$(GNUMAKE)
82BUILD_FLAGS+= -j$(EXTMAXPROCESS)
83BUILD_DIR=$(CONFIGURE_DIR)
84.ELSE
85# there is no wntmsci build environment in the tarball; we use custom dmakefile
77BUILD_ACTION=$(GNUMAKE)
78BUILD_FLAGS+= -j$(EXTMAXPROCESS)
79BUILD_DIR=$(CONFIGURE_DIR)
80.ELSE
81# there is no wntmsci build environment in the tarball; we use custom dmakefile
82OOO_PATCH_FILES+=$(TARFILE_NAME).patch.win32
83CONFIGURE_ACTION= ${PERL} -p -e '$$prefix="'$(PWD)/$(OUT)'"; $$libdir="'$(PWD)/$(LB)'"; $$incdir="'$(PWD)/$(INCCOM)'"; $$ldflags="-L$(SOLARLIBDIR) -lxml2 -lm";' -e 's/\@prefix\@/$$prefix/; s/\@exec_prefix\@/\$${prefix}/; s/\@libdir\@/$$libdir/; s/\@includedir\@/$$incdir/; s/\@PACKAGE\@/raptor2/; s/\@VERSION\@/2.0.15/; s/\@PKG_CONFIG_REQUIRES\@//; s/\@RAPTOR_LDFLAGS\@/$$ldflags/;' < raptor2.pc.in > raptor2.pc && \
84 ${PERL} -p -e 's/\@RAPTOR_VERSION_DECIMAL\@/20015/;s/\@VERSION\@/2.0.15/;s/\@RAPTOR_VERSION_MAJOR\@/2/;s/\@RAPTOR_VERSION_MINOR\@/0/;s/\@RAPTOR_VERSION_RELEASE\@/15/' < src/raptor2.h.in > src/raptor2.h && \
85 $(COPY) src/raptor_config.h.in src/raptor_config.h
86BUILD_ACTION=dmake
87BUILD_DIR=$(CONFIGURE_DIR)$/src
88.ENDIF
89
90.ELSE # "WNT"
91
92.IF "$(OS)$(COM)"=="LINUXGCC" || "$(OS)$(COM)"=="FREEBSDGCC"
93LDFLAGS:=-Wl,-rpath,'$$$$ORIGIN:$$$$ORIGIN/../ure-link/lib' -Wl,-noinhibit-exec

--- 25 unchanged lines hidden (view full) ---

119.EXPORT: CPPFLAGS
120.EXPORT: LDFLAGS
121.EXPORT: LIBXML2LIB
122.EXPORT: XSLTLIB
123
124CONFIGURE_DIR=
125CONFIGURE_ACTION=.$/configure
126# do not enable grddl parser (#i93768#)
86BUILD_ACTION=dmake
87BUILD_DIR=$(CONFIGURE_DIR)$/src
88.ENDIF
89
90.ELSE # "WNT"
91
92.IF "$(OS)$(COM)"=="LINUXGCC" || "$(OS)$(COM)"=="FREEBSDGCC"
93LDFLAGS:=-Wl,-rpath,'$$$$ORIGIN:$$$$ORIGIN/../ure-link/lib' -Wl,-noinhibit-exec

--- 25 unchanged lines hidden (view full) ---

119.EXPORT: CPPFLAGS
120.EXPORT: LDFLAGS
121.EXPORT: LIBXML2LIB
122.EXPORT: XSLTLIB
123
124CONFIGURE_DIR=
125CONFIGURE_ACTION=.$/configure
126# do not enable grddl parser (#i93768#)
127CONFIGURE_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
127CONFIGURE_FLAGS=--disable-static --disable-gtk-doc --enable-parsers="rdfxml ntriples turtle trig guess rss-tag-soup" --with-www=xml --prefix=$(PDW)/$(OUT) --includedir=$(PWD)/$(INCCOM) --libdir=$(PWD)/$(LB)
128.IF "$(SYSTEM_LIBXML)" == "NO"
129CONFIGURE_FLAGS+=--with-xml2-config=${SOLARVERSION}/${INPATH}/bin/xml2-config \
130 --with-xslt-config=${SOLARVERSION}/${INPATH}/bin/xslt-config
131.ENDIF
128BUILD_ACTION=$(GNUMAKE)
129BUILD_FLAGS+= -j$(EXTMAXPROCESS)
130BUILD_DIR=$(CONFIGURE_DIR)
131#INSTALL_ACTION=$(GNUMAKE) install
132#INSTALL_FLAGS+=DESTDIR=$(PWD)$/$(P_INSTALL_TARGET_DIR)
133.ENDIF
134
135
132BUILD_ACTION=$(GNUMAKE)
133BUILD_FLAGS+= -j$(EXTMAXPROCESS)
134BUILD_DIR=$(CONFIGURE_DIR)
135#INSTALL_ACTION=$(GNUMAKE) install
136#INSTALL_FLAGS+=DESTDIR=$(PWD)$/$(P_INSTALL_TARGET_DIR)
137.ENDIF
138
139
136OUT2INC+=src/raptor.h
140OUT2INC+=src/raptor.h src/raptor2.h src/raptor_config.h
137
138.IF "$(OS)"=="MACOSX"
141
142.IF "$(OS)"=="MACOSX"
139OUT2LIB+=src$/.libs$/libraptor.$(RAPTOR_MAJOR).dylib src$/.libs$/libraptor.dylib
140OUT2BIN+=src/raptor-config
143OUT2LIB+=src$/.libs$/libraptor2.$(RAPTOR_MAJOR).dylib src$/.libs$/libraptor.dylib
141.ELIF "$(OS)"=="WNT"
142.IF "$(COM)"=="GCC"
143OUT2LIB+=src$/.libs$/*.a
144OUT2BIN+=src$/.libs$/*.dll
144.ELIF "$(OS)"=="WNT"
145.IF "$(COM)"=="GCC"
146OUT2LIB+=src$/.libs$/*.a
147OUT2BIN+=src$/.libs$/*.dll
145OUT2BIN+=src/raptor-config
146.ELSE
147# if we use dmake, this is done automagically
148.ENDIF
149.ELIF "$(GUI)"=="OS2"
150# if we use dmake, this is done automagically
151.ELSE
148.ELSE
149# if we use dmake, this is done automagically
150.ENDIF
151.ELIF "$(GUI)"=="OS2"
152# if we use dmake, this is done automagically
153.ELSE
152OUT2LIB+=src$/.libs$/libraptor.so.$(RAPTOR_MAJOR) src$/.libs$/libraptor.so
153OUT2BIN+=src/raptor-config
154OUT2LIB+=src$/.libs$/libraptor2.so.$(RAPTOR_MAJOR) src$/.libs$/libraptor2.so
154.ENDIF
155
156# --- Targets ------------------------------------------------------
157
158.INCLUDE : set_ext.mk
159.INCLUDE : target.mk
160.INCLUDE : tg_ext.mk
161
155.ENDIF
156
157# --- Targets ------------------------------------------------------
158
159.INCLUDE : set_ext.mk
160.INCLUDE : target.mk
161.INCLUDE : tg_ext.mk
162