Makefile.am 5.47 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
AM_CXXFLAGS = $(KEA_CXXFLAGS)
6

7 8
CLEANFILES = *.gcno *.gcda

9 10
lib_LTLIBRARIES = libkea-dhcp++.la
libkea_dhcp___la_SOURCES  =
11
libkea_dhcp___la_SOURCES += classify.cc classify.h
12
libkea_dhcp___la_SOURCES += dhcp6.h dhcp4.h
13
libkea_dhcp___la_SOURCES += duid.cc duid.h
14
libkea_dhcp___la_SOURCES += duid_factory.cc duid_factory.h
15
libkea_dhcp___la_SOURCES += docsis3_option_defs.h
16 17 18 19 20 21 22 23 24 25
libkea_dhcp___la_SOURCES += hwaddr.cc hwaddr.h
libkea_dhcp___la_SOURCES += iface_mgr.cc iface_mgr.h
libkea_dhcp___la_SOURCES += iface_mgr_bsd.cc
libkea_dhcp___la_SOURCES += iface_mgr_error_handler.h
libkea_dhcp___la_SOURCES += iface_mgr_linux.cc
libkea_dhcp___la_SOURCES += iface_mgr_sun.cc
libkea_dhcp___la_SOURCES += libdhcp++.cc libdhcp++.h
libkea_dhcp___la_SOURCES += opaque_data_tuple.cc opaque_data_tuple.h
libkea_dhcp___la_SOURCES += option4_addrlst.cc option4_addrlst.h
libkea_dhcp___la_SOURCES += option4_client_fqdn.cc option4_client_fqdn.h
26
libkea_dhcp___la_SOURCES += option6_addrlst.cc option6_addrlst.h
27
libkea_dhcp___la_SOURCES += option6_auth.cc option6_auth.h
28
libkea_dhcp___la_SOURCES += option6_client_fqdn.cc option6_client_fqdn.h
29 30 31
libkea_dhcp___la_SOURCES += option6_ia.cc option6_ia.h
libkea_dhcp___la_SOURCES += option6_iaaddr.cc option6_iaaddr.h
libkea_dhcp___la_SOURCES += option6_iaprefix.cc option6_iaprefix.h
32
libkea_dhcp___la_SOURCES += option6_pdexclude.cc option6_pdexclude.h
33
libkea_dhcp___la_SOURCES += option6_status_code.cc option6_status_code.h
34 35 36 37
libkea_dhcp___la_SOURCES += option.cc option.h
libkea_dhcp___la_SOURCES += option_custom.cc option_custom.h
libkea_dhcp___la_SOURCES += option_data_types.cc option_data_types.h
libkea_dhcp___la_SOURCES += option_definition.cc option_definition.h
38 39
libkea_dhcp___la_SOURCES += option_int.h
libkea_dhcp___la_SOURCES += option_int_array.h
40
libkea_dhcp___la_SOURCES += option_opaque_data_tuples.cc option_opaque_data_tuples.h
41
libkea_dhcp___la_SOURCES += option_space.cc option_space.h
42
libkea_dhcp___la_SOURCES += option_space_container.h
43
libkea_dhcp___la_SOURCES += option_string.cc option_string.h
44 45
libkea_dhcp___la_SOURCES += option_vendor.cc option_vendor.h
libkea_dhcp___la_SOURCES += option_vendor_class.cc option_vendor_class.h
46
libkea_dhcp___la_SOURCES += packet_queue.h 
47 48 49
libkea_dhcp___la_SOURCES += packet_queue_mgr.h 
libkea_dhcp___la_SOURCES += packet_queue_mgr4.cc packet_queue_mgr4.h 
libkea_dhcp___la_SOURCES += packet_queue_mgr6.cc packet_queue_mgr6.h 
50
libkea_dhcp___la_SOURCES += packet_queue_ring.h
Tomek Mrugalski's avatar
Tomek Mrugalski committed
51
libkea_dhcp___la_SOURCES += pkt.cc pkt.h
52
libkea_dhcp___la_SOURCES += pkt4.cc pkt4.h
53
libkea_dhcp___la_SOURCES += pkt4o6.cc pkt4o6.h
54
libkea_dhcp___la_SOURCES += pkt6.cc pkt6.h
55 56 57 58
libkea_dhcp___la_SOURCES += pkt_filter.h pkt_filter.cc
libkea_dhcp___la_SOURCES += pkt_filter6.h pkt_filter6.cc
libkea_dhcp___la_SOURCES += pkt_filter_inet.cc pkt_filter_inet.h
libkea_dhcp___la_SOURCES += pkt_filter_inet6.cc pkt_filter_inet6.h
59
libkea_dhcp___la_SOURCES += socket_info.h 
60

