# Copyright(c) 2015-2020 Intel Corporation
-ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)
+PKGCONF ?= pkg-config
+
+ifneq ($(shell $(PKGCONF) --exists libdpdk && echo 0),0)
$(error "no installation of DPDK found")
endif
ifneq ($(shell uname),Linux)
$(error This application can only operate in a linux environment)
endif
-PKGCONF ?= pkg-config
-
# library name
LIB = librte_ethtool.so
LIB_STATIC = librte_ethtool.a
# check for ixgbe by grepping pre-processor output
ifneq ($(shell $(CC) $(CFLAGS) -dM -E - < /dev/null | grep IXGBE),)
-LDFLAGS += -lrte_pmd_ixgbe
+LDFLAGS += -lrte_net_ixgbe
endif
.PHONY: all clean static shared