Makefile.am 1.87 KB
Newer Older
1
2
3
4
SUBDIRS = . tests

AM_CPPFLAGS = -I$(top_srcdir)/src/lib -I$(top_builddir)/src/lib
AM_CPPFLAGS += $(BOOST_INCLUDES) $(MULTITHREADING_FLAG)
5
AM_CPPFLAGS += -I$(top_srcdir)/src/lib/util -I$(top_builddir)/src/lib/util
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
AM_CPPFLAGS += -I$(top_srcdir)/src/lib/dns -I$(top_builddir)/src/lib/dns
AM_CPPFLAGS += -I$(top_srcdir)/src/lib/nsas -I$(top_builddir)/src/lib/nsas
AM_CPPFLAGS += -I$(top_srcdir)/src/lib/cache -I$(top_builddir)/src/lib/cache
AM_CPPFLAGS += $(SQLITE_CFLAGS)
AM_CXXFLAGS = $(B10_CXXFLAGS)

# Some versions of GCC warn about some versions of Boost regarding
# missing initializer for members in its posix_time.
# https://svn.boost.org/trac/boost/ticket/3477
# But older GCC compilers don't have the flag.
AM_CXXFLAGS += $(WARNING_NO_MISSING_FIELD_INITIALIZERS_CFLAG)

if USE_CLANGPP
# clang++ complains about unused function parameters in some boost header
# files.
AM_CXXFLAGS += -Wno-unused-parameter
endif

24
25
26
27
28
29
30
31
32
33
34
35
lib_LTLIBRARIES = libb10-cache.la
libb10_cache_la_SOURCES  = resolver_cache.h resolver_cache.cc
libb10_cache_la_SOURCES  += message_cache.h message_cache.cc
libb10_cache_la_SOURCES  += message_entry.h message_entry.cc
libb10_cache_la_SOURCES  += rrset_cache.h rrset_cache.cc
libb10_cache_la_SOURCES  += rrset_entry.h rrset_entry.cc
libb10_cache_la_SOURCES  += cache_entry_key.h cache_entry_key.cc
libb10_cache_la_SOURCES  += rrset_copy.h rrset_copy.cc
libb10_cache_la_SOURCES  += local_zone_data.h local_zone_data.cc
libb10_cache_la_SOURCES  += message_utility.h message_utility.cc
libb10_cache_la_SOURCES  += logger.h logger.cc
nodist_libb10_cache_la_SOURCES = cache_messages.cc cache_messages.h
36

37
38
39
40
41
42
43
44
BUILT_SOURCES = cache_messages.cc cache_messages.h

cache_messages.cc cache_messages.h: cache_messages.mes
	$(top_builddir)/src/lib/log/compiler/message $(top_srcdir)/src/lib/cache/cache_messages.mes

CLEANFILES = *.gcno *.gcda cache_messages.cc cache_messages.h

EXTRA_DIST = cache_messages.mes