Makefile.am 1.81 KB
Newer Older
Evan Hunt's avatar
Evan Hunt committed
1 2 3 4
SUBDIRS = . tests

AM_CPPFLAGS = -I$(top_srcdir)/src/lib -I$(top_builddir)/src/lib
AM_CPPFLAGS += -I$(top_srcdir)/src/lib/dns -I$(top_builddir)/src/lib/dns
5
AM_CPPFLAGS += $(BOOST_INCLUDES)
Evan Hunt's avatar
Evan Hunt committed
6 7
AM_CPPFLAGS += $(SQLITE_CFLAGS)

8 9
AM_CXXFLAGS = $(B10_CXXFLAGS)

10
CLEANFILES = *.gcno *.gcda datasrc_messages.h datasrc_messages.cc
Evan Hunt's avatar
Evan Hunt committed
11

12
lib_LTLIBRARIES = libdatasrc.la sqlite3_ds.la memory_ds.la
Evan Hunt's avatar
Evan Hunt committed
13 14 15 16
libdatasrc_la_SOURCES = data_source.h data_source.cc
libdatasrc_la_SOURCES += static_datasrc.h static_datasrc.cc
libdatasrc_la_SOURCES += sqlite3_datasrc.h sqlite3_datasrc.cc
libdatasrc_la_SOURCES += query.h query.cc
Evan Hunt's avatar
Evan Hunt committed
17
libdatasrc_la_SOURCES += cache.h cache.cc
Michal Vaner's avatar
Michal Vaner committed
18
libdatasrc_la_SOURCES += rbtree.h
19
libdatasrc_la_SOURCES += zonetable.h zonetable.cc
Michal Vaner's avatar
Michal Vaner committed
20 21
libdatasrc_la_SOURCES += zone.h
libdatasrc_la_SOURCES += result.h
22
libdatasrc_la_SOURCES += logger.h logger.cc
23
libdatasrc_la_SOURCES += client.h iterator.h
24
libdatasrc_la_SOURCES += database.h database.cc
25
#libdatasrc_la_SOURCES += sqlite3_accessor.h sqlite3_accessor.cc
26
libdatasrc_la_SOURCES += factory.h factory.cc
27
nodist_libdatasrc_la_SOURCES = datasrc_messages.h datasrc_messages.cc
28

29 30 31
sqlite3_ds_la_SOURCES = sqlite3_accessor.h sqlite3_accessor.cc
sqlite3_ds_la_LDFLAGS = -module

32 33 34
memory_ds_la_SOURCES = memory_datasrc.h memory_datasrc.cc
memory_ds_la_LDFLAGS = -module

35 36 37 38
libdatasrc_la_LIBADD = $(top_builddir)/src/lib/exceptions/libexceptions.la
libdatasrc_la_LIBADD += $(top_builddir)/src/lib/dns/libdns++.la
libdatasrc_la_LIBADD += $(top_builddir)/src/lib/log/liblog.la
libdatasrc_la_LIBADD += $(top_builddir)/src/lib/cc/libcc.la
39
libdatasrc_la_LIBADD += $(SQLITE_LIBS)
40

41 42 43
BUILT_SOURCES = datasrc_messages.h datasrc_messages.cc
datasrc_messages.h datasrc_messages.cc: Makefile datasrc_messages.mes
	$(top_builddir)/src/lib/log/compiler/message $(top_srcdir)/src/lib/datasrc/datasrc_messages.mes
44

45
EXTRA_DIST = datasrc_messages.mes