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