aboutsummaryrefslogtreecommitdiff
path: root/template/Makefile.am
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-03-30 13:09:41 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-03-30 13:09:41 +0200
commit34de252300719b7afe05ef5de6414f0748759ff8 (patch)
tree42edaee86b23d086f35887c4165a2abfeaaecc69 /template/Makefile.am
parent3e7e99c8ea5b06971af0b9789f5dfaa4b35955ed (diff)
Autotools support for SQLite
Diffstat (limited to 'template/Makefile.am')
-rw-r--r--template/Makefile.am8
1 files changed, 7 insertions, 1 deletions
diff --git a/template/Makefile.am b/template/Makefile.am
index 2bd31ff..7bebe38 100644
--- a/template/Makefile.am
+++ b/template/Makefile.am
@@ -7,8 +7,14 @@ EXTRA_DIST = __file__(extra_dist)
noinst_PROGRAMS = driver
driver_SOURCES = driver.cxx database.hxx __path__(extra_sources) __path__(extra_headers)
+AM_CPPFLAGS = -I'$(builddir)' -I'$(srcdir)'
+
if DATABASE_MYSQL
-AM_CPPFLAGS = -DDATABASE_MYSQL
+AM_CPPFLAGS += -DDATABASE_MYSQL
+endif
+
+if DATABASE_SQLITE
+AM_CPPFLAGS += -DDATABASE_SQLITE
endif
TESTS=$(top_builddir)/tester