summaryrefslogtreecommitdiff
path: root/apps/examples/thttpd
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-09-06 10:42:03 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-09-06 10:42:03 -0600
commitbeb70efffcde9f35e3ab80c748c38041677d1ac0 (patch)
tree9b01e6cd3afec91d278316c9a149f34e8e0e00d0 /apps/examples/thttpd
parent8aabf57b45b523cbcc96c979826a8f809cd7bd73 (diff)
downloadnuttx-beb70efffcde9f35e3ab80c748c38041677d1ac0.tar.gz
nuttx-beb70efffcde9f35e3ab80c748c38041677d1ac0.tar.bz2
nuttx-beb70efffcde9f35e3ab80c748c38041677d1ac0.zip
Add program installation for CONFIG_BUILD_KERNEL in all Makefiles that build a main()
Diffstat (limited to 'apps/examples/thttpd')
-rw-r--r--apps/examples/thttpd/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/examples/thttpd/Makefile b/apps/examples/thttpd/Makefile
index 8ce70cc70..a0bb30c96 100644
--- a/apps/examples/thttpd/Makefile
+++ b/apps/examples/thttpd/Makefile
@@ -80,8 +80,17 @@ headers:
$(call ARCHIVE, $(BIN), $(OBJS))
@touch .built
+ifeq ($(CONFIG_BUILD_KERNEL),y)
+$(INSTALL_DIR)/$(PROGNAME): $(OBJS)
+ @echo "LD: $<"
+ $(Q) $(LD) $(LDELFFLAGS) $(LDLIBPATH) -o $@ $(ARCHCRT0OBJ) $^ $(LDLIBS)
+
+install: $(INSTALL_DIR)/$(PROGNAME)
+
install:
+endif
+
context:
.depend: Makefile $(SRCS)