X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fqos_sched%2FMakefile;fp=examples%2Fqos_sched%2FMakefile;h=a25875900e1d6f39615b15b953bc0f03b2e24db9;hb=e9c659426416c95c4469b16e6bcc7700f1898278;hp=44df68ab82a1a41414c8215706c23cbd95740d32;hpb=ff1e35fb5f8330f89d13f58c9fb767b5bd188940;p=dpdk.git diff --git a/examples/qos_sched/Makefile b/examples/qos_sched/Makefile index 44df68ab82..a25875900e 100644 --- a/examples/qos_sched/Makefile +++ b/examples/qos_sched/Makefile @@ -43,8 +43,8 @@ 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-linux-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