Makefile.am 2.32 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
pkglibdir = $(libexecdir)/@PACKAGE@/backends
11 12

datasrc_config.h: datasrc_config.h.pre
13
	$(SED) -e "s|@@PKGLIBDIR@@|$(pkglibdir)|" datasrc_config.h.pre >$@
14

15
CLEANFILES = *.gcno *.gcda datasrc_messages.h datasrc_messages.cc
16
CLEANFILES += datasrc_config.h
Evan Hunt's avatar
Evan Hunt committed
17

18
lib_LTLIBRARIES = libdatasrc.la
Evan Hunt's avatar
Evan Hunt committed
19 20 21 22
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
23
libdatasrc_la_SOURCES += cache.h cache.cc
24
libdatasrc_la_SOURCES += rbnode_rrset.h
Michal Vaner's avatar
Michal Vaner committed
25
libdatasrc_la_SOURCES += rbtree.h
26
libdatasrc_la_SOURCES += zonetable.h zonetable.cc
Michal Vaner's avatar
Michal Vaner committed
27 28
libdatasrc_la_SOURCES += zone.h
libdatasrc_la_SOURCES += result.h
29
libdatasrc_la_SOURCES += logger.h logger.cc
30
libdatasrc_la_SOURCES += client.h iterator.h
31
libdatasrc_la_SOURCES += database.h database.cc
32
libdatasrc_la_SOURCES += factory.h factory.cc
33
nodist_libdatasrc_la_SOURCES = datasrc_messages.h datasrc_messages.cc
34

35
pkglib_LTLIBRARIES =  sqlite3_ds.la memory_ds.la
36

37 38
sqlite3_ds_la_SOURCES = sqlite3_accessor.h sqlite3_accessor.cc
sqlite3_ds_la_LDFLAGS = -module
39
sqlite3_ds_la_LDFLAGS += -no-undefined -version-info 1:0:0
40
sqlite3_ds_la_LIBADD = $(top_builddir)/src/lib/exceptions/libexceptions.la
41
sqlite3_ds_la_LIBADD += libdatasrc.la
42
sqlite3_ds_la_LIBADD += $(SQLITE_LIBS)
43

44 45
memory_ds_la_SOURCES = memory_datasrc.h memory_datasrc.cc
memory_ds_la_LDFLAGS = -module
46
memory_ds_la_LIBADD = $(top_builddir)/src/lib/exceptions/libexceptions.la
47
memory_ds_la_LIBADD += libdatasrc.la
48

49 50 51 52
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
53
libdatasrc_la_LIBADD += $(SQLITE_LIBS)
54

55
BUILT_SOURCES = datasrc_config.h datasrc_messages.h datasrc_messages.cc
56 57
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
58

59
EXTRA_DIST = datasrc_messages.mes