summaryrefslogtreecommitdiff
path: root/examples/makefile
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-09-27 19:18:32 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-09-27 19:18:32 +0200
commitcede34ad1ac6730f5f2c88b4dd655f90589ae803 (patch)
tree37a35f45833fc4ffb71f643c07d8828b9b329e01 /examples/makefile
parentc2b7e8a5a7bc98bcf5e03b32eefaa664442c26fe (diff)
Add a hello world example
Diffstat (limited to 'examples/makefile')
-rw-r--r--examples/makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/examples/makefile b/examples/makefile
new file mode 100644
index 0000000..31a72b7
--- /dev/null
+++ b/examples/makefile
@@ -0,0 +1,18 @@
+# file : examples/makefile
+# author : Boris Kolpackov <boris@codesynthesis.com>
+# copyright : Copyright (c) 2009 Code Synthesis Tools CC
+# license : MIT; see accompanying LICENSE file
+
+include $(dir $(lastword $(MAKEFILE_LIST)))../build/bootstrap.make
+
+examples := hello
+
+default := $(out_base)/
+clean := $(out_base)/.clean
+
+.PHONY: $(default) $(clean)
+
+$(default): $(addprefix $(out_base)/,$(addsuffix /,$(examples)))
+$(clean): $(addprefix $(out_base)/,$(addsuffix /.clean,$(examples)))
+
+$(foreach e,$(examples),$(call import,$(src_base)/$e/makefile))