blob: 1dc7c0ba9bc0dc0698565e0815cd78eaa3ea1c8e (
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
|
# file : examples/cxx/hello/libhello/makefile
# copyright : Copyright (c) 2004-2012 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)/hello/hello.l $(out_base)/test/driver
$(install): $(out_base)/hello/.install
$(clean): $(out_base)/hello/.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)/hello/makefile)
$(call import,$(src_base)/test/makefile)
|