summaryrefslogtreecommitdiff
path: root/dist/examples/cxx/tree/mixed/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'dist/examples/cxx/tree/mixed/makefile')
-rw-r--r--dist/examples/cxx/tree/mixed/makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/dist/examples/cxx/tree/mixed/makefile b/dist/examples/cxx/tree/mixed/makefile
new file mode 100644
index 0000000..594821c
--- /dev/null
+++ b/dist/examples/cxx/tree/mixed/makefile
@@ -0,0 +1,28 @@
+root := ../../..
+
+include $(root)/build/cxx/rules.make
+include $(root)/build/xsd/tree-rules.make
+
+
+# Build.
+#
+driver: driver.o text.o
+
+text.o: text.cxx text.hxx
+driver.o: driver.cxx text.hxx
+
+text.cxx text.hxx: text.xsd
+
+
+# Test.
+#
+.PHONY: test
+test: driver text.xml
+ ./driver text.xml
+
+
+# Clean.
+#
+.PHONY: clean
+clean:
+ rm -f text.o text.?xx driver.o driver