X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fquota_watermark%2FMakefile;h=8ef053198a6188104e0fcc7c4094e40ccba8c84a;hb=d87f1a1cb7b666550bb53e39c1d85d9f7b861e6f;hp=a37b8662f12715311c239d89c4320fd526ca7904;hpb=3998e2a07220844d3f3c17f76a781ced3efe0de0;p=dpdk.git diff --git a/examples/quota_watermark/Makefile b/examples/quota_watermark/Makefile index a37b8662f1..8ef053198a 100644 --- a/examples/quota_watermark/Makefile +++ b/examples/quota_watermark/Makefile @@ -5,12 +5,12 @@ 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 -DIRS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += qw -DIRS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += qwctl +DIRS-$(CONFIG_RTE_EXEC_ENV_LINUX) += qw +DIRS-$(CONFIG_RTE_EXEC_ENV_LINUX) += qwctl include $(RTE_SDK)/mk/rte.extsubdir.mk