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