X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fflow_classify%2FMakefile;h=539bf9682b061c85bb6aa502a8b4369f85b23416;hb=fdadccfa3fb97acf06641a5fa823b05de1cca0bb;hp=1caa93a9ba82d0562d1ca6f21b4a90a59e3a29c0;hpb=5a19633079efa223cb47f99afec7ee11e1073604;p=dpdk.git diff --git a/examples/flow_classify/Makefile b/examples/flow_classify/Makefile index 1caa93a9ba..539bf9682b 100644 --- a/examples/flow_classify/Makefile +++ b/examples/flow_classify/Makefile @@ -7,8 +7,10 @@ APP = flow_classify # all source are stored in SRCS-y SRCS-y := flow_classify.c +PKGCONF ?= pkg-config + # Build using pkg-config variables if possible -ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0) $(error "no installation of DPDK found") endif @@ -19,8 +21,6 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PKGCONF ?= pkg-config - PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null) CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)