aboutsummaryrefslogtreecommitdiff
path: root/dist/examples/cxx/serializer/wildcard/nmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'dist/examples/cxx/serializer/wildcard/nmakefile')
-rw-r--r--dist/examples/cxx/serializer/wildcard/nmakefile42
1 files changed, 42 insertions, 0 deletions
diff --git a/dist/examples/cxx/serializer/wildcard/nmakefile b/dist/examples/cxx/serializer/wildcard/nmakefile
new file mode 100644
index 0000000..a84347e
--- /dev/null
+++ b/dist/examples/cxx/serializer/wildcard/nmakefile
@@ -0,0 +1,42 @@
+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_SERIALIZER_VALIDATION)" == "n"
+EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --suppress-validation
+!endif
+
+!if "$(XSDE_POLYMORPHIC)" == "y"
+EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --runtime-polymorphic
+!endif
+
+driver.exe: driver.obj email-sskel.obj $(root)\libxsde\xsde\xsde.lib
+
+driver.obj: driver.cxx email-sskel.hxx email.hxx
+email-sskel.obj: email-sskel.cxx email-sskel.hxx email.hxx
+
+
+email-sskel.hxx email-sskel.cxx: email.xsd email.map
+ $(root)\bin\xsde.exe cxx-serializer $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
+--type-map email.map email.xsd
+
+
+# Test.
+#
+test: driver.exe
+ .\driver.exe
+
+
+# Clean.
+#
+clean:
+ -del email-sskel.?xx email-sskel.obj driver.obj driver.exe
+