From 34de252300719b7afe05ef5de6414f0748759ff8 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 30 Mar 2011 13:09:41 +0200 Subject: Autotools support for SQLite --- template/Makefile.am | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'template') 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 -- cgit v1.1