Makefile.am 1.81 KB
Newer Older
Ocean Wang's avatar
Ocean Wang committed
1
2
3
4
5
SUBDIRS = . tests

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

6
AM_CXXFLAGS = $(KEA_CXXFLAGS)
Ocean Wang's avatar
Ocean Wang committed
7

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

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

s-messages: asiodns_messages.mes
14
	$(top_builddir)/src/lib/log/compiler/kea-msg-compiler $(top_srcdir)/src/lib/asiodns/asiodns_messages.mes
15
	touch $@
16

17
BUILT_SOURCES = asiodns_messages.h asiodns_messages.cc
18

19
lib_LTLIBRARIES = libkea-asiodns.la
20
21
22

libkea_asiodns_la_LDFLAGS = -no-undefined -version-info 0:1:0

23
libkea_asiodns_la_SOURCES = io_fetch.cc io_fetch.h
24
25
26
libkea_asiodns_la_SOURCES += logger.h logger.cc

nodist_libkea_asiodns_la_SOURCES = asiodns_messages.cc asiodns_messages.h
27

28
EXTRA_DIST = asiodns_messages.mes
Ocean Wang's avatar
Ocean Wang committed
29
30

# Note: the ordering matters: -Wno-... must follow -Wextra (defined in
31
# KEA_CXXFLAGS)
32
33
34
libkea_asiodns_la_CXXFLAGS = $(AM_CXXFLAGS)
libkea_asiodns_la_CPPFLAGS = $(AM_CPPFLAGS)
libkea_asiodns_la_LIBADD  = $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
35
libkea_asiodns_la_LIBADD += $(top_builddir)/src/lib/dns/libkea-dns++.la
36
libkea_asiodns_la_LIBADD += $(top_builddir)/src/lib/log/libkea-log.la
37
libkea_asiodns_la_LIBADD += $(top_builddir)/src/lib/util/threads/libkea-threads.la
38
libkea_asiodns_la_LIBADD += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
39
40
libkea_asiodns_la_LIBADD += $(top_builddir)/src/lib/util/libkea-util.la
libkea_asiodns_la_LIBADD += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
41
libkea_asiodns_la_LIBADD += $(BOOST_LIBS)
42
libkea_asiodns_la_LIBADD += $(LOG4CPLUS_LIBS)
43
44
45
46
47
48
49

# Specify the headers for copying into the installation directory tree.
libkea_asiodns_includedir = $(pkgincludedir)/asiodns
libkea_asiodns_include_HEADERS = \
	io_fetch.h \
	logger.h