1bda68ab9SRemy Horton# BSD LICENSE 2bda68ab9SRemy Horton# 3bda68ab9SRemy Horton# Copyright(c) 2015 Intel Corporation. All rights reserved. 4bda68ab9SRemy Horton# All rights reserved. 5bda68ab9SRemy Horton# 6bda68ab9SRemy Horton# Redistribution and use in source and binary forms, with or without 7bda68ab9SRemy Horton# modification, are permitted provided that the following conditions 8bda68ab9SRemy Horton# are met: 9bda68ab9SRemy Horton# 10bda68ab9SRemy Horton# * Redistributions of source code must retain the above copyright 11bda68ab9SRemy Horton# notice, this list of conditions and the following disclaimer. 12bda68ab9SRemy Horton# * Redistributions in binary form must reproduce the above copyright 13bda68ab9SRemy Horton# notice, this list of conditions and the following disclaimer in 14bda68ab9SRemy Horton# the documentation and/or other materials provided with the 15bda68ab9SRemy Horton# distribution. 16bda68ab9SRemy Horton# * Neither the name of Intel Corporation nor the names of its 17bda68ab9SRemy Horton# contributors may be used to endorse or promote products derived 18bda68ab9SRemy Horton# from this software without specific prior written permission. 19bda68ab9SRemy Horton# 20bda68ab9SRemy Horton# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21bda68ab9SRemy Horton# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22bda68ab9SRemy Horton# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23bda68ab9SRemy Horton# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24bda68ab9SRemy Horton# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25bda68ab9SRemy Horton# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26bda68ab9SRemy Horton# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27bda68ab9SRemy Horton# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28bda68ab9SRemy Horton# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29bda68ab9SRemy Horton# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30bda68ab9SRemy Horton# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31bda68ab9SRemy Horton 32bda68ab9SRemy Hortonifeq ($(RTE_SDK),) 33bda68ab9SRemy Horton$(error "Please define RTE_SDK environment variable") 34bda68ab9SRemy Hortonendif 35bda68ab9SRemy Horton 36bda68ab9SRemy Horton# Default target, can be overwritten by command line or environment 37bda68ab9SRemy HortonRTE_TARGET ?= x86_64-native-linuxapp-gcc 38bda68ab9SRemy Horton 39bda68ab9SRemy Hortoninclude $(RTE_SDK)/mk/rte.vars.mk 40bda68ab9SRemy Horton 41bda68ab9SRemy Hortonifneq ($(CONFIG_RTE_EXEC_ENV),"linuxapp") 42bda68ab9SRemy Horton$(error This application can only operate in a linuxapp environment, \ 43bda68ab9SRemy Hortonplease change the definition of the RTE_TARGET environment variable) 44bda68ab9SRemy Hortonendif 45bda68ab9SRemy Horton 46bda68ab9SRemy Horton# library name 47bda68ab9SRemy HortonLIB = librte_ethtool.a 48bda68ab9SRemy Horton 49bda68ab9SRemy HortonLIBABIVER := 1 50bda68ab9SRemy Horton 51bda68ab9SRemy Horton# all source are stored in SRC-Y 52bda68ab9SRemy HortonSRCS-y := rte_ethtool.c 53bda68ab9SRemy Horton 54bda68ab9SRemy HortonCFLAGS += -O3 55bda68ab9SRemy HortonCFLAGS += $(WERROR_FLAGS) 56bda68ab9SRemy Horton 57939abaf9SMarkos Chandrasifeq ($(CONFIG_RTE_BUILD_SHARED_LIB),y) 58077d223eSBernard Iremongerifeq ($(CONFIG_RTE_LIBRTE_IXGBE_PMD),y) 59077d223eSBernard IremongerLDLIBS += -lrte_pmd_ixgbe 60077d223eSBernard Iremongerendif 61939abaf9SMarkos Chandrasendif 62*cbc12b0aSOlivier MatzLDLIBS += -lrte_eal -lrte_ethdev 63077d223eSBernard Iremonger 64bda68ab9SRemy Hortoninclude $(RTE_SDK)/mk/rte.extlib.mk 65