summaryrefslogtreecommitdiff
path: root/nuttx/netutils/thttpd/Makefile
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-07-18 19:47:08 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-07-18 19:47:08 +0000
commita06a3e444b1f53f34ad78067e68f06cc040ebe31 (patch)
treefa1a9c4989476f8a46be5a5ad275dc0ec565bd8b /nuttx/netutils/thttpd/Makefile
parent0ae84141bbd645eff4c096b608a2aee7704ea17a (diff)
downloadnuttx-a06a3e444b1f53f34ad78067e68f06cc040ebe31.tar.gz
nuttx-a06a3e444b1f53f34ad78067e68f06cc040ebe31.tar.bz2
nuttx-a06a3e444b1f53f34ad78067e68f06cc040ebe31.zip
Add framework for THTTPD example
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1989 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/netutils/thttpd/Makefile')
-rw-r--r--nuttx/netutils/thttpd/Makefile40
1 files changed, 6 insertions, 34 deletions
diff --git a/nuttx/netutils/thttpd/Makefile b/nuttx/netutils/thttpd/Makefile
index 6ff882dc4..f317e40a7 100644
--- a/nuttx/netutils/thttpd/Makefile
+++ b/nuttx/netutils/thttpd/Makefile
@@ -47,29 +47,8 @@ SUBDIR_BIN3 = ssi
SUBDIR_BIN += cgi-bin/$(SUBDIR_BIN1) cgi-bin/$(SUBDIR_BIN2) cgi-bin/$(SUBDIR_BIN3)
endif
-ASRCS =
-AOBJS = $(ASRCS:.S=$(OBJEXT))
-
-CSRCS = thttpd.c libhttpd.c timers.c fdwatch.c tdate_parse.c
-COBJS = $(CSRCS:.c=$(OBJEXT))
-
-SRCS = $(ASRCS) $(CSRCS)
-OBJS = $(AOBJS) $(COBJS)
-
-BIN = libthttpd$(LIBEXT)
-
-all: $(BIN) $(SUBDIR_BIN)
-
-$(AOBJS): %$(OBJEXT): %.S
- $(call ASSEMBLE, $<, $@)
-
-$(COBJS): %$(OBJEXT): %.c
- $(call COMPILE, $<, $@)
-
-$(BIN): $(OBJS)
- @( for obj in $(OBJS) ; do \
- $(call ARCHIVE, $@, $${obj}); \
- done ; )
+all: $(SUBDIR_BIN)
+.PHONY: depend clean distclean
ifeq ($(CONFIG_NXFLAT),y)
cgi-bin:
@@ -94,22 +73,15 @@ cgi-bin/$(SUBDIR_BIN3): cgi-bin cgi-src/$(SUBDIR_BIN3)
@cp -a cgi-src/$(SUBDIR_BIN3) $@
endif
-.depend: Makefile $(SRCS)
- @$(MKDEP) --dep-path . $(CC) -- $(CFLAGS) -- $(SRCS) >Make.dep
- @touch $@
-
-depend: .depend
+depend:
clean:
- @rm -f $(BIN) *~ .*.swp
+ @rm -f *~ .*.swp
@rm -rf cgi-bin
- $(call CLEAN)
- @( for dir in $(SUBDIRS); do \
- rm -f $${dir}/*~ $${dir}/.*.swp; \
- done ; )
+ @$(MAKE) -C cgi-src clean
distclean: clean
- @rm -f Make.dep .depend
+ @$(MAKE) -C cgi-src distclean
-include Make.dep