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

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

override XSDFLAGS += --generate-polymorphic --generate-serialization --root-element-last


# Build.
#
driver: driver.o supermen.o

supermen.o: supermen.cxx supermen.hxx
driver.o: driver.cxx supermen.hxx

supermen.cxx supermen.hxx: supermen.xsd


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


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