xref: /dpdk/examples/ethtool/ethtool-app/Makefile (revision 3998e2a0)
1*3998e2a0SBruce Richardson# SPDX-License-Identifier: BSD-3-Clause
2*3998e2a0SBruce Richardson# Copyright(c) 2010-2014 Intel Corporation
3bda68ab9SRemy Horton
4bda68ab9SRemy Hortonifeq ($(RTE_SDK),)
5bda68ab9SRemy Horton$(error "Please define RTE_SDK environment variable")
6bda68ab9SRemy Hortonendif
7bda68ab9SRemy Horton
8bda68ab9SRemy Horton# Default target, can be overridden by command line or environment
9bda68ab9SRemy HortonRTE_TARGET ?= x86_64-native-linuxapp-gcc
10bda68ab9SRemy Horton
11bda68ab9SRemy Hortoninclude $(RTE_SDK)/mk/rte.vars.mk
12bda68ab9SRemy Horton
13bda68ab9SRemy Horton# binary name
14bda68ab9SRemy HortonAPP = ethtool
15bda68ab9SRemy Horton
16bda68ab9SRemy Horton# all source are stored in SRCS-y
17bda68ab9SRemy HortonSRCS-y := main.c ethapp.c
18bda68ab9SRemy Horton
19bda68ab9SRemy HortonCFLAGS += -O3 -D_GNU_SOURCE -pthread -I$(SRCDIR)/../lib
20bda68ab9SRemy HortonCFLAGS += $(WERROR_FLAGS)
21bda68ab9SRemy Horton
22bda68ab9SRemy HortonLDLIBS += -L$(subst ethtool-app,lib,$(RTE_OUTPUT))/lib
23bda68ab9SRemy HortonLDLIBS += -lrte_ethtool
24bda68ab9SRemy Horton
25939abaf9SMarkos Chandrasifeq ($(CONFIG_RTE_BUILD_SHARED_LIB),y)
26939abaf9SMarkos Chandrasifeq ($(CONFIG_RTE_LIBRTE_IXGBE_PMD),y)
27939abaf9SMarkos ChandrasLDLIBS += -lrte_pmd_ixgbe
28939abaf9SMarkos Chandrasendif
29939abaf9SMarkos Chandrasendif
30bda68ab9SRemy Horton
31bda68ab9SRemy Hortoninclude $(RTE_SDK)/mk/rte.extapp.mk
32