From 057b68cd075eaf4b5d25230ddeba1e0290e9046c Mon Sep 17 00:00:00 2001
From: anchao <anchao@pinecone.net>
Date: Mon, 3 Sep 2018 10:38:37 -0600
Subject: [PATCH] apps/:  Resolve some make dependency failures.

---
 Application.mk                         | 4 ++--
 wireless/ieee802154/i8sak/i8sak_main.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Application.mk b/Application.mk
index 6312533d8..752575534 100644
--- a/Application.mk
+++ b/Application.mk
@@ -221,9 +221,9 @@ endif
 
 .depend: Makefile $(SRCS)
 ifeq ($(filter %$(CXXEXT),$(SRCS)),)
-	$(Q) $(MKDEP) $(ROOTDEPPATH) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep
+	$(Q) $(MKDEP) $(ROOTDEPPATH) "$(CC)" -- $(CFLAGS) -- $(filter-out Makefile,$^) >Make.dep
 else
-	$(Q) $(MKDEP) $(ROOTDEPPATH) "$(CXX)" -- $(CXXFLAGS) -- $(SRCS) >Make.dep
+	$(Q) $(MKDEP) $(ROOTDEPPATH) "$(CXX)" -- $(CXXFLAGS) -- $(filter-out Makefile,$^) >Make.dep
 endif
 	$(Q) touch $@
 
diff --git a/wireless/ieee802154/i8sak/i8sak_main.c b/wireless/ieee802154/i8sak/i8sak_main.c
index 537f89bff..bc5fb24d4 100644
--- a/wireless/ieee802154/i8sak/i8sak_main.c
+++ b/wireless/ieee802154/i8sak/i8sak_main.c
@@ -839,7 +839,7 @@ static int i8sak_showusage(FAR const char *progname, int exitcode)
  * i8_main
  ****************************************************************************/
 
-#ifdef BUILD_LOADABLE
+#ifdef BUILD_MODULE
 int main(int argc, FAR char *argv[])
 #else
 int i8ask_main(int argc, char *argv[])