diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2009-09-27 19:18:32 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2009-09-27 19:18:32 +0200 |
commit | cede34ad1ac6730f5f2c88b4dd655f90589ae803 (patch) | |
tree | 37a35f45833fc4ffb71f643c07d8828b9b329e01 /examples/makefile | |
parent | c2b7e8a5a7bc98bcf5e03b32eefaa664442c26fe (diff) |
Add a hello world example
Diffstat (limited to 'examples/makefile')
-rw-r--r-- | examples/makefile | 18 |
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)) |