blob: 45c2c1ca7e2897f5761468a45843baba5bf793b6 [file] [log] [blame]
Neale Ranns812ed392017-10-16 04:20:13 -07001# Copyright (c) 2017 Cisco and/or its affiliates.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at:
5#
6# http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14AUTOMAKE_OPTIONS = foreign
15ACLOCAL_AMFLAGS = -I m4
16AM_LIBTOOLFLAGS = --quiet
17
Neale Ranns5ee623e2018-01-10 07:27:17 -080018AM_CXXFLAGS = -Wall -Werror -std=gnu++11 -I${top_srcdir} -I${top_builddir}/vpp-api/vapi/ -I$(top_srcdir)/vpp-api/ -I${libdir}/../include
Neale Ranns812ed392017-10-16 04:20:13 -070019
20bin_PROGRAMS =
21noinst_LTLIBRARIES =
22CLEANDIRS =
23
24lib_LTLIBRARIES = libvom.la
25
26libvom_la_DEPENDENCIES =
27libvom_la_LIBADD = \
28 $(top_builddir)/vpp-api/vapi/libvapiclient.la \
29 -lpthread \
30 -lboost_thread \
31 $(BOOST_SYSTEM_LIB) \
32 $(BOOST_FILESYSTEM_LIB) \
33 $(BOOST_ASIO_LIB) \
34 -lm -lrt
35
Neale Ranns7758bf62018-02-14 06:34:20 -080036ACL_SOURCES =
37if ENABLE_ACL_PLUGIN
38ACL_SOURCES += \
Neale Ranns812ed392017-10-16 04:20:13 -070039 acl_binding_cmds.cpp \
40 acl_binding.cpp \
Mohsin Kazmi49c7f0c2018-02-07 20:20:36 +010041 acl_ethertype_cmds.cpp \
42 acl_ethertype.cpp \
Neale Ranns812ed392017-10-16 04:20:13 -070043 acl_l2_rule.cpp \
44 acl_l3_rule.cpp \
45 acl_list_cmds.cpp \
46 acl_list.cpp \
Neale Ranns7758bf62018-02-14 06:34:20 -080047 acl_types.cpp
48endif
49
50NAT_SOURCES =
51if ENABLE_NAT_PLUGIN
52NAT_SOURCES += \
53 nat_static.cpp \
54 nat_static_cmds.cpp \
55 nat_binding.cpp \
56 nat_binding_cmds.cpp
57endif
58
59L2E_SOURCES =
60if ENABLE_L2E_PLUGIN
61L2E_SOURCES += \
62 l2_emulation_cmds.cpp \
63 l2_emulation.cpp
64endif
65
66GBP_SOURCES =
67if ENABLE_GBP_PLUGIN
68GBP_SOURCES += \
69 gbp_endpoint_cmds.cpp \
70 gbp_endpoint.cpp \
71 gbp_contract_cmds.cpp \
72 gbp_contract.cpp
73endif
74
75libvom_la_SOURCES = \
76 types.cpp \
Neale Ranns812ed392017-10-16 04:20:13 -070077 arp_proxy_binding_cmds.cpp \
78 arp_proxy_binding.cpp \
79 arp_proxy_config_cmds.cpp \
80 arp_proxy_config.cpp \
81 bridge_domain_cmds.cpp \
82 bridge_domain.cpp \
83 bridge_domain_arp_entry.cpp \
84 bridge_domain_arp_entry_cmds.cpp \
85 bridge_domain_entry_cmds.cpp \
86 bridge_domain_entry.cpp \
87 client_db.cpp \
88 cmd.cpp \
89 connection.cpp \
90 dhcp_config_cmds.cpp \
91 dhcp_config.cpp \
Neale Ranns9ef1c0a2017-11-03 04:39:05 -070092 hw_cmds.cpp \
Neale Ranns812ed392017-10-16 04:20:13 -070093 hw.cpp \
94 inspect.cpp \
95 interface_cmds.cpp \
96 interface.cpp \
97 interface_factory.cpp \
98 interface_ip6_nd_cmds.cpp \
99 interface_span_cmds.cpp \
100 interface_span.cpp \
101 interface_types.cpp \
102 ip_unnumbered_cmds.cpp \
103 ip_unnumbered.cpp \
104 l2_binding_cmds.cpp \
105 l2_binding.cpp \
106 l3_binding_cmds.cpp \
107 l3_binding.cpp \
108 lldp_binding_cmds.cpp \
109 lldp_binding.cpp \
110 lldp_global_cmds.cpp \
111 lldp_global.cpp \
112 logger.cpp \
Neale Ranns812ed392017-10-16 04:20:13 -0700113 neighbour.cpp \
114 neighbour_cmds.cpp \
115 object_base.cpp \
116 om.cpp \
117 prefix.cpp \
118 ra_config.cpp \
119 ra_prefix.cpp \
120 route.cpp \
121 route_cmds.cpp \
122 route_domain.cpp \
123 route_domain_cmds.cpp \
124 sub_interface_cmds.cpp \
125 sub_interface.cpp \
126 tap_interface.cpp \
127 tap_interface_cmds.cpp \
Neale Ranns812ed392017-10-16 04:20:13 -0700128 vxlan_tunnel_cmds.cpp \
Neale Ranns7758bf62018-02-14 06:34:20 -0800129 vxlan_tunnel.cpp \
130 $(ACL_SOURCES) \
131 $(NAT_SOURCES) \
132 $(L2E_SOURCES) \
133 $(GBP_SOURCES)
134
Neale Ranns812ed392017-10-16 04:20:13 -0700135
136vomincludedir = $(includedir)/vom
137
Neale Ranns7758bf62018-02-14 06:34:20 -0800138ACL_INCLUDES =
139if ENABLE_ACL_PLUGIN
140ACL_INCLUDES += \
Neale Ranns812ed392017-10-16 04:20:13 -0700141 acl_binding.hpp \
Mohsin Kazmi49c7f0c2018-02-07 20:20:36 +0100142 acl_ethertype.hpp \
Neale Ranns812ed392017-10-16 04:20:13 -0700143 acl_l2_rule.hpp \
144 acl_l3_rule.hpp \
145 acl_list.hpp \
Neale Ranns7758bf62018-02-14 06:34:20 -0800146 acl_types.hpp
147endif
148
149NAT_INCLUDES =
150if ENABLE_NAT_PLUGIN
151NAT_INCLUDES += \
152 nat_static.hpp \
153 nat_binding.hpp
154endif
155
156L2E_INCLUDES =
157if ENABLE_L2E_PLUGIN
158L2E_INCLUDES += \
159 l2_emulation.hpp
160endif
161
162GBP_INCLUDES =
163if ENABLE_GBP_PLUGIN
164GBP_INCLUDES += \
165 gbp_endpoint.hpp \
166 gbp_contract.hpp
167endif
168
Mohsin Kazmi4ca80c42018-02-15 11:42:30 +0100169vominclude_HEADERS = \
Neale Ranns812ed392017-10-16 04:20:13 -0700170 arp_proxy_binding.hpp \
171 arp_proxy_config.hpp \
172 bridge_domain.hpp \
173 bridge_domain_arp_entry.hpp \
174 bridge_domain_entry.hpp \
175 client_db.hpp \
176 cmd.hpp \
177 connection.hpp \
178 dhcp_config.hpp \
Mohsin Kazmi20ab0a42017-11-07 11:28:40 +0100179 dhcp_config_cmds.hpp \
Neale Ranns812ed392017-10-16 04:20:13 -0700180 dump_cmd.hpp \
181 enum_base.hpp \
182 event_cmd.hpp \
183 hw.hpp \
184 inspect.hpp \
185 interface.hpp \
Mohsin Kazmi20ab0a42017-11-07 11:28:40 +0100186 interface_cmds.hpp \
Neale Ranns812ed392017-10-16 04:20:13 -0700187 interface_ip6_nd.hpp \
188 interface_span.hpp \
189 ip_unnumbered.hpp \
190 l2_binding.hpp \
Neale Ranns812ed392017-10-16 04:20:13 -0700191 l3_binding.hpp \
192 lldp_binding.hpp \
193 lldp_global.hpp \
194 logger.hpp \
Neale Ranns812ed392017-10-16 04:20:13 -0700195 neighbour.hpp \
196 object_base.hpp \
197 om.hpp \
198 prefix.hpp \
199 ra_config.hpp \
200 ra_prefix.hpp \
201 route.hpp \
202 route_domain.hpp \
203 rpc_cmd.hpp \
204 singular_db.hpp \
205 sub_interface.hpp \
206 tap_interface.hpp \
207 types.hpp \
Neale Ranns7758bf62018-02-14 06:34:20 -0800208 vxlan_tunnel.hpp \
209 $(ACL_INCLUDES) \
210 $(NAT_INCLUDES) \
211 $(L2E_INCLUDES) \
212 $(GBP_INCLUDES)
Neale Ranns812ed392017-10-16 04:20:13 -0700213
214# vi:syntax=automake