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