f26d0fd27c5c85df9e093f73e68028ca122d24f7
[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 ENABLE_DPDK_PLUGIN
37 include dpdk.am
38 endif
39
40 if ENABLE_FLOWPROBE_PLUGIN
41 include flowprobe.am
42 endif
43
44
45 if ENABLE_GTPU_PLUGIN
46 include gtpu.am
47 endif
48
49 if ENABLE_ILA_PLUGIN
50 include ila.am
51 endif
52
53 if ENABLE_IOAM_PLUGIN
54 include ioam.am
55 endif
56
57 if ENABLE_IXGE_PLUGIN
58 include ixge.am
59 endif
60
61 if ENABLE_LB_PLUGIN
62 include lb.am
63 endif
64
65 if ENABLE_MEMIF_PLUGIN
66 include memif.am
67 endif
68
69 if ENABLE_SIXRD_PLUGIN
70 include sixrd.am
71 endif
72
73 if ENABLE_SNAT_PLUGIN
74 include snat.am
75 endif
76
77 include ../suffix-rules.mk
78
79 # Remove *.la files
80 install-data-hook:
81         @-(cd $(vpppluginsdir) && $(RM) $(vppplugins_LTLIBRARIES))
82         @-(cd $(vppapitestpluginsdir) && $(RM) $(vppapitestplugins_LTLIBRARIES))
83
84 ###############################################################################
85 # API
86 ###############################################################################
87
88 apidir = $(prefix)/share/vpp/api/plugins
89 apiincludedir = ${includedir}/vpp_plugins
90
91 api_DATA = \
92         $(patsubst %.api,%.api.json,$(API_FILES))
93
94 BUILT_SOURCES += \
95         $(patsubst %.api,%.api.h,$(API_FILES))
96
97 CLEANFILES = $(BUILT_SOURCES) $(api_DATA)