13395610eSKonstantin Ananyev# Copyright (c) 2016 Intel Corporation.
23395610eSKonstantin Ananyev# Licensed under the Apache License, Version 2.0 (the "License");
33395610eSKonstantin Ananyev# you may not use this file except in compliance with the License.
43395610eSKonstantin Ananyev# You may obtain a copy of the License at:
53395610eSKonstantin Ananyev#
63395610eSKonstantin Ananyev#     http://www.apache.org/licenses/LICENSE-2.0
73395610eSKonstantin Ananyev#
83395610eSKonstantin Ananyev# Unless required by applicable law or agreed to in writing, software
93395610eSKonstantin Ananyev# distributed under the License is distributed on an "AS IS" BASIS,
103395610eSKonstantin Ananyev# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
113395610eSKonstantin Ananyev# See the License for the specific language governing permissions and
123395610eSKonstantin Ananyev# limitations under the License.
133395610eSKonstantin Ananyev
143395610eSKonstantin Ananyevifeq ($(RTE_SDK),)
153395610eSKonstantin Ananyev$(error "Please define RTE_SDK environment variable")
163395610eSKonstantin Ananyevendif
173395610eSKonstantin Ananyev
183395610eSKonstantin Ananyev# Default target, can be overwritten by command line or environment
193395610eSKonstantin AnanyevRTE_TARGET ?= x86_64-native-linuxapp-gcc
203395610eSKonstantin Ananyev
213395610eSKonstantin Ananyevinclude $(RTE_SDK)/mk/rte.vars.mk
223395610eSKonstantin Ananyev
233395610eSKonstantin Ananyev# library name
24aa97dd1cSKonstantin AnanyevLIB = libtle_l4p.a
253395610eSKonstantin Ananyev
263395610eSKonstantin AnanyevCFLAGS += -O3
273395610eSKonstantin AnanyevCFLAGS += $(WERROR_FLAGS) -I$(SRCDIR)
283395610eSKonstantin Ananyev
29aa97dd1cSKonstantin AnanyevEXPORT_MAP := tle_l4p_version.map
303395610eSKonstantin Ananyev
313395610eSKonstantin AnanyevLIBABIVER := 1
323395610eSKonstantin Ananyev
333395610eSKonstantin Ananyev#source files
34aa97dd1cSKonstantin AnanyevSRCS-y += ctx.c
353395610eSKonstantin AnanyevSRCS-y += event.c
36aa97dd1cSKonstantin AnanyevSRCS-y += stream_table.c
37aa97dd1cSKonstantin AnanyevSRCS-y += tcp_ofo.c
38aa97dd1cSKonstantin AnanyevSRCS-y += tcp_stream.c
39aa97dd1cSKonstantin AnanyevSRCS-y += tcp_rxtx.c
40aa97dd1cSKonstantin AnanyevSRCS-y += udp_stream.c
413395610eSKonstantin AnanyevSRCS-y += udp_rxtx.c
423395610eSKonstantin Ananyev
433395610eSKonstantin Ananyev# install this header file
44aa97dd1cSKonstantin AnanyevSYMLINK-y-include += tle_ctx.h
453395610eSKonstantin AnanyevSYMLINK-y-include += tle_event.h
46aa97dd1cSKonstantin AnanyevSYMLINK-y-include += tle_tcp.h
47aa97dd1cSKonstantin AnanyevSYMLINK-y-include += tle_udp.h
483395610eSKonstantin Ananyev
498efc4c11SKonstantin Ananyev# this lib dependencies
50fbba0a3bSMohammad Abdul AwalDEPDIRS-y += lib/libtle_misc
51b8f1ef2bSKonstantin AnanyevDEPDIRS-y += lib/libtle_memtank
528efc4c11SKonstantin AnanyevDEPDIRS-y += lib/libtle_dring
53aa97dd1cSKonstantin AnanyevDEPDIRS-y += lib/libtle_timer
543395610eSKonstantin Ananyev
555d0ab6ceSKonstantin Ananyevinclude $(TLDK_ROOT)/mk/tle.lib.mk
56