L2-Learn: use vlib_buffer_enqueue_to_next
[vpp.git] / src / examples / sample-plugin / Makefile.am
index a3a9a8d..1825a8f 100644 (file)
@@ -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