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