X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fqos_meter%2FMakefile;h=fbcda09b20ff4890396fd7e8314dc7af4265c23b;hb=699729bea97cd8869b1fc877c3fc47d9ae38f469;hp=6da2407611264939914d805da7349b42912ef58b;hpb=c06ddf9698e0c2a9653cfa971f9ddc205065662c;p=dpdk.git diff --git a/examples/qos_meter/Makefile b/examples/qos_meter/Makefile index 6da2407611..fbcda09b20 100644 --- a/examples/qos_meter/Makefile +++ b/examples/qos_meter/Makefile @@ -45,12 +45,11 @@ 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 -CFLAGS += -DALLOW_EXPERIMENTAL_API CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS)