summaryrefslogtreecommitdiff
path: root/apps/examples/elf
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/elf
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/elf')
-rw-r--r--apps/examples/elf/Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/apps/examples/elf/Makefile b/apps/examples/elf/Makefile
index cabb7e137..08fc74f06 100644
--- a/apps/examples/elf/Makefile
+++ b/apps/examples/elf/Makefile
@@ -40,7 +40,8 @@ include $(APPDIR)/Make.defs
# ELF Example
ASRCS =
-CSRCS = elf_main.c symtab.c
+CSRCS = symtab.c
+MAINSRC = elf_main.c
AOBJS = $(ASRCS:.S=$(OBJEXT))
COBJS = $(CSRCS:.c=$(OBJEXT))
@@ -54,12 +55,12 @@ ifneq ($(CONFIG_BUILD_KERNEL),y)
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,7 +73,7 @@ endif
CONFIG_XYZ_PROGNAME ?= discover$(EXEEXT)
PROGNAME = $(CONFIG_XYZ_PROGNAME)
-ROOTDEPPATH = --dep-path . --dep-path tests
+ROOTDEPPATH = --dep-path . --dep-path tests
# Build targets