Makefile.am 1.9 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
11
12
13
14
15
16
17
18
19
20
21
# Define rule to build logging source files from message file
resolvedef.h resolvedef.cc: resolvedef.mes
	$(top_builddir)/src/lib/log/compiler/message $(top_srcdir)/src/lib/resolve/resolvedef.mes

# 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.
BUILT_SOURCES = resolvedef.h resolvedef.cc

22
CLEANFILES = *.gcno *.gcda resolvedef.cc resolvedef.h
23
24

lib_LTLIBRARIES = libresolve.la
25
libresolve_la_SOURCES = resolve.h resolve.cc
26
libresolve_la_SOURCES += resolve_log.h resolve_log.cc
27
libresolve_la_SOURCES += resolver_interface.h
28
libresolve_la_SOURCES += resolver_callback.h resolver_callback.cc
29
libresolve_la_SOURCES += response_classifier.cc response_classifier.h
30
libresolve_la_SOURCES += recursive_query.cc recursive_query.h
31
32
33

nodist_libresolve_la_SOURCES = resolvedef.h resolvedef.cc

34
35
libresolve_la_LIBADD = $(top_builddir)/src/lib/dns/libdns++.la
libresolve_la_LIBADD += $(top_builddir)/src/lib/exceptions/libexceptions.la
36

37
38
39
# The message file should be in the distribution.
EXTRA_DIST = resolvedef.mes

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