dpdk: be a plugin
[vpp.git] / src / plugins / Makefile.am
1
2 # Copyright (c) <current-year> <your-organization>
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at:
6 #
7 #     http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 AUTOMAKE_OPTIONS = foreign subdir-objects
16
17 AM_CFLAGS = -Wall -I${top_srcdir} -I${top_builddir}
18 AM_LDFLAGS = -module -shared -avoid-version
19 AM_LIBTOOLFLAGS = --quiet
20 SUFFIXES = .api.h .api .api.json
21 API_FILES =
22 BUILT_SOURCES =
23 vppplugins_LTLIBRARIES =
24 vppapitestplugins_LTLIBRARIES =
25 noinst_HEADERS =
26 nobase_apiinclude_HEADERS =
27 nobase_include_HEADERS =
28
29 vppapitestpluginsdir = ${libdir}/vpp_api_test_plugins
30 vpppluginsdir = ${libdir}/vpp_plugins
31
32 if ENABLE_ACL_PLUGIN
33 include acl.am
34 endif
35
36 if WITH_DPDK
37 include dpdk.am
38 endif
39
40 if ENABLE_FLOWPERPKT_PLUGIN
41 include flowperpkt.am
42 endif
43
44 if ENABLE_ILA_PLUGIN
45 include ila.am
46 endif
47
48 if ENABLE_IOAM_PLUGIN
49 include ioam.am
50 endif
51
52 if ENABLE_LB_PLUGIN
53 include lb.am
54 endif
55
56 if ENABLE_SIXRD_PLUGIN
57 include sixrd.am
58 endif
59
60 if ENABLE_SNAT_PLUGIN
61 include snat.am
62 endif
63
64 include ../suffix-rules.mk
65
66 # Remove *.la files
67 install-data-hook:
68         @-(cd $(vpppluginsdir) && $(RM) $(vppplugins_LTLIBRARIES))
69         @-(cd $(vppapitestpluginsdir) && $(RM) $(vppapitestplugins_LTLIBRARIES))
70
71 ###############################################################################
72 # API
73 ###############################################################################
74
75 apidir = $(prefix)/share/vpp/api/plugins
76 apiincludedir = ${includedir}/vpp_plugins
77
78 api_DATA = \
79         $(patsubst %.api,%.api.json,$(API_FILES))
80
81 BUILT_SOURCES += \
82         $(patsubst %.api,%.api.h,$(API_FILES))
83
84 CLEANFILES = $(BUILT_SOURCES) $(api_DATA)