X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fserver_node_efd%2Fserver%2FMakefile;h=acbd12ae230561ddcb2b75078975e421d9a390c1;hb=13f5e4562a3fc46af5081ef4df3963f08989120c;hp=cbb91ebe8917b98167653a9c8852aca6280d9cb1;hpb=fa47405cc119846574a3b290032f5ac2ab66757f;p=dpdk.git diff --git a/examples/server_node_efd/server/Makefile b/examples/server_node_efd/server/Makefile index cbb91ebe89..acbd12ae23 100644 --- a/examples/server_node_efd/server/Makefile +++ b/examples/server_node_efd/server/Makefile @@ -5,13 +5,13 @@ 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 +# 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), "linuxapp") -$(error This application can only operate in a linuxapp environment, \ +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 @@ -25,5 +25,6 @@ INC := $(sort $(wildcard *.h)) CFLAGS += $(WERROR_FLAGS) -O3 CFLAGS += -I$(SRCDIR)/../shared +CFLAGS += -DALLOW_EXPERIMENTAL_API include $(RTE_SDK)/mk/rte.extapp.mk