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:
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
15 AUTOMAKE_OPTIONS = foreign subdir-objects
18 AM_LDFLAGS = -module -shared -avoid-version
20 vppapitestpluginsdir = ${libdir}/vpp_api_test_plugins
21 vpppluginsdir = ${libdir}/vpp_plugins
23 vppplugins_LTLIBRARIES = flowperpkt_plugin.la
24 vppapitestplugins_LTLIBRARIES = flowperpkt_test_plugin.la
26 flowperpkt_plugin_la_SOURCES = flowperpkt/flowperpkt.c \
28 flowperpkt/flowperpkt_plugin.api.h
29 flowperpkt_plugin_la_LDFLAGS = -module
32 flowperpkt/flowperpkt.api.h \
33 flowperpkt/flowperpkt.api.json
35 SUFFIXES = .api.h .api .api.json
38 mkdir -p `dirname $@` ; \
39 $(CC) $(CPPFLAGS) -E -P -C -x c $^ \
40 | vppapigen --input - --output $@ --show-name $@
43 @echo " JSON APIGEN " $@ ; \
44 mkdir -p `dirname $@` ; \
45 $(CC) $(CPPFLAGS) -E -P -C -x c $^ \
46 | vppapigen --input - --json $@
48 apidir = $(prefix)/flowperpkt/
49 api_DATA = flowperpkt/flowperpkt.api.json
52 flowperpkt/flowperpkt_all_api_h.h \
53 flowperpkt/flowperpkt_msg_enum.h \
54 flowperpkt/flowperpkt.api.h
56 flowperpkt_test_plugin_la_SOURCES = \
57 flowperpkt/flowperpkt_test.c flowperpkt/flowperpkt_plugin.api.h
61 @(cd $(vpppluginsdir) && $(RM) $(vppplugins_LTLIBRARIES))
62 @(cd $(vppapitestpluginsdir) && $(RM) $(vppapitestplugins_LTLIBRARIES))