1# SPDX-License-Identifier: BSD-3-Clause 2# Copyright(c) 2016 Intel Corporation 3 4# binary name 5APP = l2fwd-cat 6 7# all source are stored in SRCS-y 8SRCS-y := l2fwd-cat.c cat.c 9 10ifeq ($(RTE_SDK),) 11$(error "Please define RTE_SDK environment variable") 12endif 13 14ifeq ($(PQOS_INSTALL_PATH),) 15$(error "Please define PQOS_INSTALL_PATH environment variable") 16endif 17 18# Default target, can be overridden by command line or environment 19RTE_TARGET ?= x86_64-native-linuxapp-gcc 20 21include $(RTE_SDK)/mk/rte.vars.mk 22 23CFLAGS += $(WERROR_FLAGS) 24 25# workaround for a gcc bug with noreturn attribute 26# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603 27ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y) 28CFLAGS_main.o += -Wno-return-type 29endif 30 31EXTRA_CFLAGS += -O3 -g -Wfatal-errors 32 33CFLAGS += -I$(PQOS_INSTALL_PATH)/../include 34CFLAGS_cat.o := -D_GNU_SOURCE 35 36LDLIBS += -L$(PQOS_INSTALL_PATH) 37LDLIBS += -lpqos 38 39include $(RTE_SDK)/mk/rte.extapp.mk 40