Makefile.am 2.13 KB
Newer Older
1 2 3 4 5 6 7 8
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_CXXFLAGS = $(B10_CXXFLAGS)

9
# Define rule to build logging source files from message file
10 11 12
resolve_messages.h resolve_messages.cc: s-messages

s-messages: resolve_messages.mes
13
	$(top_builddir)/src/lib/log/compiler/message $(top_srcdir)/src/lib/resolve/resolve_messages.mes
14
	touch $@
15 16 17 18 19 20 21

# 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.
22
BUILT_SOURCES = resolve_messages.h resolve_messages.cc
23

24
CLEANFILES = *.gcno *.gcda resolve_messages.cc resolve_messages.h s-messages
25

26 27 28 29 30 31 32
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
33

34
nodist_libb10_resolve_la_SOURCES = resolve_messages.h resolve_messages.cc
35

36 37 38 39
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
40
libb10_resolve_la_LIBADD += $(top_builddir)/src/lib/nsas/libb10-nsas.la
41

42
# The message file should be in the distribution.
43
EXTRA_DIST = resolve_messages.mes
44

45 46
# Note: the ordering matters: -Wno-... must follow -Wextra (defined in
# B10_CXXFLAGS)
47 48
libb10_resolve_la_CXXFLAGS = $(AM_CXXFLAGS)
libb10_resolve_la_CPPFLAGS = $(AM_CPPFLAGS)