]> git.droids-corp.org - dpdk.git/blobdiff - examples/ip_reassembly/Makefile
examples: detect default build directory
[dpdk.git] / examples / ip_reassembly / Makefile
index 1e81315f2a0b63abcedc670b9b4801b2989e4f6c..7bbc241c7810ef4b3a613627128533813bad3976 100644 (file)
@@ -44,8 +44,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-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