diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-07-13 01:30:53 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-07-13 01:30:53 +0000 |
commit | f2065269769a2b4660b21ac873bf805c1836d25a (patch) | |
tree | 97118d0b96d8180d598ba9cb9a5a96050cecc13b /nuttx/netutils/thttpd/Makefile | |
parent | cc6b48c2485f666f3d722d63094fa0db00eb25f9 (diff) | |
download | px4-nuttx-f2065269769a2b4660b21ac873bf805c1836d25a.tar.gz px4-nuttx-f2065269769a2b4660b21ac873bf805c1836d25a.tar.bz2 px4-nuttx-f2065269769a2b4660b21ac873bf805c1836d25a.zip |
Add NXFLAT CGI programs
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1983 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/netutils/thttpd/Makefile')
-rw-r--r-- | nuttx/netutils/thttpd/Makefile | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/nuttx/netutils/thttpd/Makefile b/nuttx/netutils/thttpd/Makefile index 0840fdd35..6ff882dc4 100644 --- a/nuttx/netutils/thttpd/Makefile +++ b/nuttx/netutils/thttpd/Makefile @@ -37,7 +37,15 @@ -include $(TOPDIR)/Make.defs CGIBINDIR = $(TOPDIR)/netutils/thttpd/cgi-bin + +SUBDIRS = +ifeq ($(CONFIG_NXFLAT),y) SUBDIRS = cgi-src +SUBDIR_BIN1 = phf +SUBDIR_BIN2 = redirect +SUBDIR_BIN3 = ssi +SUBDIR_BIN += cgi-bin/$(SUBDIR_BIN1) cgi-bin/$(SUBDIR_BIN2) cgi-bin/$(SUBDIR_BIN3) +endif ASRCS = AOBJS = $(ASRCS:.S=$(OBJEXT)) @@ -50,7 +58,7 @@ OBJS = $(AOBJS) $(COBJS) BIN = libthttpd$(LIBEXT) -all: $(BIN) +all: $(BIN) $(SUBDIR_BIN) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -63,6 +71,29 @@ $(BIN): $(OBJS) $(call ARCHIVE, $@, $${obj}); \ done ; ) +ifeq ($(CONFIG_NXFLAT),y) +cgi-bin: + @mkdir cgi-bin + +cgi-src/$(SUBDIR_BIN1): + @$(MAKE) -C cgi-src $(SUBDIR_BIN1) + +cgi-bin/$(SUBDIR_BIN1): cgi-bin cgi-src/$(SUBDIR_BIN1) + @cp -a cgi-src/$(SUBDIR_BIN1) $@ + +cgi-src/$(SUBDIR_BIN2): + @$(MAKE) -C cgi-src $(SUBDIR_BIN2) + +cgi-bin/$(SUBDIR_BIN2): cgi-bin cgi-src/$(SUBDIR_BIN2) + @cp -a cgi-src/$(SUBDIR_BIN2) $@ + +cgi-src/$(SUBDIR_BIN3): + @$(MAKE) -C cgi-src $(SUBDIR_BIN3) + +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 $@ @@ -71,6 +102,7 @@ depend: .depend clean: @rm -f $(BIN) *~ .*.swp + @rm -rf cgi-bin $(call CLEAN) @( for dir in $(SUBDIRS); do \ rm -f $${dir}/*~ $${dir}/.*.swp; \ |