summaryrefslogtreecommitdiff
path: root/apps/examples/usbserial
diff options
context:
space:
mode:
Diffstat (limited to 'apps/examples/usbserial')
-rw-r--r--apps/examples/usbserial/Makefile6
-rw-r--r--apps/examples/usbserial/Makefile.host5
2 files changed, 4 insertions, 7 deletions
diff --git a/apps/examples/usbserial/Makefile b/apps/examples/usbserial/Makefile
index 0761dd48c..2c34fa275 100644
--- a/apps/examples/usbserial/Makefile
+++ b/apps/examples/usbserial/Makefile
@@ -33,7 +33,6 @@
#
############################################################################
--include $(TOPDIR)/.config
-include $(TOPDIR)/Make.defs
include $(APPDIR)/Make.defs
@@ -86,12 +85,13 @@ context:
depend: .depend
clean:
- @rm -f *.o *~ .*.swp .built
+ $(call DELFILE .built)
$(call CLEAN)
@$(MAKE) -f Makefile.host clean TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)"
distclean: clean
- @rm -f Make.dep .depend
+ $(call DELFILE Make.dep)
+ $(call DELFILE .depend)
-include Make.dep
diff --git a/apps/examples/usbserial/Makefile.host b/apps/examples/usbserial/Makefile.host
index 628304cd4..9fb43269d 100644
--- a/apps/examples/usbserial/Makefile.host
+++ b/apps/examples/usbserial/Makefile.host
@@ -35,7 +35,6 @@
# TOPDIR must be defined on the make command line
--include $(TOPDIR)/.config
-include $(TOPDIR)/Make.defs
SRC = host.c
@@ -61,7 +60,5 @@ $(BIN): $(SRC)
@$(HOSTCC) $(HOSTCFLAGS) $(DEFINES) $^ -o $@
clean:
- @rm -f $(BIN) *~ .*.swp *.o
+ $(call DELFILE $(BIN))
$(call CLEAN)
-
-