]> git.droids-corp.org - dpdk.git/blobdiff - examples/ipsec-secgw/Makefile
examples/ipsec-secgw: fix build without security lib
[dpdk.git] / examples / ipsec-secgw / Makefile
index 17e91551026a0f83ce3627b15c36fd950f281393..9fd33cb7f2245f38503fc6f60f8e30302e59ec22 100644 (file)
@@ -38,6 +38,12 @@ RTE_TARGET ?= x86_64-native-linuxapp-gcc
 
 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")
+endif
+endif
+
 APP = ipsec-secgw
 
 CFLAGS += -O3 -gdwarf-2