diff options
Diffstat (limited to 'xsd/dist/examples/cxx/tree/polymorphism/makefile')
-rw-r--r-- | xsd/dist/examples/cxx/tree/polymorphism/makefile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/xsd/dist/examples/cxx/tree/polymorphism/makefile b/xsd/dist/examples/cxx/tree/polymorphism/makefile new file mode 100644 index 0000000..282266e --- /dev/null +++ b/xsd/dist/examples/cxx/tree/polymorphism/makefile @@ -0,0 +1,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 |