2017-12-19 15:49:02 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright(c) 2016 Intel Corporation
|
2016-03-11 02:12:40 +00:00
|
|
|
|
|
|
|
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-linuxapp-gcc
|
|
|
|
|
|
|
|
include $(RTE_SDK)/mk/rte.vars.mk
|
|
|
|
|
2017-10-26 15:15:13 +01:00
|
|
|
ifneq ($(MAKECMDGOALS),clean)
|
|
|
|
ifneq ($(CONFIG_RTE_LIBRTE_SECURITY),y)
|
|
|
|
$(error "RTE_LIBRTE_SECURITY is required to build ipsec-secgw")
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2016-03-11 02:12:40 +00:00
|
|
|
APP = ipsec-secgw
|
|
|
|
|
|
|
|
CFLAGS += -O3 -gdwarf-2
|
|
|
|
CFLAGS += $(WERROR_FLAGS)
|
2016-04-04 12:56:54 +02:00
|
|
|
ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
|
|
|
|
CFLAGS_sa.o += -diag-disable=vec
|
|
|
|
endif
|
|
|
|
|
2016-06-09 09:42:44 +01:00
|
|
|
ifeq ($(DEBUG),1)
|
2016-06-09 09:42:48 +01:00
|
|
|
CFLAGS += -DIPSEC_DEBUG -fstack-protector-all -O0
|
2016-06-09 09:42:44 +01:00
|
|
|
endif
|
2016-03-11 02:12:40 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# all source are stored in SRCS-y
|
|
|
|
#
|
2016-09-21 13:05:18 +01:00
|
|
|
SRCS-y += parser.c
|
2016-03-11 02:12:40 +00:00
|
|
|
SRCS-y += ipsec.c
|
|
|
|
SRCS-y += esp.c
|
2016-06-09 09:42:48 +01:00
|
|
|
SRCS-y += sp4.c
|
|
|
|
SRCS-y += sp6.c
|
2016-03-11 02:12:40 +00:00
|
|
|
SRCS-y += sa.c
|
|
|
|
SRCS-y += rt.c
|
|
|
|
SRCS-y += ipsec-secgw.c
|
|
|
|
|
|
|
|
include $(RTE_SDK)/mk/rte.extapp.mk
|