summaryrefslogtreecommitdiffstats
path: root/plugins/ila-plugin/Makefile.am
diff options
context:
space:
mode:
authorPierre Pfister <ppfister@cisco.com>2016-09-15 13:45:31 +0100
committerKeith Burns <alagalah@gmail.com>2016-09-16 16:25:23 +0000
commit9b15f282952b12d1761c03ee48293baecaf32d0c (patch)
tree40903f8b32dac1ab9876b3f1779e0052947d11bc /plugins/ila-plugin/Makefile.am
parent2dfd08242d66fb79c9a861c6a0c7fee45ef6bc60 (diff)
Add ILA API and API test plugin VPP-412
The ILA plugin could only be configured through CLI. This patch adds API support to ila_interface and ila_add_del_entry functions. The patch also adds a test plugin for vpp_api_test. Change-Id: I35d96c4e56bb32862cd08cc86a9fa25ff56ef583 Signed-off-by: Pierre Pfister <ppfister@cisco.com>
Diffstat (limited to 'plugins/ila-plugin/Makefile.am')
-rw-r--r--plugins/ila-plugin/Makefile.am17
1 files changed, 15 insertions, 2 deletions
diff --git a/plugins/ila-plugin/Makefile.am b/plugins/ila-plugin/Makefile.am
index fe785df9bc3..ebf1b9b5863 100644
--- a/plugins/ila-plugin/Makefile.am
+++ b/plugins/ila-plugin/Makefile.am
@@ -16,14 +16,27 @@ AUTOMAKE_OPTIONS = foreign subdir-objects
AM_CFLAGS = -Wall
AM_LDFLAGS = -module -shared -avoid-version
+vppapitestpluginsdir = ${libdir}/vpp_api_test_plugins
vpppluginsdir = ${libdir}/vpp_plugins
+vppapitestplugins_LTLIBRARIES = ila_test_plugin.la
vppplugins_LTLIBRARIES = ila_plugin.la
-ila_plugin_la_SOURCES = ila/ila.c
+ila_plugin_la_SOURCES = ila/ila.c ila/ila_api.c
-noinst_HEADERS = ila/ila.h
+SUFFIXES = .api.h .api
+
+%.api.h: %.api
+ mkdir -p `dirname $@` ; \
+ $(CC) $(CPPFLAGS) -E -P -C -x c $^ \
+ | vppapigen --input - --output $@ --show-name $@
+
+noinst_HEADERS = ila/ila.h ila/ila.api.h
+
+ila_test_plugin_la_SOURCES = \
+ ila/ila_api_test.c
# Remove *.la files
install-data-hook:
@(cd $(vpppluginsdir) && $(RM) $(vppplugins_LTLIBRARIES))
+ @(cd $(vppapitestpluginsdir) && $(RM) $(vppapitestplugins_LTLIBRARIES))