xref: /dpdk/examples/ipsec-secgw/Makefile (revision 0eba4ade)
13998e2a0SBruce Richardson# SPDX-License-Identifier: BSD-3-Clause
23998e2a0SBruce Richardson# Copyright(c) 2016 Intel Corporation
3d299106eSSergio Gonzalez Monroy
4*0eba4adeSBruce RichardsonAPP = ipsec-secgw
5*0eba4adeSBruce Richardson
6*0eba4adeSBruce Richardson#
7*0eba4adeSBruce Richardson# all source are stored in SRCS-y
8*0eba4adeSBruce Richardson#
9*0eba4adeSBruce RichardsonSRCS-y += parser.c
10*0eba4adeSBruce RichardsonSRCS-y += ipsec.c
11*0eba4adeSBruce RichardsonSRCS-y += esp.c
12*0eba4adeSBruce RichardsonSRCS-y += sp4.c
13*0eba4adeSBruce RichardsonSRCS-y += sp6.c
14*0eba4adeSBruce RichardsonSRCS-y += sa.c
15*0eba4adeSBruce RichardsonSRCS-y += rt.c
16*0eba4adeSBruce RichardsonSRCS-y += ipsec-secgw.c
17*0eba4adeSBruce Richardson
18d299106eSSergio Gonzalez Monroyifeq ($(RTE_SDK),)
19d299106eSSergio Gonzalez Monroy	$(error "Please define RTE_SDK environment variable")
20d299106eSSergio Gonzalez Monroyendif
21d299106eSSergio Gonzalez Monroy
22d299106eSSergio Gonzalez Monroy# Default target, can be overridden by command line or environment
23d299106eSSergio Gonzalez MonroyRTE_TARGET ?= x86_64-native-linuxapp-gcc
24d299106eSSergio Gonzalez Monroy
25d299106eSSergio Gonzalez Monroyinclude $(RTE_SDK)/mk/rte.vars.mk
26d299106eSSergio Gonzalez Monroy
271b028d5eSRadu Nicolauifneq ($(MAKECMDGOALS),clean)
281b028d5eSRadu Nicolauifneq ($(CONFIG_RTE_LIBRTE_SECURITY),y)
291b028d5eSRadu Nicolau$(error "RTE_LIBRTE_SECURITY is required to build ipsec-secgw")
301b028d5eSRadu Nicolauendif
311b028d5eSRadu Nicolauendif
321b028d5eSRadu Nicolau
33a6ec3159SNeil HormanCFLAGS += -DALLOW_EXPERIMENTAL_API
34d299106eSSergio Gonzalez MonroyCFLAGS += -O3 -gdwarf-2
35d299106eSSergio Gonzalez MonroyCFLAGS += $(WERROR_FLAGS)
369cd3ddfbSDaniel Mrzyglodifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
379cd3ddfbSDaniel MrzyglodCFLAGS_sa.o += -diag-disable=vec
389cd3ddfbSDaniel Mrzyglodendif
399cd3ddfbSDaniel Mrzyglod
40973d3d82SSergio Gonzalez Monroyifeq ($(DEBUG),1)
41906257e9SSergio Gonzalez MonroyCFLAGS += -DIPSEC_DEBUG -fstack-protector-all -O0
42973d3d82SSergio Gonzalez Monroyendif
43d299106eSSergio Gonzalez Monroy
44d299106eSSergio Gonzalez Monroyinclude $(RTE_SDK)/mk/rte.extapp.mk
45