summaryrefslogtreecommitdiff
path: root/apps/examples/nxtext/Makefile
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-09-07 08:43:01 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-09-07 08:43:01 -0600
commit26b2fe3e5bfff38e941312edf4a6fe94a9e4dd43 (patch)
treef1eaf63c160822c9e89b9211678d2893d368e3df /apps/examples/nxtext/Makefile
parent0245ea571aff1a005054c608dd187dbb4cfd194f (diff)
downloadnuttx-26b2fe3e5bfff38e941312edf4a6fe94a9e4dd43.tar.gz
nuttx-26b2fe3e5bfff38e941312edf4a6fe94a9e4dd43.tar.bz2
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/nxtext/Makefile')
-rw-r--r--apps/examples/nxtext/Makefile31
1 files changed, 16 insertions, 15 deletions
diff --git a/apps/examples/nxtext/Makefile b/apps/examples/nxtext/Makefile
index 8df34d8fd..f73dd42f2 100644
--- a/apps/examples/nxtext/Makefile
+++ b/apps/examples/nxtext/Makefile
@@ -39,31 +39,32 @@ include $(APPDIR)/Make.defs
# NuttX NX Graphics Example.
-ASRCS =
-CSRCS = nxtext_main.c nxtext_bkgd.c nxtext_popup.c nxtext_putc.c
+ASRCS =
+CSRCS = nxtext_bkgd.c nxtext_popup.c nxtext_putc.c
+MAINSRC = nxtext_main.c
ifeq ($(CONFIG_NX_MULTIUSER),y)
-CSRCS += nxtext_server.c
+CSRCS += nxtext_server.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,17 +77,17 @@ endif
CONFIG_XYZ_PROGNAME ?= nxtext$(EXEEXT)
PROGNAME = $(CONFIG_XYZ_PROGNAME)
-ROOTDEPPATH = --dep-path .
+ROOTDEPPATH = --dep-path .
# NXTEXT built-in application info
-APPNAME = nxtext
-PRIORITY = SCHED_PRIORITY_DEFAULT
-STACKSIZE = 2048
+APPNAME = nxtext
+PRIORITY = SCHED_PRIORITY_DEFAULT
+STACKSIZE = 2048
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: context clean depend distclean