summaryrefslogtreecommitdiff
path: root/dist/examples/cxx/tree/performance/makefile
blob: 80bf4be4d05e0586d36c4bd5d16b5942f3a9d195 (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
root := ../../..

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


override XSDFLAGS += --generate-inline --generate-serialization


# Build.
#
driver: driver.o parsing.o serialization.o test.o time.o

driver.o: driver.cxx
test.o: test.cxx test.hxx test.ixx
parsing.o: parsing.cxx test.hxx test.ixx time.hxx
serialization.o: serialization.cxx test.hxx test.ixx time.hxx
time.o: time.cxx time.hxx

test.cxx test.hxx test.ixx: test.xsd


# Test
#
.PHONY: test
test: driver test-50k.xml
	./driver test-50k.xml


# Clean.
#
.PHONY: clean
clean:
	rm -f test.o test.?xx driver.o parsing.o serialization.o time.o driver