VOM: build with plugins disabled
[vpp.git] / src / vpp-api / vom / Makefile.am
1 # 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
14 AUTOMAKE_OPTIONS = foreign
15 ACLOCAL_AMFLAGS = -I m4
16 AM_LIBTOOLFLAGS = --quiet
17
18 AM_CXXFLAGS = -Wall -Werror -std=gnu++11 -I${top_srcdir} -I${top_builddir}/vpp-api/vapi/ -I$(top_srcdir)/vpp-api/ -I${libdir}/../include
19
20 bin_PROGRAMS =
21 noinst_LTLIBRARIES =
22 CLEANDIRS =
23
24 lib_LTLIBRARIES = libvom.la
25
26 libvom_la_DEPENDENCIES =
27 libvom_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
36 ACL_SOURCES =
37 if ENABLE_ACL_PLUGIN
38 ACL_SOURCES +=                          \
39         acl_binding_cmds.cpp            \
40         acl_binding.cpp                 \
41         acl_ethertype_cmds.cpp          \
42         acl_ethertype.cpp               \
43         acl_l2_rule.cpp                 \
44         acl_l3_rule.cpp                 \
45         acl_list_cmds.cpp               \
46         acl_list.cpp                    \
47         acl_types.cpp
48 endif
49
50 NAT_SOURCES =
51 if ENABLE_NAT_PLUGIN
52 NAT_SOURCES +=                          \
53         nat_static.cpp                  \
54         nat_static_cmds.cpp             \
55         nat_binding.cpp                 \
56         nat_binding_cmds.cpp
57 endif
58
59 L2E_SOURCES =
60 if ENABLE_L2E_PLUGIN
61 L2E_SOURCES +=                          \
62         l2_emulation_cmds.cpp           \
63         l2_emulation.cpp
64 endif
65
66 GBP_SOURCES =
67 if ENABLE_GBP_PLUGIN
68 GBP_SOURCES +=                          \
69         gbp_endpoint_cmds.cpp           \
70         gbp_endpoint.cpp                \
71         gbp_contract_cmds.cpp           \
72         gbp_contract.cpp
73 endif
74
75 libvom_la_SOURCES =                     \
76         types.cpp                       \
77         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                 \
92         hw_cmds.cpp                     \
93         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                      \
113         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          \
128         vxlan_tunnel_cmds.cpp           \
129         vxlan_tunnel.cpp                \
130         $(ACL_SOURCES)                  \
131         $(NAT_SOURCES)                  \
132         $(L2E_SOURCES)                  \
133         $(GBP_SOURCES)
134
135
136 vomincludedir = $(includedir)/vom
137
138 ACL_INCLUDES =
139 if ENABLE_ACL_PLUGIN
140 ACL_INCLUDES +=                                 \
141         acl_binding.hpp                 \
142         acl_ethertype.hpp               \
143         acl_l2_rule.hpp                 \
144         acl_l3_rule.hpp                 \
145         acl_list.hpp                    \
146         acl_types.hpp
147 endif
148
149 NAT_INCLUDES =
150 if ENABLE_NAT_PLUGIN
151 NAT_INCLUDES +=                                 \
152         nat_static.hpp                  \
153         nat_binding.hpp
154 endif
155
156 L2E_INCLUDES =
157 if ENABLE_L2E_PLUGIN
158 L2E_INCLUDES +=                         \
159         l2_emulation.hpp
160 endif
161
162 GBP_INCLUDES =
163 if ENABLE_GBP_PLUGIN
164 GBP_INCLUDES +=                                 \
165         gbp_endpoint.hpp                \
166         gbp_contract.hpp
167 endif
168
169 vominclude_INCLUDES =                   \
170         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                 \
179         dhcp_config_cmds.hpp            \
180         dump_cmd.hpp                    \
181         enum_base.hpp                   \
182         event_cmd.hpp                   \
183         hw.hpp                          \
184         inspect.hpp                     \
185         interface.hpp                   \
186         interface_cmds.hpp              \
187         interface_ip6_nd.hpp            \
188         interface_span.hpp              \
189         ip_unnumbered.hpp               \
190         l2_binding.hpp                  \
191         l3_binding.hpp                  \
192         lldp_binding.hpp                \
193         lldp_global.hpp                 \
194         logger.hpp                      \
195         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                       \
208         vxlan_tunnel.hpp                \
209         $(ACL_INCLUDES)                 \
210         $(NAT_INCLUDES)                 \
211         $(L2E_INCLUDES)                 \
212         $(GBP_INCLUDES)
213
214 # vi:syntax=automake