X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2FMakefile;h=7562424d9981f71039daf271921fa023143a22e8;hb=21d8822180e0742848bb66ddccf428ed34b3622b;hp=c7a81f08de112b87b3467a94127f7dc82ea3df36;hpb=218c4e68c1d9bd4a9281bc1dc4d0ab89859083bf;p=dpdk.git diff --git a/examples/Makefile b/examples/Makefile index c7a81f08de..7562424d99 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -5,15 +5,17 @@ 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 DIRS-$(CONFIG_RTE_LIBRTE_BBDEV) += bbdev_app DIRS-$(CONFIG_RTE_LIBRTE_PMD_BOND) += bond DIRS-y += cmdline +ifeq ($(CONFIG_RTE_LIBRTE_POWER),y) DIRS-$(CONFIG_RTE_LIBRTE_DISTRIBUTOR) += distributor +endif DIRS-y += ethtool DIRS-y += exception_path DIRS-$(CONFIG_RTE_LIBRTE_EFD) += server_node_efd