summaryrefslogtreecommitdiff
path: root/apps/examples/thttpd
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-11-17 18:54:53 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-11-17 18:54:53 +0000
commita444a16f4746959a1332cb21749fbdf9a31df091 (patch)
treed220ebef3bfba64591298b4c51a0c0dd6e10ae0b /apps/examples/thttpd
parentb023c1b10ea54b6fc54f0ec747c766187c58190f (diff)
downloadnuttx-a444a16f4746959a1332cb21749fbdf9a31df091.tar.gz
nuttx-a444a16f4746959a1332cb21749fbdf9a31df091.tar.bz2
nuttx-a444a16f4746959a1332cb21749fbdf9a31df091.zip
Most of the changes needed to support Windows native clean; distclean is has a problem
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5367 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/examples/thttpd')
-rw-r--r--apps/examples/thttpd/Makefile5
-rw-r--r--apps/examples/thttpd/content/Makefile6
-rw-r--r--apps/examples/thttpd/content/hello/Makefile23
-rw-r--r--apps/examples/thttpd/content/netstat/Makefile23
-rw-r--r--apps/examples/thttpd/content/tasks/Makefile23
5 files changed, 46 insertions, 34 deletions
diff --git a/apps/examples/thttpd/Makefile b/apps/examples/thttpd/Makefile
index 10bcb9af0..5320a0a13 100644
--- a/apps/examples/thttpd/Makefile
+++ b/apps/examples/thttpd/Makefile
@@ -89,12 +89,13 @@ context:
depend: .depend
clean:
- @rm -f *.o *~ .*.swp .built
+ $(call DELFILE .built)
@$(MAKE) -C content clean TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" CROSSDEV=$(CROSSDEV)
$(call CLEAN)
distclean: clean
- @rm -f Make.dep .depend
+ $(call DELFILE Make.dep)
+ $(call DELFILE .depend)
-include Make.dep
diff --git a/apps/examples/thttpd/content/Makefile b/apps/examples/thttpd/content/Makefile
index 1f5ce4246..8a74201b5 100644
--- a/apps/examples/thttpd/content/Makefile
+++ b/apps/examples/thttpd/content/Makefile
@@ -97,8 +97,10 @@ $(SYMTAB): build
# Clean each subdirectory
clean: $(foreach DIR, $(SUBDIRS), $(DIR)_clean)
- @rm -f $(ROMFS_HDR) $(ROMFS_IMG) $(SYMTAB)
+ $(call DELFILE$(ROMFS_HDR))
+ $(call DELFILE $(ROMFS_IMG))
+ $(call DELFILE $(SYMTAB))
@rm -rf $(ROMFS_DIR)
- @rm -f *~ .*.swp
+ $(call CLEAN)
diff --git a/apps/examples/thttpd/content/hello/Makefile b/apps/examples/thttpd/content/hello/Makefile
index 76d4e67c8..74ff2116a 100644
--- a/apps/examples/thttpd/content/hello/Makefile
+++ b/apps/examples/thttpd/content/hello/Makefile
@@ -33,8 +33,7 @@
#
############################################################################
--include $(TOPDIR)/.config # Current configuration
--include $(TOPDIR)/Make.defs # Basic make info
+-include $(TOPDIR)/Make.defs
BIN = hello
@@ -48,31 +47,35 @@ all: $(BIN)
$(R1OBJS): %.o: %.c
@echo "CC: $<"
- @$(CC) -c $(CPICFLAGS) $< -o $@
+ $(Q) $(CC) -c $(CPICFLAGS) $< -o $@
$(R2OBJ): %.o: %.S
@echo "AS: $<"
- @$(CC) -c $(CPICFLAGS) $< -o $@
+ $(Q) $(CC) -c $(CPICFLAGS) $< -o $@
$(BIN).r1: $(R1OBJS)
@echo "LD: $<"
- @$(LD) $(NXFLATLDFLAGS1) -o $@ $^
+ $(Q) $(LD) $(NXFLATLDFLAGS1) -o $@ $^
$(R2SRC): $(BIN).r1
@echo "MK: $<"
- @$(MKNXFLAT) -o $@ $^
+ $(Q) $(MKNXFLAT) -o $@ $^
$(BIN).r2: $(R2OBJ)
@echo "LD: $<"
- @$(LD) $(NXFLATLDFLAGS2) -o $@ $(R1OBJS) $(R2OBJ)
+ $(Q) $(LD) $(NXFLATLDFLAGS2) -o $@ $(R1OBJS) $(R2OBJ)
$(BIN): $(BIN).r2
@echo "LD: $<"
- @$(LDNXFLAT) $(LDNXFLATFLAGS) -o $@ $^
+ $(Q) $(LDNXFLAT) $(LDNXFLATFLAGS) -o $@ $^
clean:
- @rm -f $(BIN) $(R2SRC) *.o *.r1 *.r2 *~ .*.swp core
+ $(call DELFILE $(BIN))
+ $(call DELFILE $(R2SRC))
+ $(call DELFILE *.r1)
+ $(call DELFILE *.r2)
+ $(call CLEAN)
install:
- @install -m 0755 -D $(BIN) $(CGI_DIR)/$(BIN)
+ $(Q) install -m 0755 -D $(BIN) $(CGI_DIR)/$(BIN)
diff --git a/apps/examples/thttpd/content/netstat/Makefile b/apps/examples/thttpd/content/netstat/Makefile
index 9769c9207..d9953547a 100644
--- a/apps/examples/thttpd/content/netstat/Makefile
+++ b/apps/examples/thttpd/content/netstat/Makefile
@@ -33,8 +33,7 @@
#
############################################################################
--include $(TOPDIR)/.config # Current configuration
--include $(TOPDIR)/Make.defs # Basic make info
+-include $(TOPDIR)/Make.defs
BIN = netstat
@@ -48,31 +47,35 @@ all: $(BIN)
$(R1OBJS): %.o: %.c
@echo "CC: $<"
- @$(CC) -c $(CPICFLAGS) $< -o $@
+ $(Q) $(CC) -c $(CPICFLAGS) $< -o $@
$(R2OBJ): %.o: %.S
@echo "AS: $<"
- @$(CC) -c $(CPICFLAGS) $< -o $@
+ $(Q) $(CC) -c $(CPICFLAGS) $< -o $@
$(BIN).r1: $(R1OBJS)
@echo "LD: $<"
- @$(LD) $(NXFLATLDFLAGS1) -o $@ $^
+ $(Q) $(LD) $(NXFLATLDFLAGS1) -o $@ $^
$(R2SRC): $(BIN).r1
@echo "MK: $<"
- @$(MKNXFLAT) -o $@ $^
+ $(Q) $(MKNXFLAT) -o $@ $^
$(BIN).r2: $(R2OBJ)
@echo "LD: $<"
- @$(LD) $(NXFLATLDFLAGS2) -o $@ $(R1OBJS) $(R2OBJ)
+ $(Q) $(LD) $(NXFLATLDFLAGS2) -o $@ $(R1OBJS) $(R2OBJ)
$(BIN): $(BIN).r2
@echo "LD: $<"
- @$(LDNXFLAT) $(LDNXFLATFLAGS) -o $@ $^
+ $(Q) $(LDNXFLAT) $(LDNXFLATFLAGS) -o $@ $^
clean:
- @rm -f $(BIN) $(R2SRC) *.o *.r1 *.r2 *~ .*.swp core
+ $(call DELFILE $(BIN))
+ $(call DELFILE $(R2SRC))
+ $(call DELFILE *.r1)
+ $(call DELFILE *.r2)
+ $(call CLEAN)
install:
- @install -m 0755 -D $(BIN) $(CGI_DIR)/$(BIN)
+ $(Q) install -m 0755 -D $(BIN) $(CGI_DIR)/$(BIN)
diff --git a/apps/examples/thttpd/content/tasks/Makefile b/apps/examples/thttpd/content/tasks/Makefile
index b76c3f22a..c668285d8 100644
--- a/apps/examples/thttpd/content/tasks/Makefile
+++ b/apps/examples/thttpd/content/tasks/Makefile
@@ -33,8 +33,7 @@
#
############################################################################
--include $(TOPDIR)/.config # Current configuration
--include $(TOPDIR)/Make.defs # Basic make info
+-include $(TOPDIR)/Make.defs
BIN = tasks
@@ -48,31 +47,35 @@ all: $(BIN)
$(R1OBJS): %.o: %.c
@echo "CC: $<"
- @$(CC) -c $(CPICFLAGS) $< -o $@
+ $(Q) $(CC) -c $(CPICFLAGS) $< -o $@
$(R2OBJ): %.o: %.S
@echo "AS: $<"
- @$(CC) -c $(CPICFLAGS) $< -o $@
+ $(Q) $(CC) -c $(CPICFLAGS) $< -o $@
$(BIN).r1: $(R1OBJS)
@echo "LD: $<"
- @$(LD) $(NXFLATLDFLAGS1) -o $@ $^
+ $(Q) $(LD) $(NXFLATLDFLAGS1) -o $@ $^
$(R2SRC): $(BIN).r1
@echo "MK: $<"
- @$(MKNXFLAT) -o $@ $^
+ $(Q) $(MKNXFLAT) -o $@ $^
$(BIN).r2: $(R2OBJ)
@echo "LD: $<"
- @$(LD) $(NXFLATLDFLAGS2) -o $@ $(R1OBJS) $(R2OBJ)
+ $(Q) $(LD) $(NXFLATLDFLAGS2) -o $@ $(R1OBJS) $(R2OBJ)
$(BIN): $(BIN).r2
@echo "LD: $<"
- @$(LDNXFLAT) $(LDNXFLATFLAGS) -o $@ $^
+ $(Q) $(LDNXFLAT) $(LDNXFLATFLAGS) -o $@ $^
clean:
- @rm -f $(BIN) $(R2SRC) *.o *.r1 *.r2 *~ .*.swp core
+ $(call DELFILE $(BIN))
+ $(call DELFILE $(R2SRC))
+ $(call DELFILE *.r1)
+ $(call DELFILE *.r2)
+ $(call CLEAN)
install:
- @install -m 0755 -D $(BIN) $(CGI_DIR)/$(BIN)
+ $(Q) install -m 0755 -D $(BIN) $(CGI_DIR)/$(BIN)