X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fptpclient%2FMakefile;h=909bb652572b1f85c5c77bcabd1747884e01dceb;hb=3c481324baf32b98a7b7ce669ecde98a0662f07c;hp=f0d38c5c49059bc7d359ac32f7bb5e522785abc0;hpb=5a19633079efa223cb47f99afec7ee11e1073604;p=dpdk.git diff --git a/examples/ptpclient/Makefile b/examples/ptpclient/Makefile index f0d38c5c49..909bb65257 100644 --- a/examples/ptpclient/Makefile +++ b/examples/ptpclient/Makefile @@ -7,8 +7,10 @@ APP = ptpclient # all source are stored in SRCS-y SRCS-y := ptpclient.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)