L2 Emulation
[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 = @CPU_FLAGS@ -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 noinst_LTLIBRARIES =
27 nobase_apiinclude_HEADERS =
28 nobase_include_HEADERS =
29
30 vppapitestpluginsdir = ${libdir}/vpp_api_test_plugins
31 vpppluginsdir = ${libdir}/vpp_plugins
32
33 if ENABLE_ACL_PLUGIN
34 include acl.am
35 endif
36
37 if ENABLE_DPDK_PLUGIN
38 include dpdk.am
39 endif
40
41 if ENABLE_FLOWPROBE_PLUGIN
42 include flowprobe.am
43 endif
44
45
46 if ENABLE_GTPU_PLUGIN
47 include gtpu.am
48 endif
49
50 if ENABLE_ILA_PLUGIN
51 include ila.am
52 endif
53
54 if ENABLE_IOAM_PLUGIN
55 include ioam.am
56 endif
57
58 if ENABLE_IXGE_PLUGIN
59 include ixge.am
60 endif
61
62 if ENABLE_KUBEPROXY_PLUGIN
63 include kubeproxy.am
64 endif
65
66 if ENABLE_LB_PLUGIN
67 include lb.am
68 endif
69
70 if ENABLE_MEMIF_PLUGIN
71 include memif.am
72 endif
73
74 if ENABLE_PPPOE_PLUGIN
75 include pppoe.am
76 endif
77
78 if ENABLE_SIXRD_PLUGIN
79 include sixrd.am
80 endif
81
82 if ENABLE_NAT_PLUGIN
83 include nat.am
84 endif
85
86 if ENABLE_STN_PLUGIN
87 include stn.am
88 endif
89
90 if ENABLE_L2E_PLUGIN
91 include l2e.am
92 endif
93
94 include ../suffix-rules.mk
95
96 # Remove *.la files
97 install-data-hook:
98         @-(cd $(vpppluginsdir) && $(RM) $(vppplugins_LTLIBRARIES))
99         @-(cd $(vppapitestpluginsdir) && $(RM) $(vppapitestplugins_LTLIBRARIES))
100
101 ###############################################################################
102 # API
103 ###############################################################################
104
105 apidir = $(prefix)/share/vpp/api/plugins
106 apiincludedir = ${includedir}/vpp_plugins
107
108 api_DATA = \
109         $(patsubst %.api,%.api.json,$(API_FILES))
110
111 BUILT_SOURCES += \
112         $(patsubst %.api,%.api.h,$(API_FILES))
113
114 CLEANFILES = $(BUILT_SOURCES) $(api_DATA)