Move java,lua api and remaining plugins to src/
[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 SUFFIXES = .api.h .api .api.json
20 API_FILES =
21 BUILT_SOURCES =
22 vppplugins_LTLIBRARIES =
23 vppapitestplugins_LTLIBRARIES =
24 noinst_HEADERS =
25 nobase_apiinclude_HEADERS =
26
27 vppapitestpluginsdir = ${libdir}/vpp_api_test_plugins
28 vpppluginsdir = ${libdir}/vpp_plugins
29
30 if ENABLE_ACL_PLUGIN
31 include acl.am
32 endif
33
34 if ENABLE_FLOWPERPKT_PLUGIN
35 include flowperpkt.am
36 endif
37
38 if ENABLE_ILA_PLUGIN
39 include ila.am
40 endif
41
42 if ENABLE_IOAM_PLUGIN
43 include ioam.am
44 endif
45
46 if ENABLE_LB_PLUGIN
47 include lb.am
48 endif
49
50 if ENABLE_SIXRD_PLUGIN
51 include sixrd.am
52 endif
53
54 if ENABLE_SNAT_PLUGIN
55 include snat.am
56 endif
57
58 include ../suffix-rules.mk
59
60 # Remove *.la files
61 install-data-hook:
62         @-(cd $(vpppluginsdir) && $(RM) $(vppplugins_LTLIBRARIES))
63         @-(cd $(vppapitestpluginsdir) && $(RM) $(vppapitestplugins_LTLIBRARIES))
64
65 ###############################################################################
66 # API
67 ###############################################################################
68
69 apidir = $(prefix)/share/vpp/api/plugins
70 apiincludedir = ${includedir}/vpp_plugins
71
72 api_DATA = \
73         $(patsubst %.api,%.api.json,$(API_FILES))
74
75 BUILT_SOURCES += \
76         $(patsubst %.api,%.api.json,$(API_FILES)) \
77         $(patsubst %.api,%.api.h,$(API_FILES))
78