diff options
Diffstat (limited to 'examples/cxx/hello/libhello/makefile')
-rw-r--r-- | examples/cxx/hello/libhello/makefile | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/examples/cxx/hello/libhello/makefile b/examples/cxx/hello/libhello/makefile new file mode 100644 index 0000000..ed5ceff --- /dev/null +++ b/examples/cxx/hello/libhello/makefile @@ -0,0 +1,39 @@ +# file : examples/cxx/hello/libhello/makefile +# author : Boris Kolpackov <boris@codesynthesis.com> +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +include $(dir $(lastword $(MAKEFILE_LIST)))build/bootstrap.make + +default := $(out_base)/ +install := $(out_base)/.install +clean := $(out_base)/.clean +test := $(out_base)/.test + +.PHONY: $(default) $(install) $(test) $(clean) + +$(default): $(out_base)/libhello/hello.l $(out_base)/test/driver + +$(install): $(out_base)/libhello/.install + +$(clean): $(out_base)/libhello/.clean $(out_base)/test/.clean + +$(test): $(out_base)/test/.test + + +# Aliases. +# +ifdef %interactive% + +.PHONY: install test clean + +install: $(install) +clean: $(clean) +test: $(test) + +endif + +# Import build rules. +# +$(call import,$(src_base)/libhello/makefile) +$(call import,$(src_base)/test/makefile) |