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

AM_CPPFLAGS = -I$(top_srcdir)/src/lib -I$(top_builddir)/src/lib
4
AM_CPPFLAGS += $(BOOST_INCLUDES)
5 6 7 8 9 10 11 12 13 14
AM_CPPFLAGS += -I$(top_srcdir)/src/lib/dns -I$(top_builddir)/src/lib/dns

AM_CXXFLAGS = $(B10_CXXFLAGS)

CLEANFILES = *.gcno *.gcda

# This is a wrapper library solely used for b10-auth.  The ASIO header files
# have some code fragments that would hit gcc's unused-parameter warning,
# which would make the build fail with -Werror (our default setting).
lib_LTLIBRARIES = libasiolink.la
Stephen Morris's avatar
Stephen Morris committed
15
libasiolink_la_SOURCES  = asiolink.h
16
libasiolink_la_SOURCES += asiodef.cc asiodef.h
17
libasiolink_la_SOURCES += dns_answer.h
Stephen Morris's avatar
Stephen Morris committed
18 19
libasiolink_la_SOURCES += dns_lookup.h
libasiolink_la_SOURCES += dns_server.h
20
libasiolink_la_SOURCES += dns_service.cc dns_service.h
21
libasiolink_la_SOURCES += dummy_io_cb.h
22 23
libasiolink_la_SOURCES += interval_timer.cc interval_timer.h
libasiolink_la_SOURCES += io_address.cc io_address.h
24
libasiolink_la_SOURCES += io_asio_socket.h
25
libasiolink_la_SOURCES += io_endpoint.cc io_endpoint.h
26
libasiolink_la_SOURCES += io_error.h
27
libasiolink_la_SOURCES += io_fetch.cc io_fetch.h
28
libasiolink_la_SOURCES += io_message.h
29 30 31
libasiolink_la_SOURCES += io_service.cc io_service.h
libasiolink_la_SOURCES += io_socket.cc io_socket.h
libasiolink_la_SOURCES += recursive_query.cc recursive_query.h
Stephen Morris's avatar
Stephen Morris committed
32 33
libasiolink_la_SOURCES += simple_callback.h
libasiolink_la_SOURCES += tcp_endpoint.h
34
libasiolink_la_SOURCES += tcp_server.cc tcp_server.h
Stephen Morris's avatar
Stephen Morris committed
35
libasiolink_la_SOURCES += tcp_socket.h
36
libasiolink_la_SOURCES += udp_endpoint.h
37
libasiolink_la_SOURCES += udp_server.cc udp_server.h
Stephen Morris's avatar
Stephen Morris committed
38
libasiolink_la_SOURCES += udp_socket.h
39 40 41

EXTRA_DIST = asiodef.msg

42 43 44 45 46 47
# Note: the ordering matters: -Wno-... must follow -Wextra (defined in
# B10_CXXFLAGS)
libasiolink_la_CXXFLAGS = $(AM_CXXFLAGS)
if USE_GXX
libasiolink_la_CXXFLAGS += -Wno-unused-parameter
endif
48 49 50 51
if USE_CLANGPP
# Same for clang++, but we need to turn off -Werror completely.
libasiolink_la_CXXFLAGS += -Wno-error
endif
52
libasiolink_la_CPPFLAGS = $(AM_CPPFLAGS)
Michal Vaner's avatar
Michal Vaner committed
53
libasiolink_la_LIBADD = $(top_builddir)/src/lib/log/liblog.la
54
libasiolink_la_LIBADD += $(top_builddir)/src/lib/resolve/libresolve.la
55 56
libasiolink_la_LIBADD += $(top_builddir)/src/lib/cache/libcache.la
libasiolink_la_LIBADD += $(top_builddir)/src/lib/nsas/libnsas.la