summaryrefslogtreecommitdiff
path: root/dist/examples/cxx/tree/streaming/makefile
blob: 40d2dd633d44bbab9f754b59508702814f80c96a (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
root := ../../..

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


override XSDFLAGS += --generate-serialization --suppress-parsing --root-element-all


# Build.
#
driver: driver.o records.o

records.o: records.cxx records.hxx 
driver.o: driver.cxx records.hxx

records.cxx records.hxx: records.xsd


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


# Clean.
#
.PHONY: clean
clean:
	rm -f records.o records.?xx driver.o driver out.xml