summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Beckett <dave@dajobe.org>2013-11-08 08:43:07 -0800
committerDave Beckett <dave@dajobe.org>2013-11-08 08:43:07 -0800
commitb9bd0316a30b9bc3994934ddcb869c0a4a02a098 (patch)
treed4d8778e4efe8732b0918aa0b779dd512c641a4c
parent0a3e14299da1b56c07a8897e0aa78b0dc504c002 (diff)
downloadraptor-b9bd0316a30b9bc3994934ddcb869c0a4a02a098.tar.gz
librdfa.la as a convenience library build fixes
Do not build strtok for librdfa unless needed. Move -DLIBRDFA_IN_RAPTOR include to librdfa dir only
-rw-r--r--librdfa/Makefile.am25
-rw-r--r--src/Makefile.am2
2 files changed, 24 insertions, 3 deletions
diff --git a/librdfa/Makefile.am b/librdfa/Makefile.am
index c13b743c..1be09e4a 100644
--- a/librdfa/Makefile.am
+++ b/librdfa/Makefile.am
@@ -3,7 +3,9 @@
# Makefile for librdfa convienience library
#
+if LIBRDFA
noinst_LTLIBRARIES = librdfa.la
+AM_CPPFLAGS = -DLIBRDFA_IN_RAPTOR -I$(srcdir)
librdfa_la_SOURCES = \
context.c \
@@ -14,12 +16,10 @@ lists.c \
namespace.c \
rdfa.c \
rdfa_utils.c \
-strtok_r.c \
subject.c \
triple.c \
rdfa.h \
rdfa_utils.h \
-strtok_r.h \
config.h
if NEED_STRTOK_R
@@ -32,3 +32,24 @@ endif
# Do not need:
# mingw32_utils.c
# mingw32_utils.h
+
+else
+
+EXTRA_DIST = \
+context.c \
+curie.c \
+iri.c \
+language.c \
+lists.c \
+namespace.c \
+rdfa.c \
+rdfa_utils.c \
+strtok_r.c \
+subject.c \
+triple.c \
+rdfa.h \
+rdfa_utils.h \
+strtok_r.h \
+config.h
+
+endif
diff --git a/src/Makefile.am b/src/Makefile.am
index 717e8d97..ea977ce7 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -165,7 +165,7 @@ endif
libraptor2_la_LIBADD =
if LIBRDFA
-AM_CPPFLAGS += -DLIBRDFA_IN_RAPTOR -I$(top_srcdir)/librdfa
+AM_CPPFLAGS += -I$(top_srcdir)/librdfa
libraptor2_la_LIBADD += $(top_builddir)/librdfa/librdfa.la
endif