2 ## Copyright (c) 2019 Intel Corporation
4 ## Licensed under the Apache License, Version 2.0 (the "License");
5 ## you may not use this file except in compliance with the License.
6 ## You may obtain a copy of the License at
8 ## http://www.apache.org/licenses/LICENSE-2.0
10 ## Unless required by applicable law or agreed to in writing, software
11 ## distributed under the License is distributed on an "AS IS" BASIS,
12 ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 ## See the License for the specific language governing permissions and
14 ## limitations under the License.
18 $(error "Please define RTE_SDK environment variable")
21 # Default target, can be overridden by command line or environment
22 RTE_TARGET ?= x86_64-native-linuxapp-gcc
24 include $(RTE_SDK)/mk/rte.vars.mk
29 # all source are stored in SRCS-y
32 CFLAGS += $(WERROR_FLAGS)
34 # workaround for a gcc bug with noreturn attribute
35 # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603
36 ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)
37 CFLAGS_main.o += -Wno-return-type
40 EXTRA_CFLAGS += -O3 -g -Wfatal-errors
42 include $(RTE_SDK)/mk/rte.extapp.mk