61
# Utilize Linux Packet Filtering on Linux.
62
if OS_LINUX
63
libkea_dhcp___la_SOURCES += pkt_filter_lpf.cc pkt_filter_lpf.h
64 65
endif

66 67 68 69 70
# Utilize Berkeley Packet Filtering on BSD.
if OS_BSD
libkea_dhcp___la_SOURCES += pkt_filter_bpf.cc pkt_filter_bpf.h
endif

71
libkea_dhcp___la_SOURCES += protocol_util.cc protocol_util.h
72
libkea_dhcp___la_SOURCES += std_option_defs.h
73

74
libkea_dhcp___la_CXXFLAGS = $(AM_CXXFLAGS)
75
libkea_dhcp___la_CPPFLAGS = $(AM_CPPFLAGS)
76 77
libkea_dhcp___la_LIBADD   = $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
libkea_dhcp___la_LIBADD  += $(top_builddir)/src/lib/dns/libkea-dns++.la
78
libkea_dhcp___la_LIBADD  += $(top_builddir)/src/lib/cryptolink/libkea-cryptolink.la
79 80
libkea_dhcp___la_LIBADD  += $(top_builddir)/src/lib/hooks/libkea-hooks.la
libkea_dhcp___la_LIBADD  += $(top_builddir)/src/lib/log/libkea-log.la
81
libkea_dhcp___la_LIBADD  += $(top_builddir)/src/lib/util/libkea-util.la
82
libkea_dhcp___la_LIBADD  += $(top_builddir)/src/lib/cc/libkea-cc.la
83
libkea_dhcp___la_LIBADD  += $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
84
libkea_dhcp___la_LIBADD  += $(BOOST_LIBS)
85
libkea_dhcp___la_LIBADD  += $(CRYPTO_LIBS)
86
libkea_dhcp___la_LDFLAGS  = -no-undefined -version-info 17:1:0
87
libkea_dhcp___la_LDFLAGS += $(CRYPTO_LDFLAGS)
88

89
EXTRA_DIST  = README libdhcp++.dox
90

91 92
# Specify the headers for copying into the installation directory tree. User-
# written libraries may need access to all libdhcp++ headers.
93 94
libkea_dhcp___includedir = $(pkgincludedir)/dhcp
libkea_dhcp___include_HEADERS = \
95 96 97
	classify.h \
	dhcp4.h \
	dhcp6.h \
98
	docsis3_option_defs.h \
99 100 101 102 103 104 105
	duid.h \
	duid_factory.h \
	hwaddr.h \
	iface_mgr.h \
	iface_mgr_error_handler.h \
	libdhcp++.h \
	opaque_data_tuple.h \
106
	option.h \
107 108 109
	option4_addrlst.h \
	option4_client_fqdn.h \
	option6_addrlst.h \
110
	option6_auth.h \
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
	option6_client_fqdn.h \
	option6_ia.h \
	option6_iaaddr.h \
	option6_iaprefix.h \
	option6_pdexclude.h \
	option6_status_code.h \
	option_custom.h \
	option_data_types.h \
	option_definition.h \
	option_int.h \
	option_int_array.h \
	option_opaque_data_tuples.h \
	option_space.h \
	option_space_container.h \
	option_string.h \
	option_vendor.h \
	option_vendor_class.h \
128 129 130 131
	packet_queue.h \
	packet_queue_mgr.h \
	packet_queue_mgr4.h \
	packet_queue_mgr6.h \
132
	packet_queue_ring.h \
133 134 135 136 137 138 139 140 141
	pkt.h \
	pkt4.h \
	pkt4o6.h \
	pkt6.h \
	pkt_filter.h \
	pkt_filter6.h \
	pkt_filter_inet.h \
	pkt_filter_inet6.h \
	protocol_util.h \
142
	socket_info.h \
Francis Dupont's avatar
Francis Dupont committed
143
	std_option_defs.h
144 145 146 147 148 149 150 151 152 153

if OS_LINUX
libkea_dhcp___include_HEADERS += \
	pkt_filter_lpf.h
endif

if OS_BSD
libkea_dhcp___include_HEADERS += \
	pkt_filter_bpf.h
endif