mk: optimize directory dependencies
[dpdk.git] / examples / ethtool / Makefile
index 94f8ee3..30b42b7 100644 (file)
@@ -39,10 +39,14 @@ RTE_TARGET ?= x86_64-native-linuxapp-gcc
 include $(RTE_SDK)/mk/rte.vars.mk
 
 ifneq ($(CONFIG_RTE_EXEC_ENV),"linuxapp")
-$(error This application can only operate in a linuxapp environment, \
+$(info This application can only operate in a linuxapp environment, \
 please change the definition of the RTE_TARGET environment variable)
-endif
+else
 
 DIRS-y += lib ethtool-app
+endif
+
+DEPDIRS-ethtool-app := lib
+DEPDIRS-lib := librte_eal librte_ether
 
 include $(RTE_SDK)/mk/rte.extsubdir.mk