summaryrefslogtreecommitdiff
path: root/xsd/dist/examples/cxx/parser/polymorphism/makefile
blob: 935661dfb42f0c84a920a3ec47977cf922dd93ed (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/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 supermen.xml
	./driver supermen.xml


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