summaryrefslogtreecommitdiff
path: root/apps/examples/mtdpart
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-09-07 07:19:19 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-09-07 07:19:19 -0600
commit0245ea571aff1a005054c608dd187dbb4cfd194f (patch)
tree34837e2e1d7526d96124f2d02113b11f30429c93 /apps/examples/mtdpart
parente84faa17ebb87c6a2002c99193c5214a11cdf07e (diff)
downloadnuttx-0245ea571aff1a005054c608dd187dbb4cfd194f.tar.gz
nuttx-0245ea571aff1a005054c608dd187dbb4cfd194f.tar.bz2
nuttx-0245ea571aff1a005054c608dd187dbb4cfd194f.zip
Determine the main object name from the main source name in every kernel build Makefile
Diffstat (limited to 'apps/examples/mtdpart')
-rwxr-xr-xapps/examples/mtdpart/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/examples/mtdpart/Makefile b/apps/examples/mtdpart/Makefile
index 2acea02db..0b58c42f1 100755
--- a/apps/examples/mtdpart/Makefile
+++ b/apps/examples/mtdpart/Makefile
@@ -44,6 +44,7 @@ CSRCS = mtdpart_main.c
AOBJS = $(ASRCS:.S=$(OBJEXT))
COBJS = $(CSRCS:.c=$(OBJEXT))
+MAINOBJ = $(MAINSRC:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS) $(MAINSRC)
OBJS = $(AOBJS) $(COBJS)