]> git.droids-corp.org - dpdk.git/blobdiff - examples/l2fwd/Makefile
examples/l3fwd-graph: add graph-based l3fwd skeleton
[dpdk.git] / examples / l2fwd / Makefile
index 59b2b4ab4ac2c19920157614bd36970d2324f4e2..8b7b26cb9083f2b71a35e4c06191d84a082b521d 100644 (file)
@@ -17,10 +17,12 @@ shared: build/$(APP)-shared
 static: build/$(APP)-static
        ln -sf $(APP)-static build/$(APP)
 
-PKGCONF=pkg-config --define-prefix
+PKGCONF ?= pkg-config
 
-PC_FILE := $(shell $(PKGCONF) --path libdpdk)
+PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)
 CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)
+# Add flag to allow experimental API as l2fwd uses rte_ethdev_set_ptype API
+CFLAGS += -DALLOW_EXPERIMENTAL_API
 LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)
 LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk)