Makefile.am 2.76 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
SUBDIRS = . tests

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

# Some versions of GCC warn about some versions of Boost regarding
# missing initializer for members in its posix_time.
# https://svn.boost.org/trac/boost/ticket/3477
# But older GCC compilers don't have the flag.
AM_CXXFLAGS += $(WARNING_NO_MISSING_FIELD_INITIALIZERS_CFLAG)

13
# Until logging in dynamically loaded libraries is fixed,
14
# Define rule to build logging source files from message file
15
# user_chk_messages.h user_chk_messages.cc: s-messages
16

17
18
19
20
# Until logging in dynamically loaded libraries is fixed, exclude these.
# s-messages: user_chk_messages.mes
#	$(top_builddir)/src/lib/log/compiler/message $(top_srcdir)/src/hooks/dhcp/user_chk/user_chk_messages.mes
#	touch $@
21
22
23

# Tell automake that the message files are built as part of the build process
# (so that they are built before the main library is built).
24
25
# BUILT_SOURCES = user_chk_messages.h user_chk_messages.cc
BUILT_SOURCES =
26
27
28
29
30

# Ensure that the message file is included in the distribution
EXTRA_DIST =

# Get rid of generated message files on a clean
31
32
#CLEANFILES = *.gcno *.gcda user_chk_messages.h user_chk_messages.cc s-messages
CLEANFILES = *.gcno *.gcda
33
34
35
36

lib_LTLIBRARIES = libdhcp_user_chk.la
libdhcp_user_chk_la_SOURCES  =
libdhcp_user_chk_la_SOURCES += load_unload.cc
37
libdhcp_user_chk_la_SOURCES += subnet_select_co.cc
38
libdhcp_user_chk_la_SOURCES += user.cc user.h
39
40
# Until logging in dynamically loaded libraries is fixed, exclude these.
#libdhcp_user_chk_la_SOURCES += user_chk_log.cc user_chk_log.h
41
libdhcp_user_chk_la_SOURCES += user_data_source.h
42
libdhcp_user_chk_la_SOURCES += user_file.cc user_file.h
43
44
45
libdhcp_user_chk_la_SOURCES += user_registry.cc user_registry.h
libdhcp_user_chk_la_SOURCES += version.cc

46
47
# Until logging in dynamically loaded libraries is fixed, exclude these.
#nodist_libdhcp_user_chk_la_SOURCES = user_chk_messages.cc user_chk_messages.h
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65

libdhcp_user_chk_la_CXXFLAGS = $(AM_CXXFLAGS)
libdhcp_user_chk_la_CPPFLAGS = $(AM_CPPFLAGS) $(LOG4CPLUS_INCLUDES)
libdhcp_user_chk_la_LDFLAGS  = $(AM_LDFLAGS)
libdhcp_user_chk_la_LDFLAGS  += -avoid-version -export-dynamic -module
libdhcp_user_chk_la_LIBADD  =
libdhcp_user_chk_la_LIBADD  += $(top_builddir)/src/lib/hooks/libb10-hooks.la
libdhcp_user_chk_la_LIBADD  += $(top_builddir)/src/lib/log/libb10-log.la
libdhcp_user_chk_la_LIBADD  += $(top_builddir)/src/lib/exceptions/libb10-exceptions.la
libdhcp_user_chk_la_LIBADD  += $(top_builddir)/src/lib/util/libb10-util.la
libdhcp_user_chk_la_LIBADD  += $(top_builddir)/src/lib/util/threads/libb10-threads.la


if USE_CLANGPP
# Disable unused parameter warning caused by some of the
# Boost headers when compiling with clang.
libdhcp_user_chk_la_CXXFLAGS += -Wno-unused-parameter
endif