9b7bacb3e68648a9f38b800a2c8db4de9103d37c
[dpdk.git] / examples / ipsec-secgw / Makefile
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2016 Intel Corporation
3
4 ifeq ($(RTE_SDK),)
5         $(error "Please define RTE_SDK environment variable")
6 endif
7
8 # Default target, can be overridden by command line or environment
9 RTE_TARGET ?= x86_64-native-linuxapp-gcc
10
11 include $(RTE_SDK)/mk/rte.vars.mk
12
13 ifneq ($(MAKECMDGOALS),clean)
14 ifneq ($(CONFIG_RTE_LIBRTE_SECURITY),y)
15 $(error "RTE_LIBRTE_SECURITY is required to build ipsec-secgw")
16 endif
17 endif
18
19 APP = ipsec-secgw
20
21 CFLAGS += -O3 -gdwarf-2
22 CFLAGS += $(WERROR_FLAGS)
23 ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
24 CFLAGS_sa.o += -diag-disable=vec
25 endif
26
27 ifeq ($(DEBUG),1)
28 CFLAGS += -DIPSEC_DEBUG -fstack-protector-all -O0
29 endif
30
31 #
32 # all source are stored in SRCS-y
33 #
34 SRCS-y += parser.c
35 SRCS-y += ipsec.c
36 SRCS-y += esp.c
37 SRCS-y += sp4.c
38 SRCS-y += sp6.c
39 SRCS-y += sa.c
40 SRCS-y += rt.c
41 SRCS-y += ipsec-secgw.c
42
43 include $(RTE_SDK)/mk/rte.extapp.mk