summaryrefslogtreecommitdiff
path: root/apps/examples/nxterm/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'apps/examples/nxterm/Makefile')
-rw-r--r--apps/examples/nxterm/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/examples/nxterm/Makefile b/apps/examples/nxterm/Makefile
index 9f30917e5..f8add33dc 100644
--- a/apps/examples/nxterm/Makefile
+++ b/apps/examples/nxterm/Makefile
@@ -75,6 +75,12 @@ PROGNAME = $(CONFIG_XYZ_PROGNAME)
ROOTDEPPATH = --dep-path .
+# NX built-in application info
+
+APPNAME = nxterm
+PRIORITY = SCHED_PRIORITY_DEFAULT
+STACKSIZE = 2048
+
# Common build
VPATH =
@@ -105,7 +111,14 @@ install:
endif
+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)
@$(MKDEP) $(ROOTDEPPATH) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep