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 <ciara.power@intel.com>
Acked-by: Nicolas Chautru <nicolas.chautru@intel.com>
This commit is contained in:
Ciara Power 2020-09-03 16:26:41 +01:00 committed by Thomas Monjalon
parent a4362f1502
commit fda34680eb
43 changed files with 129 additions and 1078 deletions

View File

@ -8,7 +8,9 @@ APP = bbdev
SRCS-y := main.c SRCS-y := main.c
# Build using pkg-config variables if possible # 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 all: shared
.PHONY: shared static .PHONY: shared static
@ -39,22 +41,3 @@ build:
clean: clean:
rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared
test -d build && rmdir -p build || true 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 += -DALLOW_EXPERIMENTAL_API
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)
include $(RTE_SDK)/mk/rte.extapp.mk
endif

View File

@ -8,7 +8,9 @@ APP = bond_app
SRCS-y := main.c SRCS-y := main.c
# Build using pkg-config variables if possible # 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 all: shared
.PHONY: shared static .PHONY: shared static
@ -41,33 +43,3 @@ build:
clean: clean:
rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared
test -d build && rmdir -p build || true 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 += $(WERROR_FLAGS)
# 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
CFLAGS += -O3
CFLAGS += -DALLOW_EXPERIMENTAL_API
ifeq ($(CONFIG_RTE_BUILD_SHARED_LIB),y)
LDLIBS += -lrte_pmd_bond
endif
include $(RTE_SDK)/mk/rte.extapp.mk
endif

View File

@ -8,7 +8,9 @@ APP = cmdline
SRCS-y := main.c commands.c parse_obj_list.c SRCS-y := main.c commands.c parse_obj_list.c
# Build using pkg-config variables if possible # 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 all: shared
.PHONY: shared static .PHONY: shared static
@ -37,28 +39,3 @@ build:
clean: clean:
rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared
test -d build && rmdir -p build || true 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
# binary name
APP = cmdline
# all source are stored in SRCS-y
SRCS-y := main.c commands.c parse_obj_list.c
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)
CFLAGS += -DALLOW_EXPERIMENTAL_API
include $(RTE_SDK)/mk/rte.extapp.mk
endif

View File

@ -8,7 +8,9 @@ APP = distributor_app
SRCS-y := main.c SRCS-y := main.c
# Build using pkg-config variables if possible # 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 all: shared
.PHONY: shared static .PHONY: shared static
@ -37,29 +39,3 @@ build:
clean: clean:
rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared
test -d build && rmdir -p build || true 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 += $(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
EXTRA_CFLAGS += -O3 -Wfatal-errors
include $(RTE_SDK)/mk/rte.extapp.mk
endif

View File

@ -10,7 +10,9 @@ SRCS-y += pipeline_worker_generic.c
SRCS-y += pipeline_worker_tx.c SRCS-y += pipeline_worker_tx.c
# Build using pkg-config variables if possible # 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 all: shared
.PHONY: shared static .PHONY: shared static
@ -39,22 +41,3 @@ build:
clean: clean:
rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared
test -d build && rmdir -p build || true 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 += -DALLOW_EXPERIMENTAL_API
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)
include $(RTE_SDK)/mk/rte.extapp.mk
endif

View File

@ -18,7 +18,9 @@ SRCS-y += fips_validation_xts.c
SRCS-y += main.c SRCS-y += main.c
# Build using pkg-config variables if possible # 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 all: shared
.PHONY: shared static .PHONY: shared static
@ -47,33 +49,3 @@ build:
clean: clean:
rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared
test -d build && rmdir -p build || true 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)))))
INC += $(sort $(wildcard *.h))
include $(RTE_SDK)/mk/rte.vars.mk
CFLAGS += $(WERROR_FLAGS)
# 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
CFLAGS += -DALLOW_EXPERIMENTAL_API
CFLAGS += -I$(SRCDIR)
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)
include $(RTE_SDK)/mk/rte.extapp.mk
endif

View File

@ -8,7 +8,9 @@ APP = flow_classify
SRCS-y := flow_classify.c SRCS-y := flow_classify.c
# Build using pkg-config variables if possible # 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 all: shared
.PHONY: shared static .PHONY: shared static
@ -39,28 +41,3 @@ build:
clean: clean:
rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared
test -d build && rmdir -p build || true 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 += -DALLOW_EXPERIMENTAL_API
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)
# 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

View File

@ -6,7 +6,9 @@ APP = flow
SRCS-y := main.c SRCS-y := main.c
# Build using pkg-config variables if possible # 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 all: shared
.PHONY: shared static .PHONY: shared static
@ -35,22 +37,3 @@ build:
clean: clean:
rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared
test -d build && rmdir -p build || true 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

View File

@ -8,7 +8,9 @@ APP = helloworld
SRCS-y := main.c SRCS-y := main.c
# Build using pkg-config variables if possible # 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 all: shared
.PHONY: shared static .PHONY: shared static
@ -37,22 +39,3 @@ build:
clean: clean:
rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared
test -d build && rmdir -p build || true 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

View File

@ -8,7 +8,9 @@ APP = ioatfwd
SRCS-y := ioatfwd.c SRCS-y := ioatfwd.c
# Build using pkg-config variables if possible # 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 all: shared
.PHONY: shared static .PHONY: shared static
@ -37,21 +39,3 @@ build:
clean: clean:
rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared
test -d build && rmdir -p build || true 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
include $(RTE_SDK)/mk/rte.extapp.mk
endif

View File

@ -9,7 +9,9 @@ APP = ip_fragmentation
SRCS-y := main.c SRCS-y := main.c
# Build using pkg-config variables if possible # 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 all: shared
.PHONY: shared static .PHONY: shared static
@ -39,28 +41,3 @@ build:
clean: clean:
rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared
test -d build && rmdir -p build || true 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
# 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

View File

