1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2016 Intel Corporation
5 $(error "Please define RTE_SDK environment variable")
8 # Default target, can be overridden by command line or environment
9 RTE_TARGET ?= x86_64-native-linuxapp-gcc
11 include $(RTE_SDK)/mk/rte.vars.mk
13 ifneq ($(MAKECMDGOALS),clean)
14 ifneq ($(CONFIG_RTE_LIBRTE_SECURITY),y)
15 $(error "RTE_LIBRTE_SECURITY is required to build ipsec-secgw")
21 CFLAGS += -O3 -gdwarf-2
22 CFLAGS += $(WERROR_FLAGS)
23 ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
24 CFLAGS_sa.o += -diag-disable=vec
28 CFLAGS += -DIPSEC_DEBUG -fstack-protector-all -O0
32 # all source are stored in SRCS-y
41 SRCS-y += ipsec-secgw.c
43 include $(RTE_SDK)/mk/rte.extapp.mk