summaryrefslogtreecommitdiff
path: root/examples/ethtool
diff options
context:
space:
mode:
authorOlivier Matz <olivier.matz@6wind.com>2017-10-12 18:04:21 +0200
committerThomas Monjalon <thomas@monjalon.net>2017-10-24 02:14:57 +0200
commitcbc12b0a96f5751ab2ed10001f44d39211e3bd45 (patch)
treee2b7751e155544617bf3298cf03491eb501dfc42 /examples/ethtool
parent4761b145b1e87f8521277e29e7718ab0384d0d62 (diff)
downloaddpdk-cbc12b0a96f5751ab2ed10001f44d39211e3bd45.zip
dpdk-cbc12b0a96f5751ab2ed10001f44d39211e3bd45.tar.gz
dpdk-cbc12b0a96f5751ab2ed10001f44d39211e3bd45.tar.xz
mk: do not generate LDLIBS from directory dependencies
The list of libraries in LDLIBS was generated from the DEPDIRS-xyz variable. This is valid when the subdirectory name match the library name, but it's not always the case, especially for PMDs. The patches removes this feature and explicitly adds the proper libraries in LDLIBS. Some DEPDIRS-xyz variables become useless, remove them. Reported-by: Gage Eads <gage.eads@intel.com> Signed-off-by: Olivier Matz <olivier.matz@6wind.com> Reviewed-by: Gage Eads <gage.eads@intel.com>
Diffstat (limited to 'examples/ethtool')
-rw-r--r--examples/ethtool/Makefile1
-rw-r--r--examples/ethtool/lib/Makefile1
2 files changed, 1 insertions, 1 deletions
diff --git a/examples/ethtool/Makefile b/examples/ethtool/Makefile
index 30b42b7..e86d68a 100644
--- a/examples/ethtool/Makefile
+++ b/examples/ethtool/Makefile
@@ -47,6 +47,5 @@ DIRS-y += lib ethtool-app
endif
DEPDIRS-ethtool-app := lib
-DEPDIRS-lib := librte_eal librte_ether
include $(RTE_SDK)/mk/rte.extsubdir.mk
diff --git a/examples/ethtool/lib/Makefile b/examples/ethtool/lib/Makefile
index 266baba..cabd82a 100644
--- a/examples/ethtool/lib/Makefile
+++ b/examples/ethtool/lib/Makefile
@@ -59,5 +59,6 @@ ifeq ($(CONFIG_RTE_LIBRTE_IXGBE_PMD),y)
LDLIBS += -lrte_pmd_ixgbe
endif
endif
+LDLIBS += -lrte_eal -lrte_ethdev
include $(RTE_SDK)/mk/rte.extlib.mk