aboutsummaryrefslogtreecommitdiff
path: root/dist/examples/cxx/parser/hello/nmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'dist/examples/cxx/parser/hello/nmakefile')
-rw-r--r--dist/examples/cxx/parser/hello/nmakefile47
1 files changed, 47 insertions, 0 deletions
diff --git a/dist/examples/cxx/parser/hello/nmakefile b/dist/examples/cxx/parser/hello/nmakefile
new file mode 100644
index 0000000..e8b6ccf
--- /dev/null
+++ b/dist/examples/cxx/parser/hello/nmakefile
@@ -0,0 +1,47 @@
+root = ..\..\..\..
+
+!include $(root)\build\cxx\rules.nmake
+
+# Build.
+#
+EXTRA_CPPFLAGS = /I$(root)\libxsde
+
+!if "$(XSDE_LONGLONG)" == "n"
+EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --no-long-long
+!endif
+
+!if "$(XSDE_PARSER_VALIDATION)" == "n"
+EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --suppress-validation
+!endif
+
+!if "$(XSDE_REUSE_STYLE)" == "mixin"
+EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --reuse-style-mixin
+!endif
+
+!if "$(XSDE_REUSE_STYLE)" == "none"
+EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --reuse-style-none
+!endif
+
+!if "$(XSDE_POLYMORPHIC)" == "y"
+EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --runtime-polymorphic
+!endif
+
+driver.exe: driver.obj hello-pskel.obj $(root)\libxsde\xsde\xsde.lib
+
+driver.obj: driver.cxx hello-pskel.hxx
+hello-pskel.obj: hello-pskel.cxx hello-pskel.hxx
+
+hello-pskel.cxx hello-pskel.hxx: hello.xsd
+ $(root)\bin\xsde.exe cxx-parser $(XSDFLAGS) $(EXTRA_XSDFLAGS) hello.xsd
+
+# Test.
+#
+test: driver.exe hello.xml
+ .\driver.exe hello.xml
+
+
+# Clean.
+#
+clean:
+ -del hello-pskel.?xx hello-pskel.obj driver.obj driver.exe
+