Makefile.am 1.7 KB
Newer Older
Ocean Wang's avatar
Ocean Wang committed
1 2 3 4 5 6
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
7
AM_CPPFLAGS += -I$(top_srcdir)/src/lib/util -I$(top_builddir)/src/lib/util
Ocean Wang's avatar
Ocean Wang committed
8 9 10

AM_CXXFLAGS = $(B10_CXXFLAGS)

11
CLEANFILES = *.gcno *.gcda asiodns_messages.h asiodns_messages.cc s-messages
Ocean Wang's avatar
Ocean Wang committed
12

13
# Define rule to build logging source files from message file
14 15 16
asiodns_messages.h asiodns_messages.cc: s-messages

s-messages: asiodns_messages.mes
17
	$(top_builddir)/src/lib/log/compiler/message $(top_srcdir)/src/lib/asiodns/asiodns_messages.mes
18
	touch $@
19

20
BUILT_SOURCES = asiodns_messages.h asiodns_messages.cc
21

22 23 24 25 26 27 28 29 30 31 32 33 34
lib_LTLIBRARIES = libkea-asiodns.la
libkea_asiodns_la_SOURCES = dns_answer.h
libkea_asiodns_la_SOURCES += asiodns.h
libkea_asiodns_la_SOURCES += dns_lookup.h
libkea_asiodns_la_SOURCES += dns_server.h
libkea_asiodns_la_SOURCES += dns_service.cc dns_service.h
libkea_asiodns_la_SOURCES += tcp_server.cc tcp_server.h
libkea_asiodns_la_SOURCES += udp_server.cc udp_server.h
libkea_asiodns_la_SOURCES += sync_udp_server.cc sync_udp_server.h
libkea_asiodns_la_SOURCES += io_fetch.cc io_fetch.h
libkea_asiodns_la_SOURCES += logger.h logger.cc

nodist_libkea_asiodns_la_SOURCES = asiodns_messages.cc asiodns_messages.h
35

36
EXTRA_DIST = asiodns_messages.mes
Ocean Wang's avatar
Ocean Wang committed
37 38 39

# Note: the ordering matters: -Wno-... must follow -Wextra (defined in
# B10_CXXFLAGS)
40 41 42 43
libkea_asiodns_la_CXXFLAGS = $(AM_CXXFLAGS)
libkea_asiodns_la_CPPFLAGS = $(AM_CPPFLAGS)
libkea_asiodns_la_LIBADD  = $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
libkea_asiodns_la_LIBADD += $(top_builddir)/src/lib/log/libkea-log.la