2017-12-19 15:49:02 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright(c) 2010-2015 Intel Corporation
|
2015-06-23 00:40:56 +08: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
|
|
|
|
|
|
|
|
ifneq ($(CONFIG_RTE_EXEC_ENV),"linuxapp")
|
|
|
|
$(error This application can only operate in a linuxapp environment, \
|
|
|
|
please change the definition of the RTE_TARGET environment variable)
|
|
|
|
endif
|
|
|
|
|
|
|
|
# binary name
|
|
|
|
APP = tep_termination
|
|
|
|
|
|
|
|
# all source are stored in SRCS-y
|
2015-06-23 00:40:59 +08:00
|
|
|
SRCS-y := main.c vxlan_setup.c vxlan.c
|
2015-06-23 00:40:56 +08:00
|
|
|
|
|
|
|
CFLAGS += -O3
|
|
|
|
CFLAGS += $(WERROR_FLAGS)
|
2015-07-28 17:51:44 -07:00
|
|
|
CFLAGS += -D_GNU_SOURCE
|
2015-06-23 00:40:56 +08:00
|
|
|
|
|
|
|
include $(RTE_SDK)/mk/rte.extapp.mk
|