]> git.droids-corp.org - dpdk.git/blobdiff - examples/vhost_scsi/Makefile
examples/l3fwd: fix build on FreeBSD
[dpdk.git] / examples / vhost_scsi / Makefile
index 58ff7a25cae0e32c54da351e1199c1d61dd71859..0a3450bae57d1771e5f995049875f85c8c141d5c 100644 (file)
@@ -46,8 +46,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