summaryrefslogtreecommitdiff
path: root/examples/timer
diff options
context:
space:
mode:
authorCiara Power <[email protected]>2020-09-03 16:26:41 +0100
committerThomas Monjalon <[email protected]>2020-09-07 16:53:41 +0200
commitfda34680eb9abf53872bde66e119f4c0288fd62f (patch)
treed8274a498ed10a3e4a8a63fa4a75b58af1ba1768 /examples/timer
parenta4362f150204daa65715a876bd196f1cb955c501 (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/timer')
-rw-r--r--examples/timer/Makefile28
1 files changed, 3 insertions, 25 deletions
diff --git a/examples/timer/Makefile b/examples/timer/Makefile
index b40b65995e..0f6523afa6 100644
--- a/examples/timer/Makefile
+++ b/examples/timer/Makefile
@@ -8,7 +8,9 @@ APP = timer
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,27 +39,3 @@ build:
clean:
rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared
test -d build && rmdir -p build || true
-
-else # Build using legacy build system
-
-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
-
-# workaround for a gcc bug with noreturn attribute
-# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603
-ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)
-CFLAGS_main.o += -Wno-return-type
-endif
-
-include $(RTE_SDK)/mk/rte.extapp.mk
-endif