summaryrefslogtreecommitdiff
path: root/apps/examples/nxtext/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'apps/examples/nxtext/Makefile')
-rw-r--r--apps/examples/nxtext/Makefile16
1 files changed, 14 insertions, 2 deletions
diff --git a/apps/examples/nxtext/Makefile b/apps/examples/nxtext/Makefile
index 4451c9faf..75e489943 100644
--- a/apps/examples/nxtext/Makefile
+++ b/apps/examples/nxtext/Makefile
@@ -60,12 +60,18 @@ endif
ROOTDEPPATH = --dep-path .
+# NXTEXT built-in application info
+
+APPNAME = nxtext
+PRIORITY = SCHED_PRIORITY_DEFAULT
+STACKSIZE = 2048
+
# Common build
VPATH =
all: .built
-.PHONY: clean depend distclean
+.PHONY: context clean depend distclean
$(AOBJS): %$(OBJEXT): %.S
$(call ASSEMBLE, $<, $@)
@@ -79,7 +85,13 @@ $(COBJS): %$(OBJEXT): %.c
done ; )
@touch .built
-context:
+.context:
+ifeq ($(CONFIG_EXAMPLES_NXTEXT_BUILTIN),y)
+ $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
+ @touch $@
+endif
+
+context: .context
.depend: Makefile $(SRCS)
@$(MKDEP) $(ROOTDEPPATH) $(CC) -- $(CFLAGS) -- $(SRCS) >Make.dep