1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2016 Intel Corporation
5 $(error "Please define RTE_SDK environment variable")
8 ifeq ($(PQOS_INSTALL_PATH),)
9 $(error "Please define PQOS_INSTALL_PATH environment variable")
12 # Default target, can be overridden by command line or environment
13 RTE_TARGET ?= x86_64-native-linuxapp-gcc
15 include $(RTE_SDK)/mk/rte.vars.mk
20 # all source are stored in SRCS-y
21 SRCS-y := l2fwd-cat.c cat.c
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