summaryrefslogtreecommitdiff
path: root/apps/vsn/hello/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'apps/vsn/hello/Makefile')
-rw-r--r--apps/vsn/hello/Makefile18
1 files changed, 13 insertions, 5 deletions
diff --git a/apps/vsn/hello/Makefile b/apps/vsn/hello/Makefile
index 45f60e9bd..23aba200c 100644
--- a/apps/vsn/hello/Makefile
+++ b/apps/vsn/hello/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