@ -21,7 +21,9 @@ SRCS-y += tmgr.c
SRCS-y += cryptodev.c SRCS-y += cryptodev.c
# Build using pkg-config variables if possible # 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 all: shared
.PHONY: shared static .PHONY: shared static
@ -57,35 +59,3 @@ build:
clean: clean:
rm -f build/$(APP)* build/*.o rm -f build/$(APP)* build/*.o
test -d build && rmdir -p build || true 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
ifneq ($(CONFIG_RTE_EXEC_ENV_LINUX),y)
$(info This application can only operate in a linux environment, \
please change the definition of the RTE_TARGET environment variable)
all:
clean:
else
INC += $(sort $(wildcard *.h))
SRCS-$(CONFIG_RTE_LIBRTE_PIPELINE) := $(SRCS-y)
CFLAGS += -DALLOW_EXPERIMENTAL_API
CFLAGS += -I$(SRCDIR)
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)
include $(RTE_SDK)/mk/rte.extapp.mk
endif
endif

View File

@ -9,7 +9,9 @@ APP = ip_reassembly
SRCS-y := main.c SRCS-y := main.c
# Build using pkg-config variables if possible # 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 all: shared
.PHONY: shared static .PHONY: shared static
@ -38,28 +40,3 @@ build:
clean: clean:
rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared
test -d build && rmdir -p build || true 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
# 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

View File

@ -23,7 +23,9 @@ SRCS-y += flow.c
CFLAGS += -gdwarf-2 CFLAGS += -gdwarf-2
# Build using pkg-config variables if possible # 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 all: shared
.PHONY: shared static .PHONY: shared static
@ -54,35 +56,3 @@ build:
clean: clean:
rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared
test -d build && rmdir -p build || true 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
ifneq ($(MAKECMDGOALS),clean)
ifneq ($(CONFIG_RTE_LIBRTE_IPSEC),y)
$(error "RTE_LIBRTE_IPSEC is required to build ipsec-secgw")
endif
endif
CFLAGS += -DALLOW_EXPERIMENTAL_API
CFLAGS += -O3 -gdwarf-2
CFLAGS += $(WERROR_FLAGS)
ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
CFLAGS_sa.o += -diag-disable=vec
endif
ifeq ($(DEBUG),1)
CFLAGS += -DIPSEC_DEBUG -fstack-protector-all -O0
endif
include $(RTE_SDK)/mk/rte.extapp.mk
endif

View File

@ -9,7 +9,9 @@ APP = ipv4_multicast
SRCS-y := main.c SRCS-y := main.c
# Build using pkg-config variables if possible # 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 all: shared
.PHONY: shared static .PHONY: shared static
@ -38,28 +40,3 @@ build:
clean: clean:
rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared
test -d build && rmdir -p build || true 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

View File

@ -8,7 +8,9 @@ APP = kni
SRCS-y := main.c SRCS-y := main.c
# Build using pkg-config variables if possible # 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 all: shared
.PHONY: shared static .PHONY: shared static
@ -38,26 +40,3 @@ build:
clean: clean:
rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared
test -d build && rmdir -p build || true 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
ifneq ($(CONFIG_RTE_EXEC_ENV_LINUX),y)
$(error This application can only operate in a linux environment, \
please change the definition of the RTE_TARGET environment variable)
endif
CFLAGS += -O3
CFLAGS += -DALLOW_EXPERIMENTAL_API
CFLAGS += $(WERROR_FLAGS)
include $(RTE_SDK)/mk/rte.extapp.mk
endif

View File

@ -8,7 +8,9 @@ APP = l2fwd-cat
SRCS-y := l2fwd-cat.c cat.c SRCS-y := l2fwd-cat.c cat.c
# Build using pkg-config variables if possible # 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 all: shared
.PHONY: shared static .PHONY: shared static
@ -39,37 +41,3 @@ build:
clean: clean:
rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared
test -d build && rmdir -p build || true test -d build && rmdir -p build || true
else # Build using legacy build system
ifeq ($(RTE_SDK),)
$(error "Please define RTE_SDK environment variable")
endif
ifeq ($(PQOS_INSTALL_PATH),)
$(error "Please define PQOS_INSTALL_PATH 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 += $(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
EXTRA_CFLAGS += -O3 -g -Wfatal-errors
CFLAGS += -I$(PQOS_INSTALL_PATH)/../include
LDLIBS += -L$(PQOS_INSTALL_PATH)
LDLIBS += -lpqos
include $(RTE_SDK)/mk/rte.extapp.mk
endif

View File

@ -8,7 +8,9 @@ APP = l2fwd-crypto
SRCS-y := main.c SRCS-y := main.c
# Build using pkg-config variables if possible # 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 all: shared
.PHONY: shared static .PHONY: shared static
@ -37,27 +39,3 @@ build:
clean: clean:
rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared
test -d build && rmdir -p build || true 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 += -DALLOW_EXPERIMENTAL_API
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)
ifeq ($(CONFIG_RTE_BUILD_SHARED_LIB),y)
ifeq ($(CONFIG_RTE_LIBRTE_PMD_CRYPTO_SCHEDULER),y)
LDLIBS += -lrte_pmd_crypto_scheduler
endif
endif
include $(RTE_SDK)/mk/rte.extapp.mk
endif

View File

@ -14,7 +14,9 @@ SRCS-y += l2fwd_event_generic.c
SRCS-y += l2fwd_event_internal_port.c SRCS-y += l2fwd_event_internal_port.c
# Build using pkg-config variables if possible # 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 all: shared
.PHONY: shared static .PHONY: shared static
@ -43,21 +45,3 @@ build:
clean: clean:
rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared
test -d build && rmdir -p build || true 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
include $(RTE_SDK)/mk/rte.extapp.mk
endif

View File

@ -8,7 +8,9 @@ APP = l2fwd-jobstats
SRCS-y := main.c SRCS-y := main.c
# Build using pkg-config variables if possible # 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 all: shared
.PHONY: shared static .PHONY: shared static
@ -37,22 +39,3 @@ build:
clean: clean:
rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared
test -d build && rmdir -p build || true 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
include $(RTE_SDK)/mk/rte.extapp.mk
endif

View File

@ -8,7 +8,9 @@ APP = l2fwd-keepalive
SRCS-y := main.c shm.c SRCS-y := main.c shm.c
# Build using pkg-config variables if possible # 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 all: shared
.PHONY: shared static .PHONY: shared static
@ -39,22 +41,3 @@ build:
clean: clean:
rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared
test -d build && rmdir -p build || true 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
LDFLAGS += -lrt
include $(RTE_SDK)/mk/rte.extapp.mk
endif

View File

@ -8,7 +8,9 @@ APP = l2fwd
SRCS-y := main.c SRCS-y := main.c
# Build using pkg-config variables if possible # 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 all: shared
.PHONY: shared static .PHONY: shared static
@ -39,22 +41,3 @@ build:
clean: clean:
rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared
test -d build && rmdir -p build || true 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)
# Add flag to allow experimental API as l2fwd uses rte_ethdev_set_ptype API
CFLAGS += -DALLOW_EXPERIMENTAL_API
include $(RTE_SDK)/mk/rte.extapp.mk
endif

View File

@ -8,7 +8,9 @@ APP = l3fwd-acl
SRCS-y := main.c SRCS-y := main.c
# Build using pkg-config variables if possible # 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 all: shared
.PHONY: shared static .PHONY: shared static
@ -37,27 +39,3 @@ build:
clean: clean:
rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared
test -d build && rmdir -p build || true 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

View File

@ -8,7 +8,9 @@ APP = l3fwd-graph
SRCS-y := main.c SRCS-y := main.c
# Build using pkg-config variables if possible # 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 all: shared
.PHONY: shared static .PHONY: shared static
@ -37,22 +39,3 @@ build:
clean: clean:
rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared
test -d build && rmdir -p build || true 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 += -DALLOW_EXPERIMENTAL_API
CFLAGS += -I$(SRCDIR)
CFLAGS += -O3 $(USER_FLAGS)
CFLAGS += $(WERROR_FLAGS)
include $(RTE_SDK)/mk/rte.extapp.mk
endif

View File

@ -8,7 +8,9 @@ APP = l3fwd-power
SRCS-y := main.c perf_core.c SRCS-y := main.c perf_core.c
# Build using pkg-config variables if possible # 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 all: shared
.PHONY: shared static .PHONY: shared static
@ -39,35 +41,3 @@ build:
clean: clean:
rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared
test -d build && rmdir -p build || true 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
ifneq ($(CONFIG_RTE_EXEC_ENV_LINUX),y)
$(info This application can only operate in a linux environment, \
please change the definition of the RTE_TARGET environment variable)
all:
else
CFLAGS += -DALLOW_EXPERIMENTAL_API
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)
LDLIBS += -lm -lrte_telemetry
# 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
endif

View File

@ -9,7 +9,9 @@ SRCS-y := main.c l3fwd_lpm.c l3fwd_em.c l3fwd_event.c
SRCS-y += l3fwd_event_generic.c l3fwd_event_internal_port.c SRCS-y += l3fwd_event_generic.c l3fwd_event_internal_port.c
# Build using pkg-config variables if possible # 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 all: shared
.PHONY: shared static .PHONY: shared static
@ -38,22 +40,3 @@ build:
clean: clean:
rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared
test -d build && rmdir -p build || true 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 += -I$(SRCDIR)
CFLAGS += -O3 $(USER_FLAGS)
CFLAGS += $(WERROR_FLAGS)
CFLAGS += -DALLOW_EXPERIMENTAL_API
include $(RTE_SDK)/mk/rte.extapp.mk
endif

View File

@ -8,7 +8,9 @@ APP = link_status_interrupt
SRCS-y := main.c SRCS-y := main.c
# Build using pkg-config variables if possible # 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 all: shared
.PHONY: shared static .PHONY: shared static
@ -37,21 +39,3 @@ build:
clean: clean:
rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared
test -d build && rmdir -p build || true 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
include $(RTE_SDK)/mk/rte.extapp.mk
endif

View File

@ -8,8 +8,9 @@ APP = ntb_fwd
SRCS-y := ntb_fwd.c SRCS-y := ntb_fwd.c
# Build using pkg-config variables if possible # Build using pkg-config variables if possible
$(shell pkg-config --exists libdpdk) ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)
ifeq ($(.SHELLSTATUS),0) $(error "no installation of DPDK found")
endif
all: shared all: shared
.PHONY: shared static .PHONY: shared static
@ -42,30 +43,3 @@ build:
clean: clean:
rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared
rmdir --ignore-fail-on-non-empty build rmdir --ignore-fail-on-non-empty build
else # Build using legacy build system
ifeq ($(RTE_SDK),)
$(error "Please define RTE_SDK environment variable")
endif
# Default target, can be overridden by command line or environment
RTE_TARGET ?= x86_64-native-linuxapp-gcc
include $(RTE_SDK)/mk/rte.vars.mk
ifneq ($(CONFIG_RTE_EXEC_ENV_LINUXAPP),y)
$(info This application can only operate in a linuxapp environment, \
please change the definition of the RTE_TARGET environment variable)
all:
else
CFLAGS += -D_FILE_OFFSET_BITS=64
CFLAGS += -O2
CFLAGS += $(WERROR_FLAGS)
CFLAGS += -DALLOW_EXPERIMENTAL_API
include $(RTE_SDK)/mk/rte.extapp.mk
endif
endif

View File

@ -8,7 +8,9 @@ APP = packet_ordering
SRCS-y := main.c SRCS-y := main.c
# Build using pkg-config variables if possible # 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 all: shared
.PHONY: shared static .PHONY: shared static
@ -37,21 +39,3 @@ build:
clean: clean:
rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared
test -d build && rmdir -p build || true 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
include $(RTE_SDK)/mk/rte.extapp.mk
endif

View File

@ -8,7 +8,9 @@ APP = ptpclient
SRCS-y := ptpclient.c SRCS-y := ptpclient.c
# Build using pkg-config variables if possible # 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 all: shared
.PHONY: shared static .PHONY: shared static
@ -37,27 +39,3 @@ build:
clean: clean:
rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared
test -d build && rmdir -p build || true 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

View File

@ -8,7 +8,9 @@ APP = qos_meter
SRCS-y := main.c rte_policer.c SRCS-y := main.c rte_policer.c
# Build using pkg-config variables if possible # 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 all: shared
.PHONY: shared static .PHONY: shared static
@ -39,27 +41,3 @@ build:
clean: clean:
rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared
test -d build && rmdir -p build || true 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

View File

@ -8,7 +8,9 @@ APP = qos_sched
SRCS-y := main.c args.c init.c app_thread.c cfg_file.c cmdline.c stats.c SRCS-y := main.c args.c init.c app_thread.c cfg_file.c cmdline.c stats.c
# Build using pkg-config variables if possible # 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 all: shared
.PHONY: shared static .PHONY: shared static
@ -37,30 +39,3 @@ build:
clean: clean:
rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared
test -d build && rmdir -p build || true 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
ifneq ($(CONFIG_RTE_EXEC_ENV_LINUX),y)
$(info This application can only operate in a linux environment, \
please change the definition of the RTE_TARGET environment variable)
all:
clean:
else
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)
CFLAGS += -DALLOW_EXPERIMENTAL_API
include $(RTE_SDK)/mk/rte.extapp.mk
endif
endif

View File

@ -8,7 +8,9 @@ APP = rxtx_callbacks
SRCS-y := main.c SRCS-y := main.c
# Build using pkg-config variables if possible # 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 all: shared
.PHONY: shared static .PHONY: shared static
@ -37,30 +39,3 @@ build:
clean: clean:
rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared
test -d build && rmdir -p build || true 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 += $(WERROR_FLAGS)
# rte_eth_read_clock is experimental
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
EXTRA_CFLAGS += -O3 -g -Wfatal-errors
include $(RTE_SDK)/mk/rte.extapp.mk
endif

View File

@ -8,7 +8,9 @@ APP = service_cores
SRCS-y := main.c SRCS-y := main.c
# Build using pkg-config variables if possible # 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 all: shared
.PHONY: shared static .PHONY: shared static
@ -37,27 +39,3 @@ build:
clean: clean:
rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared
test -d build && rmdir -p build || true 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 += $(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

View File

@ -8,7 +8,9 @@ APP = basicfwd
SRCS-y := basicfwd.c SRCS-y := basicfwd.c
# Build using pkg-config variables if possible # 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 all: shared
.PHONY: shared static .PHONY: shared static
@ -37,28 +39,3 @@ build:
clean: clean:
rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared
test -d build && rmdir -p build || true 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 += $(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
EXTRA_CFLAGS += -O3 -g -Wfatal-errors
include $(RTE_SDK)/mk/rte.extapp.mk
endif

View File

@ -8,7 +8,9 @@ APP = tep_termination
SRCS-y := main.c vxlan_setup.c vxlan.c SRCS-y := main.c vxlan_setup.c vxlan.c
# Build using pkg-config variables if possible # 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 all: shared
.PHONY: shared static .PHONY: shared static
@ -41,26 +43,3 @@ build:
clean: clean:
rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared
test -d build && rmdir -p build || true 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
ifneq ($(CONFIG_RTE_EXEC_ENV_LINUX),y)
$(error This application can only operate in a linux environment, \
please change the definition of the RTE_TARGET environment variable)
endif
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)
CFLAGS += -Wno-deprecated-declarations
include $(RTE_SDK)/mk/rte.extapp.mk
endif

View File

@ -8,7 +8,9 @@ APP = timer
SRCS-y := main.c SRCS-y := main.c
# Build using pkg-config variables if possible # 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 all: shared
.PHONY: shared static .PHONY: shared static
@ -37,27 +39,3 @@ build:
clean: clean:
rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared
test -d build && rmdir -p build || true 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

View File

@ -9,7 +9,9 @@ SRCS-y := main.c
CFLAGS += -DALLOW_EXPERIMENTAL_API CFLAGS += -DALLOW_EXPERIMENTAL_API
# Build using pkg-config variables if possible # 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 all: shared
.PHONY: shared static .PHONY: shared static
@ -38,31 +40,3 @@ build:
clean: clean:
rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared
test -d build && rmdir -p build || true 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
ifneq ($(CONFIG_RTE_EXEC_ENV_LINUX),y)
$(info This application can only operate in a linux environment, \
please change the definition of the RTE_TARGET environment variable)
all:
else
CFLAGS += -O2 -D_FILE_OFFSET_BITS=64
CFLAGS += $(WERROR_FLAGS)
CFLAGS += -D_GNU_SOURCE
CFLAGS += -DALLOW_EXPERIMENTAL_API
include $(RTE_SDK)/mk/rte.extapp.mk
endif # linuxapp
endif # pkg-config

View File

@ -8,7 +8,9 @@ APP = vhost-switch
SRCS-y := main.c virtio_net.c SRCS-y := main.c virtio_net.c
# Build using pkg-config variables if possible # 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 all: shared
.PHONY: shared static .PHONY: shared static
@ -41,29 +43,3 @@ build:
clean: clean:
rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared
test -d build && rmdir -p build || true 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
ifneq ($(CONFIG_RTE_EXEC_ENV_LINUX),y)
$(info This application can only operate in a linux environment, \
please change the definition of the RTE_TARGET environment variable)
all:
else
CFLAGS += -DALLOW_EXPERIMENTAL_API
CFLAGS += -O2 -D_FILE_OFFSET_BITS=64
CFLAGS += $(WERROR_FLAGS)
include $(RTE_SDK)/mk/rte.extapp.mk
endif
endif

View File

@ -8,8 +8,9 @@ APP = vhost-blk
SRCS-y := blk.c vhost_blk.c vhost_blk_compat.c SRCS-y := blk.c vhost_blk.c vhost_blk_compat.c
# Build using pkg-config variables if possible # Build using pkg-config variables if possible
$(shell pkg-config --exists libdpdk) ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)
ifeq ($(.SHELLSTATUS),0) $(error "no installation of DPDK found")
endif
all: shared all: shared
.PHONY: shared static .PHONY: shared static
@ -42,29 +43,3 @@ build:
clean: clean:
rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared
test -d build && rmdir -p build || true 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
ifneq ($(CONFIG_RTE_EXEC_ENV_LINUX),y)
$(info This application can only operate in a linux environment, \
please change the definition of the RTE_TARGET environment variable)
all:
else
CFLAGS += -DALLOW_EXPERIMENTAL_API
CFLAGS += -O2 -D_FILE_OFFSET_BITS=64
CFLAGS += $(WERROR_FLAGS)
include $(RTE_SDK)/mk/rte.extapp.mk
endif
endif

View File

@ -9,7 +9,9 @@ SRCS-y := main.c
CFLAGS += -DALLOW_EXPERIMENTAL_API CFLAGS += -DALLOW_EXPERIMENTAL_API
# Build using pkg-config variables if possible # 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 all: shared
.PHONY: shared static .PHONY: shared static
@ -38,30 +40,3 @@ build:
clean: clean:
rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared
test -d build && rmdir -p build || true 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
ifneq ($(CONFIG_RTE_EXEC_ENV_LINUX),y)
$(info This application can only operate in a linux environment, \
please change the definition of the RTE_TARGET environment variable)
all:
else
CFLAGS += -DALLOW_EXPERIMENTAL_API
CFLAGS += -O2 -D_FILE_OFFSET_BITS=64
CFLAGS += $(WERROR_FLAGS)
include $(RTE_SDK)/mk/rte.extapp.mk
endif # Linux
endif # pkg-config

View File

@ -8,7 +8,9 @@ APP = vmdq_app
SRCS-y := main.c SRCS-y := main.c
# Build using pkg-config variables if possible # 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 all: shared
.PHONY: shared static .PHONY: shared static
@ -37,22 +39,3 @@ build:
clean: clean:
rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared
test -d build && rmdir -p build || true 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 += $(WERROR_FLAGS)
CFLAGS += -DALLOW_EXPERIMENTAL_API
EXTRA_CFLAGS += -O3
include $(RTE_SDK)/mk/rte.extapp.mk
endif

View File

@ -8,7 +8,9 @@ APP = vmdq_dcb_app
SRCS-y := main.c SRCS-y := main.c
# Build using pkg-config variables if possible # 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 all: shared
.PHONY: shared static .PHONY: shared static
@ -37,30 +39,3 @@ build:
clean: clean:
rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared
test -d build && rmdir -p build || true 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 += $(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
ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
CFLAGS_main.o += -diag-disable=vec
endif
EXTRA_CFLAGS += -O3 -g
include $(RTE_SDK)/mk/rte.extapp.mk
endif