summaryrefslogtreecommitdiff
path: root/apps/interpreters/bas/Makefile
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-11-01 16:23:30 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-11-01 16:23:30 -0600
commitf3a67058fff07fe3ba081795903ee64b4553075f (patch)
tree2d236b38e3d0a157511be0a3e9b9b86e6b26c1d8 /apps/interpreters/bas/Makefile
parent0165a9a4b7466e7a38bdfc6e9d890a9e3593e5bd (diff)
downloadnuttx-f3a67058fff07fe3ba081795903ee64b4553075f.tar.gz
nuttx-f3a67058fff07fe3ba081795903ee64b4553075f.tar.bz2
nuttx-f3a67058fff07fe3ba081795903ee64b4553075f.zip
Add suppport to build BAS as a NSH builtin
Diffstat (limited to 'apps/interpreters/bas/Makefile')
-rw-r--r--apps/interpreters/bas/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/interpreters/bas/Makefile b/apps/interpreters/bas/Makefile
index 3cb5f6301..3fca2f139 100644
--- a/apps/interpreters/bas/Makefile
+++ b/apps/interpreters/bas/Makefile
@@ -72,6 +72,12 @@ else
endif
endif
+# BAS built-in application info
+
+APPNAME = bas
+PRIORITY = SCHED_PRIORITY_DEFAULT
+STACKSIZE = 2048
+
# Build targets
all: .built
@@ -89,7 +95,14 @@ $(COBJS): %$(OBJEXT): %.c
install:
+ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
+$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
+ $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
+
+context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
+else
context:
+endif
.depend: Makefile $(SRCS)
$(Q) $(MKDEP) $(DEPPATH) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep