X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fexamples%2Fsample-plugin%2FMakefile.am;h=2622f4e69f9565191ea2c3c272461df334ce0bf2;hb=6a5adc369591fcac2447e9809deaa22f56b53911;hp=a3a9a8d6ed4ecaa6fa06f75dbb5f3154dfb8ae8f;hpb=04f8d3fe25ab8f7088d6817350903197915e7669;p=vpp.git diff --git a/src/examples/sample-plugin/Makefile.am b/src/examples/sample-plugin/Makefile.am index a3a9a8d6ed4..2622f4e69f9 100644 --- a/src/examples/sample-plugin/Makefile.am +++ b/src/examples/sample-plugin/Makefile.am @@ -13,7 +13,7 @@ AUTOMAKE_OPTIONS = foreign subdir-objects -AM_CFLAGS = -Wall -I${top_srcdir} -I${top_builddir} +AM_CFLAGS = -Wall -I${top_srcdir} -I${top_builddir} @DLMALLOC@ AM_LDFLAGS = -module -shared -avoid-version AM_LIBTOOLFLAGS = --quiet SUFFIXES = .api.h .api .api.json @@ -31,15 +31,14 @@ vpppluginsdir = ${libdir}/vpp_plugins include sample.am %.api.h: %.api - mkdir -p `dirname $@` ; \ - $(CC) $(CPPFLAGS) -E -P -C -x c $^ \ - | vppapigen --input - --output $@ --show-name $@ + @echo " APIGEN " $@ ; \ + mkdir -p `dirname $@` ; \ + vppapigen --input $^ --output $@ %.api.json: %.api - @echo " JSON APIGEN " $@ ; \ - mkdir -p `dirname $@` ; \ - $(CC) $(CPPFLAGS) -E -P -C -x c $^ \ - | vppapigen --input - --json $@ + @echo " JSON APIGEN " $@ ; \ + mkdir -p `dirname $@` ; \ + vppapigen --input $^ JSON --output $@ apidir = $(prefix)/api/plugins apiincludedir = ${includedir}/vpp_plugins