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