aboutsummaryrefslogtreecommitdiff
path: root/dist/examples/cxx/tree/wildcard/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'dist/examples/cxx/tree/wildcard/makefile')
-rw-r--r--dist/examples/cxx/tree/wildcard/makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/dist/examples/cxx/tree/wildcard/makefile b/dist/examples/cxx/tree/wildcard/makefile
new file mode 100644
index 0000000..148b800
--- /dev/null
+++ b/dist/examples/cxx/tree/wildcard/makefile
@@ -0,0 +1,32 @@
+root := ../../..
+
+include $(root)/build/cxx/rules.make
+include $(root)/build/xsd/tree-rules.make
+
+
+override XSDFLAGS += --generate-inline --generate-serialization \
+--generate-wildcard --root-element message
+
+
+# Build.
+#
+driver: driver.o email.o
+
+email.o: email.cxx email.hxx email.ixx
+driver.o: driver.cxx email.hxx email.ixx
+
+email.cxx email.hxx email.ixx: email.xsd
+
+
+# Test
+#
+.PHONY: test
+test: driver email.xml
+ ./driver email.xml
+
+
+# Clean.
+#
+.PHONY: clean
+clean:
+ rm -f email.o email.?xx driver.o driver