Makefile revision fbba0a3b
1# Copyright (c) 2016 Intel Corporation.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at:
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14ifeq ($(RTE_SDK),)
15$(error "Please define RTE_SDK environment variable")
16endif
17
18# Default target, can be overwritten by command line or environment
19RTE_TARGET ?= x86_64-native-linuxapp-gcc
20
21include $(RTE_SDK)/mk/rte.vars.mk
22
23# library name
24LIB = libtle_l4p.a
25
26CFLAGS += -O3
27CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR)
28
29EXPORT_MAP := tle_l4p_version.map
30
31LIBABIVER := 1
32
33#source files
34SRCS-y += ctx.c
35SRCS-y += event.c
36SRCS-y += stream_table.c
37SRCS-y += tcp_ofo.c
38SRCS-y += tcp_stream.c
39SRCS-y += tcp_rxtx.c
40SRCS-y += udp_stream.c
41SRCS-y += udp_rxtx.c
42
43# install this header file
44SYMLINK-y-include += tle_ctx.h
45SYMLINK-y-include += tle_event.h
46SYMLINK-y-include += tle_tcp.h
47SYMLINK-y-include += tle_udp.h
48
49# this lib dependencies
50DEPDIRS-y += lib/libtle_misc
51DEPDIRS-y += lib/libtle_dring
52DEPDIRS-y += lib/libtle_timer
53
54include $(TLDK_ROOT)/mk/tle.lib.mk
55