summaryrefslogtreecommitdiff
path: root/apps/examples/buttons/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'apps/examples/buttons/Makefile')
-rw-r--r--apps/examples/buttons/Makefile16
1 files changed, 14 insertions, 2 deletions
diff --git a/apps/examples/buttons/Makefile b/apps/examples/buttons/Makefile
index 89db5cec1..9c0587199 100644
--- a/apps/examples/buttons/Makefile
+++ b/apps/examples/buttons/Makefile
@@ -56,12 +56,18 @@ endif
ROOTDEPPATH = --dep-path .
+# Buttons built-in application info
+
+APPNAME = buttons
+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, $<, $@)
@@ -75,7 +81,13 @@ $(COBJS): %$(OBJEXT): %.c
done ; )
@touch .built
-context:
+.context:
+ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
+ $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
+ @touch $@
+endif
+
+context: .context
.depend: Makefile $(SRCS)
@$(MKDEP) $(ROOTDEPPATH) $(CC) -- $(CFLAGS) -- $(SRCS) >Make.dep