Merge "vCGNAPT: correcting to use default rte_ring_dequeue"
[samplevnf.git] / common / VIL / l2l3_stack / Makefile
1 # Copyright (c) 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 = Protocol
26
27 # all source are stored in SRCS-y
28 SRCS-y := main.c l2_proto.c interface.c lib_arp.c lib_icmpv6.c l3fwd_main.c l3fwd_lpm4.c l3fwd_lpm6.c bond.c tsx.c hle.c
29
30 CFLAGS += -I$(SRCDIR)
31 CFLAGS += -O3 $(USER_FLAGS)
32 CFLAGS += $(WERROR_FLAGS)
33 CFLAGS += -O0 -g
34 CFLAGS += -mrtm -mhle
35 include $(RTE_SDK)/mk/rte.extapp.mk