Makefile.am 1.13 KB
Newer Older
Ocean Wang's avatar
Ocean Wang committed
1 2 3 4 5 6 7 8 9 10 11 12 13
SUBDIRS = . tests

AM_CPPFLAGS = -I$(top_srcdir)/src/lib -I$(top_builddir)/src/lib
AM_CPPFLAGS += $(BOOST_INCLUDES)
AM_CPPFLAGS += -I$(top_srcdir)/src/lib/dns -I$(top_builddir)/src/lib/dns
AM_CPPFLAGS += -I$(top_srcdir)/src/lib/asiolink -I$(top_builddir)/src/lib/asiolink

AM_CXXFLAGS = $(B10_CXXFLAGS)

CLEANFILES = *.gcno *.gcda

lib_LTLIBRARIES = libasiodns.la
libasiodns_la_SOURCES = dns_answer.h
14
libasiodns_la_SOURCES += asiodef.cc asiodef.h
Ocean Wang's avatar
Ocean Wang committed
15 16 17
libasiodns_la_SOURCES += dns_lookup.h
libasiodns_la_SOURCES += dns_server.h
libasiodns_la_SOURCES += dns_service.cc dns_service.h
18 19
libasiodns_la_SOURCES += tcp_server.cc tcp_server.h
libasiodns_la_SOURCES += udp_server.cc udp_server.h
20
libasiodns_la_SOURCES += io_fetch.cc io_fetch.h
21 22 23
libasiodns_la_SOURCES += qid_gen.cc qid_gen.h

EXTRA_DIST = asiodef.msg
Ocean Wang's avatar
Ocean Wang committed
24 25 26 27 28 29 30 31 32 33

# Note: the ordering matters: -Wno-... must follow -Wextra (defined in
# B10_CXXFLAGS)
libasiodns_la_CXXFLAGS = $(AM_CXXFLAGS)
if USE_CLANGPP
# Same for clang++, but we need to turn off -Werror completely.
libasiodns_la_CXXFLAGS += -Wno-error
endif
libasiodns_la_CPPFLAGS = $(AM_CPPFLAGS)
libasiodns_la_LIBADD = $(top_builddir)/src/lib/log/liblog.la