X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fvhost_crypto%2FMakefile;h=84de8431a62fe8694817dd3dc8c25c093dcd764e;hb=da2c1aa41ed1b72b888b7defaf2e274607e0e555;hp=ce6f0462444b16f92e938238bf112d186d37c870;hpb=5a19633079efa223cb47f99afec7ee11e1073604;p=dpdk.git diff --git a/examples/vhost_crypto/Makefile b/examples/vhost_crypto/Makefile index ce6f046244..84de8431a6 100644 --- a/examples/vhost_crypto/Makefile +++ b/examples/vhost_crypto/Makefile @@ -8,8 +8,10 @@ APP = vhost-crypto SRCS-y := main.c CFLAGS += -DALLOW_EXPERIMENTAL_API +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 @@ -20,8 +22,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)