]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/spdk/dpdk/examples/ipsec-secgw/Makefile
import 15.2.0 Octopus source
[ceph.git] / ceph / src / spdk / dpdk / examples / ipsec-secgw / Makefile
index 02d41e39afeca1fe9025f55a6f00b641175898e6..75f2bcd00bb7e602f49747588577b1aaae354ff7 100644 (file)
@@ -13,6 +13,7 @@ SRCS-y += sp4.c
 SRCS-y += sp6.c
 SRCS-y += sa.c
 SRCS-y += rt.c
+SRCS-y += ipsec_process.c
 SRCS-y += ipsec-secgw.c
 
 CFLAGS += -gdwarf-2
@@ -52,17 +53,17 @@ clean:
 else
 
 ifeq ($(RTE_SDK),)
-       $(error "Please define RTE_SDK environment variable")
+$(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
 
 ifneq ($(MAKECMDGOALS),clean)
-ifneq ($(CONFIG_RTE_LIBRTE_SECURITY),y)
-$(error "RTE_LIBRTE_SECURITY is required to build ipsec-secgw")
+ifneq ($(CONFIG_RTE_LIBRTE_IPSEC),y)
+$(error "RTE_LIBRTE_IPSEC is required to build ipsec-secgw")
 endif
 endif