]> git.droids-corp.org - dpdk.git/blobdiff - examples/performance-thread/pthread_shim/Makefile
net/ice/base: fix PPPoE-IPv6 dummy packet
[dpdk.git] / examples / performance-thread / pthread_shim / Makefile
index 731aef63795b13d85bef2a6342134561876f3839..cdadf2cb77242f15e2f164ad73f84e98460742f5 100644 (file)
@@ -5,8 +5,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
 
@@ -20,6 +20,7 @@ include $(RTE_SDK)/examples/performance-thread/common/common.mk
 
 CFLAGS += -g -O3 $(USER_FLAGS) $(INCLUDES)
 CFLAGS += $(WERROR_FLAGS)
+CFLAGS += -DALLOW_EXPERIMENTAL_API
 
 LDFLAGS += -lpthread