f91cf156b7738de5f059200b5046ddf5ede4284e
[samplevnf.git] / VNFs / DPPD-PROX / helper-scripts / rapid / port_info / Makefile
1 ##
2 ## Copyright (c) 2019 Intel Corporation
3 ##
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
7 ##
8 ##     http://www.apache.org/licenses/LICENSE-2.0
9 ##
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.
15 ##
16
17 ifeq ($(RTE_SDK),)
18 $(error "Please define RTE_SDK environment variable")
19 endif
20
21 # Default target, can be overridden by command line or environment
22 RTE_TARGET ?= x86_64-native-linuxapp-gcc
23
24 include $(RTE_SDK)/mk/rte.vars.mk
25
26 # binary name
27 APP = port_info_app
28
29 # all source are stored in SRCS-y
30 SRCS-y := port_info.c
31
32 CFLAGS += $(WERROR_FLAGS)
33
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
38 endif
39
40 EXTRA_CFLAGS += -O3 -g -Wfatal-errors
41
42 include $(RTE_SDK)/mk/rte.extapp.mk