Makefile revision d8967fb1
1# Copyright (c) 2017 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_misc.a
25
26CFLAGS += -O3
27CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR)
28
29EXPORT_MAP := tle_misc_version.map
30
31LIBABIVER := 1
32
33SYMLINK-y-include += tle_dpdk_wrapper.h
34SYMLINK-y-include += tle_version.h
35
36include $(TLDK_ROOT)/mk/tle.lib.mk
37