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
include $(RTE_SDK)/mk/rte.extsubdir.mk