From cede34ad1ac6730f5f2c88b4dd655f90589ae803 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 27 Sep 2009 19:18:32 +0200 Subject: Add a hello world example --- examples/makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 examples/makefile (limited to 'examples/makefile') 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 +# 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)) -- cgit v1.1