X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2FMakefile;h=de11dd4875ac8956b7df183e834c18aed735f927;hb=b86ba6aa12a529e08d96bf8d7644725c800af6ca;hp=33fe0e586d9745ffb148854f446012466ac9155d;hpb=c05e4ab74421e5345f2c50ea0593d48e404cae6a;p=dpdk.git diff --git a/examples/Makefile b/examples/Makefile index 33fe0e586d..de11dd4875 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-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_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 @@ -51,6 +53,7 @@ DIRS-y += link_status_interrupt DIRS-$(CONFIG_RTE_LIBRTE_LPM) += load_balancer DIRS-y += multi_process DIRS-y += netmap_compat/bridge +DIRS-y += ntb DIRS-$(CONFIG_RTE_LIBRTE_REORDER) += packet_ordering ifeq ($(CONFIG_RTE_ARCH_X86_64),y) DIRS-y += performance-thread