Merge "UDP_Replay: rte_hash_lookup_multi renamed to rte_hash_lookup_bulk"
[samplevnf.git] / VNFs / UDP_Replay / Makefile
1 # Copyright (c) 2016-2017 Intel Corporation
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #      http:#www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 ifeq ($(RTE_SDK),)
16 $(error "Please define RTE_SDK environment variable")
17 endif
18
19 # Default target, can be overriden by command line or environment
20 RTE_TARGET ?= x86_64-native-linuxapp-gcc
21
22 include $(RTE_SDK)/mk/rte.vars.mk
23
24 # binary name
25 APP = UDP_Replay
26
27 # all source are stored in SRCS-y
28 SRCS-y := main.c parse_obj_list.c
29
30 CFLAGS += -O3 $(USER_FLAGS)
31 CFLAGS += $(WERROR_FLAGS)
32
33 # workaround for a gcc bug with noreturn attribute
34 # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603
35 ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)
36 CFLAGS_main.o += -Wno-return-type
37 endif
38
39 include $(RTE_SDK)/mk/rte.extapp.mk