diff options
| author | Ciara Power <[email protected]> | 2020-09-03 16:26:41 +0100 |
|---|---|---|
| committer | Thomas Monjalon <[email protected]> | 2020-09-07 16:53:41 +0200 |
| commit | fda34680eb9abf53872bde66e119f4c0288fd62f (patch) | |
| tree | d8274a498ed10a3e4a8a63fa4a75b58af1ba1768 /examples/helloworld | |
| parent | a4362f150204daa65715a876bd196f1cb955c501 (diff) | |
examples: remove legacy sections of makefiles
The example app makefiles contained sections using the legacy method of
compiling with make. These are no longer needed, and are removed,
leaving only the section that uses pkg-config for the make build.
Signed-off-by: Ciara Power <[email protected]>
Acked-by: Nicolas Chautru <[email protected]>
Diffstat (limited to 'examples/helloworld')
| -rw-r--r-- | examples/helloworld/Makefile | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/examples/helloworld/Makefile b/examples/helloworld/Makefile index 94a1074cf6..2eef6e4527 100644 --- a/examples/helloworld/Makefile +++ b/examples/helloworld/Makefile @@ -8,7 +8,9 @@ APP = helloworld SRCS-y := main.c # Build using pkg-config variables if possible -ifeq ($(shell pkg-config --exists libdpdk && echo 0),0) +ifneq ($(shell pkg-config --exists libdpdk && echo 0),0) +$(error "no installation of DPDK found") +endif all: shared .PHONY: shared static @@ -37,22 +39,3 @@ build: clean: rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared test -d build && rmdir -p build || true - -else - -ifeq ($(RTE_SDK),) -$(error "Please define RTE_SDK environment variable") -endif - -# Default target, detect a build directory, by looking for a path with a .config -RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config))))) - -include $(RTE_SDK)/mk/rte.vars.mk - -CFLAGS += -O3 -CFLAGS += $(WERROR_FLAGS) -CFLAGS += -DALLOW_EXPERIMENTAL_API - -include $(RTE_SDK)/mk/rte.extapp.mk - -endif |
