aboutsummaryrefslogtreecommitdiff
path: root/dist/examples/cxx/tree/multiroot/makefile
blob: d94da7f4cd22f204ba87d291762dedb655ee9635 (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
root := ../../..

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

override XSDFLAGS += --root-element-all


# Build.
#
driver: driver.o dom-parse.o protocol.o

protocol.o: protocol.cxx protocol.hxx
dom-parse.o: dom-parse.cxx dom-parse.hxx
driver.o: driver.cxx dom-parse.hxx protocol.hxx

protocol.cxx protocol.hxx: protocol.xsd


# Test
#
.PHONY: test
test: driver balance.xml withdraw.xml deposit.xml
	./driver balance.xml
	./driver withdraw.xml
	./driver deposit.xml


# Clean.
#
.PHONY: clean
clean:
	rm -f protocol.o protocol.?xx dom-parse.o driver.o driver