summaryrefslogtreecommitdiff
path: root/apps/examples/mm
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-09-07 07:05:54 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-09-07 07:05:54 -0600
commit5a874f322600b650145dcb55bdf51e66fbf4acef (patch)
tree53ca82ce060bf7a9a219eed794be1c2b4f608340 /apps/examples/mm
parent6ba90d01b2bc73b9ffd9a0ca8305f97ed34efb68 (diff)
downloadnuttx-5a874f322600b650145dcb55bdf51e66fbf4acef.tar.gz
nuttx-5a874f322600b650145dcb55bdf51e66fbf4acef.tar.bz2
nuttx-5a874f322600b650145dcb55bdf51e66fbf4acef.zip
If now a kernel build, then add the main object in with all of the rest
Diffstat (limited to 'apps/examples/mm')
-rw-r--r--apps/examples/mm/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/examples/mm/Makefile b/apps/examples/mm/Makefile
index dc06e6d14..15f0aa476 100644
--- a/apps/examples/mm/Makefile
+++ b/apps/examples/mm/Makefile
@@ -48,6 +48,10 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS) $(MAINSRC)
OBJS = $(AOBJS) $(COBJS)
+ifneq ($(CONFIG_BUILD_KERNEL),y)
+ OBJS += $(MAINOBJ)
+endif
+
ifeq ($(CONFIG_WINDOWS_NATIVE),y)
BIN = ..\..\libapps$(LIBEXT)
else