summaryrefslogtreecommitdiff
path: root/dist/examples/cxx/tree/hello/makefile
blob: 78860497fe20b4dbca3215957164e24c6e94df44 (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
root := ../../..

include $(root)/build/cxx/rules.make
include $(root)/build/xsd/tree-rules.make


# Build.
#
driver: driver.o hello.o

hello.o: hello.cxx hello.hxx
driver.o: driver.cxx hello.hxx

hello.cxx hello.hxx: hello.xsd


# Test.
#
.PHONY: test
test: driver hello.xml
	./driver hello.xml


# Clean.
#
.PHONY: clean
clean:
	rm -f hello.o hello.?xx driver.o driver