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

AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
AM_CPPFLAGS += $(BOOST_INCLUDES)
5
6
7
if HAVE_MYSQL
AM_CPPFLAGS += $(MYSQL_CPPFLAGS)
endif
8

9
10
AM_CXXFLAGS = $(B10_CXXFLAGS)

11
12
13
14
15
16
# 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)

17
18
CLEANFILES = *.gcno *.gcda

19
lib_LTLIBRARIES = libb10-dhcp++.la libb10-dhcpsrv.la
20
libb10_dhcp___la_SOURCES  =
21
22
libb10_dhcp___la_SOURCES += dhcp6.h dhcp4.h
libb10_dhcp___la_SOURCES += duid.cc duid.h
23
libb10_dhcp___la_SOURCES += iface_mgr.cc iface_mgr.h
24
libb10_dhcp___la_SOURCES += iface_mgr_bsd.cc
25
26
libb10_dhcp___la_SOURCES += iface_mgr_linux.cc
libb10_dhcp___la_SOURCES += iface_mgr_sun.cc
27
libb10_dhcp___la_SOURCES += libdhcp++.cc libdhcp++.h
28
libb10_dhcp___la_SOURCES += option4_addrlst.cc option4_addrlst.h
29
30
31
32
libb10_dhcp___la_SOURCES += option6_addrlst.cc option6_addrlst.h
libb10_dhcp___la_SOURCES += option6_iaaddr.cc option6_iaaddr.h
libb10_dhcp___la_SOURCES += option6_ia.cc option6_ia.h
libb10_dhcp___la_SOURCES += option.cc option.h
33
libb10_dhcp___la_SOURCES += pkt4.cc pkt4.h
34
libb10_dhcp___la_SOURCES += pkt6.cc pkt6.h
35

36
37
38
39
40
41
libb10_dhcp___la_CXXFLAGS = $(AM_CXXFLAGS)
libb10_dhcp___la_CPPFLAGS = $(AM_CPPFLAGS) $(LOG4CPLUS_INCLUDES)
libb10_dhcp___la_LIBADD   = $(top_builddir)/src/lib/asiolink/libb10-asiolink.la
libb10_dhcp___la_LIBADD  += $(top_builddir)/src/lib/util/libb10-util.la
libb10_dhcp___la_LDFLAGS  = -no-undefined -version-info 2:0:0

42
libb10_dhcpsrv_la_SOURCES  = cfgmgr.cc cfgmgr.h
43
44
45
46
47
48
libb10_dhcpsrv_la_SOURCES += addr_utilities.cc addr_utilities.h
libb10_dhcpsrv_la_SOURCES += lease_mgr.cc lease_mgr.h
libb10_dhcpsrv_la_SOURCES += lease_mgr_factory.cc lease_mgr_factory.h
if HAVE_MYSQL
libb10_dhcpsrv_la_SOURCES += mysql_lease_mgr.cc mysql_lease_mgr.h
endif
49
50
51
libb10_dhcpsrv_la_SOURCES += pool.cc pool.h
libb10_dhcpsrv_la_SOURCES += subnet.cc subnet.h
libb10_dhcpsrv_la_SOURCES += triplet.h
52

53
54
55
56
57
libb10_dhcpsrv_la_CXXFLAGS = $(AM_CXXFLAGS)
libb10_dhcpsrv_la_CPPFLAGS = $(AM_CPPFLAGS) $(LOG4CPLUS_INCLUDES)
libb10_dhcpsrv_la_LIBADD   = $(top_builddir)/src/lib/asiolink/libb10-asiolink.la
libb10_dhcpsrv_la_LIBADD  += $(top_builddir)/src/lib/util/libb10-util.la
libb10_dhcpsrv_la_LDFLAGS  = -no-undefined -version-info 2:0:0
58
59
60
if HAVE_MYSQL
libb10_dhcpsrv_la_LDFLAGS += $(MYSQL_LIBS)
endif
61

62
63
EXTRA_DIST  = README

64
if USE_CLANGPP
65
66
# Disable unused parameter warning caused by some of the
# Boost headers when compiling with clang.
67
libb10_dhcp___la_CXXFLAGS += -Wno-unused-parameter
68
endif
69
70
71
72

# Distribute MySQL schema creation script
EXTRA_DIST += dhcpdb_create.mysql
dist_pkgdata_DATA = dhcpdb_create.mysql