aboutsummaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
Diffstat (limited to 'template')
-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