diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-11-14 14:45:30 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-11-14 14:45:30 +0000 |
commit | c5c3f5ad84cce90b89cff4d88334789c2bc2e2f9 (patch) | |
tree | 5e3bd37f24bb5ccb1f3ad5b5192d9beff1df8242 /apps/examples/buttons/Makefile | |
parent | 9680f958408f49a75ea7b49dade839e72937a074 (diff) | |
download | nuttx-c5c3f5ad84cce90b89cff4d88334789c2bc2e2f9.tar.gz nuttx-c5c3f5ad84cce90b89cff4d88334789c2bc2e2f9.tar.bz2 nuttx-c5c3f5ad84cce90b89cff4d88334789c2bc2e2f9.zip |
Button test can now be built as an NSH command
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4091 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/examples/buttons/Makefile')
-rw-r--r-- | apps/examples/buttons/Makefile | 16 |
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 |