X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fqos_sched%2FMakefile;h=346d66d41e14715392bf24fa9c51f820d87d7250;hb=1c015dde95768343ea9788b4e9dd60f8ba7af727;hp=8187542eb133b12afc03e89ebf112a1aa81b00c8;hpb=5a19633079efa223cb47f99afec7ee11e1073604;p=dpdk.git diff --git a/examples/qos_sched/Makefile b/examples/qos_sched/Makefile index 8187542eb1..346d66d41e 100644 --- a/examples/qos_sched/Makefile +++ b/examples/qos_sched/Makefile @@ -7,8 +7,10 @@ APP = qos_sched # all source are stored in SRCS-y SRCS-y := main.c args.c init.c app_thread.c cfg_file.c cmdline.c stats.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)