summaryrefslogtreecommitdiff
path: root/nuttx/netutils/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/netutils/Makefile')
-rw-r--r--nuttx/netutils/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/nuttx/netutils/Makefile b/nuttx/netutils/Makefile
index 36f03d3b8..73e068500 100644
--- a/nuttx/netutils/Makefile
+++ b/nuttx/netutils/Makefile
@@ -50,6 +50,8 @@ include resolv/Make.defs
endif
endif
+SUBDIRS = uiplib dhcpc dhcpd resolv smtp telnetd webclient webserver
+
ASRCS = $(UIPLIB_ASRCS) $(DHCPC_ASRCS) $(DHCPD_ASRCS) $(RESOLV_ASRCS) \
$(SMTP_ASRCS) $(TELNETD_ASRCS) $(WEBCLIENT_ASRCS) $(WEBSERVER_ASRCS)
AOBJS = $(ASRCS:.S=$(OBJEXT))
@@ -90,9 +92,11 @@ endif
depend: .depend
clean:
- @rm -f $(BIN) *.o *.obj *.rel *.asm *.lst *.sym *.adb *~
- @rm -f uiplib/*~ dhcpc/*~ dhcpd/*~ resolv/*~ smtp/*~ telnetd/*~ webclient/*~ webserver/*~
- @if [ ! -z "$(OBJEXT)" ]; then rm -f *$(OBJEXT); fi
+ @rm -f $(BIN) *~ .*.swp
+ $(call CLEAN)
+ @( for dir in $(SUBDIRS); do \
+ rm $(dir)/*~ $(dir)/.*.swp; \
+ done ; )
@$(MAKE) -C dhcpd -f Makefile.host clean
distclean: clean