summaryrefslogtreecommitdiff
path: root/xsd/dist/examples/cxx/parser/polyroot/makefile
blob: 487ad0866747f7d5d0e8075a581d91f07057581b (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/parser-rules.make

override XSDFLAGS += --generate-polymorphic

# Build
#
driver: driver.o supermen-pskel.o supermen-pimpl.o

driver.o: driver.cxx supermen-pimpl.hxx supermen-pskel.hxx
supermen-pimpl.o: supermen-pimpl.cxx supermen-pimpl.hxx supermen-pskel.hxx
supermen-pskel.o: supermen-pskel.cxx supermen-pskel.hxx

supermen-pskel.hxx supermen-pskel.cxx: supermen.xsd


# Test.
#
.PHONY: test
test: driver person.xml superman.xml batman.xml
	./driver person.xml
	./driver superman.xml
	./driver batman.xml

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