diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-09-07 08:51:51 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-09-07 08:51:51 -0600 |
commit | fb7a08922178beb0cb053a00d1377366d4279e87 (patch) | |
tree | 3a74746b12a78956d1143cddbda17d53debe80cd | |
parent | c4d5a48feb70656a5a4c5bfda665d5e1eb93e943 (diff) | |
download | px4-nuttx-fb7a08922178beb0cb053a00d1377366d4279e87.tar.gz px4-nuttx-fb7a08922178beb0cb053a00d1377366d4279e87.tar.bz2 px4-nuttx-fb7a08922178beb0cb053a00d1377366d4279e87.zip |
Changes to many Makefiles. For kernel buil object containing main cannot go into library because of name collisions. The object file must be handled as a special case in every Makefile
-rw-r--r-- | apps/netutils/thttpd/Makefile | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/apps/netutils/thttpd/Makefile b/apps/netutils/thttpd/Makefile index 5394550a6..6e337c2c1 100644 --- a/apps/netutils/thttpd/Makefile +++ b/apps/netutils/thttpd/Makefile @@ -39,31 +39,32 @@ include $(APPDIR)/Make.defs # THTTPD Library -ASRCS = -CSRCS = +ASRCS = +CSRCS = ifeq ($(CONFIG_NET_TCP),y) -CSRCS += thttpd.c libhttpd.c thttpd_cgi.c thttpd_alloc.c thttpd_strings.c timers.c fdwatch.c tdate_parse.c +CSRCS += libhttpd.c thttpd_cgi.c thttpd_alloc.c thttpd_strings.c timers.c fdwatch.c tdate_parse.c +MAINSRC += thttpd.c endif -AOBJS = $(ASRCS:.S=$(OBJEXT)) -COBJS = $(CSRCS:.c=$(OBJEXT)) +AOBJS = $(ASRCS:.S=$(OBJEXT)) +COBJS = $(CSRCS:.c=$(OBJEXT)) MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) -SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) -OBJS = $(AOBJS) $(COBJS) +SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) +OBJS = $(AOBJS) $(COBJS) ifneq ($(CONFIG_BUILD_KERNEL),y) OBJS += $(MAINOBJ) endif ifeq ($(CONFIG_WINDOWS_NATIVE),y) - BIN = ..\..\libapps$(LIBEXT) + BIN = ..\..\libapps$(LIBEXT) else ifeq ($(WINTOOL),y) - BIN = ..\\..\\libapps$(LIBEXT) + BIN = ..\\..\\libapps$(LIBEXT) else - BIN = ../../libapps$(LIBEXT) + BIN = ../../libapps$(LIBEXT) endif endif @@ -76,19 +77,19 @@ endif CONFIG_XYZ_PROGNAME ?= thttpd$(EXEEXT) PROGNAME = $(CONFIG_XYZ_PROGNAME) -ROOTDEPPATH = --dep-path . +ROOTDEPPATH = --dep-path . # CGI binaries (examples only, not used in the build) -CGIBINDIR = $(APPDIR)/netutils/thttpd/cgi-bin +CGIBINDIR = $(APPDIR)/netutils/thttpd/cgi-bin -SUBDIRS = +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) +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 all: $(SUBDIR_BIN) .built |