diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-09-07 08:43:01 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-09-07 08:43:01 -0600 |
commit | 26b2fe3e5bfff38e941312edf4a6fe94a9e4dd43 (patch) | |
tree | f1eaf63c160822c9e89b9211678d2893d368e3df /apps/examples/webserver/Makefile | |
parent | 0245ea571aff1a005054c608dd187dbb4cfd194f (diff) | |
download | px4-nuttx-26b2fe3e5bfff38e941312edf4a6fe94a9e4dd43.tar.gz px4-nuttx-26b2fe3e5bfff38e941312edf4a6fe94a9e4dd43.tar.bz2 px4-nuttx-26b2fe3e5bfff38e941312edf4a6fe94a9e4dd43.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
Diffstat (limited to 'apps/examples/webserver/Makefile')
-rw-r--r-- | apps/examples/webserver/Makefile | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/apps/examples/webserver/Makefile b/apps/examples/webserver/Makefile index 61fcbec1f..bb8702561 100644 --- a/apps/examples/webserver/Makefile +++ b/apps/examples/webserver/Makefile @@ -39,27 +39,28 @@ include $(APPDIR)/Make.defs # uIP very tiny web server example -ASRCS = -CSRCS = webserver_main.c cgi.c httpd_fsdata.c +ASRCS = +CSRCS = cgi.c httpd_fsdata.c +MAINSRC = webserver_main.c -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 @@ -72,11 +73,11 @@ endif CONFIG_XYZ_PROGNAME ?= webserver$(EXEEXT) PROGNAME = $(CONFIG_XYZ_PROGNAME) -ROOTDEPPATH = --dep-path . +ROOTDEPPATH = --dep-path . # Common build -VPATH = +VPATH = all: .built .PHONY: clean depend distclean |