Makefile.am 2.21 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 11 12 13 14
pkglibexecdir = $(libexecdir)/@PACKAGE@/modules

datasrc_config.h: datasrc_config.h.pre
	$(SED) -e "s|@@PKGLIBEXECDIR@@|$(pkglibexecdir)|" datasrc_config.h.pre >$@

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

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

33 34
pkglibexec_LTLIBRARIES =  sqlite3_ds.la memory_ds.la

35 36
sqlite3_ds_la_SOURCES = sqlite3_accessor.h sqlite3_accessor.cc
sqlite3_ds_la_LDFLAGS = -module
37
sqlite3_ds_la_LIBADD = $(top_builddir)/src/lib/exceptions/libexceptions.la
38
sqlite3_ds_la_LIBADD += libdatasrc.la
39
sqlite3_ds_la_LIBADD += $(SQLITE_LIBS)
40

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

46 47 48 49
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
50
libdatasrc_la_LIBADD += $(SQLITE_LIBS)
51

52
BUILT_SOURCES = datasrc_config.h datasrc_messages.h datasrc_messages.cc
53 54
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
55

56
EXTRA_DIST = datasrc_messages.mes