aboutsummaryrefslogtreecommitdiff
path: root/examples/cxx/hello/libhello/makefile
blob: d3ebc0b4b31b82c1f4cf60d9c78ff7810c36b189 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# file      : examples/cxx/hello/libhello/makefile
# author    : Boris Kolpackov <boris@codesynthesis.com>
# copyright : Copyright (c) 2004-2011 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)