aboutsummaryrefslogtreecommitdiff
path: root/dist/examples/cxx/serializer
diff options
context:
space:
mode:
Diffstat (limited to 'dist/examples/cxx/serializer')
-rw-r--r--dist/examples/cxx/serializer/hello/makefile50
-rw-r--r--dist/examples/cxx/serializer/hello/nmakefile47
-rw-r--r--dist/examples/cxx/serializer/library/makefile56
-rw-r--r--dist/examples/cxx/serializer/library/nmakefile53
-rw-r--r--dist/examples/cxx/serializer/makefile49
-rw-r--r--dist/examples/cxx/serializer/minimal/makefile60
-rw-r--r--dist/examples/cxx/serializer/minimal/nmakefile55
-rw-r--r--dist/examples/cxx/serializer/nmakefile44
-rw-r--r--dist/examples/cxx/serializer/polymorphism/makefile52
-rw-r--r--dist/examples/cxx/serializer/polymorphism/nmakefile49
-rw-r--r--dist/examples/cxx/serializer/polyroot/makefile52
-rw-r--r--dist/examples/cxx/serializer/polyroot/nmakefile49
-rw-r--r--dist/examples/cxx/serializer/wildcard/makefile45
-rw-r--r--dist/examples/cxx/serializer/wildcard/nmakefile42
14 files changed, 703 insertions, 0 deletions
diff --git a/dist/examples/cxx/serializer/hello/makefile b/dist/examples/cxx/serializer/hello/makefile
new file mode 100644
index 0000000..fb26bde
--- /dev/null
+++ b/dist/examples/cxx/serializer/hello/makefile
@@ -0,0 +1,50 @@
+root := ../../../..
+
+include $(root)/build/cxx/rules.make
+
+# Build.
+#
+EXTRA_CPPFLAGS := -I$(root)/libxsde
+
+ifeq ($(XSDE_LONGLONG),n)
+EXTRA_XSDFLAGS += --no-long-long
+endif
+
+ifeq ($(XSDE_SERIALIZER_VALIDATION),n)
+EXTRA_XSDFLAGS += --suppress-validation
+endif
+
+ifeq ($(XSDE_REUSE_STYLE),mixin)
+EXTRA_XSDFLAGS += --reuse-style-mixin
+endif
+
+ifeq ($(XSDE_REUSE_STYLE),none)
+EXTRA_XSDFLAGS += --reuse-style-none
+endif
+
+ifeq ($(XSDE_POLYMORPHIC),y)
+EXTRA_XSDFLAGS += --runtime-polymorphic
+endif
+
+driver: driver.o hello-sskel.o $(root)/libxsde/xsde/libxsde.a
+
+driver.o: driver.cxx hello-sskel.hxx
+hello-sskel.o: hello-sskel.cxx hello-sskel.hxx
+
+.PRECIOUS: %-sskel.hxx %-sskel.cxx
+%-sskel.hxx %-sskel.cxx: %.xsd
+ $(root)/bin/xsde cxx-serializer $(XSDFLAGS) $(EXTRA_XSDFLAGS) $<
+
+# Test.
+#
+.PHONY: test
+test: driver
+ ./driver
+
+
+# Clean.
+#
+.PHONY: clean
+clean:
+ rm -f hello-sskel.?xx hello-sskel.o driver.o driver
+
diff --git a/dist/examples/cxx/serializer/hello/nmakefile b/dist/examples/cxx/serializer/hello/nmakefile
new file mode 100644
index 0000000..f6b83ce
--- /dev/null
+++ b/dist/examples/cxx/serializer/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_SERIALIZER_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-sskel.obj $(root)\libxsde\xsde\xsde.lib
+
+driver.obj: driver.cxx hello-sskel.hxx
+hello-sskel.obj: hello-sskel.cxx hello-sskel.hxx
+
+hello-sskel.cxx hello-sskel.hxx: hello.xsd
+ $(root)\bin\xsde.exe cxx-serializer $(XSDFLAGS) $(EXTRA_XSDFLAGS) hello.xsd
+
+# Test.
+#
+test: driver.exe
+ .\driver.exe
+
+
+# Clean.
+#
+clean:
+ -del hello-sskel.?xx hello-sskel.obj driver.obj driver.exe
+
diff --git a/dist/examples/cxx/serializer/library/makefile b/dist/examples/cxx/serializer/library/makefile
new file mode 100644
index 0000000..58f9dcd
--- /dev/null
+++ b/dist/examples/cxx/serializer/library/makefile
@@ -0,0 +1,56 @@
+root := ../../../..
+
+include $(root)/build/cxx/rules.make
+
+# Build.
+#
+EXTRA_CPPFLAGS += -I$(root)/libxsde
+
+ifeq ($(XSDE_LONGLONG),n)
+EXTRA_XSDFLAGS += --no-long-long
+endif
+
+ifeq ($(XSDE_SERIALIZER_VALIDATION),n)
+EXTRA_XSDFLAGS += --suppress-validation
+endif
+
+ifeq ($(XSDE_REUSE_STYLE),mixin)
+EXTRA_XSDFLAGS += --reuse-style-mixin
+endif
+
+ifeq ($(XSDE_POLYMORPHIC),y)
+EXTRA_XSDFLAGS += --runtime-polymorphic
+endif
+
+ifeq ($(XSDE_REUSE_STYLE),mixin)
+impl := library-simpl-mixin
+else
+impl := library-simpl-tiein
+endif
+
+driver: driver.o library-sskel.o $(impl).o $(root)/libxsde/xsde/libxsde.a
+
+driver.o: driver.cxx $(impl).hxx library-sskel.hxx library.hxx
+$(impl).o: $(impl).cxx $(impl).hxx library-sskel.hxx library.hxx
+library-sskel.o: library-sskel.cxx library-sskel.hxx library.hxx
+
+.PRECIOUS: %-sskel.hxx %-sskel.cxx
+
+%-sskel.hxx %-sskel.cxx: %.xsd %.map
+ $(root)/bin/xsde cxx-serializer $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
+--type-map $*.map $<
+
+
+# Test.
+#
+.PHONY: test
+test: driver
+ ./driver
+
+
+# Clean.
+#
+.PHONY: clean
+clean:
+ rm -f library-sskel.?xx $(impl).o library-sskel.o driver.o driver
+
diff --git a/dist/examples/cxx/serializer/library/nmakefile b/dist/examples/cxx/serializer/library/nmakefile
new file mode 100644
index 0000000..406374a
--- /dev/null
+++ b/dist/examples/cxx/serializer/library/nmakefile
@@ -0,0 +1,53 @@
+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_REUSE_STYLE)" == "mixin"
+EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --reuse-style-mixin
+!endif
+
+!if "$(XSDE_POLYMORPHIC)" == "y"
+EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --runtime-polymorphic
+!endif
+
+!if "$(XSDE_REUSE_STYLE)" == "mixin"
+impl = library-simpl-mixin
+!else
+impl = library-simpl-tiein
+!endif
+
+driver.exe: driver.obj library-sskel.obj $(impl).obj $(root)\libxsde\xsde\xsde.lib
+
+driver.obj: driver.cxx $(impl).hxx library-sskel.hxx library.hxx
+$(impl).obj: $(impl).cxx $(impl).hxx library-sskel.hxx library.hxx
+library-sskel.obj: library-sskel.cxx library-sskel.hxx library.hxx
+
+
+library-sskel.hxx library-sskel.cxx: library.xsd library.map
+ $(root)\bin\xsde.exe cxx-serializer $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
+--type-map library.map library.xsd
+
+
+# Test.
+#
+test: driver.exe
+ .\driver.exe
+
+
+# Clean.
+#
+clean:
+ -del library-sskel.?xx $(impl).obj library-sskel.obj driver.obj driver.exe
+
diff --git a/dist/examples/cxx/serializer/makefile b/dist/examples/cxx/serializer/makefile
new file mode 100644
index 0000000..7677036
--- /dev/null
+++ b/dist/examples/cxx/serializer/makefile
@@ -0,0 +1,49 @@
+root := ../../..
+
+include $(root)/build/config.make
+
+dirs :=
+
+ifeq ($(XSDE_STL),y)
+ifeq ($(XSDE_IOSTREAM),y)
+ifeq ($(XSDE_EXCEPTIONS),y)
+
+dirs += hello
+
+ifneq ($(XSDE_REUSE_STYLE),none)
+dirs += library
+
+ifeq ($(XSDE_POLYMORPHIC),y)
+dirs += polymorphism polyroot
+endif
+
+endif
+
+ifeq ($(XSDE_REUSE_STYLE),tiein)
+dirs += wildcard
+endif
+
+endif
+endif
+endif
+
+ifeq ($(XSDE_STL),n)
+ifeq ($(XSDE_EXCEPTIONS),n)
+ifneq ($(XSDE_REUSE_STYLE),none)
+dirs += minimal
+endif
+endif
+endif
+
+
+.PHONY: all $(dirs)
+
+all: $(dirs)
+
+$(dirs):
+ @$(MAKE) -C $@ $(MAKECMDGOALS)
+
+makefile: ;
+%.make:: ;
+
+%:: $(dirs) ;
diff --git a/dist/examples/cxx/serializer/minimal/makefile b/dist/examples/cxx/serializer/minimal/makefile
new file mode 100644
index 0000000..ff94a42
--- /dev/null
+++ b/dist/examples/cxx/serializer/minimal/makefile
@@ -0,0 +1,60 @@
+root := ../../../..
+
+include $(root)/build/cxx/rules.make
+
+# Build.
+#
+EXTRA_CPPFLAGS += -I$(root)/libxsde
+
+EXTRA_XSDFLAGS := --no-stl --no-exceptions
+
+ifeq ($(XSDE_IOSTREAM),n)
+EXTRA_XSDFLAGS += --no-iostream
+endif
+
+ifeq ($(XSDE_LONGLONG),n)
+EXTRA_XSDFLAGS += --no-long-long
+endif
+
+ifeq ($(XSDE_SERIALIZER_VALIDATION),n)
+EXTRA_XSDFLAGS += --suppress-validation
+endif
+
+ifeq ($(XSDE_REUSE_STYLE),mixin)
+EXTRA_XSDFLAGS += --reuse-style-mixin
+endif
+
+ifeq ($(XSDE_POLYMORPHIC),y)
+EXTRA_XSDFLAGS += --runtime-polymorphic
+endif
+
+ifeq ($(XSDE_REUSE_STYLE),mixin)
+impl := people-simpl-mixin
+else
+impl := people-simpl-tiein
+endif
+
+driver: driver.o people-sskel.o $(root)/libxsde/xsde/libxsde.a
+
+driver.o: driver.cxx $(impl).hxx people-sskel.hxx people.hxx
+people-sskel.o: people-sskel.cxx people-sskel.hxx people.hxx
+
+.PRECIOUS: %-sskel.hxx %-sskel.cxx
+
+%-sskel.hxx %-sskel.cxx: %.xsd %.map
+ $(root)/bin/xsde cxx-serializer $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
+--type-map $*.map $<
+
+# Test.
+#
+.PHONY: test
+test: driver
+ ./driver
+
+
+# Clean.
+#
+.PHONY: clean
+clean:
+ rm -f people-sskel.?xx people-sskel.o driver.o driver
+
diff --git a/dist/examples/cxx/serializer/minimal/nmakefile b/dist/examples/cxx/serializer/minimal/nmakefile
new file mode 100644
index 0000000..d85fade
--- /dev/null
+++ b/dist/examples/cxx/serializer/minimal/nmakefile
@@ -0,0 +1,55 @@
+root = ..\..\..\..
+
+!include $(root)\build\cxx\rules.nmake
+
+# Build.
+#
+EXTRA_CPPFLAGS = /I$(root)\libxsde
+
+EXTRA_XSDFLAGS = --no-stl --no-exceptions
+
+!if "$(XSDE_IOSTREAM)" == "n"
+EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --no-iostream
+!endif
+
+!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_REUSE_STYLE)" == "mixin"
+EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --reuse-style-mixin
+!endif
+
+!if "$(XSDE_POLYMORPHIC)" == "y"
+EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --runtime-polymorphic
+!endif
+
+!if "$(XSDE_REUSE_STYLE)" == "mixin"
+impl = people-simpl-mixin
+!else
+impl = people-simpl-tiein
+!endif
+
+driver.exe: driver.obj people-sskel.obj $(root)\libxsde\xsde\xsde.lib
+
+driver.obj: driver.cxx $(impl).hxx people-sskel.hxx people.hxx
+people-sskel.obj: people-sskel.cxx people-sskel.hxx people.hxx
+
+people-sskel.cxx people-sskel.hxx: people.xsd people.map
+ $(root)\bin\xsde.exe cxx-serializer $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
+--type-map people.map people.xsd
+
+# Test.
+#
+test: driver.exe
+ .\driver.exe
+
+
+# Clean.
+#
+clean:
+ -del people-sskel.?xx people-sskel.obj driver.obj driver.exe
diff --git a/dist/examples/cxx/serializer/nmakefile b/dist/examples/cxx/serializer/nmakefile
new file mode 100644
index 0000000..b207482
--- /dev/null
+++ b/dist/examples/cxx/serializer/nmakefile
@@ -0,0 +1,44 @@
+root = ..\..\..
+
+!include $(root)\build\config.nmake
+
+dirs =
+
+!if "$(XSDE_STL)" == "y"
+!if "$(XSDE_IOSTREAM)" == "y"
+!if "$(XSDE_EXCEPTIONS)" == "y"
+
+dirs = $(dirs) hello
+
+!if "$(XSDE_REUSE_STYLE)" != "none"
+dirs = $(dirs) library
+
+!if "$(XSDE_POLYMORPHIC)" == "y"
+dirs = $(dirs) polymorphism polyroot
+!endif
+
+!endif
+
+!if "$(XSDE_REUSE_STYLE)" == "tiein"
+dirs = $(dirs) wildcard
+
+!endif
+!endif
+!endif
+!endif
+
+!if "$(XSDE_STL)" == "n"
+!if "$(XSDE_EXCEPTIONS)" == "n"
+!if "$(XSDE_REUSE_STYLE)" != "none"
+dirs = $(dirs) minimal
+!endif
+!endif
+!endif
+
+all:
+ @for %i in ( $(dirs) ) do \
+@cmd /c "cd %i & $(MAKE) /nologo /f nmakefile"
+
+test clean:
+ @for %i in ( $(dirs) ) do \
+@cmd /c "cd %i & $(MAKE) /nologo /f nmakefile $@"
diff --git a/dist/examples/cxx/serializer/polymorphism/makefile b/dist/examples/cxx/serializer/polymorphism/makefile
new file mode 100644
index 0000000..eab3e3e
--- /dev/null
+++ b/dist/examples/cxx/serializer/polymorphism/makefile
@@ -0,0 +1,52 @@
+root := ../../../..
+
+include $(root)/build/cxx/rules.make
+
+# Build.
+#
+EXTRA_CPPFLAGS += -I$(root)/libxsde
+
+ifeq ($(XSDE_LONGLONG),n)
+EXTRA_XSDFLAGS += --no-long-long
+endif
+
+ifeq ($(XSDE_SERIALIZER_VALIDATION),n)
+EXTRA_XSDFLAGS += --suppress-validation
+endif
+
+ifeq ($(XSDE_REUSE_STYLE),mixin)
+EXTRA_XSDFLAGS += --reuse-style-mixin
+endif
+
+ifeq ($(XSDE_REUSE_STYLE),mixin)
+impl := supermen-simpl-mixin
+else
+impl := supermen-simpl-tiein
+endif
+
+driver: driver.o supermen-sskel.o $(impl).o $(root)/libxsde/xsde/libxsde.a
+
+driver.o: driver.cxx $(impl).hxx supermen-sskel.hxx supermen.hxx
+$(impl).o: $(impl).cxx $(impl).hxx supermen-sskel.hxx supermen.hxx
+supermen-sskel.o: supermen-sskel.cxx supermen-sskel.hxx supermen.hxx
+
+.PRECIOUS: %-sskel.hxx %-sskel.cxx
+
+%-sskel.hxx %-sskel.cxx: %.xsd %.map
+ $(root)/bin/xsde cxx-serializer $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
+--generate-polymorphic --type-map $*.map $<
+
+
+# Test.
+#
+.PHONY: test
+test: driver
+ ./driver
+
+
+# Clean.
+#
+.PHONY: clean
+clean:
+ rm -f supermen-sskel.?xx $(impl).o supermen-sskel.o driver.o driver
+
diff --git a/dist/examples/cxx/serializer/polymorphism/nmakefile b/dist/examples/cxx/serializer/polymorphism/nmakefile
new file mode 100644
index 0000000..8bb5d26
--- /dev/null
+++ b/dist/examples/cxx/serializer/polymorphism/nmakefile
@@ -0,0 +1,49 @@
+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_REUSE_STYLE)" == "mixin"
+EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --reuse-style-mixin
+!endif
+
+!if "$(XSDE_REUSE_STYLE)" == "mixin"
+impl = supermen-simpl-mixin
+!else
+impl = supermen-simpl-tiein
+!endif
+
+driver.exe: driver.obj supermen-sskel.obj $(impl).obj $(root)\libxsde\xsde\xsde.lib
+
+driver.obj: driver.cxx $(impl).hxx supermen-sskel.hxx supermen.hxx
+$(impl).obj: $(impl).cxx $(impl).hxx supermen-sskel.hxx supermen.hxx
+supermen-sskel.obj: supermen-sskel.cxx supermen-sskel.hxx supermen.hxx
+
+
+supermen-sskel.hxx supermen-sskel.cxx: supermen.xsd supermen.map
+ $(root)\bin\xsde.exe cxx-serializer $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
+--generate-polymorphic --type-map supermen.map supermen.xsd
+
+
+# Test.
+#
+test: driver.exe
+ .\driver.exe
+
+
+# Clean.
+#
+clean:
+ -del supermen-sskel.?xx $(impl).obj supermen-sskel.obj driver.obj driver.exe
+
diff --git a/dist/examples/cxx/serializer/polyroot/makefile b/dist/examples/cxx/serializer/polyroot/makefile
new file mode 100644
index 0000000..eab3e3e
--- /dev/null
+++ b/dist/examples/cxx/serializer/polyroot/makefile
@@ -0,0 +1,52 @@
+root := ../../../..
+
+include $(root)/build/cxx/rules.make
+
+# Build.
+#
+EXTRA_CPPFLAGS += -I$(root)/libxsde
+
+ifeq ($(XSDE_LONGLONG),n)
+EXTRA_XSDFLAGS += --no-long-long
+endif
+
+ifeq ($(XSDE_SERIALIZER_VALIDATION),n)
+EXTRA_XSDFLAGS += --suppress-validation
+endif
+
+ifeq ($(XSDE_REUSE_STYLE),mixin)
+EXTRA_XSDFLAGS += --reuse-style-mixin
+endif
+
+ifeq ($(XSDE_REUSE_STYLE),mixin)
+impl := supermen-simpl-mixin
+else
+impl := supermen-simpl-tiein
+endif
+
+driver: driver.o supermen-sskel.o $(impl).o $(root)/libxsde/xsde/libxsde.a
+
+driver.o: driver.cxx $(impl).hxx supermen-sskel.hxx supermen.hxx
+$(impl).o: $(impl).cxx $(impl).hxx supermen-sskel.hxx supermen.hxx
+supermen-sskel.o: supermen-sskel.cxx supermen-sskel.hxx supermen.hxx
+
+.PRECIOUS: %-sskel.hxx %-sskel.cxx
+
+%-sskel.hxx %-sskel.cxx: %.xsd %.map
+ $(root)/bin/xsde cxx-serializer $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
+--generate-polymorphic --type-map $*.map $<
+
+
+# Test.
+#
+.PHONY: test
+test: driver
+ ./driver
+
+
+# Clean.
+#
+.PHONY: clean
+clean:
+ rm -f supermen-sskel.?xx $(impl).o supermen-sskel.o driver.o driver
+
diff --git a/dist/examples/cxx/serializer/polyroot/nmakefile b/dist/examples/cxx/serializer/polyroot/nmakefile
new file mode 100644
index 0000000..8bb5d26
--- /dev/null
+++ b/dist/examples/cxx/serializer/polyroot/nmakefile
@@ -0,0 +1,49 @@
+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_REUSE_STYLE)" == "mixin"
+EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --reuse-style-mixin
+!endif
+
+!if "$(XSDE_REUSE_STYLE)" == "mixin"
+impl = supermen-simpl-mixin
+!else
+impl = supermen-simpl-tiein
+!endif
+
+driver.exe: driver.obj supermen-sskel.obj $(impl).obj $(root)\libxsde\xsde\xsde.lib
+
+driver.obj: driver.cxx $(impl).hxx supermen-sskel.hxx supermen.hxx
+$(impl).obj: $(impl).cxx $(impl).hxx supermen-sskel.hxx supermen.hxx
+supermen-sskel.obj: supermen-sskel.cxx supermen-sskel.hxx supermen.hxx
+
+
+supermen-sskel.hxx supermen-sskel.cxx: supermen.xsd supermen.map
+ $(root)\bin\xsde.exe cxx-serializer $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
+--generate-polymorphic --type-map supermen.map supermen.xsd
+
+
+# Test.
+#
+test: driver.exe
+ .\driver.exe
+
+
+# Clean.
+#
+clean:
+ -del supermen-sskel.?xx $(impl).obj supermen-sskel.obj driver.obj driver.exe
+
diff --git a/dist/examples/cxx/serializer/wildcard/makefile b/dist/examples/cxx/serializer/wildcard/makefile
new file mode 100644
index 0000000..96a73e8
--- /dev/null
+++ b/dist/examples/cxx/serializer/wildcard/makefile
@@ -0,0 +1,45 @@
+root := ../../../..
+
+include $(root)/build/cxx/rules.make
+
+# Build.
+#
+EXTRA_CPPFLAGS += -I$(root)/libxsde
+
+ifeq ($(XSDE_LONGLONG),n)
+EXTRA_XSDFLAGS += --no-long-long
+endif
+
+ifeq ($(XSDE_SERIALIZER_VALIDATION),n)
+EXTRA_XSDFLAGS += --suppress-validation
+endif
+
+ifeq ($(XSDE_POLYMORPHIC),y)
+EXTRA_XSDFLAGS += --runtime-polymorphic
+endif
+
+driver: driver.o email-sskel.o $(root)/libxsde/xsde/libxsde.a
+
+driver.o: driver.cxx email-sskel.hxx email.hxx
+email-sskel.o: email-sskel.cxx email-sskel.hxx email.hxx
+
+.PRECIOUS: %-sskel.hxx %-sskel.cxx
+
+%-sskel.hxx %-sskel.cxx: %.xsd %.map
+ $(root)/bin/xsde cxx-serializer $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
+--type-map $*.map $<
+
+
+# Test.
+#
+.PHONY: test
+test: driver
+ ./driver
+
+
+# Clean.
+#
+.PHONY: clean
+clean:
+ rm -f email-sskel.?xx email-sskel.o driver.o driver
+
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
+