diff options
| author | Bruce Richardson <[email protected]> | 2019-07-02 15:44:41 +0100 |
|---|---|---|
| committer | Thomas Monjalon <[email protected]> | 2019-07-02 18:07:46 +0200 |
| commit | ca9268529d2be1764054591ad57a7aac008e16b4 (patch) | |
| tree | 256103d27c762a05edd4e30ab71696007693c095 /examples/timer | |
| parent | 863fd2930bbe9c982b042584d513d190487c983a (diff) | |
examples: support relocated DPDK install
For testing of DPDK, we want to override the prefix given by the
pkg-config file, so that we can get correct paths for DPDK installed
in an unusual location.
Signed-off-by: Bruce Richardson <[email protected]>
Acked-by: Luca Boccassi <[email protected]>
Diffstat (limited to 'examples/timer')
| -rw-r--r-- | examples/timer/Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/examples/timer/Makefile b/examples/timer/Makefile index f49703ff43..d21e4c63c2 100644 --- a/examples/timer/Makefile +++ b/examples/timer/Makefile @@ -18,10 +18,12 @@ shared: build/$(APP)-shared static: build/$(APP)-static ln -sf $(APP)-static build/$(APP) -PC_FILE := $(shell pkg-config --path libdpdk) -CFLAGS += -O3 $(shell pkg-config --cflags libdpdk) -LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk) -LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk) +PKGCONF=pkg-config --define-prefix + +PC_FILE := $(shell $(PKGCONF) --path libdpdk) +CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk) +LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk) +LDFLAGS_STATIC = -Wl,-Bstatic $(shell $(PKGCONF) --static --libs libdpdk) build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build $(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED) |
