]> git.droids-corp.org - dpdk.git/blobdiff - examples/multi_process/symmetric_mp/Makefile
net/vhost: fix potential memory leak on close
[dpdk.git] / examples / multi_process / symmetric_mp / Makefile
index 9226690b164119aa7d1be4bfd0842f9a213c86bb..b7544489bb2547264f14d50134a66efdaaa3e3f1 100644 (file)
@@ -5,8 +5,8 @@ ifeq ($(RTE_SDK),)
 $(error "Please define RTE_SDK environment variable")
 endif
 
 $(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
 
 
 include $(RTE_SDK)/mk/rte.vars.mk
 
@@ -18,5 +18,6 @@ SRCS-y := main.c
 
 CFLAGS += -O3
 CFLAGS += $(WERROR_FLAGS)
 
 CFLAGS += -O3
 CFLAGS += $(WERROR_FLAGS)
+CFLAGS += -DALLOW_EXPERIMENTAL_API
 
 include $(RTE_SDK)/mk/rte.extapp.mk
 
 include $(RTE_SDK)/mk/rte.extapp.mk