summaryrefslogtreecommitdiff
path: root/apps/examples/composite
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-12-23 22:17:09 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-12-23 22:17:09 +0000
commit0cafa6176d2a38082056e3aa2193590a7eea808b (patch)
treeadbf30bfdbb86648a4b292c16abd5c71a8548ba1 /apps/examples/composite
parent11e331a9ca6df348e97e57948fed9d23b9bba2ef (diff)
downloadpx4-nuttx-0cafa6176d2a38082056e3aa2193590a7eea808b.tar.gz
px4-nuttx-0cafa6176d2a38082056e3aa2193590a7eea808b.tar.bz2
px4-nuttx-0cafa6176d2a38082056e3aa2193590a7eea808b.zip
Remove .context kludge from apps/ directory
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5455 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/examples/composite')
-rw-r--r--apps/examples/composite/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/apps/examples/composite/Makefile b/apps/examples/composite/Makefile
index 016ccbe3e..b1fe49308 100644
--- a/apps/examples/composite/Makefile
+++ b/apps/examples/composite/Makefile
@@ -87,14 +87,17 @@ $(COBJS): %$(OBJEXT): %.c
$(call ARCHIVE, $(BIN), $(OBJS))
@touch .built
-.context:
ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
+$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME1)_main.bdat: $(TOPDIR)$(DELIM).config Makefile
$(call REGISTER,$(APPNAME1),$(PRIORITY1),$(STACKSIZE1),$(APPNAME1)_main)
+
+$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME2)_main.bdat: $(TOPDIR)$(DELIM).config Makefile
$(call REGISTER,$(APPNAME2),$(PRIORITY2),$(STACKSIZE2),$(APPNAME2)_main)
- @touch $@
-endif
-context: .context
+context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME1)_main.bdat $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME2)_main.bdat
+else
+context:
+endif
.depend: Makefile $(SRCS)
@$(MKDEP) $(ROOTDEPPATH) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep