summaryrefslogtreecommitdiff
path: root/apps/vsn/sdcard/Makefile
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-03-24 00:28:50 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-03-24 00:28:50 +0000
commit1e10d8d0d3733432f69d86948645896295864d42 (patch)
treea678b793c7a420cedb58e9f99ca4b39fea502fd6 /apps/vsn/sdcard/Makefile
parentfe55a3d3121630eda2b910bac6b051a38e3b5f60 (diff)
downloadnuttx-1e10d8d0d3733432f69d86948645896295864d42.tar.gz
nuttx-1e10d8d0d3733432f69d86948645896295864d42.tar.bz2
nuttx-1e10d8d0d3733432f69d86948645896295864d42.zip
apps/ initialization now occurs during the earlier context build phase
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3412 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/vsn/sdcard/Makefile')
-rw-r--r--apps/vsn/sdcard/Makefile18
1 files changed, 13 insertions, 5 deletions
diff --git a/apps/vsn/sdcard/Makefile b/apps/vsn/sdcard/Makefile
index ea0f51f35..3a7454140 100644
--- a/apps/vsn/sdcard/Makefile
+++ b/apps/vsn/sdcard/Makefile
@@ -70,6 +70,7 @@ ROOTDEPPATH = --dep-path .
VPATH =
all: .built
+.PHONY: .built context depend clean distclean
$(AOBJS): %$(OBJEXT): %.S
$(call ASSEMBLE, $<, $@)
@@ -85,13 +86,20 @@ $(BIN): $(OBJS)
.built: $(BIN)
-.depend: Makefile $(SRCS)
- @$(MKDEP) $(ROOTDEPPATH) \
- $(CC) -- $(CFLAGS) -- $(SRCS) >Make.dep
+# Register application
+
+.context:
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
@touch $@
-# Register application
+context: .context
+
+# Create dependencies
+
+.depend: Makefile $(SRCS)
+ @$(MKDEP) $(ROOTDEPPATH) $(CC) -- $(CFLAGS) -- $(SRCS) >Make.dep
+ @touch $@
+
depend: .depend
clean:
@@ -99,6 +107,6 @@ clean:
$(call CLEAN)
distclean: clean
- @rm -f Make.dep .depend
+ @rm -f .context Make.dep .depend
-include Make.dep