Makefile.am 2.17 KB
Newer Older
1
2
3
4
5
6
7
8
9
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
AM_CPPFLAGS += $(BOOST_INCLUDES)
AM_CPPFLAGS += $(SQLITE_CFLAGS)

AM_CXXFLAGS = $(B10_CXXFLAGS)

10
# Define rule to build logging source files from message file
11
12
resolve_messages.h resolve_messages.cc: resolve_messages.mes
	$(top_builddir)/src/lib/log/compiler/message $(top_srcdir)/src/lib/resolve/resolve_messages.mes
13
14
15
16
17
18
19

# Tell Automake that the nsasdef.{cc,h} source files are created in the build
# process, so it must create these before doing anything else.  Although they
# are a dependency of the library (so will be created from the message file
# anyway), there is no guarantee as to exactly _when_ in the build they will be
# created.  As the .h file is included in other sources file (so must be
# present when they are compiled), the safest option is to create it first.
20
BUILT_SOURCES = resolve_messages.h resolve_messages.cc
21

22
CLEANFILES = *.gcno *.gcda resolve_messages.cc resolve_messages.h
23

24
25
26
27
28
29
30
lib_LTLIBRARIES = libb10-resolve.la
libb10_resolve_la_SOURCES = resolve.h resolve.cc
libb10_resolve_la_SOURCES += resolve_log.h resolve_log.cc
libb10_resolve_la_SOURCES += resolver_interface.h
libb10_resolve_la_SOURCES += resolver_callback.h resolver_callback.cc
libb10_resolve_la_SOURCES += response_classifier.cc response_classifier.h
libb10_resolve_la_SOURCES += recursive_query.cc recursive_query.h
31

32
nodist_libb10_resolve_la_SOURCES = resolve_messages.h resolve_messages.cc
33

34
35
36
37
libb10_resolve_la_LIBADD = $(top_builddir)/src/lib/dns/libb10-dns++.la
libb10_resolve_la_LIBADD += $(top_builddir)/src/lib/exceptions/libb10-exceptions.la
libb10_resolve_la_LIBADD += $(top_builddir)/src/lib/log/libb10-log.la
libb10_resolve_la_LIBADD += $(top_builddir)/src/lib/asiodns/libb10-asiodns.la
38

39
# The message file should be in the distribution.
40
EXTRA_DIST = resolve_messages.mes
41

42
43
# Note: the ordering matters: -Wno-... must follow -Wextra (defined in
# B10_CXXFLAGS)
44
libb10_resolve_la_CXXFLAGS = $(AM_CXXFLAGS)
45
46
if USE_CLANGPP
# For clang++, we need to turn off -Werror completely.
47
libb10_resolve_la_CXXFLAGS += -Wno-error
48
endif
49
libb10_resolve_la_CPPFLAGS = $(AM_CPPFLAGS)