aboutsummaryrefslogtreecommitdiff
path: root/dist/examples/build/xsd/parser-rules.make
diff options
context:
space:
mode:
Diffstat (limited to 'dist/examples/build/xsd/parser-rules.make')
-rw-r--r--dist/examples/build/xsd/parser-rules.make23
1 files changed, 23 insertions, 0 deletions
diff --git a/dist/examples/build/xsd/parser-rules.make b/dist/examples/build/xsd/parser-rules.make
new file mode 100644
index 0000000..dd5f9aa
--- /dev/null
+++ b/dist/examples/build/xsd/parser-rules.make
@@ -0,0 +1,23 @@
+# file : examples/build/xsd/parser-rules.make
+# author : Boris Kolpackov <boris@codesynthesis.com>
+# copyright : Copyright (c) 2006 Code Synthesis Tools CC
+# license : GNU GPL v2 + exceptions; see accompanying LICENSE file
+
+include $(root)/build/xsd/common.make
+
+XML_PARSER := xerces
+
+ifeq ($(XML_PARSER),xerces)
+override LIBS := -lxerces-c $(LIBS)
+else
+override LIBS := -lexpat $(LIBS)
+endif
+
+override XSDFLAGS += --xml-parser $(XML_PARSER)
+
+# Rules.
+#
+.PRECIOUS: %-pskel.hxx %-pskel.ixx %-pskel.cxx
+
+%-pskel.hxx %-pskel.ixx %-pskel.cxx: %.xsd
+ $(XSD) cxx-parser $(XSDFLAGS) $<