summaryrefslogtreecommitdiff
path: root/nuttx/netutils/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/Makefile
parent0ae84141bbd645eff4c096b608a2aee7704ea17a (diff)
downloadpx4-nuttx-a06a3e444b1f53f34ad78067e68f06cc040ebe31.tar.gz
px4-nuttx-a06a3e444b1f53f34ad78067e68f06cc040ebe31.tar.bz2
px4-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/Makefile')
-rw-r--r--nuttx/netutils/Makefile24
1 files changed, 10 insertions, 14 deletions
diff --git a/nuttx/netutils/Makefile b/nuttx/netutils/Makefile
index a7a9ec2ac..9f95a7d22 100644
--- a/nuttx/netutils/Makefile
+++ b/nuttx/netutils/Makefile
@@ -42,6 +42,7 @@ include smtp/Make.defs
include telnetd/Make.defs
include webclient/Make.defs
include webserver/Make.defs
+include thttpd/Make.defs
endif
ifeq ($(CONFIG_NET_UDP),y)
include dhcpc/Make.defs
@@ -53,16 +54,16 @@ endif
endif
endif
-SUBDIRS = uiplib dhcpc dhcpd resolv smtp telnetd webclient webserver tftpc
+SUBDIRS = uiplib dhcpc dhcpd resolv smtp telnetd webclient webserver tftpc thttpd
ASRCS = $(UIPLIB_ASRCS) $(DHCPC_ASRCS) $(DHCPD_ASRCS) $(RESOLV_ASRCS) \
$(SMTP_ASRCS) $(TELNETD_ASRCS) $(WEBCLIENT_ASRCS) $(WEBSERVER_ASRCS) \
- $(TFTPC_ASRCS)
+ $(TFTPC_ASRCS) $(THTTPD_ASRCS)
AOBJS = $(ASRCS:.S=$(OBJEXT))
CSRCS = $(UIPLIB_CSRCS) $(DHCPC_CSRCS) $(DHCPD_CSRCS) $(RESOLV_CSRCS) \
$(SMTP_CSRCS) $(TELNETD_CSRCS) $(WEBCLIENT_CSRCS) $(WEBSERVER_CSRCS) \
- $(TFTPC_CSRCS)
+ $(TFTPC_CSRCS) $(THTTPD_CSRCS)
COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
@@ -70,9 +71,9 @@ OBJS = $(AOBJS) $(COBJS)
BIN = libnetutils$(LIBEXT)
-VPATH = uiplib:dhcpc:dhcpd:resolv:smtp:telnetd:webclient:webserver:tftpc
+VPATH = uiplib:dhcpc:dhcpd:resolv:smtp:telnetd:webclient:webserver:tftpc:thttpd
-all: $(BIN) libthttpd$(LIBEXT)
+all: $(BIN)
$(AOBJS): %$(OBJEXT): %.S
$(call ASSEMBLE, $<, $@)
@@ -85,17 +86,12 @@ $(BIN): $(OBJS)
$(call ARCHIVE, $@, $${obj}); \
done ; )
-thttpd/libthttpd$(LIBEXT):
- @$(MAKE) -C thttpd libthttpd$(LIBEXT) TOPDIR="$(TOPDIR)"
-
-libthttpd$(LIBEXT): thttpd/libthttpd$(LIBEXT)
- @cp -a thttpd/libthttpd$(LIBEXT) .
-
.depend: Makefile $(SRCS)
+ @$(MAKE) -C thttpd all TOPDIR="$(TOPDIR)"
ifeq ($(CONFIG_NET),y)
@$(MKDEP) --dep-path . --dep-path uiplib --dep-path dhcpc --dep-path dhcpd \
- --dep-path smtp --dep-path webclient --dep-path resolv \
- --dep-path telnetd --dep-path webserver --dep-path tftpc \
+ --dep-path smtp --dep-path webclient --dep-path resolv --dep-path telnetd \
+ --dep-path webserver --dep-path tftpc --dep-path thttpd \
$(CC) -- $(CFLAGS) -- $(SRCS) >Make.dep
endif
@touch $@
@@ -104,7 +100,7 @@ depend: .depend
@$(MAKE) -C thttpd depend TOPDIR="$(TOPDIR)"
clean:
- @rm -f $(BIN) libthttpd$(LIBEXT) *~ .*.swp
+ @rm -f $(BIN) *~ .*.swp
$(call CLEAN)
@( for dir in $(SUBDIRS); do \
rm -f $${dir}/*~ $${dir}/.*.swp; \