aboutsummaryrefslogtreecommitdiff
path: root/dist
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-03-02 12:14:54 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-03-02 12:14:54 +0200
commit6c63b913179127e09ed7d9da8920493ccceec6ce (patch)
tree95684b51b4ab60e6468a592a53e33c2cf00027ab /dist
parent3fd3cfc36784be43f545f2f0973e3dc58f475996 (diff)
Add make support for creating binary distributions
Two new make targets, dist and dist-win, were added that allow one to create a binary distribution from the current build. The dist target creates a UNIX distribution while dist-win -- Windows. The simplified build systems for the runtime library and examples that were kept separately are now part of the project (the dist/ subdirectory).
Diffstat (limited to 'dist')
-rw-r--r--dist/INSTALL144
-rw-r--r--dist/README25
-rw-r--r--dist/build/c/rules.make11
-rw-r--r--dist/build/c/rules.nmake13
-rw-r--r--dist/build/config.make30
-rw-r--r--dist/build/config.nmake10
-rw-r--r--dist/build/cxx/rules.make14
-rw-r--r--dist/build/cxx/rules.nmake16
-rw-r--r--dist/config/config.make135
-rw-r--r--dist/config/config.nmake135
-rw-r--r--dist/etc/evc-4.0/config.nmake138
-rw-r--r--dist/etc/iphone/config-device.make142
-rw-r--r--dist/etc/iphone/config-simulator.make142
-rw-r--r--dist/etc/lynxos/config-4.2.make141
-rw-r--r--dist/etc/qnx/config-6.3-gcc-2.95.make140
-rw-r--r--dist/etc/qnx/config-6.3-gcc-3.3.make140
-rw-r--r--dist/etc/qnx/config-6.4.make140
-rw-r--r--dist/etc/vc-8.0/config-max.nmake139
-rw-r--r--dist/etc/vc-8.0/config-min.nmake139
-rwxr-xr-xdist/etc/vc-8.0/vcvarssd.bat39
-rw-r--r--dist/etc/vc-9.0/config-max.nmake139
-rw-r--r--dist/etc/vc-9.0/config-min.nmake139
-rwxr-xr-xdist/etc/vc-9.0/vcvarssd.bat39
-rw-r--r--dist/etc/vxworks/config-5.5.1.make141
-rw-r--r--dist/etc/vxworks/config-max-6.4.make152
-rw-r--r--dist/etc/vxworks/config-min-6.4.make140
-rw-r--r--dist/examples/cxx/hybrid/compositors/makefile53
-rw-r--r--dist/examples/cxx/hybrid/compositors/nmakefile49
-rw-r--r--dist/examples/cxx/hybrid/filter/makefile57
-rw-r--r--dist/examples/cxx/hybrid/filter/nmakefile54
-rw-r--r--dist/examples/cxx/hybrid/hello/makefile49
-rw-r--r--dist/examples/cxx/hybrid/hello/nmakefile47
-rw-r--r--dist/examples/cxx/hybrid/library/makefile51
-rw-r--r--dist/examples/cxx/hybrid/library/nmakefile48
-rw-r--r--dist/examples/cxx/hybrid/makefile36
-rw-r--r--dist/examples/cxx/hybrid/minimal/makefile57
-rw-r--r--dist/examples/cxx/hybrid/minimal/nmakefile54
-rw-r--r--dist/examples/cxx/hybrid/multiroot/makefile51
-rw-r--r--dist/examples/cxx/hybrid/multiroot/nmakefile49
-rw-r--r--dist/examples/cxx/hybrid/nmakefile31
-rw-r--r--dist/examples/cxx/hybrid/streaming/makefile61
-rw-r--r--dist/examples/cxx/hybrid/streaming/nmakefile58
-rw-r--r--dist/examples/cxx/hybrid/wildcard/makefile59
-rw-r--r--dist/examples/cxx/hybrid/wildcard/nmakefile56
-rw-r--r--dist/examples/cxx/makefile11
-rw-r--r--dist/examples/cxx/nmakefile9
-rw-r--r--dist/examples/cxx/parser/generated/makefile69
-rw-r--r--dist/examples/cxx/parser/generated/nmakefile68
-rw-r--r--dist/examples/cxx/parser/hello/makefile50
-rw-r--r--dist/examples/cxx/parser/hello/nmakefile47
-rw-r--r--dist/examples/cxx/parser/library/makefile55
-rw-r--r--dist/examples/cxx/parser/library/nmakefile53
-rw-r--r--dist/examples/cxx/parser/makefile53
-rw-r--r--dist/examples/cxx/parser/minimal/makefile60
-rw-r--r--dist/examples/cxx/parser/minimal/nmakefile56
-rw-r--r--dist/examples/cxx/parser/mixed/makefile43
-rw-r--r--dist/examples/cxx/parser/mixed/nmakefile40
-rw-r--r--dist/examples/cxx/parser/multiroot/makefile58
-rw-r--r--dist/examples/cxx/parser/multiroot/nmakefile54
-rw-r--r--dist/examples/cxx/parser/nmakefile48
-rw-r--r--dist/examples/cxx/parser/polymorphism/makefile51
-rw-r--r--dist/examples/cxx/parser/polymorphism/nmakefile49
-rw-r--r--dist/examples/cxx/parser/polyroot/makefile53
-rw-r--r--dist/examples/cxx/parser/polyroot/nmakefile51
-rw-r--r--dist/examples/cxx/parser/wildcard/makefile42
-rw-r--r--dist/examples/cxx/parser/wildcard/nmakefile39
-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
-rw-r--r--dist/examples/makefile11
-rw-r--r--dist/examples/nmakefile9
-rw-r--r--dist/libxsde/makefile10
-rw-r--r--dist/libxsde/nmakefile9
-rw-r--r--dist/libxsde/xsde/makefile547
-rw-r--r--dist/libxsde/xsde/nmakefile559
-rw-r--r--dist/makefile12
-rw-r--r--dist/nmakefile9
88 files changed, 6431 insertions, 0 deletions
diff --git a/dist/INSTALL b/dist/INSTALL
new file mode 100644
index 0000000..f6fec6b
--- /dev/null
+++ b/dist/INSTALL
@@ -0,0 +1,144 @@
+This file contains instructions for building the XSD/e runtime
+library (libxsde) and examples. The XSD/e compiler itself was
+pre-built for your host development platform and can be found
+in the bin/ directory. The runtime library and examples can be
+built using either GNU make (normally on UNIX operating systems)
+or Microsoft nmake (on Windows). The following sections describe
+each of the two methods.
+
+
+GNU make
+--------
+
+This section provides general instructions for building the XSD/e
+runtime and examples with GNU make. For additional information on
+building with XCode 3.1 iPhone SDK see the corresponding notes at
+the end of this document.
+
+The first step in building the source code with GNU make is to
+configure the runtime library by editing the config/config.make
+file. There you can specify which toolchain should be used to
+compile the source code as well as which optional feature (such
+as STL, C++ exceptions, etc.) should be used. Follow the
+instructions in the comments in config/config.make and make the
+appropriate changes. The etc/ directory contains a number of
+sample configurations for various targets/toolchains.
+
+To start the compilation process simply execute make (or gmake)
+in the root directory. This will build the libxsde.a runtime
+library as well as the examples. If you do not want to build
+the examples, you can start the compilation process from the
+libxsde/ directory. Note that if you change any configuration
+parameters in the config/config.make file, then you need to
+completely clean the distribution before recompiling. For that
+run 'make clean' from the root directory.
+
+In order to start using XSD/e in your applications, you will
+need add the libxsde/ directory to your include search paths
+(-I) and link your executables with the libxsde/xsde/libxsde.a
+library.
+
+
+Microsoft nmake
+---------------
+
+This section provides general instructions for building the XSD/e
+runtime and examples with nmake. For additional information on
+eMbedded Visual C++ 4.0, Visual Studio 2005 with Smart Devices,
+and Visual Studio 2008 with Smart Devices support see the
+corresponding notes at the end of this document.
+
+The first step in building the source code with nmake is to
+configure the runtime library by editing the config\config.nmake
+file. There you can specify which toolchain should be used to
+compile the source code as well as which optional feature (such
+as STL, C++ exceptions, etc.) should be used. Follow the
+instructions in the comments in config\config.nmake and make the
+appropriate changes. The etc/ directory contains a number of
+sample configurations for various targets/toolchains.
+
+If you are using an IDE (e.g., Visual Studio or eMbedded Visual
+C++) to develop your applications, you can copy the compiler
+options (such as CPU and Platform preprocessor macros, etc.)
+from your project's C++ compiler settings.
+
+The next step is to start a new command prompt and execute
+the vcvars32.bat (or equivalent) file that is normally found
+in your development environment's installation directory.
+After executing vcvars32.bat, you can start the compilation
+process by executing
+
+nmake /f nmakefile
+
+from the XSD/e root directory. This will build the xsde.lib
+runtime library as well as the examples. If you do not want to
+build the examples, you can start the compilation process from
+the libxsde\ directory. Note that if you change any configuration
+parameters in the config\config.nmake file, then you need to
+completely clean the distribution before recompiling. For that
+run 'nmake /f nmakefile clean' from the root directory.
+
+In order to start using XSD/e in your applications, you will
+need add the libxsde\ directory to your include search paths
+and link your executables with the libxsde\xsde\xsde.lib
+library.
+
+
+Notes on XCode 3.1.x iPhone SDK
+-------------------------------
+
+You can find two sample configuration files for this development
+environment in the etc/iphone/ directory. The first configuration
+file is for the device and the other is for the simulator. You will
+need to copy one of these files to the config/ directory and rename
+it to config.make. If your iPhone SDK is installed in a location
+other than the default (/Developer) then you will need to adjust
+the paths at the beginning of the configuration file. You may also
+need to adjust the iPhone SDK version (e.g., 2.1 or 2.2 instead of
+2.0) as well as the C and C++ compiler executable names if you are
+using newer versions of XCode. Additionally, you may also want to
+check other configuration parameters (e.g., the use of iostream,
+STL, C++ exceptions, etc; they are all enabled by default).
+
+
+Notes on eMbedded Visual C++ 4.0
+--------------------------------
+
+You can find a sample configuration file for this development
+environment in the etc\evc-4.0\ directory.
+
+Instead of one vcvars32.bat file, eMbedded Visual C++ has a set
+of such files each for a particular platform and CPU. They can be
+found in the EVC\WCEnnn\BIN\ subdirectory in the eMbedded Visual
+C++ installation directory. For example, a file for Windows CE
+4.0 for ARMv4 CPU is EVC\WCE400\BIN\WCEARMV4.bat. You may want
+to review the installation paths in this file to make sure they
+reflect your setup. You can also study this file to find out the
+name of the C/C++ compiler for this CPU. In case of ARM, it is
+clarm.exe.
+
+
+Notes on Visual Studio 2005 with Smart Devices support
+------------------------------------------------------
+
+You can find sample configuration files for this development
+environment in the etc\vc-8.0\ directory.
+
+This version of Visual Studio does not provide vcvars32.bat or
+equivalent for Smart Devices development. Instead you can use
+the vcvarssd.bat file provided in the etc\vc-8.0\ directory.
+Modify it according to your setup as instructed by the comments
+found in this file.
+
+
+Notes on Visual Studio 2008 with Smart Devices support
+------------------------------------------------------
+
+You can find sample configuration files for this development
+environment in the etc\vc-9.0\ directory.
+
+This version of Visual Studio does not provide vcvars32.bat or
+equivalent for Smart Devices development. Instead you can use
+the vcvarssd.bat file provided in the etc\vc-9.0\ directory.
+Modify it according to your setup as instructed by the comments
+found in this file.
diff --git a/dist/README b/dist/README
new file mode 100644
index 0000000..fc9e0b3
--- /dev/null
+++ b/dist/README
@@ -0,0 +1,25 @@
+CodeSynthesis XSD/e is an open-source XML parser/serializer
+generator for mobile and embedded systems. It provides event-
+driven, stream oriented XML parsing, XML serialization, W3C
+XML Schema validation, and C++ data binding while maintaining
+a small footprint and portability. For more information about
+XSD/e visit:
+
+
+http://www.codesynthesis.com/products/xsde/
+
+
+This package contains a precompiled binary for the XSD/e compiler
+as well as the source code for the runtime library (libxsde) and
+examples. The INSTALL file contains instructions for compiling
+the runtime library and examples on various platforms.
+
+The NEWS file contains information on the user-visible changes
+from the previous release.
+
+See the LICENSE file for distribution conditions.
+
+See the documentation/ directory for documentation.
+
+Send questions, bug reports, or any other feedback to the
+xsde-users@codesynthesis.com mailing list.
diff --git a/dist/build/c/rules.make b/dist/build/c/rules.make
new file mode 100644
index 0000000..ab0474c
--- /dev/null
+++ b/dist/build/c/rules.make
@@ -0,0 +1,11 @@
+# file : build/c/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/config.make
+
+# Rules.
+#
+%.o: %.c
+ $(CC) $(CPPFLAGS) $(EXTRA_CPPFLAGS) $(CFLAGS) -c $< -o $@
diff --git a/dist/build/c/rules.nmake b/dist/build/c/rules.nmake
new file mode 100644
index 0000000..4c9f7be
--- /dev/null
+++ b/dist/build/c/rules.nmake
@@ -0,0 +1,13 @@
+# file : build/c/rules.nmake
+# 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\config.nmake
+
+# Rules.
+#
+.SUFFIXES: .c .obj
+
+.c.obj:
+ $(CC) $(CPPFLAGS) $(EXTRA_CPPFLAGS) $(CFLAGS) /c $< /Fo$@
diff --git a/dist/build/config.make b/dist/build/config.make
new file mode 100644
index 0000000..44f3c36
--- /dev/null
+++ b/dist/build/config.make
@@ -0,0 +1,30 @@
+# file : build/config.make
+# author : Boris Kolpackov <boris@codesynthesis.com>
+# copyright : Copyright (c) 2008 Code Synthesis Tools CC
+# license : GNU GPL v2 + exceptions; see accompanying LICENSE file
+
+#
+# DO NOT edit this file. Use config/config.make instead.
+#
+
+include $(root)/config/config.make
+
+# Strip user-specified parameters of leading/trailing whitespaces.
+#
+XSDE_PLATFORM := $(strip $(XSDE_PLATFORM))
+XSDE_ARCH_WIDTH := $(strip $(XSDE_ARCH_WIDTH))
+XSDE_BYTEORDER := $(strip $(XSDE_BYTEORDER))
+XSDE_STL := $(strip $(XSDE_STL))
+XSDE_IOSTREAM := $(strip $(XSDE_IOSTREAM))
+XSDE_EXCEPTIONS := $(strip $(XSDE_EXCEPTIONS))
+XSDE_LONGLONG := $(strip $(XSDE_LONGLONG))
+XSDE_SNPRINTF := $(strip $(XSDE_SNPRINTF))
+XSDE_PARSER_VALIDATION := $(strip $(XSDE_PARSER_VALIDATION))
+XSDE_SERIALIZER_VALIDATION := $(strip $(XSDE_SERIALIZER_VALIDATION))
+XSDE_REUSE_STYLE := $(strip $(XSDE_REUSE_STYLE))
+XSDE_POLYMORPHIC := $(strip $(XSDE_POLYMORPHIC))
+XSDE_PARSER_SMAP_BUCKETS := $(strip $(XSDE_PARSER_SMAP_BUCKETS))
+XSDE_PARSER_IMAP_BUCKETS := $(strip $(XSDE_PARSER_IMAP_BUCKETS))
+XSDE_SERIALIZER_SMAP_BUCKETS := $(strip $(XSDE_SERIALIZER_SMAP_BUCKETS))
+XSDE_SERIALIZER_SMAP_BUCKET_BUCKETS := $(strip $(XSDE_SERIALIZER_SMAP_BUCKET_BUCKETS))
+XSDE_SERIALIZER_IMAP_BUCKETS := $(strip $(XSDE_SERIALIZER_IMAP_BUCKETS))
diff --git a/dist/build/config.nmake b/dist/build/config.nmake
new file mode 100644
index 0000000..2483b28
--- /dev/null
+++ b/dist/build/config.nmake
@@ -0,0 +1,10 @@
+# file : build/config.make
+# author : Boris Kolpackov <boris@codesynthesis.com>
+# copyright : Copyright (c) 2008 Code Synthesis Tools CC
+# license : GNU GPL v2 + exceptions; see accompanying LICENSE file
+
+#
+# DO NOT edit this file. Use config\config.nmake instead.
+#
+
+!include $(root)\config\config.nmake
diff --git a/dist/build/cxx/rules.make b/dist/build/cxx/rules.make
new file mode 100644
index 0000000..73399bd
--- /dev/null
+++ b/dist/build/cxx/rules.make
@@ -0,0 +1,14 @@
+# file : build/cxx/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/config.make
+
+# Rules.
+#
+%.o: %.cxx
+ $(CXX) $(CPPFLAGS) $(EXTRA_CPPFLAGS) $(CXXFLAGS) -c $< -o $@
+
+%: %.o
+ $(LD) $(LDFLAGS) -o $@ $^ $(LIBS)
diff --git a/dist/build/cxx/rules.nmake b/dist/build/cxx/rules.nmake
new file mode 100644
index 0000000..964bbdc
--- /dev/null
+++ b/dist/build/cxx/rules.nmake
@@ -0,0 +1,16 @@
+# file : build/cxx/rules.nmake
+# 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\config.nmake
+
+# Rules.
+#
+.SUFFIXES: .cxx .exe .obj
+
+.cxx.obj:
+ $(CXX) $(CPPFLAGS) $(EXTRA_CPPFLAGS) $(CXXFLAGS) /c /TP $< /Fo$@
+
+.obj.exe:
+ $(LD) $(LDFLAGS) /OUT:$@ $** $(LIBS)
diff --git a/dist/config/config.make b/dist/config/config.make
new file mode 100644
index 0000000..b6c4212
--- /dev/null
+++ b/dist/config/config.make
@@ -0,0 +1,135 @@
+# Toolchain.
+#
+CC := gcc
+CFLAGS := -W -Wall -O3
+CPPFLAGS :=
+
+CXX := g++
+CXXFLAGS := -W -Wall -O3
+
+LD := $(CXX)
+LDFLAGS := $(CXXFLAGS)
+LIBS :=
+
+# Set RANLIB to empty if your system does not need ranlib.
+#
+AR := ar
+ARFLAGS := rc
+RANLIB := ranlib
+
+
+# Common XSD/e flags.
+#
+XSDFLAGS := --generate-inline
+
+
+# Platform. Valid values are:
+#
+# 'wince' - Windows CE
+# 'win32' - Windows 2000, XP, etc.
+# 'posix' - POSIX OS, including UNIX/Linux, VxWorks, etc.
+#
+XSDE_PLATFORM := posix
+
+
+# Platform architecture width in bits.
+#
+XSDE_ARCH_WIDTH := 32
+
+
+# Platform byte order. Valid values are 'b' for big-endian
+# and 'l' for little-endian.
+#
+XSDE_BYTEORDER := l
+
+
+# Set to 'n' if you don't have STL (std::string, etc.). Also don't
+# forget to use the --no-stl option when compiling your schemas.
+#
+XSDE_STL := y
+
+
+# Set to 'n' if you don't have iostream.
+#
+XSDE_IOSTREAM := y
+
+
+# Set to 'n' if you don't have C++ exceptions. Also don't forget to
+# use the --no-exceptions option when compiling your schemas.
+#
+XSDE_EXCEPTIONS := y
+
+
+# Set to 'n' if your platform doesn't have the "long long int" type or
+# the strtoull function. Also don't forget to use the --no-long-long
+# option when compiling your schemas.
+#
+XSDE_LONGLONG := y
+
+
+# Set to 'n' if your platform doesn't have the snprintf function.
+#
+XSDE_SNPRINTF := y
+
+
+# Set to 'n' if you don't want support for XML Schema validation in
+# C++/Parser. Also don't forget to use the --suppress-validation
+# option when compiling your schemas.
+#
+XSDE_PARSER_VALIDATION := y
+
+
+# Set to 'n' if you don't want support for XML Schema validation in
+# C++/Serializer. Also don't forget to use the --suppress-validation
+# option when compiling your schemas.
+#
+XSDE_SERIALIZER_VALIDATION := y
+
+
+# Base parser/serializer implementation reuse style. Valid values are:
+#
+# 'mixin' - virtual inheritance-based reuse (specify --reuse-style-mixin)
+# 'tiein' - delegation-based reuse (recommended)
+# 'none' - no reuse support (specify --reuse-style-none)
+#
+XSDE_REUSE_STYLE := tiein
+
+
+# Set to 'y' if you need to handle XML vocabularies that use XML Schema
+# polymorphism (xsi:type or substitution groups). Also don't forget to
+# use either --generate-polymorphic (generates polymorphism-aware code)
+# or --runtime-polymorphic (generates non-polymorphic code that uses the
+# runtime library configured with polymorphism support). Note that support
+# for XML Schema polymorphism requires runtime static initialization
+# support in the C++ compiler (that is, support for automatic calling
+# of constructors for static objects). Furthermore, if the mixin reuse
+# style is used (XSDE_REUSE_STYLE) then the generated code requires
+# support for dynamic_cast.
+#
+XSDE_POLYMORPHIC := n
+
+
+# When polymorphism support is enabled (XSDE_POLYMORPHIC), the following
+# parameters control the substitution and inheritance hashmaps bucket
+# allocation. Because the number of elements in these hashmaps depends
+# on the schemas being compiled and thus is fairly static, these hashmaps
+# do not perform automatic table resizing. To obtain good performance the
+# elements to buckets ratio should be between 0.7 and 0.9. The recommended
+# way to ensure this range is to add diagnostics code to your application
+# as shown in the documentation and examples. It is also a good idea to
+# use prime numbers for bucket counts: 53 97 193 389 769 1543 3079 6151
+# 12289 24593 49157 98317 196613 393241. Inheritance hashmaps are only
+# used when validation is enabled.
+#
+XSDE_PARSER_SMAP_BUCKETS := 53
+XSDE_PARSER_IMAP_BUCKETS := 97
+XSDE_SERIALIZER_SMAP_BUCKETS := 53
+XSDE_SERIALIZER_SMAP_BUCKET_BUCKETS := 53
+XSDE_SERIALIZER_IMAP_BUCKETS := 97
+
+
+# Options tuning depending on the features selected.
+#
+ifeq ($(XSDE_EXCEPTIONS),y)
+CFLAGS += -fexceptions
+endif
diff --git a/dist/config/config.nmake b/dist/config/config.nmake
new file mode 100644
index 0000000..6279c60
--- /dev/null
+++ b/dist/config/config.nmake
@@ -0,0 +1,135 @@
+# Toolchain.
+#
+CC = cl.exe
+CFLAGS = /nologo /W3
+CPPFLAGS = -D_CRT_SECURE_NO_DEPRECATE
+
+CXX = cl.exe
+CXXFLAGS = /nologo /W3
+
+LD = link.exe
+LDFLAGS = /nologo
+LIBS =
+
+# Set RANLIB to empty if your system does not need ranlib.
+#
+AR = lib.exe
+ARFLAGS = /nologo
+RANLIB =
+
+# Common XSD/e flags.
+#
+XSDFLAGS = --generate-inline
+
+
+# Platform. Valid values are:
+#
+# 'wince' - Windows CE
+# 'win32' - Windows 2000, XP, etc.
+# 'posix' - POSIX OS, including UNIX/Linux, VxWorks, etc.
+#
+XSDE_PLATFORM = win32
+
+
+# Platform architecture width in bits.
+#
+XSDE_ARCH_WIDTH = 32
+
+
+# Platform byte order. Valid values are 'b' for big-endian
+# and 'l' for little-endian.
+#
+XSDE_BYTEORDER = l
+
+
+# Set to 'n' if you don't have STL (std::string, etc.). Also don't
+# forget to use the --no-stl option when compiling your schemas.
+#
+XSDE_STL = y
+
+
+# Set to 'n' if you don't have iostream.
+#
+XSDE_IOSTREAM = y
+
+
+# Set to 'n' if you don't have C++ exceptions. Also don't forget to
+# use the --no-exceptions option when compiling your schemas.
+#
+XSDE_EXCEPTIONS = y
+
+
+# Set to 'n' if your platform doesn't have the "long long int" type or
+# the strtoull function. Also don't forget to use the --no-long-long
+# option when compiling your schemas.
+#
+XSDE_LONGLONG = n
+
+
+# Set to 'n' if your platform doesn't have the _snprintf function.
+#
+XSDE_SNPRINTF = y
+
+
+# Set to 'n' if you don't want support for XML Schema validation in
+# C++/Parser. Also don't forget to use the --suppress-validation
+# option when compiling your schemas.
+#
+XSDE_PARSER_VALIDATION = y
+
+
+# Set to 'n' if you don't want support for XML Schema validation in
+# C++/Serializer. Also don't forget to use the --suppress-validation
+# option when compiling your schemas.
+#
+XSDE_SERIALIZER_VALIDATION = y
+
+
+# Base parser/serializer implementation reuse style. Valid values are:
+#
+# 'mixin' - virtual inheritance-based reuse (specify --reuse-style-mixin)
+# 'tiein' - delegation-based reuse (recommended)
+# 'none' - no reuse support (specify --reuse-style-none)
+#
+XSDE_REUSE_STYLE = tiein
+
+
+# Set to 'y' if you need to handle XML vocabularies that use XML Schema
+# polymorphism (xsi:type or substitution groups). Also don't forget to
+# use either --generate-polymorphic (generates polymorphism-aware code)
+# or --runtime-polymorphic (generates non-polymorphic code that uses the
+# runtime library configured with polymorphism support). Note that support
+# for XML Schema polymorphism requires runtime static initialization
+# support in the C++ compiler (that is, support for automatic calling
+# of constructors for static objects). Furthermore, if the mixin reuse
+# style is used (XSDE_REUSE_STYLE) then the generated code requires
+# support for dynamic_cast.
+#
+XSDE_POLYMORPHIC = n
+
+
+# When polymorphism support is enabled (XSDE_POLYMORPHIC), the following
+# parameters control the substitution and inheritance hashmaps bucket
+# allocation. Because the number of elements in these hashmaps depends
+# on the schemas being compiled and thus is fairly static, these hashmaps
+# do not perform automatic table resizing. To obtain good performance the
+# elements to buckets ratio should be between 0.7 and 0.9. The recommended
+# way to ensure this range is to add diagnostics code to your application
+# as shown in the documentation and examples. It is also a good idea to
+# use prime numbers for bucket counts: 53 97 193 389 769 1543 3079 6151
+# 12289 24593 49157 98317 196613 393241. Inheritance hashmaps are only
+# used when validation is enabled.
+#
+XSDE_PARSER_SMAP_BUCKETS = 53
+XSDE_PARSER_IMAP_BUCKETS = 97
+XSDE_SERIALIZER_SMAP_BUCKETS = 53
+XSDE_SERIALIZER_SMAP_BUCKET_BUCKETS = 53
+XSDE_SERIALIZER_IMAP_BUCKETS = 97
+
+
+# Options tuning depending on the features selected.
+#
+!if "$(XSDE_EXCEPTIONS)" == "y"
+CFLAGS = $(CFLAGS) /EHs
+CXXFLAGS = $(CXXFLAGS) /EHs
+!endif
diff --git a/dist/etc/evc-4.0/config.nmake b/dist/etc/evc-4.0/config.nmake
new file mode 100644
index 0000000..78d5840
--- /dev/null
+++ b/dist/etc/evc-4.0/config.nmake
@@ -0,0 +1,138 @@
+# Sample configuration file for Windows CE 4.0 on ARMv4 using eMbedded
+# Visual C++ 4.0. While this configuration disables STL and C++ exceptions,
+# those are supported on WinCE and can be enabled.
+#
+
+# Toolchain.
+#
+CC = clarm.exe
+CFLAGS = /nologo /W3 /O1
+CPPFLAGS = /DARM /D_ARM /D_ARMV4 /DUNDER_CE=0x400 /D_WIN32_WCE=0x400
+
+CXX = clarm.exe
+CXXFLAGS = /nologo /W3 /O1
+
+LD = link.exe
+LDFLAGS = /nologo /subsystem:windowsce,4.00 /entry:main /machine:ARM
+LIBS =
+
+AR = lib.exe
+ARFLAGS = /nologo
+
+
+# Common XSD/e flags.
+#
+XSDFLAGS = --generate-inline
+
+
+# Platform. Valid values are:
+#
+# 'wince' - Windows CE
+# 'win32' - Windows 2000, XP, etc.
+# 'posix' - POSIX OS, including UNIX/Linux, VxWorks, etc.
+#
+XSDE_PLATFORM = wince
+
+
+# Platform architecture width in bits.
+#
+XSDE_ARCH_WIDTH = 32
+
+
+# Platform byte order. Valid values are 'b' for big-endian
+# and 'l' for little-endian.
+#
+XSDE_BYTEORDER = l
+
+
+# Set to 'n' if you don't have STL (std::string, etc.). Also don't
+# forget to use the --no-stl option when compiling your schemas.
+#
+XSDE_STL = n
+
+
+# Set to 'n' if you don't have iostream.
+#
+XSDE_IOSTREAM = n
+
+
+# Set to 'n' if you don't have C++ exceptions. Also don't forget to
+# use the --no-exceptions option when compiling your schemas.
+#
+XSDE_EXCEPTIONS = n
+
+
+# Set to 'n' if your platform doesn't have the "long long int" type or
+# the strtoull function. Also don't forget to use the --no-long-long
+# option when compiling your schemas.
+#
+XSDE_LONGLONG = n
+
+
+# Set to 'n' if your platform doesn't have the _snprintf function.
+#
+XSDE_SNPRINTF = n
+
+
+# Set to 'n' if you don't want support for XML Schema validation in
+# C++/Parser. Also don't forget to use the --suppress-validation
+# option when compiling your schemas.
+#
+XSDE_PARSER_VALIDATION = y
+
+
+# Set to 'n' if you don't want support for XML Schema validation in
+# C++/Serializer. Also don't forget to use the --suppress-validation
+# option when compiling your schemas.
+#
+XSDE_SERIALIZER_VALIDATION = y
+
+
+# Base parser/serializer implementation reuse style. Valid values are:
+#
+# 'mixin' - virtual inheritance-based reuse (specify --reuse-style-mixin)
+# 'tiein' - delegation-based reuse (recommended)
+# 'none' - no reuse support (specify --reuse-style-none)
+#
+XSDE_REUSE_STYLE = tiein
+
+
+# Set to 'y' if you need to handle XML vocabularies that use XML Schema
+# polymorphism (xsi:type or substitution groups). Also don't forget to
+# use either --generate-polymorphic (generates polymorphism-aware code)
+# or --runtime-polymorphic (generates non-polymorphic code that uses the
+# runtime library configured with polymorphism support). Note that support
+# for XML Schema polymorphism requires runtime static initialization
+# support in the C++ compiler (that is, support for automatic calling
+# of constructors for static objects). Furthermore, if the mixin reuse
+# style is used (XSDE_REUSE_STYLE) then the generated code requires
+# support for dynamic_cast.
+#
+XSDE_POLYMORPHIC = n
+
+
+# When polymorphism support is enabled (XSDE_POLYMORPHIC), the following
+# parameters control the substitution and inheritance hashmaps bucket
+# allocation. Because the number of elements in these hashmaps depends
+# on the schemas being compiled and thus is fairly static, these hashmaps
+# do not perform automatic table resizing. To obtain good performance the
+# elements to buckets ratio should be between 0.7 and 0.9. The recommended
+# way to ensure this range is to add diagnostics code to your application
+# as shown in the documentation and examples. It is also a good idea to
+# use prime numbers for bucket counts: 53 97 193 389 769 1543 3079 6151
+# 12289 24593 49157 98317 196613 393241. Inheritance hashmaps are only
+# used when validation is enabled.
+#
+XSDE_PARSER_SMAP_BUCKETS = 53
+XSDE_PARSER_IMAP_BUCKETS = 97
+XSDE_SERIALIZER_SMAP_BUCKETS = 53
+XSDE_SERIALIZER_SMAP_BUCKET_BUCKETS = 53
+XSDE_SERIALIZER_IMAP_BUCKETS = 97
+
+
+# Options tuning depending on the features selected.
+#
+!if "$(XSDE_EXCEPTIONS)" == "y"
+CFLAGS = $(CFLAGS) /EHs
+CXXFLAGS = $(CXXFLAGS) /EHs
+!endif
diff --git a/dist/etc/iphone/config-device.make b/dist/etc/iphone/config-device.make
new file mode 100644
index 0000000..84fd828
--- /dev/null
+++ b/dist/etc/iphone/config-device.make
@@ -0,0 +1,142 @@
+# Sample configuration file for iPhone OS 2.x using XCode 3.1.x iPhone
+# SDK.
+#
+XCODE := /Developer
+IPHONE_PLATFORM := $(XCODE)/Platforms/iPhoneOS.platform/Developer
+IPHONE_SDK := $(IPHONE_PLATFORM)/SDKs/iPhoneOS2.0.sdk
+
+# Toolchain.
+#
+CC := $(IPHONE_PLATFORM)/usr/bin/arm-apple-darwin9-gcc-4.0.1
+CFLAGS := -W -Wall -arch armv6 -O3 -isysroot $(IPHONE_SDK)
+CPPFLAGS :=
+
+CXX := $(IPHONE_PLATFORM)/usr/bin/arm-apple-darwin9-g++-4.0.1
+CXXFLAGS := -W -Wall -arch armv6 -O3 -isysroot $(IPHONE_SDK)
+
+LD := $(CXX)
+LDFLAGS := $(CXXFLAGS)
+LIBS :=
+
+# Set RANLIB to empty if your system does not need ranlib.
+#
+AR := $(IPHONE_PLATFORM)/usr/bin/ar
+ARFLAGS := rc
+RANLIB := $(IPHONE_PLATFORM)/usr/bin/ranlib
+
+
+# Common XSD/e flags.
+#
+XSDFLAGS := --generate-inline
+
+
+# Platform. Valid values are:
+#
+# 'wince' - Windows CE
+# 'win32' - Windows 2000, XP, etc.
+# 'posix' - POSIX OS, including UNIX/Linux, VxWorks, etc.
+#
+XSDE_PLATFORM := posix
+
+
+# Platform architecture width in bits.
+#
+XSDE_ARCH_WIDTH := 32
+
+
+# Platform byte order. Valid values are 'b' for big-endian
+# and 'l' for little-endian.
+#
+XSDE_BYTEORDER := l
+
+
+# Set to 'n' if you don't have STL (std::string, etc.). Also don't
+# forget to use the --no-stl option when compiling your schemas.
+#
+XSDE_STL := y
+
+
+# Set to 'n' if you don't have iostream.
+#
+XSDE_IOSTREAM := y
+
+
+# Set to 'n' if you don't have C++ exceptions. Also don't forget to
+# use the --no-exceptions option when compiling your schemas.
+#
+XSDE_EXCEPTIONS := y
+
+
+# Set to 'n' if your platform doesn't have the "long long int" type or
+# the strtoull function. Also don't forget to use the --no-long-long
+# option when compiling your schemas.
+#
+XSDE_LONGLONG := y
+
+
+# Set to 'n' if your platform doesn't have the snprintf function.
+#
+XSDE_SNPRINTF := y
+
+
+# Set to 'n' if you don't want support for XML Schema validation in
+# C++/Parser. Also don't forget to use the --suppress-validation
+# option when compiling your schemas.
+#
+XSDE_PARSER_VALIDATION := y
+
+
+# Set to 'n' if you don't want support for XML Schema validation in
+# C++/Serializer. Also don't forget to use the --suppress-validation
+# option when compiling your schemas.
+#
+XSDE_SERIALIZER_VALIDATION := y
+
+
+# Base parser/serializer implementation reuse style. Valid values are:
+#
+# 'mixin' - virtual inheritance-based reuse (specify --reuse-style-mixin)
+# 'tiein' - delegation-based reuse (recommended)
+# 'none' - no reuse support (specify --reuse-style-none)
+#
+XSDE_REUSE_STYLE := tiein
+
+
+# Set to 'y' if you need to handle XML vocabularies that use XML Schema
+# polymorphism (xsi:type or substitution groups). Also don't forget to
+# use either --generate-polymorphic (generates polymorphism-aware code)
+# or --runtime-polymorphic (generates non-polymorphic code that uses the
+# runtime library configured with polymorphism support). Note that support
+# for XML Schema polymorphism requires runtime static initialization
+# support in the C++ compiler (that is, support for automatic calling
+# of constructors for static objects). Furthermore, if the mixin reuse
+# style is used (XSDE_REUSE_STYLE) then the generated code requires
+# support for dynamic_cast.
+#
+XSDE_POLYMORPHIC := n
+
+
+# When polymorphism support is enabled (XSDE_POLYMORPHIC), the following
+# parameters control the substitution and inheritance hashmaps bucket
+# allocation. Because the number of elements in these hashmaps depends
+# on the schemas being compiled and thus is fairly static, these hashmaps
+# do not perform automatic table resizing. To obtain good performance the
+# elements to buckets ratio should be between 0.7 and 0.9. The recommended
+# way to ensure this range is to add diagnostics code to your application
+# as shown in the documentation and examples. It is also a good idea to
+# use prime numbers for bucket counts: 53 97 193 389 769 1543 3079 6151
+# 12289 24593 49157 98317 196613 393241. Inheritance hashmaps are only
+# used when validation is enabled.
+#
+XSDE_PARSER_SMAP_BUCKETS := 53
+XSDE_PARSER_IMAP_BUCKETS := 97
+XSDE_SERIALIZER_SMAP_BUCKETS := 53
+XSDE_SERIALIZER_SMAP_BUCKET_BUCKETS := 53
+XSDE_SERIALIZER_IMAP_BUCKETS := 97
+
+
+# Options tuning depending on the features selected.
+#
+ifeq ($(XSDE_EXCEPTIONS),y)
+CFLAGS += -fexceptions
+endif
diff --git a/dist/etc/iphone/config-simulator.make b/dist/etc/iphone/config-simulator.make
new file mode 100644
index 0000000..fc9ab84
--- /dev/null
+++ b/dist/etc/iphone/config-simulator.make
@@ -0,0 +1,142 @@
+# Sample configuration file for iPhone Simulator 2.x using XCode 3.1.x
+# iPhone SDK.
+#
+XCODE := /Developer
+IPHONE_PLATFORM := $(XCODE)/Platforms/iPhoneSimulator.platform/Developer
+IPHONE_SDK := $(IPHONE_PLATFORM)/SDKs/iPhoneSimulator2.0.sdk
+
+# Toolchain.
+#
+CC := $(IPHONE_PLATFORM)/usr/bin/i686-apple-darwin9-gcc-4.0.1
+CFLAGS := -W -Wall -arch i386 -O3 -isysroot $(IPHONE_SDK)
+CPPFLAGS :=
+
+CXX := $(IPHONE_PLATFORM)/usr/bin/i686-apple-darwin9-g++-4.0.1
+CXXFLAGS := -W -Wall -arch i386 -O3 -isysroot $(IPHONE_SDK)
+
+LD := $(CXX)
+LDFLAGS := $(CXXFLAGS)
+LIBS :=
+
+# Set RANLIB to empty if your system does not need ranlib.
+#
+AR := $(IPHONE_PLATFORM)/usr/bin/ar
+ARFLAGS := rc
+RANLIB := $(IPHONE_PLATFORM)/usr/bin/ranlib
+
+
+# Common XSD/e flags.
+#
+XSDFLAGS := --generate-inline
+
+
+# Platform. Valid values are:
+#
+# 'wince' - Windows CE
+# 'win32' - Windows 2000, XP, etc.
+# 'posix' - POSIX OS, including UNIX/Linux, VxWorks, etc.
+#
+XSDE_PLATFORM := posix
+
+
+# Platform architecture width in bits.
+#
+XSDE_ARCH_WIDTH := 32
+
+
+# Platform byte order. Valid values are 'b' for big-endian
+# and 'l' for little-endian.
+#
+XSDE_BYTEORDER := l
+
+
+# Set to 'n' if you don't have STL (std::string, etc.). Also don't
+# forget to use the --no-stl option when compiling your schemas.
+#
+XSDE_STL := y
+
+
+# Set to 'n' if you don't have iostream.
+#
+XSDE_IOSTREAM := y
+
+
+# Set to 'n' if you don't have C++ exceptions. Also don't forget to
+# use the --no-exceptions option when compiling your schemas.
+#
+XSDE_EXCEPTIONS := y
+
+
+# Set to 'n' if your platform doesn't have the "long long int" type or
+# the strtoull function. Also don't forget to use the --no-long-long
+# option when compiling your schemas.
+#
+XSDE_LONGLONG := y
+
+
+# Set to 'n' if your platform doesn't have the snprintf function.
+#
+XSDE_SNPRINTF := y
+
+
+# Set to 'n' if you don't want support for XML Schema validation in
+# C++/Parser. Also don't forget to use the --suppress-validation
+# option when compiling your schemas.
+#
+XSDE_PARSER_VALIDATION := y
+
+
+# Set to 'n' if you don't want support for XML Schema validation in
+# C++/Serializer. Also don't forget to use the --suppress-validation
+# option when compiling your schemas.
+#
+XSDE_SERIALIZER_VALIDATION := y
+
+
+# Base parser/serializer implementation reuse style. Valid values are:
+#
+# 'mixin' - virtual inheritance-based reuse (specify --reuse-style-mixin)
+# 'tiein' - delegation-based reuse (recommended)
+# 'none' - no reuse support (specify --reuse-style-none)
+#
+XSDE_REUSE_STYLE := tiein
+
+
+# Set to 'y' if you need to handle XML vocabularies that use XML Schema
+# polymorphism (xsi:type or substitution groups). Also don't forget to
+# use either --generate-polymorphic (generates polymorphism-aware code)
+# or --runtime-polymorphic (generates non-polymorphic code that uses the
+# runtime library configured with polymorphism support). Note that support
+# for XML Schema polymorphism requires runtime static initialization
+# support in the C++ compiler (that is, support for automatic calling
+# of constructors for static objects). Furthermore, if the mixin reuse
+# style is used (XSDE_REUSE_STYLE) then the generated code requires
+# support for dynamic_cast.
+#
+XSDE_POLYMORPHIC := n
+
+
+# When polymorphism support is enabled (XSDE_POLYMORPHIC), the following
+# parameters control the substitution and inheritance hashmaps bucket
+# allocation. Because the number of elements in these hashmaps depends
+# on the schemas being compiled and thus is fairly static, these hashmaps
+# do not perform automatic table resizing. To obtain good performance the
+# elements to buckets ratio should be between 0.7 and 0.9. The recommended
+# way to ensure this range is to add diagnostics code to your application
+# as shown in the documentation and examples. It is also a good idea to
+# use prime numbers for bucket counts: 53 97 193 389 769 1543 3079 6151
+# 12289 24593 49157 98317 196613 393241. Inheritance hashmaps are only
+# used when validation is enabled.
+#
+XSDE_PARSER_SMAP_BUCKETS := 53
+XSDE_PARSER_IMAP_BUCKETS := 97
+XSDE_SERIALIZER_SMAP_BUCKETS := 53
+XSDE_SERIALIZER_SMAP_BUCKET_BUCKETS := 53
+XSDE_SERIALIZER_IMAP_BUCKETS := 97
+
+
+# Options tuning depending on the features selected.
+#
+ifeq ($(XSDE_EXCEPTIONS),y)
+CFLAGS += -fexceptions
+endif
diff --git a/dist/etc/lynxos/config-4.2.make b/dist/etc/lynxos/config-4.2.make
new file mode 100644
index 0000000..56ff0e1
--- /dev/null
+++ b/dist/etc/lynxos/config-4.2.make
@@ -0,0 +1,141 @@
+# Sample configuration file for LynxOS 4.2 on x86 using the gcc
+# 3.2.2 toolchain. This configuration enables STL, iostream, and
+# C++ exceptions which can be disabled if not required. For the
+# PowerPC target simply change the XSDE_BYTEORDER parameter.
+#
+
+# Toolchain.
+#
+CC := gcc
+CFLAGS := -W -Wall -O3
+CPPFLAGS :=
+
+CXX := g++
+CXXFLAGS := -W -Wall -O3
+
+LD := $(CXX)
+LDFLAGS := $(CXXFLAGS)
+LIBS :=
+
+# Set RANLIB to empty if your system does not need ranlib.
+#
+AR := ar
+ARFLAGS := rc
+RANLIB := ranlib
+
+
+# Common XSD/e flags.
+#
+XSDFLAGS := --generate-inline
+
+
+# Platform. Valid values are:
+#
+# 'wince' - Windows CE
+# 'win32' - Windows 2000, XP, etc.
+# 'posix' - POSIX OS, including UNIX/Linux, VxWorks, etc.
+#
+XSDE_PLATFORM := posix
+
+
+# Platform architecture width in bits.
+#
+XSDE_ARCH_WIDTH := 32
+
+
+# Platform byte order. Valid values are 'b' for big-endian
+# and 'l' for little-endian.
+#
+XSDE_BYTEORDER := l
+
+
+# Set to 'n' if you don't have STL (std::string, etc.). Also don't
+# forget to use the --no-stl option when compiling your schemas.
+#
+XSDE_STL := y
+
+
+# Set to 'n' if you don't have iostream.
+#
+XSDE_IOSTREAM := y
+
+
+# Set to 'n' if you don't have C++ exceptions. Also don't forget to
+# use the --no-exceptions option when compiling your schemas.
+#
+XSDE_EXCEPTIONS := y
+
+
+# Set to 'n' if your platform doesn't have the "long long int" type or
+# the strtoull function. Also don't forget to use the --no-long-long
+# option when compiling your schemas.
+#
+XSDE_LONGLONG := y
+
+
+# Set to 'n' if your platform doesn't have the snprintf function.
+#
+XSDE_SNPRINTF := n
+
+
+# Set to 'n' if you don't want support for XML Schema validation in
+# C++/Parser. Also don't forget to use the --suppress-validation
+# option when compiling your schemas.
+#
+XSDE_PARSER_VALIDATION := y
+
+
+# Set to 'n' if you don't want support for XML Schema validation in
+# C++/Serializer. Also don't forget to use the --suppress-validation
+# option when compiling your schemas.
+#
+XSDE_SERIALIZER_VALIDATION := y
+
+
+# Base parser/serializer implementation reuse style. Valid values are:
+#
+# 'mixin' - virtual inheritance-based reuse (specify --reuse-style-mixin)
+# 'tiein' - delegation-based reuse (recommended)
+# 'none' - no reuse support (specify --reuse-style-none)
+#
+XSDE_REUSE_STYLE := tiein
+
+
+# Set to 'y' if you need to handle XML vocabularies that use XML Schema
+# polymorphism (xsi:type or substitution groups). Also don't forget to
+# use either --generate-polymorphic (generates polymorphism-aware code)
+# or --runtime-polymorphic (generates non-polymorphic code that uses the
+# runtime library configured with polymorphism support). Note that support
+# for XML Schema polymorphism requires runtime static initialization
+# support in the C++ compiler (that is, support for automatic calling
+# of constructors for static objects). Furthermore, if the mixin reuse
+# style is used (XSDE_REUSE_STYLE) then the generated code requires
+# support for dynamic_cast.
+#
+XSDE_POLYMORPHIC := n
+
+
+# When polymorphism support is enabled (XSDE_POLYMORPHIC), the following
+# parameters control the substitution and inheritance hashmaps bucket
+# allocation. Because the number of elements in these hashmaps depends
+# on the schemas being compiled and thus is fairly static, these hashmaps
+# do not perform automatic table resizing. To obtain good performance the
+# elements to buckets ratio should be between 0.7 and 0.9. The recommended
+# way to ensure this range is to add diagnostics code to your application
+# as shown in the documentation and examples. It is also a good idea to
+# use prime numbers for bucket counts: 53 97 193 389 769 1543 3079 6151
+# 12289 24593 49157 98317 196613 393241. Inheritance hashmaps are only
+# used when validation is enabled.
+#
+XSDE_PARSER_SMAP_BUCKETS := 53
+XSDE_PARSER_IMAP_BUCKETS := 97
+XSDE_SERIALIZER_SMAP_BUCKETS := 53
+XSDE_SERIALIZER_SMAP_BUCKET_BUCKETS := 53
+XSDE_SERIALIZER_IMAP_BUCKETS := 97
+
+
+# Options tuning depending on the features selected.
+#
+ifeq ($(XSDE_EXCEPTIONS),y)
+CFLAGS += -fexceptions
+endif
diff --git a/dist/etc/qnx/config-6.3-gcc-2.95.make b/dist/etc/qnx/config-6.3-gcc-2.95.make
new file mode 100644
index 0000000..0b4b28d
--- /dev/null
+++ b/dist/etc/qnx/config-6.3-gcc-2.95.make
@@ -0,0 +1,140 @@
+# Sample configuration file for QNX 6.3 on x86 using gcc/g++ 2.95.3.
+# While this configuration disables C++ exceptions, they are supported
+# by this platform/compiler and can be enabled.
+#
+
+# Toolchain.
+#
+CC := ntox86-gcc-2.95.3
+CFLAGS := -W -Wall -O3
+CPPFLAGS :=
+
+CXX := ntox86-g++-2.95.3
+CXXFLAGS := -W -Wall -O3
+
+LD := $(CXX)
+LDFLAGS := $(CXXFLAGS)
+LIBS :=
+
+# Set RANLIB to empty if your system does not need ranlib.
+#
+AR := ntox86-ar
+ARFLAGS := rc
+RANLIB := ntox86-ranlib
+
+
+# Common XSD/e flags.
+#
+XSDFLAGS := --generate-inline
+
+
+# Platform. Valid values are:
+#
+# 'wince' - Windows CE
+# 'win32' - Windows 2000, XP, etc.
+# 'posix' - POSIX OS, including UNIX/Linux, VxWorks, etc.
+#
+XSDE_PLATFORM := posix
+
+
+# Platform architecture width in bits.
+#
+XSDE_ARCH_WIDTH := 32
+
+
+# Platform byte order. Valid values are 'b' for big-endian
+# and 'l' for little-endian.
+#
+XSDE_BYTEORDER := l
+
+
+# Set to 'n' if you don't have STL (std::string, etc.). Also don't
+# forget to use the --no-stl option when compiling your schemas.
+#
+XSDE_STL := n
+
+
+# Set to 'n' if you don't have iostream.
+#
+XSDE_IOSTREAM := n
+
+
+# Set to 'n' if you don't have C++ exceptions. Also don't forget to
+# use the --no-exceptions option when compiling your schemas.
+#
+XSDE_EXCEPTIONS := n
+
+
+# Set to 'n' if your platform doesn't have the "long long int" type or
+# the strtoull function. Also don't forget to use the --no-long-long
+# option when compiling your schemas.
+#
+XSDE_LONGLONG := y
+
+
+# Set to 'n' if your platform doesn't have the snprintf function.
+#
+XSDE_SNPRINTF := y
+
+
+# Set to 'n' if you don't want support for XML Schema validation in
+# C++/Parser. Also don't forget to use the --suppress-validation
+# option when compiling your schemas.
+#
+XSDE_PARSER_VALIDATION := y
+
+
+# Set to 'n' if you don't want support for XML Schema validation in
+# C++/Serializer. Also don't forget to use the --suppress-validation
+# option when compiling your schemas.
+#
+XSDE_SERIALIZER_VALIDATION := y
+
+
+# Base parser/serializer implementation reuse style. Valid values are:
+#
+# 'mixin' - virtual inheritance-based reuse (specify --reuse-style-mixin)
+# 'tiein' - delegation-based reuse (recommended)
+# 'none' - no reuse support (specify --reuse-style-none)
+#
+XSDE_REUSE_STYLE := tiein
+
+
+# Set to 'y' if you need to handle XML vocabularies that use XML Schema
+# polymorphism (xsi:type or substitution groups). Also don't forget to
+# use either --generate-polymorphic (generates polymorphism-aware code)
+# or --runtime-polymorphic (generates non-polymorphic code that uses the
+# runtime library configured with polymorphism support). Note that support
+# for XML Schema polymorphism requires runtime static initialization
+# support in the C++ compiler (that is, support for automatic calling
+# of constructors for static objects). Furthermore, if the mixin reuse
+# style is used (XSDE_REUSE_STYLE) then the generated code requires
+# support for dynamic_cast.
+#
+XSDE_POLYMORPHIC := n
+
+
+# When polymorphism support is enabled (XSDE_POLYMORPHIC), the following
+# parameters control the substitution and inheritance hashmaps bucket
+# allocation. Because the number of elements in these hashmaps depends
+# on the schemas being compiled and thus is fairly static, these hashmaps
+# do not perform automatic table resizing. To obtain good performance the
+# elements to buckets ratio should be between 0.7 and 0.9. The recommended
+# way to ensure this range is to add diagnostics code to your application
+# as shown in the documentation and examples. It is also a good idea to
+# use prime numbers for bucket counts: 53 97 193 389 769 1543 3079 6151
+# 12289 24593 49157 98317 196613 393241. Inheritance hashmaps are only
+# used when validation is enabled.
+#
+XSDE_PARSER_SMAP_BUCKETS := 53
+XSDE_PARSER_IMAP_BUCKETS := 97
+XSDE_SERIALIZER_SMAP_BUCKETS := 53
+XSDE_SERIALIZER_SMAP_BUCKET_BUCKETS := 53
+XSDE_SERIALIZER_IMAP_BUCKETS := 97
+
+
+# Options tuning depending on the features selected.
+#
+ifeq ($(XSDE_EXCEPTIONS),y)
+CFLAGS += -fexceptions
+endif
diff --git a/dist/etc/qnx/config-6.3-gcc-3.3.make b/dist/etc/qnx/config-6.3-gcc-3.3.make
new file mode 100644
index 0000000..80343c4
--- /dev/null
+++ b/dist/etc/qnx/config-6.3-gcc-3.3.make
@@ -0,0 +1,140 @@
+# Sample configuration file for QNX 6.3 on x86 using gcc/g++ 3.3.5.
+# This configuration enables STL, iostream, and C++ exceptions which
+# can be disabled if not required.
+#
+
+# Toolchain.
+#
+CC := ntox86-gcc-2.95.3
+CFLAGS := -W -Wall -O3
+CPPFLAGS :=
+
+CXX := ntox86-g++-2.95.3
+CXXFLAGS := -W -Wall -O3
+
+LD := $(CXX)
+LDFLAGS := $(CXXFLAGS)
+LIBS :=
+
+# Set RANLIB to empty if your system does not need ranlib.
+#
+AR := ntox86-ar
+ARFLAGS := rc
+RANLIB := ntox86-ranlib
+
+
+# Common XSD/e flags.
+#
+XSDFLAGS := --generate-inline
+
+
+# Platform. Valid values are:
+#
+# 'wince' - Windows CE
+# 'win32' - Windows 2000, XP, etc.
+# 'posix' - POSIX OS, including UNIX/Linux, VxWorks, etc.
+#
+XSDE_PLATFORM := posix
+
+
+# Platform architecture width in bits.
+#
+XSDE_ARCH_WIDTH := 32
+
+
+# Platform byte order. Valid values are 'b' for big-endian
+# and 'l' for little-endian.
+#
+XSDE_BYTEORDER := l
+
+
+# Set to 'n' if you don't have STL (std::string, etc.). Also don't
+# forget to use the --no-stl option when compiling your schemas.
+#
+XSDE_STL := y
+
+
+# Set to 'n' if you don't have iostream.
+#
+XSDE_IOSTREAM := y
+
+
+# Set to 'n' if you don't have C++ exceptions. Also don't forget to
+# use the --no-exceptions option when compiling your schemas.
+#
+XSDE_EXCEPTIONS := y
+
+
+# Set to 'n' if your platform doesn't have the "long long int" type or
+# the strtoull function. Also don't forget to use the --no-long-long
+# option when compiling your schemas.
+#
+XSDE_LONGLONG := y
+
+
+# Set to 'n' if your platform doesn't have the snprintf function.
+#
+XSDE_SNPRINTF := y
+
+
+# Set to 'n' if you don't want support for XML Schema validation in
+# C++/Parser. Also don't forget to use the --suppress-validation
+# option when compiling your schemas.
+#
+XSDE_PARSER_VALIDATION := y
+
+
+# Set to 'n' if you don't want support for XML Schema validation in
+# C++/Serializer. Also don't forget to use the --suppress-validation
+# option when compiling your schemas.
+#
+XSDE_SERIALIZER_VALIDATION := y
+
+
+# Base parser/serializer implementation reuse style. Valid values are:
+#
+# 'mixin' - virtual inheritance-based reuse (specify --reuse-style-mixin)
+# 'tiein' - delegation-based reuse (recommended)
+# 'none' - no reuse support (specify --reuse-style-none)
+#
+XSDE_REUSE_STYLE := tiein
+
+
+# Set to 'y' if you need to handle XML vocabularies that use XML Schema
+# polymorphism (xsi:type or substitution groups). Also don't forget to
+# use either --generate-polymorphic (generates polymorphism-aware code)
+# or --runtime-polymorphic (generates non-polymorphic code that uses the
+# runtime library configured with polymorphism support). Note that support
+# for XML Schema polymorphism requires runtime static initialization
+# support in the C++ compiler (that is, support for automatic calling
+# of constructors for static objects). Furthermore, if the mixin reuse
+# style is used (XSDE_REUSE_STYLE) then the generated code requires
+# support for dynamic_cast.
+#
+XSDE_POLYMORPHIC := n
+
+
+# When polymorphism support is enabled (XSDE_POLYMORPHIC), the following
+# parameters control the substitution and inheritance hashmaps bucket
+# allocation. Because the number of elements in these hashmaps depends
+# on the schemas being compiled and thus is fairly static, these hashmaps
+# do not perform automatic table resizing. To obtain good performance the
+# elements to buckets ratio should be between 0.7 and 0.9. The recommended
+# way to ensure this range is to add diagnostics code to your application
+# as shown in the documentation and examples. It is also a good idea to
+# use prime numbers for bucket counts: 53 97 193 389 769 1543 3079 6151
+# 12289 24593 49157 98317 196613 393241. Inheritance hashmaps are only
+# used when validation is enabled.
+#
+XSDE_PARSER_SMAP_BUCKETS := 53
+XSDE_PARSER_IMAP_BUCKETS := 97
+XSDE_SERIALIZER_SMAP_BUCKETS := 53
+XSDE_SERIALIZER_SMAP_BUCKET_BUCKETS := 53
+XSDE_SERIALIZER_IMAP_BUCKETS := 97
+
+
+# Options tuning depending on the features selected.
+#
+ifeq ($(XSDE_EXCEPTIONS),y)
+CFLAGS += -fexceptions
+endif
diff --git a/dist/etc/qnx/config-6.4.make b/dist/etc/qnx/config-6.4.make
new file mode 100644
index 0000000..d14e458
--- /dev/null
+++ b/dist/etc/qnx/config-6.4.make
@@ -0,0 +1,140 @@
+# Sample configuration file for QNX 6.4 on x86. This configuration
+# enables STL, iostream, and C++ exceptions which can be disabled
+# if not required.
+#
+
+# Toolchain.
+#
+CC := ntox86-gcc
+CFLAGS := -W -Wall -O3
+CPPFLAGS :=
+
+CXX := ntox86-g++
+CXXFLAGS := -W -Wall -O3
+
+LD := $(CXX)
+LDFLAGS := $(CXXFLAGS)
+LIBS :=
+
+# Set RANLIB to empty if your system does not need ranlib.
+#
+AR := ntox86-ar
+ARFLAGS := rc
+RANLIB := ntox86-ranlib
+
+
+# Common XSD/e flags.
+#
+XSDFLAGS := --generate-inline
+
+
+# Platform. Valid values are:
+#
+# 'wince' - Windows CE
+# 'win32' - Windows 2000, XP, etc.
+# 'posix' - POSIX OS, including UNIX/Linux, VxWorks, etc.
+#
+XSDE_PLATFORM := posix
+
+
+# Platform architecture width in bits.
+#
+XSDE_ARCH_WIDTH := 32
+
+
+# Platform byte order. Valid values are 'b' for big-endian
+# and 'l' for little-endian.
+#
+XSDE_BYTEORDER := l
+
+
+# Set to 'n' if you don't have STL (std::string, etc.). Also don't
+# forget to use the --no-stl option when compiling your schemas.
+#
+XSDE_STL := y
+
+
+# Set to 'n' if you don't have iostream.
+#
+XSDE_IOSTREAM := y
+
+
+# Set to 'n' if you don't have C++ exceptions. Also don't forget to
+# use the --no-exceptions option when compiling your schemas.
+#
+XSDE_EXCEPTIONS := y
+
+
+# Set to 'n' if your platform doesn't have the "long long int" type or
+# the strtoull function. Also don't forget to use the --no-long-long
+# option when compiling your schemas.
+#
+XSDE_LONGLONG := y
+
+
+# Set to 'n' if your platform doesn't have the snprintf function.
+#
+XSDE_SNPRINTF := y
+
+
+# Set to 'n' if you don't want support for XML Schema validation in
+# C++/Parser. Also don't forget to use the --suppress-validation
+# option when compiling your schemas.
+#
+XSDE_PARSER_VALIDATION := y
+
+
+# Set to 'n' if you don't want support for XML Schema validation in
+# C++/Serializer. Also don't forget to use the --suppress-validation
+# option when compiling your schemas.
+#
+XSDE_SERIALIZER_VALIDATION := y
+
+
+# Base parser/serializer implementation reuse style. Valid values are:
+#
+# 'mixin' - virtual inheritance-based reuse (specify --reuse-style-mixin)
+# 'tiein' - delegation-based reuse (recommended)
+# 'none' - no reuse support (specify --reuse-style-none)
+#
+XSDE_REUSE_STYLE := tiein
+
+
+# Set to 'y' if you need to handle XML vocabularies that use XML Schema
+# polymorphism (xsi:type or substitution groups). Also don't forget to
+# use either --generate-polymorphic (generates polymorphism-aware code)
+# or --runtime-polymorphic (generates non-polymorphic code that uses the
+# runtime library configured with polymorphism support). Note that support
+# for XML Schema polymorphism requires runtime static initialization
+# support in the C++ compiler (that is, support for automatic calling
+# of constructors for static objects). Furthermore, if the mixin reuse
+# style is used (XSDE_REUSE_STYLE) then the generated code requires
+# support for dynamic_cast.
+#
+XSDE_POLYMORPHIC := n
+
+
+# When polymorphism support is enabled (XSDE_POLYMORPHIC), the following
+# parameters control the substitution and inheritance hashmaps bucket
+# allocation. Because the number of elements in these hashmaps depends
+# on the schemas being compiled and thus is fairly static, these hashmaps
+# do not perform automatic table resizing. To obtain good performance the
+# elements to buckets ratio should be between 0.7 and 0.9. The recommended
+# way to ensure this range is to add diagnostics code to your application
+# as shown in the documentation and examples. It is also a good idea to
+# use prime numbers for bucket counts: 53 97 193 389 769 1543 3079 6151
+# 12289 24593 49157 98317 196613 393241. Inheritance hashmaps are only
+# used when validation is enabled.
+#
+XSDE_PARSER_SMAP_BUCKETS := 53
+XSDE_PARSER_IMAP_BUCKETS := 97
+XSDE_SERIALIZER_SMAP_BUCKETS := 53
+XSDE_SERIALIZER_SMAP_BUCKET_BUCKETS := 53
+XSDE_SERIALIZER_IMAP_BUCKETS := 97
+
+
+# Options tuning depending on the features selected.
+#
+ifeq ($(XSDE_EXCEPTIONS),y)
+CFLAGS += -fexceptions
+endif
diff --git a/dist/etc/vc-8.0/config-max.nmake b/dist/etc/vc-8.0/config-max.nmake
new file mode 100644
index 0000000..cd1e4a1
--- /dev/null
+++ b/dist/etc/vc-8.0/config-max.nmake
@@ -0,0 +1,139 @@
+# Sample configuration file for Windows CE 4.2 on ARMv4 using Visual Studio
+# 2005 with Smart Devices support. This configuration enables STL, iostream,
+# RTTI, and C++ exceptions. See config-min.nmake for a minimal configuration
+# with all these options disabled.
+#
+
+# Toolchain.
+#
+CC = cl.exe
+CFLAGS = /nologo /W3 /O1 /MT /GS-
+CPPFLAGS = /DARM /D_ARM /DUNDER_CE /DWINCE /D_WIN32_WCE=0x420
+
+CXX = cl.exe
+CXXFLAGS = /nologo /W3 /O1 /GR /MT /GS-
+
+LD = link.exe
+LDFLAGS = /nologo /entry:main /subsystem:windowsce,4.20 /machine:ARM /ARMPADCODE
+LIBS = coredll.lib corelibc.lib ccrtrtti.lib /nodefaultlib:oldnames.lib
+
+AR = lib.exe
+ARFLAGS = /nologo
+
+
+# Common XSD/e flags.
+#
+XSDFLAGS = --generate-inline
+
+
+# Platform. Valid values are:
+#
+# 'wince' - Windows CE
+# 'win32' - Windows 2000, XP, etc.
+# 'posix' - POSIX OS, including UNIX/Linux, VxWorks, etc.
+#
+XSDE_PLATFORM = wince
+
+
+# Platform architecture width in bits.
+#
+XSDE_ARCH_WIDTH = 32
+
+
+# Platform byte order. Valid values are 'b' for big-endian
+# and 'l' for little-endian.
+#
+XSDE_BYTEORDER = l
+
+
+# Set to 'n' if you don't have STL (std::string, etc.). Also don't
+# forget to use the --no-stl option when compiling your schemas.
+#
+XSDE_STL = y
+
+
+# Set to 'n' if you don't have iostream.
+#
+XSDE_IOSTREAM = y
+
+
+# Set to 'n' if you don't have C++ exceptions. Also don't forget to
+# use the --no-exceptions option when compiling your schemas.
+#
+XSDE_EXCEPTIONS = y
+
+
+# Set to 'n' if your platform doesn't have the "long long int" type or
+# the strtoull function. Also don't forget to use the --no-long-long
+# option when compiling your schemas.
+#
+XSDE_LONGLONG = n
+
+
+# Set to 'n' if your platform doesn't have the _snprintf function.
+#
+XSDE_SNPRINTF = y
+
+
+# Set to 'n' if you don't want support for XML Schema validation in
+# C++/Parser. Also don't forget to use the --suppress-validation
+# option when compiling your schemas.
+#
+XSDE_PARSER_VALIDATION = y
+
+
+# Set to 'n' if you don't want support for XML Schema validation in
+# C++/Serializer. Also don't forget to use the --suppress-validation
+# option when compiling your schemas.
+#
+XSDE_SERIALIZER_VALIDATION = y
+
+
+# Base parser/serializer implementation reuse style. Valid values are:
+#
+# 'mixin' - virtual inheritance-based reuse (specify --reuse-style-mixin)
+# 'tiein' - delegation-based reuse (recommended)
+# 'none' - no reuse support (specify --reuse-style-none)
+#
+XSDE_REUSE_STYLE = tiein
+
+
+# Set to 'y' if you need to handle XML vocabularies that use XML Schema
+# polymorphism (xsi:type or substitution groups). Also don't forget to
+# use either --generate-polymorphic (generates polymorphism-aware code)
+# or --runtime-polymorphic (generates non-polymorphic code that uses the
+# runtime library configured with polymorphism support). Note that support
+# for XML Schema polymorphism requires runtime static initialization
+# support in the C++ compiler (that is, support for automatic calling
+# of constructors for static objects). Furthermore, if the mixin reuse
+# style is used (XSDE_REUSE_STYLE) then the generated code requires
+# support for dynamic_cast.
+#
+XSDE_POLYMORPHIC = n
+
+
+# When polymorphism support is enabled (XSDE_POLYMORPHIC), the following
+# parameters control the substitution and inheritance hashmaps bucket
+# allocation. Because the number of elements in these hashmaps depends
+# on the schemas being compiled and thus is fairly static, these hashmaps
+# do not perform automatic table resizing. To obtain good performance the
+# elements to buckets ratio should be between 0.7 and 0.9. The recommended
+# way to ensure this range is to add diagnostics code to your application
+# as shown in the documentation and examples. It is also a good idea to
+# use prime numbers for bucket counts: 53 97 193 389 769 1543 3079 6151
+# 12289 24593 49157 98317 196613 393241. Inheritance hashmaps are only
+# used when validation is enabled.
+#
+XSDE_PARSER_SMAP_BUCKETS = 53
+XSDE_PARSER_IMAP_BUCKETS = 97
+XSDE_SERIALIZER_SMAP_BUCKETS = 53
+XSDE_SERIALIZER_SMAP_BUCKET_BUCKETS = 53
+XSDE_SERIALIZER_IMAP_BUCKETS = 97
+
+
+# Options tuning depending on the features selected.
+#
+!if "$(XSDE_EXCEPTIONS)" == "y"
+CFLAGS = $(CFLAGS) /EHs
+CXXFLAGS = $(CXXFLAGS) /EHs
+!endif
diff --git a/dist/etc/vc-8.0/config-min.nmake b/dist/etc/vc-8.0/config-min.nmake
new file mode 100644
index 0000000..b2f3c6d
--- /dev/null
+++ b/dist/etc/vc-8.0/config-min.nmake
@@ -0,0 +1,139 @@
+# Sample configuration file for Windows CE 4.2 on ARMv4 using Visual Studio
+# 2005 with Smart Devices support. This is a minimal configuration with STL,
+# iostream, RTTI, and C++ exceptions disabled. See config-max.nmake for the
+# a configuration with all these options enabled.
+#
+
+# Toolchain.
+#
+CC = cl.exe
+CFLAGS = /nologo /W3 /O1 /MT /GS-
+CPPFLAGS = /DARM /D_ARM /DUNDER_CE /DWINCE /D_WIN32_WCE=0x420
+
+CXX = cl.exe
+CXXFLAGS = /nologo /W3 /O1 /GR- /MT /GS-
+
+LD = link.exe
+LDFLAGS = /nologo /entry:main /subsystem:windowsce,4.20 /machine:ARM /ARMPADCODE
+LIBS = coredll.lib corelibc.lib /nodefaultlib:oldnames.lib
+
+AR = lib.exe
+ARFLAGS = /nologo
+
+
+# Common XSD/e flags.
+#
+XSDFLAGS = --generate-inline
+
+
+# Platform. Valid values are:
+#
+# 'wince' - Windows CE
+# 'win32' - Windows 2000, XP, etc.
+# 'posix' - POSIX OS, including UNIX/Linux, VxWorks, etc.
+#
+XSDE_PLATFORM = wince
+
+
+# Platform architecture width in bits.
+#
+XSDE_ARCH_WIDTH = 32
+
+
+# Platform byte order. Valid values are 'b' for big-endian
+# and 'l' for little-endian.
+#
+XSDE_BYTEORDER = l
+
+
+# Set to 'n' if you don't have STL (std::string, etc.). Also don't
+# forget to use the --no-stl option when compiling your schemas.
+#
+XSDE_STL = n
+
+
+# Set to 'n' if you don't have iostream.
+#
+XSDE_IOSTREAM = n
+
+
+# Set to 'n' if you don't have C++ exceptions. Also don't forget to
+# use the --no-exceptions option when compiling your schemas.
+#
+XSDE_EXCEPTIONS = n
+
+
+# Set to 'n' if your platform doesn't have the "long long int" type or
+# the strtoull function. Also don't forget to use the --no-long-long
+# option when compiling your schemas.
+#
+XSDE_LONGLONG = n
+
+
+# Set to 'n' if your platform doesn't have the _snprintf function.
+#
+XSDE_SNPRINTF = y
+
+
+# Set to 'n' if you don't want support for XML Schema validation in
+# C++/Parser. Also don't forget to use the --suppress-validation
+# option when compiling your schemas.
+#
+XSDE_PARSER_VALIDATION = y
+
+
+# Set to 'n' if you don't want support for XML Schema validation in
+# C++/Serializer. Also don't forget to use the --suppress-validation
+# option when compiling your schemas.
+#
+XSDE_SERIALIZER_VALIDATION = y
+
+
+# Base parser/serializer implementation reuse style. Valid values are:
+#
+# 'mixin' - virtual inheritance-based reuse (specify --reuse-style-mixin)
+# 'tiein' - delegation-based reuse (recommended)
+# 'none' - no reuse support (specify --reuse-style-none)
+#
+XSDE_REUSE_STYLE = tiein
+
+
+# Set to 'y' if you need to handle XML vocabularies that use XML Schema
+# polymorphism (xsi:type or substitution groups). Also don't forget to
+# use either --generate-polymorphic (generates polymorphism-aware code)
+# or --runtime-polymorphic (generates non-polymorphic code that uses the
+# runtime library configured with polymorphism support). Note that support
+# for XML Schema polymorphism requires runtime static initialization
+# support in the C++ compiler (that is, support for automatic calling
+# of constructors for static objects). Furthermore, if the mixin reuse
+# style is used (XSDE_REUSE_STYLE) then the generated code requires
+# support for dynamic_cast.
+#
+XSDE_POLYMORPHIC = n
+
+
+# When polymorphism support is enabled (XSDE_POLYMORPHIC), the following
+# parameters control the substitution and inheritance hashmaps bucket
+# allocation. Because the number of elements in these hashmaps depends
+# on the schemas being compiled and thus is fairly static, these hashmaps
+# do not perform automatic table resizing. To obtain good performance the
+# elements to buckets ratio should be between 0.7 and 0.9. The recommended
+# way to ensure this range is to add diagnostics code to your application
+# as shown in the documentation and examples. It is also a good idea to
+# use prime numbers for bucket counts: 53 97 193 389 769 1543 3079 6151
+# 12289 24593 49157 98317 196613 393241. Inheritance hashmaps are only
+# used when validation is enabled.
+#
+XSDE_PARSER_SMAP_BUCKETS = 53
+XSDE_PARSER_IMAP_BUCKETS = 97
+XSDE_SERIALIZER_SMAP_BUCKETS = 53
+XSDE_SERIALIZER_SMAP_BUCKET_BUCKETS = 53
+XSDE_SERIALIZER_IMAP_BUCKETS = 97
+
+
+# Options tuning depending on the features selected.
+#
+!if "$(XSDE_EXCEPTIONS)" == "y"
+CFLAGS = $(CFLAGS) /EHs
+CXXFLAGS = $(CXXFLAGS) /EHs
+!endif
diff --git a/dist/etc/vc-8.0/vcvarssd.bat b/dist/etc/vc-8.0/vcvarssd.bat
new file mode 100755
index 0000000..955a49f
--- /dev/null
+++ b/dist/etc/vc-8.0/vcvarssd.bat
@@ -0,0 +1,39 @@
+@echo off
+REM
+REM This .bat file sets the environment variables for Visual Studio
+REM 2005 Smart Devices toolchain to allow compilation from the command
+REM line or with nmake. Make sure the following four variables are
+REM set to the correct values.
+REM
+
+REM
+REM Make sure VSINSTALLDIR points to the Visual Studio 2005 installation
+REM directory.
+REM
+SET VSINSTALLDIR=C:\Program Files\Microsoft Visual Studio 2005
+
+REM
+REM Set the toolchain to use. See VSINSTALLDIR\VC\ce\bin for possible
+REM values.
+REM
+SET TOOLCHAIN=x86_arm
+
+REM
+REM C/C++ runtime to use. See VSINSTALLDIR\VC\ce\lib for possible
+REM values.
+REM
+SET RUNTIME=armv4
+
+REM
+REM Platform SDK to use. See VSINSTALLDIR\SmartDevices\SDK for
+REM what's available (normally PocketPC2003 and Smartphone2003).
+REM
+SET SDK=PocketPC2003
+
+title Visual Studio 2005 Smart Devices Environment for %SDK% on %RUNTIME%
+echo Setting environment for Visual Studio 2005 Smart Devices.
+
+SET VCINSTALLDIR=%VSINSTALLDIR%\VC
+SET PATH=%VCINSTALLDIR%\ce\BIN\%TOOLCHAIN%;%VCINSTALLDIR%\BIN;%VSINSTALLDIR%\Common7\IDE;%VSINSTALLDIR%\Common7\Tools;%VSINSTALLDIR%\Common7\Tools\bin;%PATH%
+SET INCLUDE=%VCINSTALLDIR%\CE\ATLMFC\INCLUDE;%VCINSTALLDIR%\CE\INCLUDE;%VSINSTALLDIR%\SmartDevices\SDK\%SDK%\include;%INCLUDE%
+SET LIB=%VCINSTALLDIR%\CE\ATLMFC\LIB\%RUNTIME%;%VCINSTALLDIR%\CE\LIB\%RUNTIME%;%VSINSTALLDIR%\SmartDevices\SDK\%SDK%\lib\%RUNTIME%;%LIB%
diff --git a/dist/etc/vc-9.0/config-max.nmake b/dist/etc/vc-9.0/config-max.nmake
new file mode 100644
index 0000000..24bf39b
--- /dev/null
+++ b/dist/etc/vc-9.0/config-max.nmake
@@ -0,0 +1,139 @@
+# Sample configuration file for Windows CE 4.2 on ARMv4 using Visual Studio
+# 2008 with Smart Devices support. This configuration enables STL, iostream,
+# RTTI, and C++ exceptions. See config-min.nmake for a minimal configuration
+# with all these options disabled.
+#
+
+# Toolchain.
+#
+CC = cl.exe
+CFLAGS = /nologo /W3 /O1 /MT /GS-
+CPPFLAGS = /DARM /D_ARM /DUNDER_CE /DWINCE /D_WIN32_WCE=0x420
+
+CXX = cl.exe
+CXXFLAGS = /nologo /W3 /O1 /GR /MT /GS-
+
+LD = link.exe
+LDFLAGS = /nologo /entry:main /subsystem:windowsce,4.20 /machine:ARM /ARMPADCODE
+LIBS = coredll.lib corelibc.lib ccrtrtti.lib /nodefaultlib:oldnames.lib
+
+AR = lib.exe
+ARFLAGS = /nologo
+
+
+# Common XSD/e flags.
+#
+XSDFLAGS = --generate-inline
+
+
+# Platform. Valid values are:
+#
+# 'wince' - Windows CE
+# 'win32' - Windows 2000, XP, etc.
+# 'posix' - POSIX OS, including UNIX/Linux, VxWorks, etc.
+#
+XSDE_PLATFORM = wince
+
+
+# Platform architecture width in bits.
+#
+XSDE_ARCH_WIDTH = 32
+
+
+# Platform byte order. Valid values are 'b' for big-endian
+# and 'l' for little-endian.
+#
+XSDE_BYTEORDER = l
+
+
+# Set to 'n' if you don't have STL (std::string, etc.). Also don't
+# forget to use the --no-stl option when compiling your schemas.
+#
+XSDE_STL = y
+
+
+# Set to 'n' if you don't have iostream.
+#
+XSDE_IOSTREAM = y
+
+
+# Set to 'n' if you don't have C++ exceptions. Also don't forget to
+# use the --no-exceptions option when compiling your schemas.
+#
+XSDE_EXCEPTIONS = y
+
+
+# Set to 'n' if your platform doesn't have the "long long int" type or
+# the strtoull function. Also don't forget to use the --no-long-long
+# option when compiling your schemas.
+#
+XSDE_LONGLONG = n
+
+
+# Set to 'n' if your platform doesn't have the _snprintf function.
+#
+XSDE_SNPRINTF = y
+
+
+# Set to 'n' if you don't want support for XML Schema validation in
+# C++/Parser. Also don't forget to use the --suppress-validation
+# option when compiling your schemas.
+#
+XSDE_PARSER_VALIDATION = y
+
+
+# Set to 'n' if you don't want support for XML Schema validation in
+# C++/Serializer. Also don't forget to use the --suppress-validation
+# option when compiling your schemas.
+#
+XSDE_SERIALIZER_VALIDATION = y
+
+
+# Base parser/serializer implementation reuse style. Valid values are:
+#
+# 'mixin' - virtual inheritance-based reuse (specify --reuse-style-mixin)
+# 'tiein' - delegation-based reuse (recommended)
+# 'none' - no reuse support (specify --reuse-style-none)
+#
+XSDE_REUSE_STYLE = tiein
+
+
+# Set to 'y' if you need to handle XML vocabularies that use XML Schema
+# polymorphism (xsi:type or substitution groups). Also don't forget to
+# use either --generate-polymorphic (generates polymorphism-aware code)
+# or --runtime-polymorphic (generates non-polymorphic code that uses the
+# runtime library configured with polymorphism support). Note that support
+# for XML Schema polymorphism requires runtime static initialization
+# support in the C++ compiler (that is, support for automatic calling
+# of constructors for static objects). Furthermore, if the mixin reuse
+# style is used (XSDE_REUSE_STYLE) then the generated code requires
+# support for dynamic_cast.
+#
+XSDE_POLYMORPHIC = n
+
+
+# When polymorphism support is enabled (XSDE_POLYMORPHIC), the following
+# parameters control the substitution and inheritance hashmaps bucket
+# allocation. Because the number of elements in these hashmaps depends
+# on the schemas being compiled and thus is fairly static, these hashmaps
+# do not perform automatic table resizing. To obtain good performance the
+# elements to buckets ratio should be between 0.7 and 0.9. The recommended
+# way to ensure this range is to add diagnostics code to your application
+# as shown in the documentation and examples. It is also a good idea to
+# use prime numbers for bucket counts: 53 97 193 389 769 1543 3079 6151
+# 12289 24593 49157 98317 196613 393241. Inheritance hashmaps are only
+# used when validation is enabled.
+#
+XSDE_PARSER_SMAP_BUCKETS = 53
+XSDE_PARSER_IMAP_BUCKETS = 97
+XSDE_SERIALIZER_SMAP_BUCKETS = 53
+XSDE_SERIALIZER_SMAP_BUCKET_BUCKETS = 53
+XSDE_SERIALIZER_IMAP_BUCKETS = 97
+
+
+# Options tuning depending on the features selected.
+#
+!if "$(XSDE_EXCEPTIONS)" == "y"
+CFLAGS = $(CFLAGS) /EHs
+CXXFLAGS = $(CXXFLAGS) /EHs
+!endif
diff --git a/dist/etc/vc-9.0/config-min.nmake b/dist/etc/vc-9.0/config-min.nmake
new file mode 100644
index 0000000..c085f97
--- /dev/null
+++ b/dist/etc/vc-9.0/config-min.nmake
@@ -0,0 +1,139 @@
+# Sample configuration file for Windows CE 4.2 on ARMv4 using Visual Studio
+# 2008 with Smart Devices support. This is a minimal configuration with STL,
+# iostream, RTTI, and C++ exceptions disabled. See config-max.nmake for the
+# a configuration with all these options enabled.
+#
+
+# Toolchain.
+#
+CC = cl.exe
+CFLAGS = /nologo /W3 /O1 /MT /GS-
+CPPFLAGS = /DARM /D_ARM /DUNDER_CE /DWINCE /D_WIN32_WCE=0x420
+
+CXX = cl.exe
+CXXFLAGS = /nologo /W3 /O1 /GR- /MT /GS-
+
+LD = link.exe
+LDFLAGS = /nologo /entry:main /subsystem:windowsce,4.20 /machine:ARM /ARMPADCODE
+LIBS = coredll.lib corelibc.lib /nodefaultlib:oldnames.lib
+
+AR = lib.exe
+ARFLAGS = /nologo
+
+
+# Common XSD/e flags.
+#
+XSDFLAGS = --generate-inline
+
+
+# Platform. Valid values are:
+#
+# 'wince' - Windows CE
+# 'win32' - Windows 2000, XP, etc.
+# 'posix' - POSIX OS, including UNIX/Linux, VxWorks, etc.
+#
+XSDE_PLATFORM = wince
+
+
+# Platform architecture width in bits.
+#
+XSDE_ARCH_WIDTH = 32
+
+
+# Platform byte order. Valid values are 'b' for big-endian
+# and 'l' for little-endian.
+#
+XSDE_BYTEORDER = l
+
+
+# Set to 'n' if you don't have STL (std::string, etc.). Also don't
+# forget to use the --no-stl option when compiling your schemas.
+#
+XSDE_STL = n
+
+
+# Set to 'n' if you don't have iostream.
+#
+XSDE_IOSTREAM = n
+
+
+# Set to 'n' if you don't have C++ exceptions. Also don't forget to
+# use the --no-exceptions option when compiling your schemas.
+#
+XSDE_EXCEPTIONS = n
+
+
+# Set to 'n' if your platform doesn't have the "long long int" type or
+# the strtoull function. Also don't forget to use the --no-long-long
+# option when compiling your schemas.
+#
+XSDE_LONGLONG = n
+
+
+# Set to 'n' if your platform doesn't have the _snprintf function.
+#
+XSDE_SNPRINTF = y
+
+
+# Set to 'n' if you don't want support for XML Schema validation in
+# C++/Parser. Also don't forget to use the --suppress-validation
+# option when compiling your schemas.
+#
+XSDE_PARSER_VALIDATION = y
+
+
+# Set to 'n' if you don't want support for XML Schema validation in
+# C++/Serializer. Also don't forget to use the --suppress-validation
+# option when compiling your schemas.
+#
+XSDE_SERIALIZER_VALIDATION = y
+
+
+# Base parser/serializer implementation reuse style. Valid values are:
+#
+# 'mixin' - virtual inheritance-based reuse (specify --reuse-style-mixin)
+# 'tiein' - delegation-based reuse (recommended)
+# 'none' - no reuse support (specify --reuse-style-none)
+#
+XSDE_REUSE_STYLE = tiein
+
+
+# Set to 'y' if you need to handle XML vocabularies that use XML Schema
+# polymorphism (xsi:type or substitution groups). Also don't forget to
+# use either --generate-polymorphic (generates polymorphism-aware code)
+# or --runtime-polymorphic (generates non-polymorphic code that uses the
+# runtime library configured with polymorphism support). Note that support
+# for XML Schema polymorphism requires runtime static initialization
+# support in the C++ compiler (that is, support for automatic calling
+# of constructors for static objects). Furthermore, if the mixin reuse
+# style is used (XSDE_REUSE_STYLE) then the generated code requires
+# support for dynamic_cast.
+#
+XSDE_POLYMORPHIC = n
+
+
+# When polymorphism support is enabled (XSDE_POLYMORPHIC), the following
+# parameters control the substitution and inheritance hashmaps bucket
+# allocation. Because the number of elements in these hashmaps depends
+# on the schemas being compiled and thus is fairly static, these hashmaps
+# do not perform automatic table resizing. To obtain good performance the
+# elements to buckets ratio should be between 0.7 and 0.9. The recommended
+# way to ensure this range is to add diagnostics code to your application
+# as shown in the documentation and examples. It is also a good idea to
+# use prime numbers for bucket counts: 53 97 193 389 769 1543 3079 6151
+# 12289 24593 49157 98317 196613 393241. Inheritance hashmaps are only
+# used when validation is enabled.
+#
+XSDE_PARSER_SMAP_BUCKETS = 53
+XSDE_PARSER_IMAP_BUCKETS = 97
+XSDE_SERIALIZER_SMAP_BUCKETS = 53
+XSDE_SERIALIZER_SMAP_BUCKET_BUCKETS = 53
+XSDE_SERIALIZER_IMAP_BUCKETS = 97
+
+
+# Options tuning depending on the features selected.
+#
+!if "$(XSDE_EXCEPTIONS)" == "y"
+CFLAGS = $(CFLAGS) /EHs
+CXXFLAGS = $(CXXFLAGS) /EHs
+!endif
diff --git a/dist/etc/vc-9.0/vcvarssd.bat b/dist/etc/vc-9.0/vcvarssd.bat
new file mode 100755
index 0000000..0481a12
--- /dev/null
+++ b/dist/etc/vc-9.0/vcvarssd.bat
@@ -0,0 +1,39 @@
+@echo off
+REM
+REM This .bat file sets the environment variables for Visual Studio
+REM 2008 Smart Devices toolchain to allow compilation from the command
+REM line or with nmake. Make sure the following four variables are
+REM set to the correct values.
+REM
+
+REM
+REM Make sure VSINSTALLDIR points to the Visual Studio 2008 installation
+REM directory.
+REM
+SET VSINSTALLDIR=C:\Program Files\Microsoft Visual Studio 9.0
+
+REM
+REM Set the toolchain to use. See VSINSTALLDIR\VC\ce\bin for possible
+REM values.
+REM
+SET TOOLCHAIN=x86_arm
+
+REM
+REM C/C++ runtime to use. See VSINSTALLDIR\VC\ce\lib for possible
+REM values.
+REM
+SET RUNTIME=armv4
+
+REM
+REM Platform SDK to use. See VSINSTALLDIR\SmartDevices\SDK for
+REM what's available (normally PocketPC2003 and Smartphone2003).
+REM
+SET SDK=PocketPC2003
+
+title Visual Studio 2008 Smart Devices Environment for %SDK% on %RUNTIME%
+echo Setting environment for Visual Studio 2008 Smart Devices.
+
+SET VCINSTALLDIR=%VSINSTALLDIR%\VC
+SET PATH=%VCINSTALLDIR%\ce\BIN\%TOOLCHAIN%;%VCINSTALLDIR%\BIN;%VSINSTALLDIR%\Common7\IDE;%VSINSTALLDIR%\Common7\Tools;%VSINSTALLDIR%\Common7\Tools\bin;%PATH%
+SET INCLUDE=%VCINSTALLDIR%\CE\ATLMFC\INCLUDE;%VCINSTALLDIR%\CE\INCLUDE;%VSINSTALLDIR%\SmartDevices\SDK\%SDK%\include;%INCLUDE%
+SET LIB=%VCINSTALLDIR%\CE\ATLMFC\LIB\%RUNTIME%;%VCINSTALLDIR%\CE\LIB\%RUNTIME%;%VSINSTALLDIR%\SmartDevices\SDK\%SDK%\lib\%RUNTIME%;%LIB%
diff --git a/dist/etc/vxworks/config-5.5.1.make b/dist/etc/vxworks/config-5.5.1.make
new file mode 100644
index 0000000..2de4676
--- /dev/null
+++ b/dist/etc/vxworks/config-5.5.1.make
@@ -0,0 +1,141 @@
+# Sample configuration file for VxWorks 5.5.1 on PowerPC 603 using
+# Tornado 2.2 GNU toolchain. While this configuration disables STL
+# and C++ exceptions, those are supported on VxWorks and can be
+# enabled.
+#
+
+# Toolchain.
+#
+CC := ccppc
+CFLAGS := -W -Wall -O3 -mlongcall -mcpu=603 -mstrict-align -ansi -DCPU=PPC603 -DTOOL_FAMILY=gnu -DTOOL=gnu -fsigned-char
+CPPFLAGS :=
+
+CXX := ccppc
+CXXFLAGS := -W -Wall -O3 -mlongcall -mcpu=603 -mstrict-align -ansi -DCPU=PPC603 -DTOOL_FAMILY=gnu -DTOOL=gnu -fsigned-char
+
+LD := $(CXX)
+LDFLAGS := $(CXXFLAGS) -r -nostdlib -Wl,-X
+LIBS :=
+
+# Set RANLIB to empty if your system does not need ranlib.
+#
+AR := arppc
+ARFLAGS := rc
+RANLIB := ranlibppc
+
+
+# Common XSD/e flags.
+#
+XSDFLAGS := --generate-inline
+
+
+# Platform. Valid values are:
+#
+# 'wince' - Windows CE
+# 'win32' - Windows 2000, XP, etc.
+# 'posix' - POSIX OS, including UNIX/Linux, VxWorks, etc.
+#
+XSDE_PLATFORM := posix
+
+
+# Platform architecture width in bits.
+#
+XSDE_ARCH_WIDTH := 32
+
+
+# Platform byte order. Valid values are 'b' for big-endian
+# and 'l' for little-endian.
+#
+XSDE_BYTEORDER := b
+
+
+# Set to 'n' if you don't have STL (std::string, etc.). Also don't
+# forget to use the --no-stl option when compiling your schemas.
+#
+XSDE_STL := n
+
+
+# Set to 'n' if you don't have iostream.
+#
+XSDE_IOSTREAM := n
+
+
+# Set to 'n' if you don't have C++ exceptions. Also don't forget to
+# use the --no-exceptions option when compiling your schemas.
+#
+XSDE_EXCEPTIONS := n
+
+
+# Set to 'n' if your platform doesn't have the "long long int" type or
+# the strtoull function. Also don't forget to use the --no-long-long
+# option when compiling your schemas.
+#
+XSDE_LONGLONG := n
+
+
+# Set to 'n' if your platform doesn't have the snprintf function.
+#
+XSDE_SNPRINTF := n
+
+
+# Set to 'n' if you don't want support for XML Schema validation in
+# C++/Parser. Also don't forget to use the --suppress-validation
+# option when compiling your schemas.
+#
+XSDE_PARSER_VALIDATION := y
+
+
+# Set to 'n' if you don't want support for XML Schema validation in
+# C++/Serializer. Also don't forget to use the --suppress-validation
+# option when compiling your schemas.
+#
+XSDE_SERIALIZER_VALIDATION := y
+
+
+# Base parser/serializer implementation reuse style. Valid values are:
+#
+# 'mixin' - virtual inheritance-based reuse (specify --reuse-style-mixin)
+# 'tiein' - delegation-based reuse (recommended)
+# 'none' - no reuse support (specify --reuse-style-none)
+#
+XSDE_REUSE_STYLE := tiein
+
+
+# Set to 'y' if you need to handle XML vocabularies that use XML Schema
+# polymorphism (xsi:type or substitution groups). Also don't forget to
+# use either --generate-polymorphic (generates polymorphism-aware code)
+# or --runtime-polymorphic (generates non-polymorphic code that uses the
+# runtime library configured with polymorphism support). Note that support
+# for XML Schema polymorphism requires runtime static initialization
+# support in the C++ compiler (that is, support for automatic calling
+# of constructors for static objects). Furthermore, if the mixin reuse
+# style is used (XSDE_REUSE_STYLE) then the generated code requires
+# support for dynamic_cast.
+#
+XSDE_POLYMORPHIC := n
+
+
+# When polymorphism support is enabled (XSDE_POLYMORPHIC), the following
+# parameters control the substitution and inheritance hashmaps bucket
+# allocation. Because the number of elements in these hashmaps depends
+# on the schemas being compiled and thus is fairly static, these hashmaps
+# do not perform automatic table resizing. To obtain good performance the
+# elements to buckets ratio should be between 0.7 and 0.9. The recommended
+# way to ensure this range is to add diagnostics code to your application
+# as shown in the documentation and examples. It is also a good idea to
+# use prime numbers for bucket counts: 53 97 193 389 769 1543 3079 6151
+# 12289 24593 49157 98317 196613 393241. Inheritance hashmaps are only
+# used when validation is enabled.
+#
+XSDE_PARSER_SMAP_BUCKETS := 53
+XSDE_PARSER_IMAP_BUCKETS := 97
+XSDE_SERIALIZER_SMAP_BUCKETS := 53
+XSDE_SERIALIZER_SMAP_BUCKET_BUCKETS := 53
+XSDE_SERIALIZER_IMAP_BUCKETS := 97
+
+
+# Options tuning depending on the features selected.
+#
+ifeq ($(XSDE_EXCEPTIONS),y)
+CFLAGS += -fexceptions
+endif
diff --git a/dist/etc/vxworks/config-max-6.4.make b/dist/etc/vxworks/config-max-6.4.make
new file mode 100644
index 0000000..5aa80e8
--- /dev/null
+++ b/dist/etc/vxworks/config-max-6.4.make
@@ -0,0 +1,152 @@
+# Sample configuration file for VxWorks 6.4 on Pentium using the
+# GNU toolchain. This configuration enables STL, iostream, and
+# C++ exceptions which can be disabled if not required.
+#
+# Note that iostream support requires static initialization so
+# you will need to 'munch' the examples (and your application)
+# before you can run them. Here are the sample step that are
+# needed to run the C++/Hybrid 'library' example:
+#
+# $ cd examples/cxx/hybrid/library/
+# $ make
+# $ mv driver partial-image.o
+# $ nmpentium *.o | tclsh .../vxworks-6.4/host/resource/hutils/tcl/munch.tcl -c pentium > ctdt.c
+# $ ccpentium -O3 -c -fdollars-in-identifiers -fno-zero-initialized-in-bss ctdt.c -o ctdt.o
+# $ ccpentium -O3 partial-image.o ctdt.o -o driver
+#
+
+# Toolchain.
+#
+CC := ccpentium
+CFLAGS := -W -Wall -O3
+CPPFLAGS :=
+
+CXX := ccpentium
+CXXFLAGS := -W -Wall -O3
+
+LD := $(CXX)
+LDFLAGS := $(CXXFLAGS)
+LIBS :=
+
+# Set RANLIB to empty if your system does not need ranlib.
+#
+AR := arpentium
+ARFLAGS := rc
+RANLIB := ranlibpentium
+
+
+# Common XSD/e flags.
+#
+XSDFLAGS := --generate-inline
+
+
+# Platform. Valid values are:
+#
+# 'wince' - Windows CE
+# 'win32' - Windows 2000, XP, etc.
+# 'posix' - POSIX OS, including UNIX/Linux, VxWorks, etc.
+#
+XSDE_PLATFORM := posix
+
+
+# Platform architecture width in bits.
+#
+XSDE_ARCH_WIDTH := 32
+
+
+# Platform byte order. Valid values are 'b' for big-endian
+# and 'l' for little-endian.
+#
+XSDE_BYTEORDER := l
+
+
+# Set to 'n' if you don't have STL (std::string, etc.). Also don't
+# forget to use the --no-stl option when compiling your schemas.
+#
+XSDE_STL := y
+
+
+# Set to 'n' if you don't have iostream.
+#
+XSDE_IOSTREAM := y
+
+
+# Set to 'n' if you don't have C++ exceptions. Also don't forget to
+# use the --no-exceptions option when compiling your schemas.
+#
+XSDE_EXCEPTIONS := y
+
+
+# Set to 'n' if your platform doesn't have the "long long int" type or
+# the strtoull function. Also don't forget to use the --no-long-long
+# option when compiling your schemas.
+#
+XSDE_LONGLONG := n
+
+
+# Set to 'n' if your platform doesn't have the snprintf function.
+#
+XSDE_SNPRINTF := n
+
+
+# Set to 'n' if you don't want support for XML Schema validation in
+# C++/Parser. Also don't forget to use the --suppress-validation
+# option when compiling your schemas.
+#
+XSDE_PARSER_VALIDATION := y
+
+
+# Set to 'n' if you don't want support for XML Schema validation in
+# C++/Serializer. Also don't forget to use the --suppress-validation
+# option when compiling your schemas.
+#
+XSDE_SERIALIZER_VALIDATION := y
+
+
+# Base parser/serializer implementation reuse style. Valid values are:
+#
+# 'mixin' - virtual inheritance-based reuse (specify --reuse-style-mixin)
+# 'tiein' - delegation-based reuse (recommended)
+# 'none' - no reuse support (specify --reuse-style-none)
+#
+XSDE_REUSE_STYLE := tiein
+
+
+# Set to 'y' if you need to handle XML vocabularies that use XML Schema
+# polymorphism (xsi:type or substitution groups). Also don't forget to
+# use either --generate-polymorphic (generates polymorphism-aware code)
+# or --runtime-polymorphic (generates non-polymorphic code that uses the
+# runtime library configured with polymorphism support). Note that support
+# for XML Schema polymorphism requires runtime static initialization
+# support in the C++ compiler (that is, support for automatic calling
+# of constructors for static objects). Furthermore, if the mixin reuse
+# style is used (XSDE_REUSE_STYLE) then the generated code requires
+# support for dynamic_cast.
+#
+XSDE_POLYMORPHIC := n
+
+
+# When polymorphism support is enabled (XSDE_POLYMORPHIC), the following
+# parameters control the substitution and inheritance hashmaps bucket
+# allocation. Because the number of elements in these hashmaps depends
+# on the schemas being compiled and thus is fairly static, these hashmaps
+# do not perform automatic table resizing. To obtain good performance the
+# elements to buckets ratio should be between 0.7 and 0.9. The recommended
+# way to ensure this range is to add diagnostics code to your application
+# as shown in the documentation and examples. It is also a good idea to
+# use prime numbers for bucket counts: 53 97 193 389 769 1543 3079 6151
+# 12289 24593 49157 98317 196613 393241. Inheritance hashmaps are only
+# used when validation is enabled.
+#
+XSDE_PARSER_SMAP_BUCKETS := 53
+XSDE_PARSER_IMAP_BUCKETS := 97
+XSDE_SERIALIZER_SMAP_BUCKETS := 53
+XSDE_SERIALIZER_SMAP_BUCKET_BUCKETS := 53
+XSDE_SERIALIZER_IMAP_BUCKETS := 97
+
+
+# Options tuning depending on the features selected.
+#
+ifeq ($(XSDE_EXCEPTIONS),y)
+CFLAGS += -fexceptions
+endif
diff --git a/dist/etc/vxworks/config-min-6.4.make b/dist/etc/vxworks/config-min-6.4.make
new file mode 100644
index 0000000..522771f
--- /dev/null
+++ b/dist/etc/vxworks/config-min-6.4.make
@@ -0,0 +1,140 @@
+# Sample configuration file for VxWorks 6.4 on Pentium using the
+# GNU toolchain. This configuration disables STL, iostream, and
+# C++ exceptions which can be enabled if required.
+#
+
+# Toolchain.
+#
+CC := ccpentium
+CFLAGS := -W -Wall -O3
+CPPFLAGS :=
+
+CXX := ccpentium
+CXXFLAGS := -W -Wall -O3
+
+LD := $(CXX)
+LDFLAGS := $(CXXFLAGS)
+LIBS :=
+
+# Set RANLIB to empty if your system does not need ranlib.
+#
+AR := arpentium
+ARFLAGS := rc
+RANLIB := ranlibpentium
+
+
+# Common XSD/e flags.
+#
+XSDFLAGS := --generate-inline
+
+
+# Platform. Valid values are:
+#
+# 'wince' - Windows CE
+# 'win32' - Windows 2000, XP, etc.
+# 'posix' - POSIX OS, including UNIX/Linux, VxWorks, etc.
+#
+XSDE_PLATFORM := posix
+
+
+# Platform architecture width in bits.
+#
+XSDE_ARCH_WIDTH := 32
+
+
+# Platform byte order. Valid values are 'b' for big-endian
+# and 'l' for little-endian.
+#
+XSDE_BYTEORDER := l
+
+
+# Set to 'n' if you don't have STL (std::string, etc.). Also don't
+# forget to use the --no-stl option when compiling your schemas.
+#
+XSDE_STL := n
+
+
+# Set to 'n' if you don't have iostream.
+#
+XSDE_IOSTREAM := n
+
+
+# Set to 'n' if you don't have C++ exceptions. Also don't forget to
+# use the --no-exceptions option when compiling your schemas.
+#
+XSDE_EXCEPTIONS := n
+
+
+# Set to 'n' if your platform doesn't have the "long long int" type or
+# the strtoull function. Also don't forget to use the --no-long-long
+# option when compiling your schemas.
+#
+XSDE_LONGLONG := n
+
+
+# Set to 'n' if your platform doesn't have the snprintf function.
+#
+XSDE_SNPRINTF := n
+
+
+# Set to 'n' if you don't want support for XML Schema validation in
+# C++/Parser. Also don't forget to use the --suppress-validation
+# option when compiling your schemas.
+#
+XSDE_PARSER_VALIDATION := y
+
+
+# Set to 'n' if you don't want support for XML Schema validation in
+# C++/Serializer. Also don't forget to use the --suppress-validation
+# option when compiling your schemas.
+#
+XSDE_SERIALIZER_VALIDATION := y
+
+
+# Base parser/serializer implementation reuse style. Valid values are:
+#
+# 'mixin' - virtual inheritance-based reuse (specify --reuse-style-mixin)
+# 'tiein' - delegation-based reuse (recommended)
+# 'none' - no reuse support (specify --reuse-style-none)
+#
+XSDE_REUSE_STYLE := tiein
+
+
+# Set to 'y' if you need to handle XML vocabularies that use XML Schema
+# polymorphism (xsi:type or substitution groups). Also don't forget to
+# use either --generate-polymorphic (generates polymorphism-aware code)
+# or --runtime-polymorphic (generates non-polymorphic code that uses the
+# runtime library configured with polymorphism support). Note that support
+# for XML Schema polymorphism requires runtime static initialization
+# support in the C++ compiler (that is, support for automatic calling
+# of constructors for static objects). Furthermore, if the mixin reuse
+# style is used (XSDE_REUSE_STYLE) then the generated code requires
+# support for dynamic_cast.
+#
+XSDE_POLYMORPHIC := n
+
+
+# When polymorphism support is enabled (XSDE_POLYMORPHIC), the following
+# parameters control the substitution and inheritance hashmaps bucket
+# allocation. Because the number of elements in these hashmaps depends
+# on the schemas being compiled and thus is fairly static, these hashmaps
+# do not perform automatic table resizing. To obtain good performance the
+# elements to buckets ratio should be between 0.7 and 0.9. The recommended
+# way to ensure this range is to add diagnostics code to your application
+# as shown in the documentation and examples. It is also a good idea to
+# use prime numbers for bucket counts: 53 97 193 389 769 1543 3079 6151
+# 12289 24593 49157 98317 196613 393241. Inheritance hashmaps are only
+# used when validation is enabled.
+#
+XSDE_PARSER_SMAP_BUCKETS := 53
+XSDE_PARSER_IMAP_BUCKETS := 97
+XSDE_SERIALIZER_SMAP_BUCKETS := 53
+XSDE_SERIALIZER_SMAP_BUCKET_BUCKETS := 53
+XSDE_SERIALIZER_IMAP_BUCKETS := 97
+
+
+# Options tuning depending on the features selected.
+#
+ifeq ($(XSDE_EXCEPTIONS),y)
+CFLAGS += -fexceptions
+endif
diff --git a/dist/examples/cxx/hybrid/compositors/makefile b/dist/examples/cxx/hybrid/compositors/makefile
new file mode 100644
index 0000000..fbc44f9
--- /dev/null
+++ b/dist/examples/cxx/hybrid/compositors/makefile
@@ -0,0 +1,53 @@
+root := ../../../..
+
+include $(root)/build/cxx/rules.make
+
+# Build.
+#
+EXTRA_CPPFLAGS := -I$(root)/libxsde
+
+ifeq ($(XSDE_STL),n)
+EXTRA_XSDFLAGS += --no-stl
+endif
+
+ifeq ($(XSDE_IOSTREAM),n)
+EXTRA_XSDFLAGS += --no-iostream
+endif
+
+ifeq ($(XSDE_EXCEPTIONS),n)
+EXTRA_XSDFLAGS += --no-exceptions
+endif
+
+ifeq ($(XSDE_LONGLONG),n)
+EXTRA_XSDFLAGS += --no-long-long
+endif
+
+ifeq ($(XSDE_PARSER_VALIDATION),n)
+EXTRA_XSDFLAGS += --suppress-validation
+endif
+
+ifeq ($(XSDE_REUSE_STYLE),mixin)
+EXTRA_XSDFLAGS += --reuse-style-mixin
+endif
+
+driver: driver.o compositors.o $(root)/libxsde/xsde/libxsde.a
+
+driver.o: driver.cxx compositors.hxx
+compositors.o: compositors.cxx compositors.hxx
+
+.PRECIOUS: %.hxx %.cxx
+
+%.hxx %.cxx: %.xsd
+ $(root)/bin/xsde cxx-hybrid $(XSDFLAGS) $(EXTRA_XSDFLAGS) $<
+
+# Test.
+#
+.PHONY: test
+test: driver
+ ./driver
+
+# Clean.
+#
+.PHONY: clean
+clean:
+ rm -f compositors.?xx compositors.o driver.o driver
diff --git a/dist/examples/cxx/hybrid/compositors/nmakefile b/dist/examples/cxx/hybrid/compositors/nmakefile
new file mode 100644
index 0000000..9bc77b7
--- /dev/null
+++ b/dist/examples/cxx/hybrid/compositors/nmakefile
@@ -0,0 +1,49 @@
+root = ..\..\..\..
+
+!include $(root)\build\cxx\rules.nmake
+
+# Build.
+#
+EXTRA_CPPFLAGS = /I$(root)\libxsde
+
+!if "$(XSDE_STL)" == "n"
+EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --no-stl
+!endif
+
+!if "$(XSDE_IOSTREAM)" == "n"
+EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --no-iostream
+!endif
+
+!if "$(XSDE_EXCEPTIONS)" == "n"
+EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --no-exceptions
+!endif
+
+!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
+
+driver.exe: driver.obj compositors.obj $(root)\libxsde\xsde\xsde.lib
+
+driver.obj: driver.cxx compositors.hxx
+compositors.obj: compositors.cxx
+
+compositors.cxx compositors.hxx: compositors.xsd
+ $(root)\bin\xsde.exe cxx-hybrid $(XSDFLAGS) $(EXTRA_XSDFLAGS) compositors.xsd
+
+# Test.
+#
+test: driver.exe
+ .\driver.exe
+
+# Clean.
+#
+clean:
+ -del compositors.?xx compositors.obj driver.obj driver.exe
diff --git a/dist/examples/cxx/hybrid/filter/makefile b/dist/examples/cxx/hybrid/filter/makefile
new file mode 100644
index 0000000..f1ea235
--- /dev/null
+++ b/dist/examples/cxx/hybrid/filter/makefile
@@ -0,0 +1,57 @@
+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_PARSER_VALIDATION),n)
+EXTRA_XSDFLAGS += --suppress-validation
+endif
+
+ifeq ($(XSDE_REUSE_STYLE),mixin)
+EXTRA_XSDFLAGS += --reuse-style-mixin
+endif
+
+driver: driver.o people.o people-pskel.o people-pimpl.o people-sskel.o \
+people-simpl.o people-custom-pimpl.o people-custom-simpl.o \
+$(root)/libxsde/xsde/libxsde.a
+
+driver.o: driver.cxx people.hxx people-pimpl.hxx people-simpl.hxx
+people.o: people.cxx people.hxx
+people-pskel.o: people-pskel.cxx
+people-pimpl.o: people-pimpl.cxx
+people-simpl.o: people-simpl.cxx
+people-simpl.o: people-simpl.cxx
+people-custom-pimpl.o: people-custom-pimpl.cxx people-custom-pimpl.hxx people.hxx
+people-custom-simpl.o: people-custom-simpl.cxx people-custom-simpl.hxx people.hxx
+
+.PRECIOUS: %.hxx %.cxx %-pskel.hxx %-pskel.cxx %-pimpl.hxx %-pimpl.cxx \
+%-sskel.hxx %-sskel.cxx %-simpl.hxx %-simpl.cxx
+
+%.hxx %.cxx %-pskel.hxx %-pskel.cxx %-pimpl.hxx %-pimpl.cxx \
+%-sskel.hxx %-sskel.cxx %-simpl.hxx %-simpl.cxx: %.xsd
+ $(root)/bin/xsde cxx-hybrid $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
+--generate-parser --generate-serializer --generate-aggregate \
+--custom-parser people=people_base_pimpl/people-custom-pimpl.hxx \
+--custom-serializer people=people_base_simpl/people-custom-simpl.hxx $<
+
+# Test.
+#
+.PHONY: test
+test: driver people.xml
+ ./driver people.xml
+
+# Clean.
+#
+.PHONY: clean
+clean:
+ rm -f people-pimpl.?xx people-pskel.?xx people-simpl.?xx \
+people-sskel.?xx people.?xx people-custom-pimpl.o people-custom-simpl.o \
+people-pimpl.o people-pskel.o people-simpl.o people-sskel.o \
+people.o driver.o driver
diff --git a/dist/examples/cxx/hybrid/filter/nmakefile b/dist/examples/cxx/hybrid/filter/nmakefile
new file mode 100644
index 0000000..b93ac66
--- /dev/null
+++ b/dist/examples/cxx/hybrid/filter/nmakefile
@@ -0,0 +1,54 @@
+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
+
+driver.exe: driver.obj people.obj people-pskel.obj people-pimpl.obj \
+people-sskel.obj people-simpl.obj people-custom-pimpl.obj \
+people-custom-simpl.obj $(root)\libxsde\xsde\xsde.lib
+
+driver.obj: driver.cxx people.hxx people-pimpl.hxx people-simpl.hxx
+people.obj: people.cxx people.hxx
+people-pskel.obj: people-pskel.cxx
+people-pimpl.obj: people-pimpl.cxx
+people-simpl.obj: people-simpl.cxx
+people-simpl.obj: people-simpl.cxx
+people-custom-pimpl.obj: people-custom-pimpl.cxx people-custom-pimpl.hxx people.hxx
+people-custom-simpl.obj: people-custom-simpl.cxx people-custom-simpl.hxx people.hxx
+
+people.cxx people.hxx \
+people-pskel.cxx people-pskel.hxx people-pimpl.cxx people-pimpl.hxx \
+people-sskel.cxx people-sskel.hxx people-simpl.cxx people-simpl.hxx \
+: people.xsd
+ $(root)\bin\xsde.exe cxx-hybrid $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
+--generate-parser --generate-serializer --generate-aggregate \
+--custom-parser people=people_base_pimpl/people-custom-pimpl.hxx \
+--custom-serializer people=people_base_simpl/people-custom-simpl.hxx people.xsd
+
+# Test.
+#
+test: driver.exe people.xml
+ .\driver.exe people.xml
+
+# Clean.
+#
+clean:
+ -del people-pimpl.?xx people-pskel.?xx people-simpl.?xx \
+people-sskel.?xx people.?xx people-custom-pimpl.obj people-custom-simpl.obj \
+people-pimpl.obj people-pskel.obj people-simpl.obj people-sskel.obj \
+people.obj driver.obj driver.exe
diff --git a/dist/examples/cxx/hybrid/hello/makefile b/dist/examples/cxx/hybrid/hello/makefile
new file mode 100644
index 0000000..f184264
--- /dev/null
+++ b/dist/examples/cxx/hybrid/hello/makefile
@@ -0,0 +1,49 @@
+root := ../../../..
+
+include $(root)/build/cxx/rules.make
+
+# Build.
+#
+EXTRA_CPPFLAGS := -I$(root)/libxsde
+
+ifeq ($(XSDE_STL),n)
+EXTRA_XSDFLAGS += --no-stl
+endif
+
+ifeq ($(XSDE_LONGLONG),n)
+EXTRA_XSDFLAGS += --no-long-long
+endif
+
+ifeq ($(XSDE_PARSER_VALIDATION),n)
+EXTRA_XSDFLAGS += --suppress-validation
+endif
+
+ifeq ($(XSDE_REUSE_STYLE),mixin)
+EXTRA_XSDFLAGS += --reuse-style-mixin
+endif
+
+driver: driver.o hello.o hello-pskel.o hello-pimpl.o \
+$(root)/libxsde/xsde/libxsde.a
+
+driver.o: driver.cxx hello.hxx hello-pimpl.hxx
+hello.o: hello.cxx
+hello-pskel.o: hello-pskel.cxx
+hello-pimpl.o: hello-pimpl.cxx
+
+.PRECIOUS: %.hxx %.cxx %-pskel.hxx %-pskel.cxx %-pimpl.hxx %-pimpl.cxx
+%.hxx %.cxx %-pskel.hxx %-pskel.cxx %-pimpl.hxx %-pimpl.cxx: %.xsd
+ $(root)/bin/xsde cxx-hybrid $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
+--generate-parser --generate-aggregate $<
+
+# Test.
+#
+.PHONY: test
+test: driver hello.xml
+ ./driver hello.xml
+
+# Clean.
+#
+.PHONY: clean
+clean:
+ rm -f hello-pimpl.?xx hello-pskel.?xx hello.?xx hello-pimpl.o \
+hello-pskel.o hello.o driver.o driver
diff --git a/dist/examples/cxx/hybrid/hello/nmakefile b/dist/examples/cxx/hybrid/hello/nmakefile
new file mode 100644
index 0000000..4044cb1
--- /dev/null
+++ b/dist/examples/cxx/hybrid/hello/nmakefile
@@ -0,0 +1,47 @@
+root = ..\..\..\..
+
+!include $(root)\build\cxx\rules.nmake
+
+# Build.
+#
+EXTRA_CPPFLAGS = /I$(root)\libxsde
+
+!if "$(XSDE_STL)" == "n"
+EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --no-stl
+!endif
+
+!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
+
+driver.exe: driver.obj hello.obj hello-pskel.obj hello-pimpl.obj \
+$(root)\libxsde\xsde\xsde.lib
+
+driver.obj: driver.cxx hello.hxx hello-pimpl.hxx
+hello.obj: hello.cxx
+hello-pskel.obj: hello-pskel.cxx
+hello-pimpl.obj: hello-pimpl.cxx
+
+hello.cxx hello.hxx hello-pskel.cxx hello-pskel.hxx \
+hello-pimpl.cxx hello-pimpl.hxx: hello.xsd
+ $(root)\bin\xsde.exe cxx-hybrid $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
+--generate-parser --generate-aggregate hello.xsd
+
+# Test.
+#
+test: driver.exe hello.xml
+ .\driver.exe hello.xml
+
+# Clean.
+#
+clean:
+ -del hello-pimpl.?xx hello-pskel.?xx hello.?xx hello-pimpl.obj \
+hello-pskel.obj hello.obj driver.obj driver.exe
diff --git a/dist/examples/cxx/hybrid/library/makefile b/dist/examples/cxx/hybrid/library/makefile
new file mode 100644
index 0000000..8610879
--- /dev/null
+++ b/dist/examples/cxx/hybrid/library/makefile
@@ -0,0 +1,51 @@
+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_PARSER_VALIDATION),n)
+EXTRA_XSDFLAGS += --suppress-validation
+endif
+
+ifeq ($(XSDE_REUSE_STYLE),mixin)
+EXTRA_XSDFLAGS += --reuse-style-mixin
+endif
+
+driver: driver.o library.o library-pskel.o library-pimpl.o \
+library-sskel.o library-simpl.o $(root)/libxsde/xsde/libxsde.a
+
+driver.o: driver.cxx library.hxx library-pimpl.hxx library-simpl.hxx
+library.o: library.cxx library.hxx
+library-pskel.o: library-pskel.cxx
+library-pimpl.o: library-pimpl.cxx
+library-simpl.o: library-simpl.cxx
+library-simpl.o: library-simpl.cxx
+
+.PRECIOUS: %.hxx %.cxx %-pskel.hxx %-pskel.cxx %-pimpl.hxx %-pimpl.cxx \
+%-sskel.hxx %-sskel.cxx %-simpl.hxx %-simpl.cxx
+
+%.hxx %.cxx %-pskel.hxx %-pskel.cxx %-pimpl.hxx %-pimpl.cxx \
+%-sskel.hxx %-sskel.cxx %-simpl.hxx %-simpl.cxx: %.xsd
+ $(root)/bin/xsde cxx-hybrid $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
+--generate-parser --generate-serializer --generate-aggregate $<
+
+# Test.
+#
+.PHONY: test
+test: driver library.xml
+ ./driver library.xml
+
+# Clean.
+#
+.PHONY: clean
+clean:
+ rm -f library-pimpl.?xx library-pskel.?xx library-simpl.?xx \
+library-sskel.?xx library.?xx library-pimpl.o library-pskel.o \
+library-simpl.o library-sskel.o library.o driver.o driver
diff --git a/dist/examples/cxx/hybrid/library/nmakefile b/dist/examples/cxx/hybrid/library/nmakefile
new file mode 100644
index 0000000..5585416
--- /dev/null
+++ b/dist/examples/cxx/hybrid/library/nmakefile
@@ -0,0 +1,48 @@
+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
+
+driver.exe: driver.obj library.obj library-pskel.obj library-pimpl.obj \
+library-sskel.obj library-simpl.obj $(root)\libxsde\xsde\xsde.lib
+
+driver.obj: driver.cxx library.hxx library-pimpl.hxx library-simpl.hxx
+library.obj: library.cxx
+library-pskel.obj: library-pskel.cxx
+library-pimpl.obj: library-pimpl.cxx
+library-sskel.obj: library-sskel.cxx
+library-simpl.obj: library-simpl.cxx
+
+library.cxx library.hxx \
+library-pskel.cxx library-pskel.hxx library-pimpl.cxx library-pimpl.hxx \
+library-sskel.cxx library-sskel.hxx library-simpl.cxx library-simpl.hxx \
+: library.xsd
+ $(root)\bin\xsde.exe cxx-hybrid $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
+--generate-parser --generate-serializer --generate-aggregate library.xsd
+
+# Test.
+#
+test: driver.exe library.xml
+ .\driver.exe library.xml
+
+# Clean.
+#
+clean:
+ -del library-pimpl.?xx library-pskel.?xx library-simpl.?xx \
+library-sskel.?xx library.?xx library-pimpl.obj library-pskel.obj \
+library-simpl.obj library-sskel.obj library.obj driver.obj driver.exe
diff --git a/dist/examples/cxx/hybrid/makefile b/dist/examples/cxx/hybrid/makefile
new file mode 100644
index 0000000..fdcec1d
--- /dev/null
+++ b/dist/examples/cxx/hybrid/makefile
@@ -0,0 +1,36 @@
+root := ../../..
+
+include $(root)/build/config.make
+
+dirs := compositors
+
+ifeq ($(XSDE_IOSTREAM),y)
+ifeq ($(XSDE_EXCEPTIONS),y)
+
+dirs += hello multiroot streaming
+
+ifeq ($(XSDE_STL),y)
+dirs += library wildcard filter
+endif
+
+endif
+endif
+
+ifeq ($(XSDE_STL),n)
+ifeq ($(XSDE_EXCEPTIONS),n)
+dirs += minimal
+endif
+endif
+
+
+.PHONY: all $(dirs)
+
+all: $(dirs)
+
+$(dirs):
+ @$(MAKE) -C $@ $(MAKECMDGOALS)
+
+makefile: ;
+%.make:: ;
+
+%:: $(dirs) ;
diff --git a/dist/examples/cxx/hybrid/minimal/makefile b/dist/examples/cxx/hybrid/minimal/makefile
new file mode 100644
index 0000000..87e5325
--- /dev/null
+++ b/dist/examples/cxx/hybrid/minimal/makefile
@@ -0,0 +1,57 @@
+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_PARSER_VALIDATION),n)
+EXTRA_XSDFLAGS += --suppress-validation
+endif
+
+ifeq ($(XSDE_REUSE_STYLE),mixin)
+EXTRA_XSDFLAGS += --reuse-style-mixin
+endif
+
+driver: driver.o people.o people-pskel.o people-pimpl.o \
+people-sskel.o people-simpl.o $(root)/libxsde/xsde/libxsde.a
+
+driver.o: driver.cxx people.hxx people-pimpl.hxx people-simpl.hxx
+people.o: people.cxx people.hxx
+people-pskel.o: people-pskel.cxx
+people-pimpl.o: people-pimpl.cxx
+people-simpl.o: people-simpl.cxx
+people-simpl.o: people-simpl.cxx
+
+.PRECIOUS: %.hxx %.cxx %-pskel.hxx %-pskel.cxx %-pimpl.hxx %-pimpl.cxx \
+%-sskel.hxx %-sskel.cxx %-simpl.hxx %-simpl.cxx
+
+%.hxx %.cxx %-pskel.hxx %-pskel.cxx %-pimpl.hxx %-pimpl.cxx \
+%-sskel.hxx %-sskel.cxx %-simpl.hxx %-simpl.cxx: %.xsd
+ $(root)/bin/xsde cxx-hybrid $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
+--generate-parser --generate-serializer --generate-aggregate $<
+
+# Test.
+#
+.PHONY: test
+test: driver people.xml
+ ./driver people.xml
+
+# Clean.
+#
+.PHONY: clean
+clean:
+ rm -f people-pimpl.?xx people-pskel.?xx people-simpl.?xx \
+people-sskel.?xx people.?xx people-pimpl.o people-pskel.o \
+people-simpl.o people-sskel.o people.o driver.o driver
diff --git a/dist/examples/cxx/hybrid/minimal/nmakefile b/dist/examples/cxx/hybrid/minimal/nmakefile
new file mode 100644
index 0000000..6a1c736
--- /dev/null
+++ b/dist/examples/cxx/hybrid/minimal/nmakefile
@@ -0,0 +1,54 @@
+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_PARSER_VALIDATION)" == "n"
+EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --suppress-validation
+!endif
+
+!if "$(XSDE_REUSE_STYLE)" == "mixin"
+EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --reuse-style-mixin
+!endif
+
+driver.exe: driver.obj people.obj people-pskel.obj people-pimpl.obj \
+people-sskel.obj people-simpl.obj $(root)\libxsde\xsde\xsde.lib
+
+driver.obj: driver.cxx people.hxx people-pimpl.hxx people-simpl.hxx
+people.obj: people.cxx
+people-pskel.obj: people-pskel.cxx
+people-pimpl.obj: people-pimpl.cxx
+people-sskel.obj: people-sskel.cxx
+people-simpl.obj: people-simpl.cxx
+
+people.cxx people.hxx \
+people-pskel.cxx people-pskel.hxx people-pimpl.cxx people-pimpl.hxx \
+people-sskel.cxx people-sskel.hxx people-simpl.cxx people-simpl.hxx \
+: people.xsd
+ $(root)\bin\xsde.exe cxx-hybrid $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
+--generate-parser --generate-serializer --generate-aggregate people.xsd
+
+# Test.
+#
+test: driver.exe people.xml
+ .\driver.exe people.xml
+
+# Clean.
+#
+clean:
+ -del people-pimpl.?xx people-pskel.?xx people-simpl.?xx \
+people-sskel.?xx people.?xx people-pimpl.obj people-pskel.obj \
+people-simpl.obj people-sskel.obj people.obj driver.obj driver.exe
diff --git a/dist/examples/cxx/hybrid/multiroot/makefile b/dist/examples/cxx/hybrid/multiroot/makefile
new file mode 100644
index 0000000..28423c1
--- /dev/null
+++ b/dist/examples/cxx/hybrid/multiroot/makefile
@@ -0,0 +1,51 @@
+root := ../../../..
+
+include $(root)/build/cxx/rules.make
+
+# Build.
+#
+EXTRA_CPPFLAGS := -I$(root)/libxsde
+
+ifeq ($(XSDE_STL),n)
+EXTRA_XSDFLAGS += --no-stl
+endif
+
+ifeq ($(XSDE_LONGLONG),n)
+EXTRA_XSDFLAGS += --no-long-long
+endif
+
+ifeq ($(XSDE_PARSER_VALIDATION),n)
+EXTRA_XSDFLAGS += --suppress-validation
+endif
+
+ifeq ($(XSDE_REUSE_STYLE),mixin)
+EXTRA_XSDFLAGS += --reuse-style-mixin
+endif
+
+driver: driver.o protocol.o protocol-pskel.o protocol-pimpl.o \
+$(root)/libxsde/xsde/libxsde.a
+
+driver.o: driver.cxx protocol.hxx protocol-pimpl.hxx
+protocol.o: protocol.cxx
+protocol-pskel.o: protocol-pskel.cxx
+protocol-pimpl.o: protocol-pimpl.cxx
+
+.PRECIOUS: %.hxx %.cxx %-pskel.hxx %-pskel.cxx %-pimpl.hxx %-pimpl.cxx
+%.hxx %.cxx %-pskel.hxx %-pskel.cxx %-pimpl.hxx %-pimpl.cxx: %.xsd
+ $(root)/bin/xsde cxx-hybrid $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
+--generate-parser --generate-aggregate --root-element-all $<
+
+# Test.
+#
+.PHONY: test
+test: driver balance.xml withdraw.xml deposit.xml
+ ./driver balance.xml
+ ./driver withdraw.xml
+ ./driver deposit.xml
+
+# Clean.
+#
+.PHONY: clean
+clean:
+ rm -f protocol-pimpl.?xx protocol-pskel.?xx protocol.?xx \
+protocol-pimpl.o protocol-pskel.o protocol.o driver.o driver
diff --git a/dist/examples/cxx/hybrid/multiroot/nmakefile b/dist/examples/cxx/hybrid/multiroot/nmakefile
new file mode 100644
index 0000000..a647e50
--- /dev/null
+++ b/dist/examples/cxx/hybrid/multiroot/nmakefile
@@ -0,0 +1,49 @@
+root = ..\..\..\..
+
+!include $(root)\build\cxx\rules.nmake
+
+# Build.
+#
+EXTRA_CPPFLAGS = /I$(root)\libxsde
+
+!if "$(XSDE_STL)" == "n"
+EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --no-stl
+!endif
+
+!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
+
+driver.exe: driver.obj protocol.obj protocol-pskel.obj protocol-pimpl.obj \
+$(root)\libxsde\xsde\xsde.lib
+
+driver.obj: driver.cxx protocol.hxx protocol-pimpl.hxx
+protocol.obj: protocol.cxx
+protocol-pskel.obj: protocol-pskel.cxx
+protocol-pimpl.obj: protocol-pimpl.cxx
+
+protocol.cxx protocol.hxx protocol-pskel.cxx protocol-pskel.hxx \
+protocol-pimpl.cxx protocol-pimpl.hxx: protocol.xsd
+ $(root)\bin\xsde.exe cxx-hybrid $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
+--generate-parser --generate-aggregate --root-element-all protocol.xsd
+
+# Test.
+#
+test: driver.exe balance.xml withdraw.xml deposit.xml
+ .\driver balance.xml
+ .\driver withdraw.xml
+ .\driver deposit.xml
+
+# Clean.
+#
+clean:
+ -del protocol-pimpl.?xx protocol-pskel.?xx protocol.?xx \
+protocol-pimpl.obj protocol-pskel.obj protocol.obj driver.obj driver.exe
diff --git a/dist/examples/cxx/hybrid/nmakefile b/dist/examples/cxx/hybrid/nmakefile
new file mode 100644
index 0000000..5d0b337
--- /dev/null
+++ b/dist/examples/cxx/hybrid/nmakefile
@@ -0,0 +1,31 @@
+root = ..\..\..
+
+!include $(root)\build\config.nmake
+
+dirs = compositors
+
+!if "$(XSDE_IOSTREAM)" == "y"
+!if "$(XSDE_EXCEPTIONS)" == "y"
+
+dirs = $(dirs) hello multiroot streaming
+
+!if "$(XSDE_STL)" == "y"
+dirs = $(dirs) library wildcard filter
+!endif
+
+!endif
+!endif
+
+!if "$(XSDE_STL)" == "n"
+!if "$(XSDE_EXCEPTIONS)" == "n"
+dirs = $(dirs) minimal
+!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/hybrid/streaming/makefile b/dist/examples/cxx/hybrid/streaming/makefile
new file mode 100644
index 0000000..b4bff7a
--- /dev/null
+++ b/dist/examples/cxx/hybrid/streaming/makefile
@@ -0,0 +1,61 @@
+root := ../../../..
+
+include $(root)/build/cxx/rules.make
+
+# Build.
+#
+EXTRA_CPPFLAGS := -I$(root)/libxsde
+
+ifeq ($(XSDE_STL),n)
+EXTRA_XSDFLAGS += --no-stl
+endif
+
+ifeq ($(XSDE_LONGLONG),n)
+EXTRA_XSDFLAGS += --no-long-long
+endif
+
+ifeq ($(XSDE_PARSER_VALIDATION),n)
+EXTRA_XSDFLAGS += --suppress-validation
+endif
+
+ifeq ($(XSDE_REUSE_STYLE),mixin)
+EXTRA_XSDFLAGS += --reuse-style-mixin
+endif
+
+driver: driver.o position.o position-pskel.o position-pimpl.o \
+position-sskel.o position-simpl.o object-pimpl.o object-simpl.o \
+$(root)/libxsde/xsde/libxsde.a
+
+driver.o: driver.cxx position.hxx position-pimpl.hxx position-simpl.hxx
+position.o: position.cxx position.hxx
+position-pskel.o: position-pskel.cxx
+position-pimpl.o: position-pimpl.cxx
+position-simpl.o: position-simpl.cxx
+position-simpl.o: position-simpl.cxx
+object-pimpl.o: object-pimpl.cxx object-pimpl.hxx position.hxx
+object-simpl.o: object-simpl.cxx object-simpl.hxx position.hxx
+
+.PRECIOUS: %.hxx %.cxx %-pskel.hxx %-pskel.cxx %-pimpl.hxx %-pimpl.cxx \
+%-sskel.hxx %-sskel.cxx %-simpl.hxx %-simpl.cxx
+
+%.hxx %.cxx %-pskel.hxx %-pskel.cxx %-pimpl.hxx %-pimpl.cxx \
+%-sskel.hxx %-sskel.cxx %-simpl.hxx %-simpl.cxx: %.xsd
+ $(root)/bin/xsde cxx-hybrid $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
+--generate-parser --generate-serializer --generate-aggregate \
+--custom-parser object=/object-pimpl.hxx \
+--custom-serializer object=/object-simpl.hxx $<
+
+# Test.
+#
+.PHONY: test
+test: driver position.xml
+ ./driver position.xml
+
+# Clean.
+#
+.PHONY: clean
+clean:
+ rm -f position-pimpl.?xx position-pskel.?xx position-simpl.?xx \
+position-sskel.?xx position.?xx object-pimpl.o object-simpl.o \
+position-pimpl.o position-pskel.o position-simpl.o position-sskel.o \
+position.o driver.o driver
diff --git a/dist/examples/cxx/hybrid/streaming/nmakefile b/dist/examples/cxx/hybrid/streaming/nmakefile
new file mode 100644
index 0000000..c3ae34a
--- /dev/null
+++ b/dist/examples/cxx/hybrid/streaming/nmakefile
@@ -0,0 +1,58 @@
+root = ..\..\..\..
+
+!include $(root)\build\cxx\rules.nmake
+
+# Build.
+#
+EXTRA_CPPFLAGS = /I$(root)\libxsde
+
+!if "$(XSDE_STL)" == "n"
+EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --no-stl
+!endif
+
+!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
+
+driver.exe: driver.obj position.obj position-pskel.obj position-pimpl.obj \
+position-sskel.obj position-simpl.obj object-pimpl.obj object-simpl.obj \
+$(root)\libxsde\xsde\xsde.lib
+
+driver.obj: driver.cxx position.hxx position-pimpl.hxx position-simpl.hxx
+position.obj: position.cxx position.hxx
+position-pskel.obj: position-pskel.cxx
+position-pimpl.obj: position-pimpl.cxx
+position-simpl.obj: position-simpl.cxx
+position-simpl.obj: position-simpl.cxx
+object-pimpl.obj: object-pimpl.cxx object-pimpl.hxx position.hxx
+object-simpl.obj: object-simpl.cxx object-simpl.hxx position.hxx
+
+position.cxx position.hxx \
+position-pskel.cxx position-pskel.hxx position-pimpl.cxx position-pimpl.hxx \
+position-sskel.cxx position-sskel.hxx position-simpl.cxx position-simpl.hxx \
+: position.xsd
+ $(root)\bin\xsde.exe cxx-hybrid $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
+--generate-parser --generate-serializer --generate-aggregate \
+--custom-parser object=/object-pimpl.hxx \
+--custom-serializer object=/object-simpl.hxx position.xsd
+
+# Test.
+#
+test: driver.exe position.xml
+ .\driver.exe position.xml
+
+# Clean.
+#
+clean:
+ -del position-pimpl.?xx position-pskel.?xx position-simpl.?xx \
+position-sskel.?xx position.?xx object-pimpl.obj object-simpl.obj \
+position-pimpl.obj position-pskel.obj position-simpl.obj position-sskel.obj \
+position.obj driver.obj driver.exe
diff --git a/dist/examples/cxx/hybrid/wildcard/makefile b/dist/examples/cxx/hybrid/wildcard/makefile
new file mode 100644
index 0000000..9d4dfa2
--- /dev/null
+++ b/dist/examples/cxx/hybrid/wildcard/makefile
@@ -0,0 +1,59 @@
+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_PARSER_VALIDATION),n)
+EXTRA_XSDFLAGS += --suppress-validation
+endif
+
+ifeq ($(XSDE_REUSE_STYLE),mixin)
+EXTRA_XSDFLAGS += --reuse-style-mixin
+endif
+
+driver: driver.o email.o body.o email-pskel.o email-pimpl.o \
+email-sskel.o email-simpl.o envelope-pimpl.o envelope-simpl.o \
+$(root)/libxsde/xsde/libxsde.a
+
+driver.o: driver.cxx email.hxx body.hxx email-pimpl.hxx email-simpl.hxx
+email.o: email.cxx email.hxx
+body.o: body.cxx body.hxx email.hxx
+email-pskel.o: email-pskel.cxx
+email-pimpl.o: email-pimpl.cxx
+email-simpl.o: email-simpl.cxx
+email-simpl.o: email-simpl.cxx
+envelope-pimpl.o: envelope-pimpl.cxx envelope-pimpl.hxx email.hxx body.hxx
+envelope-simpl.o: envelope-simpl.cxx envelope-simpl.hxx email.hxx body.hxx
+
+.PRECIOUS: %.hxx %.cxx %-pskel.hxx %-pskel.cxx %-pimpl.hxx %-pimpl.cxx \
+%-sskel.hxx %-sskel.cxx %-simpl.hxx %-simpl.cxx
+
+%.hxx %.cxx %-pskel.hxx %-pskel.cxx %-pimpl.hxx %-pimpl.cxx \
+%-sskel.hxx %-sskel.cxx %-simpl.hxx %-simpl.cxx: %.xsd
+ $(root)/bin/xsde cxx-hybrid $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
+--generate-parser --generate-serializer --generate-aggregate \
+--root-element-all --custom-data envelope \
+--custom-parser envelope=envelope_base_pimpl/envelope-pimpl.hxx \
+--custom-serializer envelope=envelope_base_simpl/envelope-simpl.hxx $<
+
+# Test.
+#
+.PHONY: test
+test: driver email.xml
+ ./driver email.xml
+
+# Clean.
+#
+.PHONY: clean
+clean:
+ rm -f email-pimpl.?xx email-pskel.?xx email-simpl.?xx \
+email-sskel.?xx email.?xx envelope-pimpl.o envelope-simpl.o \
+email-pimpl.o email-pskel.o email-simpl.o email-sskel.o \
+body.o email.o driver.o driver
diff --git a/dist/examples/cxx/hybrid/wildcard/nmakefile b/dist/examples/cxx/hybrid/wildcard/nmakefile
new file mode 100644
index 0000000..acdb033
--- /dev/null
+++ b/dist/examples/cxx/hybrid/wildcard/nmakefile
@@ -0,0 +1,56 @@
+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
+
+driver.exe: driver.obj email.obj body.obj email-pskel.obj email-pimpl.obj \
+email-sskel.obj email-simpl.obj envelope-pimpl.obj envelope-simpl.obj \
+$(root)\libxsde\xsde\xsde.lib
+
+driver.obj: driver.cxx email.hxx body.hxx email-pimpl.hxx email-simpl.hxx
+email.obj: email.cxx email.hxx
+body.obj: body.cxx body.hxx email.hxx
+email-pskel.obj: email-pskel.cxx
+email-pimpl.obj: email-pimpl.cxx
+email-simpl.obj: email-simpl.cxx
+email-simpl.obj: email-simpl.cxx
+envelope-pimpl.obj: envelope-pimpl.cxx envelope-pimpl.hxx email.hxx body.hxx
+envelope-simpl.obj: envelope-simpl.cxx envelope-simpl.hxx email.hxx body.hxx
+
+email.cxx email.hxx \
+email-pskel.cxx email-pskel.hxx email-pimpl.cxx email-pimpl.hxx \
+email-sskel.cxx email-sskel.hxx email-simpl.cxx email-simpl.hxx \
+: email.xsd
+ $(root)\bin\xsde.exe cxx-hybrid $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
+--generate-parser --generate-serializer --generate-aggregate \
+--root-element-all --custom-data envelope \
+--custom-parser envelope=envelope_base_pimpl/envelope-pimpl.hxx \
+--custom-serializer envelope=envelope_base_simpl/envelope-simpl.hxx email.xsd
+
+# Test.
+#
+test: driver.exe email.xml
+ .\driver.exe email.xml
+
+# Clean.
+#
+clean:
+ -del email-pimpl.?xx email-pskel.?xx email-simpl.?xx \
+email-sskel.?xx email.?xx envelope-pimpl.obj envelope-simpl.obj \
+email-pimpl.obj email-pskel.obj email-simpl.obj email-sskel.obj \
+body.obj email.obj driver.obj driver.exe
diff --git a/dist/examples/cxx/makefile b/dist/examples/cxx/makefile
new file mode 100644
index 0000000..4e08939
--- /dev/null
+++ b/dist/examples/cxx/makefile
@@ -0,0 +1,11 @@
+dirs := hybrid parser serializer
+
+.PHONY: all $(dirs)
+
+all: $(dirs)
+
+$(dirs):
+ @$(MAKE) -C $@ $(MAKECMDGOALS)
+
+makefile: ;
+% :: $(dirs) ;
diff --git a/dist/examples/cxx/nmakefile b/dist/examples/cxx/nmakefile
new file mode 100644
index 0000000..a137db9
--- /dev/null
+++ b/dist/examples/cxx/nmakefile
@@ -0,0 +1,9 @@
+dirs = hybrid parser serializer
+
+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/parser/generated/makefile b/dist/examples/cxx/parser/generated/makefile
new file mode 100644
index 0000000..6e5e960
--- /dev/null
+++ b/dist/examples/cxx/parser/generated/makefile
@@ -0,0 +1,69 @@
+root := ../../../..
+
+include $(root)/build/cxx/rules.make
+
+# Build.
+#
+EXTRA_CPPFLAGS += -I$(root)/libxsde
+
+EXTRA_XSDFLAGS := --generate-print-impl --generate-test-driver
+
+# If you are basing your own code on this example and make changes
+# to the sample implementation and/or test driver, make sure you
+# remove this option or your changes will be lost forever.
+#
+EXTRA_XSDFLAGS += --force-overwrite
+
+ifeq ($(XSDE_STL),n)
+EXTRA_XSDFLAGS += --no-stl
+endif
+
+ifeq ($(XSDE_IOSTREAM),n)
+EXTRA_XSDFLAGS += --no-iostream
+endif
+
+ifeq ($(XSDE_EXCEPTIONS),n)
+EXTRA_XSDFLAGS += --no-exceptions
+endif
+
+ifeq ($(XSDE_LONGLONG),n)
+EXTRA_XSDFLAGS += --no-long-long
+endif
+
+ifeq ($(XSDE_PARSER_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
+
+library-pdriver: library-pdriver.o library-pskel.o library-pimpl.o $(root)/libxsde/xsde/libxsde.a
+
+library-pdriver.o: library-pdriver.cxx library-pimpl.hxx library-pskel.hxx
+library-pimpl.o: library-pimpl.cxx library-pimpl.hxx library-pskel.hxx
+library-pskel.o: library-pskel.cxx library-pskel.hxx
+
+.PRECIOUS: %-pskel.hxx %-pskel.cxx %-pimpl.hxx %-pimpl.cxx %-pdriver.cxx
+
+%-pskel.hxx %-pskel.cxx %-pimpl.hxx %-pimpl.cxx %-pdriver.cxx: %.xsd
+ $(root)/bin/xsde cxx-parser $(XSDFLAGS) $(EXTRA_XSDFLAGS) $<
+
+
+# Test.
+#
+.PHONY: test
+test: library-pdriver library.xml
+ ./library-pdriver library.xml
+
+
+# Clean.
+#
+.PHONY: clean
+clean:
+ rm -f library-pdriver.?xx library-pimpl.?xx library-pskel.?xx
+ rm -f library-pdriver.o library-pimpl.o library-pskel.o library-pdriver
diff --git a/dist/examples/cxx/parser/generated/nmakefile b/dist/examples/cxx/parser/generated/nmakefile
new file mode 100644
index 0000000..ee4597e
--- /dev/null
+++ b/dist/examples/cxx/parser/generated/nmakefile
@@ -0,0 +1,68 @@
+root = ..\..\..\..
+
+!include $(root)\build\cxx\rules.nmake
+
+# Build.
+#
+EXTRA_CPPFLAGS = /I$(root)\libxsde
+
+EXTRA_XSDFLAGS = --generate-print-impl --generate-test-driver
+
+# If you are basing your own code on this example and make changes
+# to the sample implementation and/or test driver, make sure you
+# remove this option or your changes will be lost forever.
+#
+EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --force-overwrite
+
+!if "$(XSDE_STL)" == "n"
+EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --no-stl
+!endif
+
+!if "$(XSDE_IOSTREAM)" == "n"
+EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --no-iostream
+!endif
+
+!if "$(XSDE_EXCEPTIONS)" == "n"
+EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --no-exceptions
+!endif
+
+!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_POLYMORPHIC)" == "y"
+EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --runtime-polymorphic
+!endif
+
+library-pdriver.exe: library-pdriver.obj library-pskel.obj library-pimpl.obj $(root)\libxsde\xsde\xsde.lib
+
+library-pdriver.obj: library-pdriver.cxx library-pimpl.hxx library-pskel.hxx
+library-pimpl.obj: library-pimpl.cxx library-pimpl.hxx library-pskel.hxx
+library-pskel.obj: library-pskel.cxx library-pskel.hxx
+
+
+library-pskel.hxx library-pskel.cxx \
+library-pimpl.hxx library-pimpl.cxx \
+library-pdriver.cxx: library.xsd
+ $(root)\bin\xsde.exe cxx-parser $(XSDFLAGS) $(EXTRA_XSDFLAGS) library.xsd
+
+
+# Test.
+#
+test: library-pdriver.exe library.xml
+ .\library-pdriver.exe library.xml
+
+
+# Clean.
+#
+clean:
+ -del library-pdriver.?xx library-pimpl.?xx library-pskel.?xx
+ -del library-pdriver.obj library-pimpl.obj library-pskel.obj library-pdriver.exe
diff --git a/dist/examples/cxx/parser/hello/makefile b/dist/examples/cxx/parser/hello/makefile
new file mode 100644
index 0000000..d31ecff
--- /dev/null
+++ b/dist/examples/cxx/parser/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_PARSER_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-pskel.o $(root)/libxsde/xsde/libxsde.a
+
+driver.o: driver.cxx hello-pskel.hxx
+hello-pskel.o: hello-pskel.cxx hello-pskel.hxx
+
+.PRECIOUS: %-pskel.hxx %-pskel.cxx
+%-pskel.hxx %-pskel.cxx: %.xsd
+ $(root)/bin/xsde cxx-parser $(XSDFLAGS) $(EXTRA_XSDFLAGS) $<
+
+# Test.
+#
+.PHONY: test
+test: driver hello.xml
+ ./driver hello.xml
+
+
+# Clean.
+#
+.PHONY: clean
+clean:
+ rm -f hello-pskel.?xx hello-pskel.o driver.o driver
+
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
+
diff --git a/dist/examples/cxx/parser/library/makefile b/dist/examples/cxx/parser/library/makefile
new file mode 100644
index 0000000..a0ed792
--- /dev/null
+++ b/dist/examples/cxx/parser/library/makefile
@@ -0,0 +1,55 @@
+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_PARSER_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-pimpl-mixin
+else
+impl := library-pimpl-tiein
+endif
+
+driver: driver.o library-pskel.o $(impl).o $(root)/libxsde/xsde/libxsde.a
+
+driver.o: driver.cxx $(impl).hxx library-pskel.hxx library.hxx
+$(impl).o: $(impl).cxx $(impl).hxx library-pskel.hxx library.hxx
+library-pskel.o: library-pskel.cxx library-pskel.hxx library.hxx
+
+.PRECIOUS: %-pskel.hxx %-pskel.cxx
+
+%-pskel.hxx %-pskel.cxx: %.xsd %.map
+ $(root)/bin/xsde cxx-parser $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
+--type-map $*.map $<
+
+
+# Test.
+#
+.PHONY: test
+test: driver library.xml
+ ./driver library.xml
+
+
+# Clean.
+#
+.PHONY: clean
+clean:
+ rm -f library-pskel.?xx $(impl).o library-pskel.o driver.o driver
diff --git a/dist/examples/cxx/parser/library/nmakefile b/dist/examples/cxx/parser/library/nmakefile
new file mode 100644
index 0000000..42d2a71
--- /dev/null
+++ b/dist/examples/cxx/parser/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_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_POLYMORPHIC)" == "y"
+EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --runtime-polymorphic
+!endif
+
+!if "$(XSDE_REUSE_STYLE)" == "mixin"
+impl = library-pimpl-mixin
+!else
+impl = library-pimpl-tiein
+!endif
+
+driver.exe: driver.obj library-pskel.obj $(impl).obj $(root)\libxsde\xsde\xsde.lib
+
+driver.obj: driver.cxx $(impl).hxx library-pskel.hxx library.hxx
+$(impl).obj: $(impl).cxx $(impl).hxx library-pskel.hxx library.hxx
+library-pskel.obj: library-pskel.cxx library-pskel.hxx library.hxx
+
+
+library-pskel.hxx library-pskel.cxx: library.xsd library.map
+ $(root)\bin\xsde.exe cxx-parser $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
+--type-map library.map library.xsd
+
+
+# Test.
+#
+test: driver.exe library.xml
+ .\driver.exe library.xml
+
+
+# Clean.
+#
+clean:
+ -del library-pskel.?xx $(impl).obj library-pskel.obj driver.obj driver.exe
+
diff --git a/dist/examples/cxx/parser/makefile b/dist/examples/cxx/parser/makefile
new file mode 100644
index 0000000..c286089
--- /dev/null
+++ b/dist/examples/cxx/parser/makefile
@@ -0,0 +1,53 @@
+root := ../../..
+
+include $(root)/build/config.make
+
+dirs :=
+
+ifneq ($(XSDE_REUSE_STYLE),none)
+dirs += generated
+endif
+
+ifeq ($(XSDE_STL),y)
+ifeq ($(XSDE_IOSTREAM),y)
+ifeq ($(XSDE_EXCEPTIONS),y)
+
+dirs += hello
+
+ifneq ($(XSDE_REUSE_STYLE),none)
+dirs += library multiroot
+
+ifeq ($(XSDE_POLYMORPHIC),y)
+dirs += polymorphism polyroot
+endif
+
+endif
+
+ifeq ($(XSDE_REUSE_STYLE),tiein)
+dirs += mixed 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/parser/minimal/makefile b/dist/examples/cxx/parser/minimal/makefile
new file mode 100644
index 0000000..bf1ac74
--- /dev/null
+++ b/dist/examples/cxx/parser/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_PARSER_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-pimpl-mixin
+else
+impl := people-pimpl-tiein
+endif
+
+driver: driver.o people-pskel.o $(root)/libxsde/xsde/libxsde.a
+
+driver.o: driver.cxx $(impl).hxx people-pskel.hxx gender.hxx
+people-pskel.o: people-pskel.cxx people-pskel.hxx gender.hxx
+
+.PRECIOUS: %-pskel.hxx %-pskel.cxx
+
+%-pskel.hxx %-pskel.cxx: %.xsd %.map
+ $(root)/bin/xsde cxx-parser $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
+--type-map $*.map $<
+
+# Test.
+#
+.PHONY: test
+test: driver people.xml
+ ./driver people.xml
+
+
+# Clean.
+#
+.PHONY: clean
+clean:
+ rm -f people-pskel.?xx people-pskel.o driver.o driver
+
diff --git a/dist/examples/cxx/parser/minimal/nmakefile b/dist/examples/cxx/parser/minimal/nmakefile
new file mode 100644
index 0000000..4230425
--- /dev/null
+++ b/dist/examples/cxx/parser/minimal/nmakefile
@@ -0,0 +1,56 @@
+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_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_POLYMORPHIC)" == "y"
+EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --runtime-polymorphic
+!endif
+
+!if "$(XSDE_REUSE_STYLE)" == "mixin"
+impl = people-pimpl-mixin
+!else
+impl = people-pimpl-tiein
+!endif
+
+driver.exe: driver.obj people-pskel.obj $(root)\libxsde\xsde\xsde.lib
+
+driver.obj: driver.cxx $(impl).hxx people-pskel.hxx gender.hxx
+people-pskel.obj: people-pskel.cxx people-pskel.hxx gender.hxx
+
+people-pskel.cxx people-pskel.hxx: people.xsd people.map
+ $(root)\bin\xsde.exe cxx-parser $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
+--type-map people.map people.xsd
+
+# Test.
+#
+test: driver.exe people.xml
+ .\driver.exe people.xml
+
+
+# Clean.
+#
+clean:
+ -del people-pskel.?xx people-pskel.obj driver.obj driver.exe
+
diff --git a/dist/examples/cxx/parser/mixed/makefile b/dist/examples/cxx/parser/mixed/makefile
new file mode 100644
index 0000000..412edfe
--- /dev/null
+++ b/dist/examples/cxx/parser/mixed/makefile
@@ -0,0 +1,43 @@
+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_PARSER_VALIDATION),n)
+EXTRA_XSDFLAGS += --suppress-validation
+endif
+
+ifeq ($(XSDE_POLYMORPHIC),y)
+EXTRA_XSDFLAGS += --runtime-polymorphic
+endif
+
+driver: driver.o text-pskel.o $(root)/libxsde/xsde/libxsde.a
+
+driver.o: driver.cxx text-pskel.hxx anchor.hxx
+text-pskel.o: text-pskel.cxx text-pskel.hxx anchor.hxx
+
+.PRECIOUS: %-pskel.hxx %-pskel.cxx
+
+%-pskel.hxx %-pskel.cxx: %.xsd %.map
+ $(root)/bin/xsde cxx-parser $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
+--type-map $*.map $<
+
+# Test.
+#
+.PHONY: test
+test: driver text.xml
+ ./driver text.xml
+
+# Clean.
+#
+.PHONY: clean
+clean:
+ rm -f text-pskel.?xx text-pskel.o driver.o driver
+
diff --git a/dist/examples/cxx/parser/mixed/nmakefile b/dist/examples/cxx/parser/mixed/nmakefile
new file mode 100644
index 0000000..5f9ebc9
--- /dev/null
+++ b/dist/examples/cxx/parser/mixed/nmakefile
@@ -0,0 +1,40 @@
+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_POLYMORPHIC)" == "y"
+EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --runtime-polymorphic
+!endif
+
+driver.exe: driver.obj text-pskel.obj $(root)\libxsde\xsde\xsde.lib
+
+driver.obj: driver.cxx text-pskel.hxx anchor.hxx
+text-pskel.obj: text-pskel.cxx text-pskel.hxx anchor.hxx
+
+text-pskel.hxx text-pskel.cxx: text.xsd text.map
+ $(root)\bin\xsde.exe cxx-parser $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
+--type-map text.map text.xsd
+
+# Test.
+#
+test: driver.exe text.xml
+ .\driver.exe text.xml
+
+
+# Clean.
+#
+clean:
+ -del text-pskel.?xx text-pskel.obj driver.obj driver.exe
+
diff --git a/dist/examples/cxx/parser/multiroot/makefile b/dist/examples/cxx/parser/multiroot/makefile
new file mode 100644
index 0000000..d4d6363
--- /dev/null
+++ b/dist/examples/cxx/parser/multiroot/makefile
@@ -0,0 +1,58 @@
+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_PARSER_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 := protocol-pimpl-mixin
+else
+impl := protocol-pimpl-tiein
+endif
+
+
+driver: driver.o protocol-pskel.o $(impl).o $(root)/libxsde/xsde/libxsde.a
+
+driver.o: driver.cxx $(impl).hxx protocol-pskel.hxx protocol.hxx
+$(impl).o: $(impl).cxx $(impl).hxx protocol-pskel.hxx protocol.hxx
+protocol-pskel.o: protocol-pskel.cxx protocol-pskel.hxx protocol.hxx
+
+.PRECIOUS: %-pskel.hxx %-pskel.cxx
+
+%-pskel.hxx %-pskel.cxx: %.xsd %.map
+ $(root)/bin/xsde cxx-parser $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
+--type-map $*.map $<
+
+
+# Test.
+#
+.PHONY: test
+test: driver balance.xml withdraw.xml deposit.xml
+ ./driver balance.xml
+ ./driver withdraw.xml
+ ./driver deposit.xml
+
+# Clean.
+#
+.PHONY: clean
+clean:
+ rm -f protocol-pskel.?xx $(impl).o protocol-pskel.o driver.o driver
+
diff --git a/dist/examples/cxx/parser/multiroot/nmakefile b/dist/examples/cxx/parser/multiroot/nmakefile
new file mode 100644
index 0000000..05e6a7d
--- /dev/null
+++ b/dist/examples/cxx/parser/multiroot/nmakefile
@@ -0,0 +1,54 @@
+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_POLYMORPHIC)" == "y"
+EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --runtime-polymorphic
+!endif
+
+!if "$(XSDE_REUSE_STYLE)" == "mixin"
+impl = protocol-pimpl-mixin
+!else
+impl = protocol-pimpl-tiein
+!endif
+
+
+driver.exe: driver.obj protocol-pskel.obj $(impl).obj $(root)\libxsde\xsde\xsde.lib
+
+driver.obj: driver.cxx $(impl).hxx protocol-pskel.hxx protocol.hxx
+$(impl).obj: $(impl).cxx $(impl).hxx protocol-pskel.hxx protocol.hxx
+protocol-pskel.obj: protocol-pskel.cxx protocol-pskel.hxx protocol.hxx
+
+
+protocol-pskel.hxx protocol-pskel.cxx: protocol.xsd protocol.map
+ $(root)\bin\xsde.exe cxx-parser $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
+--type-map protocol.map protocol.xsd
+
+
+# Test.
+#
+test: driver.exe balance.xml withdraw.xml deposit.xml
+ .\driver balance.xml
+ .\driver withdraw.xml
+ .\driver deposit.xml
+
+# Clean.
+#
+clean:
+ -del protocol-pskel.?xx $(impl).obj protocol-pskel.obj driver.obj driver.exe
diff --git a/dist/examples/cxx/parser/nmakefile b/dist/examples/cxx/parser/nmakefile
new file mode 100644
index 0000000..9964a64
--- /dev/null
+++ b/dist/examples/cxx/parser/nmakefile
@@ -0,0 +1,48 @@
+root = ..\..\..
+
+!include $(root)\build\config.nmake
+
+dirs =
+
+!if "$(XSDE_REUSE_STYLE)" != "none"
+dirs = $(dirs) generated
+!endif
+
+!if "$(XSDE_STL)" == "y"
+!if "$(XSDE_IOSTREAM)" == "y"
+!if "$(XSDE_EXCEPTIONS)" == "y"
+
+dirs = $(dirs) hello
+
+!if "$(XSDE_REUSE_STYLE)" != "none"
+dirs = $(dirs) library multiroot
+
+!if "$(XSDE_POLYMORPHIC)" == "y"
+dirs = $(dirs) polymorphism polyroot
+!endif
+
+!endif
+
+!if "$(XSDE_REUSE_STYLE)" == "tiein"
+dirs = $(dirs) mixed 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/parser/polymorphism/makefile b/dist/examples/cxx/parser/polymorphism/makefile
new file mode 100644
index 0000000..f0717a4
--- /dev/null
+++ b/dist/examples/cxx/parser/polymorphism/makefile
@@ -0,0 +1,51 @@
+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_PARSER_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-pimpl-mixin
+else
+impl := supermen-pimpl-tiein
+endif
+
+driver: driver.o supermen-pskel.o $(impl).o $(root)/libxsde/xsde/libxsde.a
+
+driver.o: driver.cxx $(impl).hxx supermen-pskel.hxx
+$(impl).o: $(impl).cxx $(impl).hxx supermen-pskel.hxx
+supermen-pskel.o: supermen-pskel.cxx supermen-pskel.hxx
+
+.PRECIOUS: %-pskel.hxx %-pskel.cxx
+
+%-pskel.hxx %-pskel.cxx: %.xsd
+ $(root)/bin/xsde cxx-parser $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
+--generate-polymorphic $<
+
+
+# Test.
+#
+.PHONY: test
+test: driver supermen.xml
+ ./driver supermen.xml
+
+
+# Clean.
+#
+.PHONY: clean
+clean:
+ rm -f supermen-pskel.?xx $(impl).o supermen-pskel.o driver.o driver
diff --git a/dist/examples/cxx/parser/polymorphism/nmakefile b/dist/examples/cxx/parser/polymorphism/nmakefile
new file mode 100644
index 0000000..7047eb1
--- /dev/null
+++ b/dist/examples/cxx/parser/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_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)" == "mixin"
+impl = supermen-pimpl-mixin
+!else
+impl = supermen-pimpl-tiein
+!endif
+
+driver.exe: driver.obj supermen-pskel.obj $(impl).obj $(root)\libxsde\xsde\xsde.lib
+
+driver.obj: driver.cxx $(impl).hxx supermen-pskel.hxx
+$(impl).obj: $(impl).cxx $(impl).hxx supermen-pskel.hxx
+supermen-pskel.obj: supermen-pskel.cxx supermen-pskel.hxx
+
+
+supermen-pskel.hxx supermen-pskel.cxx: supermen.xsd
+ $(root)\bin\xsde.exe cxx-parser $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
+--generate-polymorphic supermen.xsd
+
+
+# Test.
+#
+test: driver.exe supermen.xml
+ .\driver.exe supermen.xml
+
+
+# Clean.
+#
+clean:
+ -del supermen-pskel.?xx $(impl).obj supermen-pskel.obj driver.obj driver.exe
+
diff --git a/dist/examples/cxx/parser/polyroot/makefile b/dist/examples/cxx/parser/polyroot/makefile
new file mode 100644
index 0000000..d89e527
--- /dev/null
+++ b/dist/examples/cxx/parser/polyroot/makefile
@@ -0,0 +1,53 @@
+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_PARSER_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-pimpl-mixin
+else
+impl := supermen-pimpl-tiein
+endif
+
+driver: driver.o supermen-pskel.o $(impl).o $(root)/libxsde/xsde/libxsde.a
+
+driver.o: driver.cxx $(impl).hxx supermen-pskel.hxx
+$(impl).o: $(impl).cxx $(impl).hxx supermen-pskel.hxx
+supermen-pskel.o: supermen-pskel.cxx supermen-pskel.hxx
+
+.PRECIOUS: %-pskel.hxx %-pskel.cxx
+
+%-pskel.hxx %-pskel.cxx: %.xsd
+ $(root)/bin/xsde cxx-parser $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
+--generate-polymorphic $<
+
+
+# Test.
+#
+.PHONY: test
+test: driver person.xml batman.xml superman.xml
+ ./driver person.xml
+ ./driver batman.xml
+ ./driver superman.xml
+
+
+# Clean.
+#
+.PHONY: clean
+clean:
+ rm -f supermen-pskel.?xx $(impl).o supermen-pskel.o driver.o driver
diff --git a/dist/examples/cxx/parser/polyroot/nmakefile b/dist/examples/cxx/parser/polyroot/nmakefile
new file mode 100644
index 0000000..02146ad
--- /dev/null
+++ b/dist/examples/cxx/parser/polyroot/nmakefile
@@ -0,0 +1,51 @@
+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)" == "mixin"
+impl = supermen-pimpl-mixin
+!else
+impl = supermen-pimpl-tiein
+!endif
+
+driver.exe: driver.obj supermen-pskel.obj $(impl).obj $(root)\libxsde\xsde\xsde.lib
+
+driver.obj: driver.cxx $(impl).hxx supermen-pskel.hxx
+$(impl).obj: $(impl).cxx $(impl).hxx supermen-pskel.hxx
+supermen-pskel.obj: supermen-pskel.cxx supermen-pskel.hxx
+
+
+supermen-pskel.hxx supermen-pskel.cxx: supermen.xsd
+ $(root)\bin\xsde.exe cxx-parser $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
+--generate-polymorphic supermen.xsd
+
+
+# Test.
+#
+test: driver.exe person.xml batman.xml superman.xml
+ .\driver person.xml
+ .\driver batman.xml
+ .\driver superman.xml
+
+
+# Clean.
+#
+clean:
+ -del supermen-pskel.?xx $(impl).obj supermen-pskel.obj driver.obj driver.exe
+
diff --git a/dist/examples/cxx/parser/wildcard/makefile b/dist/examples/cxx/parser/wildcard/makefile
new file mode 100644
index 0000000..34830b9
--- /dev/null
+++ b/dist/examples/cxx/parser/wildcard/makefile
@@ -0,0 +1,42 @@
+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_PARSER_VALIDATION),n)
+EXTRA_XSDFLAGS += --suppress-validation
+endif
+
+ifeq ($(XSDE_POLYMORPHIC),y)
+EXTRA_XSDFLAGS += --runtime-polymorphic
+endif
+
+driver: driver.o email-pskel.o $(root)/libxsde/xsde/libxsde.a
+
+driver.o: driver.cxx email-pskel.hxx
+email-pskel.o: email-pskel.cxx email-pskel.hxx
+
+.PRECIOUS: %-pskel.hxx %-pskel.cxx
+%-pskel.hxx %-pskel.cxx: %.xsd
+ $(root)/bin/xsde cxx-parser $(XSDFLAGS) $(EXTRA_XSDFLAGS) $<
+
+# Test.
+#
+.PHONY: test
+test: driver email.xml
+ ./driver email.xml
+
+
+# Clean.
+#
+.PHONY: clean
+clean:
+ rm -f email-pskel.?xx email-pskel.o driver.o driver
+
diff --git a/dist/examples/cxx/parser/wildcard/nmakefile b/dist/examples/cxx/parser/wildcard/nmakefile
new file mode 100644
index 0000000..c1f333b
--- /dev/null
+++ b/dist/examples/cxx/parser/wildcard/nmakefile
@@ -0,0 +1,39 @@
+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_POLYMORPHIC)" == "y"
+EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --runtime-polymorphic
+!endif
+
+driver.exe: driver.obj email-pskel.obj $(root)\libxsde\xsde\xsde.lib
+
+driver.obj: driver.cxx email-pskel.hxx
+email-pskel.obj: email-pskel.cxx email-pskel.hxx
+
+email-pskel.cxx email-pskel.hxx: email.xsd
+ $(root)\bin\xsde.exe cxx-parser $(XSDFLAGS) $(EXTRA_XSDFLAGS) email.xsd
+
+# Test.
+#
+test: driver.exe email.xml
+ .\driver.exe email.xml
+
+
+# Clean.
+#
+clean:
+ -del email-pskel.?xx email-pskel.obj driver.obj driver.exe
+
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
+
diff --git a/dist/examples/makefile b/dist/examples/makefile
new file mode 100644
index 0000000..5b8947e
--- /dev/null
+++ b/dist/examples/makefile
@@ -0,0 +1,11 @@
+dirs := cxx
+
+.PHONY: all $(dirs)
+
+all: $(dirs)
+
+$(dirs):
+ $(MAKE) -C $@ $(MAKECMDGOALS)
+
+makefile: ;
+% :: $(dirs) ;
diff --git a/dist/examples/nmakefile b/dist/examples/nmakefile
new file mode 100644
index 0000000..1f3db7e
--- /dev/null
+++ b/dist/examples/nmakefile
@@ -0,0 +1,9 @@
+dirs = cxx
+
+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/libxsde/makefile b/dist/libxsde/makefile
new file mode 100644
index 0000000..2f1787e
--- /dev/null
+++ b/dist/libxsde/makefile
@@ -0,0 +1,10 @@
+dirs := xsde
+
+.PHONY: all $(dirs)
+all: $(dirs)
+
+$(dirs):
+ $(MAKE) -C $@ $(MAKECMDGOALS)
+
+makefile: ;
+% :: $(dirs) ;
diff --git a/dist/libxsde/nmakefile b/dist/libxsde/nmakefile
new file mode 100644
index 0000000..9ecb241
--- /dev/null
+++ b/dist/libxsde/nmakefile
@@ -0,0 +1,9 @@
+dirs = xsde
+
+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/libxsde/xsde/makefile b/dist/libxsde/xsde/makefile
new file mode 100644
index 0000000..7ce4bdc
--- /dev/null
+++ b/dist/libxsde/xsde/makefile
@@ -0,0 +1,547 @@
+root := ../..
+
+include $(root)/build/config.make
+include $(root)/build/c/rules.make
+include $(root)/build/cxx/rules.make
+
+EXTRA_CPPFLAGS := -I..
+
+src := c/expat/xmlparse.c c/expat/xmlrole.c c/expat/xmltok.c
+src += c/genx/genx.c c/genx/char-props.c
+
+src += cxx/string.cxx cxx/ro-string.cxx
+
+ifeq ($(XSDE_STL),n)
+src += cxx/strdupx.cxx
+endif
+
+ifeq ($(XSDE_EXCEPTIONS),n)
+src += cxx/sys-error.cxx
+endif
+
+ifneq ($(XSDE_PARSER_VALIDATION)$(XSDE_SERIALIZER_VALIDATION),nn)
+src += cxx/schema-error.cxx
+endif
+
+ifeq ($(XSDE_POLYMORPHIC),y)
+src += cxx/hashmap.cxx
+endif
+
+# Common data types.
+#
+src += cxx/buffer.cxx cxx/sequence-base.cxx
+
+ifeq ($(XSDE_STL),y)
+src += cxx/string-sequence-stl.cxx
+else
+src += cxx/qname.cxx cxx/string-sequence.cxx
+endif
+
+
+## XML
+##
+ifneq ($(XSDE_PARSER_VALIDATION)$(XSDE_SERIALIZER_VALIDATION),nn)
+src += cxx/xml/char-table.cxx cxx/xml/ncname.cxx
+endif
+
+
+## C++/Hybrid
+##
+src += cxx/hybrid/sequence.cxx
+
+
+## C++/Parser
+##
+src += cxx/parser/elements.cxx cxx/parser/state.cxx
+src += cxx/parser/expat/document.cxx cxx/parser/expat/xml-error.cxx
+
+ifeq ($(XSDE_POLYMORPHIC),y)
+src += cxx/parser/map.cxx cxx/parser/substitution-map.cxx
+endif
+
+ifeq ($(XSDE_EXCEPTIONS),y)
+src += cxx/parser/exceptions.cxx
+else
+src += cxx/parser/error.cxx
+endif
+
+# Parser implementations.
+#
+ifeq ($(XSDE_PARSER_VALIDATION),y)
+
+src += \
+cxx/parser/validating/parser.cxx \
+cxx/parser/validating/time-zone.cxx \
+cxx/parser/validating/xml-schema-pskel.cxx
+
+ifeq ($(XSDE_POLYMORPHIC),y)
+src += cxx/parser/validating/inheritance-map.cxx
+endif
+
+src += \
+cxx/parser/validating/boolean.cxx \
+cxx/parser/validating/number.cxx \
+cxx/parser/validating/byte.cxx \
+cxx/parser/validating/unsigned-byte.cxx \
+cxx/parser/validating/short.cxx \
+cxx/parser/validating/unsigned-short.cxx \
+cxx/parser/validating/int.cxx \
+cxx/parser/validating/unsigned-int.cxx \
+cxx/parser/validating/integer.cxx \
+cxx/parser/validating/negative-integer.cxx \
+cxx/parser/validating/non-positive-integer.cxx \
+cxx/parser/validating/positive-integer.cxx \
+cxx/parser/validating/non-negative-integer.cxx \
+cxx/parser/validating/float.cxx \
+cxx/parser/validating/double.cxx \
+cxx/parser/validating/decimal.cxx
+
+ifeq ($(XSDE_LONGLONG),y)
+src += \
+cxx/parser/validating/long-long.cxx \
+cxx/parser/validating/unsigned-long-long.cxx
+else
+src += \
+cxx/parser/validating/long.cxx \
+cxx/parser/validating/unsigned-long.cxx
+endif
+
+ifeq ($(XSDE_STL),y)
+
+src += \
+cxx/parser/validating/string-stl.cxx \
+cxx/parser/validating/normalized-string-stl.cxx \
+cxx/parser/validating/token-stl.cxx \
+cxx/parser/validating/name-stl.cxx \
+cxx/parser/validating/nmtoken-stl.cxx \
+cxx/parser/validating/nmtokens-stl.cxx \
+cxx/parser/validating/ncname-stl.cxx \
+cxx/parser/validating/id-stl.cxx \
+cxx/parser/validating/idref-stl.cxx \
+cxx/parser/validating/idrefs-stl.cxx \
+cxx/parser/validating/language-stl.cxx \
+cxx/parser/validating/uri-stl.cxx \
+cxx/parser/validating/qname-stl.cxx
+
+else
+
+src += \
+cxx/parser/validating/string.cxx \
+cxx/parser/validating/normalized-string.cxx \
+cxx/parser/validating/token.cxx \
+cxx/parser/validating/name.cxx \
+cxx/parser/validating/nmtoken.cxx \
+cxx/parser/validating/nmtokens.cxx \
+cxx/parser/validating/ncname.cxx \
+cxx/parser/validating/id.cxx \
+cxx/parser/validating/idref.cxx \
+cxx/parser/validating/idrefs.cxx \
+cxx/parser/validating/language.cxx \
+cxx/parser/validating/uri.cxx \
+cxx/parser/validating/qname.cxx
+
+endif # stl
+
+src += \
+cxx/parser/validating/base64-binary.cxx \
+cxx/parser/validating/hex-binary.cxx \
+cxx/parser/validating/gday.cxx \
+cxx/parser/validating/gmonth.cxx \
+cxx/parser/validating/gyear.cxx \
+cxx/parser/validating/gmonth-day.cxx \
+cxx/parser/validating/gyear-month.cxx \
+cxx/parser/validating/date.cxx \
+cxx/parser/validating/time.cxx \
+cxx/parser/validating/date-time.cxx \
+cxx/parser/validating/duration.cxx
+
+else # validation
+
+src += \
+cxx/parser/non-validating/parser.cxx \
+cxx/parser/non-validating/time-zone.cxx \
+cxx/parser/non-validating/xml-schema-pskel.cxx
+
+src += \
+cxx/parser/non-validating/boolean.cxx \
+cxx/parser/non-validating/number.cxx \
+cxx/parser/non-validating/byte.cxx \
+cxx/parser/non-validating/unsigned-byte.cxx \
+cxx/parser/non-validating/short.cxx \
+cxx/parser/non-validating/unsigned-short.cxx \
+cxx/parser/non-validating/int.cxx \
+cxx/parser/non-validating/unsigned-int.cxx \
+cxx/parser/non-validating/integer.cxx \
+cxx/parser/non-validating/negative-integer.cxx \
+cxx/parser/non-validating/non-positive-integer.cxx \
+cxx/parser/non-validating/positive-integer.cxx \
+cxx/parser/non-validating/non-negative-integer.cxx \
+cxx/parser/non-validating/float.cxx \
+cxx/parser/non-validating/double.cxx \
+cxx/parser/non-validating/decimal.cxx
+
+ifeq ($(XSDE_LONGLONG),y)
+src += \
+cxx/parser/non-validating/long-long.cxx \
+cxx/parser/non-validating/unsigned-long-long.cxx
+else
+src += \
+cxx/parser/non-validating/long.cxx \
+cxx/parser/non-validating/unsigned-long.cxx
+endif
+
+ifeq ($(XSDE_STL),y)
+
+src += \
+cxx/parser/non-validating/string-stl.cxx \
+cxx/parser/non-validating/normalized-string-stl.cxx \
+cxx/parser/non-validating/token-stl.cxx \
+cxx/parser/non-validating/name-stl.cxx \
+cxx/parser/non-validating/nmtoken-stl.cxx \
+cxx/parser/non-validating/nmtokens-stl.cxx \
+cxx/parser/non-validating/ncname-stl.cxx \
+cxx/parser/non-validating/id-stl.cxx \
+cxx/parser/non-validating/idref-stl.cxx \
+cxx/parser/non-validating/idrefs-stl.cxx \
+cxx/parser/non-validating/language-stl.cxx \
+cxx/parser/non-validating/uri-stl.cxx \
+cxx/parser/non-validating/qname-stl.cxx
+
+else
+
+src += \
+cxx/parser/non-validating/string.cxx \
+cxx/parser/non-validating/normalized-string.cxx \
+cxx/parser/non-validating/token.cxx \
+cxx/parser/non-validating/name.cxx \
+cxx/parser/non-validating/nmtoken.cxx \
+cxx/parser/non-validating/nmtokens.cxx \
+cxx/parser/non-validating/ncname.cxx \
+cxx/parser/non-validating/id.cxx \
+cxx/parser/non-validating/idref.cxx \
+cxx/parser/non-validating/idrefs.cxx \
+cxx/parser/non-validating/language.cxx \
+cxx/parser/non-validating/uri.cxx \
+cxx/parser/non-validating/qname.cxx
+
+endif # stl
+
+src += \
+cxx/parser/non-validating/base64-binary.cxx \
+cxx/parser/non-validating/hex-binary.cxx \
+cxx/parser/non-validating/gday.cxx \
+cxx/parser/non-validating/gmonth.cxx \
+cxx/parser/non-validating/gyear.cxx \
+cxx/parser/non-validating/gmonth-day.cxx \
+cxx/parser/non-validating/gyear-month.cxx \
+cxx/parser/non-validating/date.cxx \
+cxx/parser/non-validating/time.cxx \
+cxx/parser/non-validating/date-time.cxx \
+cxx/parser/non-validating/duration.cxx
+
+endif # validation
+
+
+## C++/Serializer
+##
+src += cxx/serializer/elements.cxx cxx/serializer/context.cxx
+src += cxx/serializer/genx/document.cxx cxx/serializer/genx/xml-error.cxx
+
+ifeq ($(XSDE_POLYMORPHIC),y)
+src += cxx/serializer/map.cxx cxx/serializer/substitution-map.cxx
+endif
+
+ifeq ($(XSDE_EXCEPTIONS),y)
+src += cxx/serializer/exceptions.cxx
+else
+src += cxx/serializer/error.cxx
+endif
+
+# Serializer implementations.
+#
+ifeq ($(XSDE_SERIALIZER_VALIDATION),y)
+
+src += \
+cxx/serializer/validating/serializer.cxx \
+cxx/serializer/validating/time-zone.cxx \
+cxx/serializer/validating/xml-schema-sskel.cxx
+
+ifeq ($(XSDE_POLYMORPHIC),y)
+src += cxx/serializer/validating/inheritance-map.cxx
+endif
+
+src += \
+cxx/serializer/validating/boolean.cxx \
+cxx/serializer/validating/byte.cxx \
+cxx/serializer/validating/unsigned-byte.cxx \
+cxx/serializer/validating/short.cxx \
+cxx/serializer/validating/unsigned-short.cxx \
+cxx/serializer/validating/int.cxx \
+cxx/serializer/validating/unsigned-int.cxx \
+cxx/serializer/validating/integer.cxx \
+cxx/serializer/validating/negative-integer.cxx \
+cxx/serializer/validating/non-positive-integer.cxx \
+cxx/serializer/validating/positive-integer.cxx \
+cxx/serializer/validating/non-negative-integer.cxx \
+cxx/serializer/validating/float.cxx \
+cxx/serializer/validating/double.cxx \
+cxx/serializer/validating/decimal.cxx
+
+ifeq ($(XSDE_LONGLONG),y)
+src += \
+cxx/serializer/validating/long-long.cxx \
+cxx/serializer/validating/unsigned-long-long.cxx
+else
+src += \
+cxx/serializer/validating/long.cxx \
+cxx/serializer/validating/unsigned-long.cxx
+endif
+
+ifeq ($(XSDE_STL),y)
+
+src += \
+cxx/serializer/validating/string-stl.cxx \
+cxx/serializer/validating/normalized-string-stl.cxx \
+cxx/serializer/validating/token-stl.cxx \
+cxx/serializer/validating/name-stl.cxx \
+cxx/serializer/validating/nmtoken-stl.cxx \
+cxx/serializer/validating/ncname-stl.cxx \
+cxx/serializer/validating/id-stl.cxx \
+cxx/serializer/validating/idref-stl.cxx \
+cxx/serializer/validating/language-stl.cxx \
+cxx/serializer/validating/uri-stl.cxx \
+cxx/serializer/validating/idrefs-stl.cxx \
+cxx/serializer/validating/nmtokens-stl.cxx \
+cxx/serializer/validating/qname-stl.cxx
+
+else
+
+src += \
+cxx/serializer/validating/string.cxx \
+cxx/serializer/validating/normalized-string.cxx \
+cxx/serializer/validating/token.cxx \
+cxx/serializer/validating/name.cxx \
+cxx/serializer/validating/nmtoken.cxx \
+cxx/serializer/validating/ncname.cxx \
+cxx/serializer/validating/id.cxx \
+cxx/serializer/validating/idref.cxx \
+cxx/serializer/validating/language.cxx \
+cxx/serializer/validating/uri.cxx \
+cxx/serializer/validating/idrefs.cxx \
+cxx/serializer/validating/nmtokens.cxx \
+cxx/serializer/validating/qname.cxx
+
+endif # stl
+
+src += \
+cxx/serializer/validating/base64-binary.cxx \
+cxx/serializer/validating/hex-binary.cxx \
+cxx/serializer/validating/gday.cxx \
+cxx/serializer/validating/gmonth.cxx \
+cxx/serializer/validating/gyear.cxx \
+cxx/serializer/validating/gmonth-day.cxx \
+cxx/serializer/validating/gyear-month.cxx \
+cxx/serializer/validating/date.cxx \
+cxx/serializer/validating/time.cxx \
+cxx/serializer/validating/date-time.cxx \
+cxx/serializer/validating/duration.cxx
+
+else # validation
+
+src += \
+cxx/serializer/non-validating/serializer.cxx \
+cxx/serializer/non-validating/time-zone.cxx \
+cxx/serializer/non-validating/xml-schema-sskel.cxx
+
+src += \
+cxx/serializer/non-validating/boolean.cxx \
+cxx/serializer/non-validating/byte.cxx \
+cxx/serializer/non-validating/unsigned-byte.cxx \
+cxx/serializer/non-validating/short.cxx \
+cxx/serializer/non-validating/unsigned-short.cxx \
+cxx/serializer/non-validating/int.cxx \
+cxx/serializer/non-validating/unsigned-int.cxx \
+cxx/serializer/non-validating/integer.cxx \
+cxx/serializer/non-validating/negative-integer.cxx \
+cxx/serializer/non-validating/non-positive-integer.cxx \
+cxx/serializer/non-validating/positive-integer.cxx \
+cxx/serializer/non-validating/non-negative-integer.cxx \
+cxx/serializer/non-validating/float.cxx \
+cxx/serializer/non-validating/double.cxx \
+cxx/serializer/non-validating/decimal.cxx
+
+ifeq ($(XSDE_LONGLONG),y)
+src += \
+cxx/serializer/non-validating/long-long.cxx \
+cxx/serializer/non-validating/unsigned-long-long.cxx
+else
+src += \
+cxx/serializer/non-validating/long.cxx \
+cxx/serializer/non-validating/unsigned-long.cxx
+endif
+
+ifeq ($(XSDE_STL),y)
+
+src += \
+cxx/serializer/non-validating/string-stl.cxx \
+cxx/serializer/non-validating/normalized-string-stl.cxx \
+cxx/serializer/non-validating/token-stl.cxx \
+cxx/serializer/non-validating/name-stl.cxx \
+cxx/serializer/non-validating/nmtoken-stl.cxx \
+cxx/serializer/non-validating/ncname-stl.cxx \
+cxx/serializer/non-validating/id-stl.cxx \
+cxx/serializer/non-validating/idref-stl.cxx \
+cxx/serializer/non-validating/language-stl.cxx \
+cxx/serializer/non-validating/uri-stl.cxx \
+cxx/serializer/non-validating/idrefs-stl.cxx \
+cxx/serializer/non-validating/nmtokens-stl.cxx \
+cxx/serializer/non-validating/qname-stl.cxx
+
+else
+
+src += \
+cxx/serializer/non-validating/string.cxx \
+cxx/serializer/non-validating/normalized-string.cxx \
+cxx/serializer/non-validating/token.cxx \
+cxx/serializer/non-validating/name.cxx \
+cxx/serializer/non-validating/nmtoken.cxx \
+cxx/serializer/non-validating/ncname.cxx \
+cxx/serializer/non-validating/id.cxx \
+cxx/serializer/non-validating/idref.cxx \
+cxx/serializer/non-validating/language.cxx \
+cxx/serializer/non-validating/uri.cxx \
+cxx/serializer/non-validating/idrefs.cxx \
+cxx/serializer/non-validating/nmtokens.cxx \
+cxx/serializer/non-validating/qname.cxx
+
+endif # stl
+
+src += \
+cxx/serializer/non-validating/base64-binary.cxx \
+cxx/serializer/non-validating/hex-binary.cxx \
+cxx/serializer/non-validating/gday.cxx \
+cxx/serializer/non-validating/gmonth.cxx \
+cxx/serializer/non-validating/gyear.cxx \
+cxx/serializer/non-validating/gmonth-day.cxx \
+cxx/serializer/non-validating/gyear-month.cxx \
+cxx/serializer/non-validating/date.cxx \
+cxx/serializer/non-validating/time.cxx \
+cxx/serializer/non-validating/date-time.cxx \
+cxx/serializer/non-validating/duration.cxx
+
+endif # validation
+
+#
+#
+obj := $(src:.c=.o)
+obj := $(obj:.cxx=.o)
+
+# Build.
+#
+libxsde.a: $(obj)
+ $(AR) $(ARFLAGS) $@ $^
+ifneq ($(RANLIB),)
+ $(RANLIB) $@
+endif
+
+# It is tricky to output # with both POSIX and Windows shells.
+#
+ifeq ($(shell echo %PATH%),%PATH%)
+h := \\\#
+shell_type := posix
+else
+h := \#
+shell_type := windows
+endif
+
+$(obj): config.h
+
+config.h:
+ @echo generating config.h
+ifeq ($(shell_type),windows)
+ @echo /* Generated - do not edit. */ >$@
+else
+ @echo "/* Generated - do not edit. */" >$@
+endif
+ @echo $(h)ifndef XSDE_CONFIG_H >>$@
+ @echo $(h)define XSDE_CONFIG_H >>$@
+ifeq ($(XSDE_PLATFORM),wince)
+ @echo $(h)define XSDE_PLATFORM_WINCE >>$@
+endif
+ifeq ($(XSDE_PLATFORM),win32)
+ @echo $(h)define XSDE_PLATFORM_WIN32 >>$@
+endif
+ifeq ($(XSDE_PLATFORM),posix)
+ @echo $(h)define XSDE_PLATFORM_POSIX >>$@
+endif
+ @echo $(h)define XSDE_ARCH_WIDTH $(XSDE_ARCH_WIDTH) >>$@
+ifeq ($(XSDE_BYTEORDER),l)
+ @echo $(h)define XSDE_BYTEORDER 1234 >>$@
+endif
+ifeq ($(XSDE_BYTEORDER),b)
+ @echo $(h)define XSDE_BYTEORDER 4321 >>$@
+endif
+ifeq ($(XSDE_STL),y)
+ @echo $(h)define XSDE_STL >>$@
+endif
+ifeq ($(XSDE_IOSTREAM),y)
+ @echo $(h)define XSDE_IOSTREAM >>$@
+endif
+ifeq ($(XSDE_EXCEPTIONS),y)
+ @echo $(h)define XSDE_EXCEPTIONS >>$@
+endif
+ifeq ($(XSDE_LONGLONG),y)
+ @echo $(h)define XSDE_LONGLONG >>$@
+endif
+ifeq ($(XSDE_SNPRINTF),y)
+ @echo $(h)define XSDE_SNPRINTF >>$@
+endif
+ifeq ($(XSDE_PARSER_VALIDATION),y)
+ @echo $(h)define XSDE_PARSER_VALIDATION >>$@
+endif
+ifeq ($(XSDE_SERIALIZER_VALIDATION),y)
+ @echo $(h)define XSDE_SERIALIZER_VALIDATION >>$@
+endif
+ifeq ($(XSDE_REUSE_STYLE),mixin)
+ @echo $(h)define XSDE_REUSE_STYLE_MIXIN >>$@
+else
+ @echo $(h)undef XSDE_REUSE_STYLE_MIXIN >>$@
+endif
+ifeq ($(XSDE_REUSE_STYLE),tiein)
+ @echo $(h)define XSDE_REUSE_STYLE_TIEIN >>$@
+else
+ @echo $(h)undef XSDE_REUSE_STYLE_TIEIN >>$@
+endif
+ifeq ($(XSDE_REUSE_STYLE),none)
+ @echo $(h)define XSDE_REUSE_STYLE_NONE >>$@
+else
+ @echo $(h)undef XSDE_REUSE_STYLE_NONE >>$@
+endif
+ifeq ($(XSDE_POLYMORPHIC),y)
+ @echo $(h)define XSDE_POLYMORPHIC >>$@
+ @echo $(h)define XSDE_PARSER_SMAP_BUCKETS $(XSDE_PARSER_SMAP_BUCKETS)UL >>$@
+ifeq ($(XSDE_PARSER_VALIDATION),y)
+ @echo $(h)define XSDE_PARSER_IMAP_BUCKETS $(XSDE_PARSER_IMAP_BUCKETS)UL >>$@
+endif
+ @echo $(h)define XSDE_SERIALIZER_SMAP_BUCKETS $(XSDE_SERIALIZER_SMAP_BUCKETS)UL >>$@
+ @echo $(h)define XSDE_SERIALIZER_SMAP_BUCKET_BUCKETS $(XSDE_SERIALIZER_SMAP_BUCKET_BUCKETS)UL >>$@
+ifeq ($(XSDE_SERIALIZER_VALIDATION),y)
+ @echo $(h)define XSDE_SERIALIZER_IMAP_BUCKETS $(XSDE_SERIALIZER_IMAP_BUCKETS)UL >>$@
+endif
+else
+ @echo $(h)undef XSDE_POLYMORPHIC >>$@
+endif
+ @echo $(h)endif >>$@
+
+
+# Test.
+#
+.PHONY: test
+test: libxsde.a
+ @:
+
+# Clean.
+#
+.PHONY: clean
+clean:
+ rm -f libxsde.a $(obj) config.h
diff --git a/dist/libxsde/xsde/nmakefile b/dist/libxsde/xsde/nmakefile
new file mode 100644
index 0000000..5588d57
--- /dev/null
+++ b/dist/libxsde/xsde/nmakefile
@@ -0,0 +1,559 @@
+root = ..\..
+
+!include $(root)\build\config.nmake
+!include $(root)\build\c\rules.nmake
+!include $(root)\build\cxx\rules.nmake
+
+EXTRA_CPPFLAGS = /I..
+
+#########################################################################
+
+src = c\expat\xmlparse.c c\expat\xmlrole.c c\expat\xmltok.c
+src = $(src) c\genx\genx.c c\genx\char-props.c
+
+src = $(src) cxx\string.cxx cxx\ro-string.cxx
+
+!if "$(XSDE_STL)" == "n"
+src = $(src) cxx\strdupx.cxx
+!endif
+
+!if "$(XSDE_EXCEPTIONS)" == "n"
+src = $(src) cxx\sys-error.cxx
+!endif
+
+!if "$(XSDE_PARSER_VALIDATION)$(XSDE_SERIALIZER_VALIDATION)" != "nn"
+src = $(src) cxx\schema-error.cxx
+!endif
+
+!if "$(XSDE_POLYMORPHIC)" == "y"
+src = $(src) cxx\hashmap.cxx
+!endif
+
+# Common data types.
+#
+src = $(src) cxx\buffer.cxx cxx\sequence-base.cxx
+
+!if "$(XSDE_STL)" == "y"
+src = $(src) cxx\string-sequence-stl.cxx
+!else
+src = $(src) cxx\qname.cxx cxx\string-sequence.cxx
+!endif
+
+
+## XML
+##
+!if "$(XSDE_PARSER_VALIDATION)$(XSDE_SERIALIZER_VALIDATION)" != "nn"
+src = $(src) cxx\xml\char-table.cxx cxx\xml\ncname.cxx
+!endif
+
+
+## C++/Hybrid
+##
+src = $(src) cxx\hybrid\sequence.cxx
+
+
+## C++/Parser
+##
+src = $(src) cxx\parser\elements.cxx cxx\parser\state.cxx
+src = $(src) cxx\parser\expat\document.cxx cxx\parser\expat\xml-error.cxx
+
+!if "$(XSDE_POLYMORPHIC)" == "y"
+src = $(src) cxx\parser\map.cxx cxx\parser\substitution-map.cxx
+!endif
+
+!if "$(XSDE_EXCEPTIONS)" == "y"
+src = $(src) cxx\parser\exceptions.cxx
+!else
+src = $(src) cxx\parser\error.cxx
+!endif
+
+# Parser implementations.
+#
+!if "$(XSDE_PARSER_VALIDATION)" == "y"
+
+src = $(src) \
+cxx\parser\validating\parser.cxx \
+cxx\parser\validating\time-zone.cxx \
+cxx\parser\validating\xml-schema-pskel.cxx
+
+!if "$(XSDE_POLYMORPHIC)" == "y"
+src = $(src) cxx\parser\validating\inheritance-map.cxx
+!endif
+
+src = $(src) \
+cxx\parser\validating\boolean.cxx \
+cxx\parser\validating\number.cxx \
+cxx\parser\validating\byte.cxx \
+cxx\parser\validating\unsigned-byte.cxx \
+cxx\parser\validating\short.cxx \
+cxx\parser\validating\unsigned-short.cxx \
+cxx\parser\validating\int.cxx \
+cxx\parser\validating\unsigned-int.cxx \
+cxx\parser\validating\integer.cxx \
+cxx\parser\validating\negative-integer.cxx \
+cxx\parser\validating\non-positive-integer.cxx \
+cxx\parser\validating\positive-integer.cxx \
+cxx\parser\validating\non-negative-integer.cxx \
+cxx\parser\validating\float.cxx \
+cxx\parser\validating\double.cxx \
+cxx\parser\validating\decimal.cxx
+
+!if "$(XSDE_LONGLONG)" == "y"
+src = $(src) \
+cxx\parser\validating\long-long.cxx \
+cxx\parser\validating\unsigned-long-long.cxx
+!else
+src = $(src) \
+cxx\parser\validating\long.cxx \
+cxx\parser\validating\unsigned-long.cxx
+!endif
+
+!if "$(XSDE_STL)" == "y"
+
+src = $(src) \
+cxx\parser\validating\string-stl.cxx \
+cxx\parser\validating\normalized-string-stl.cxx \
+cxx\parser\validating\token-stl.cxx \
+cxx\parser\validating\name-stl.cxx \
+cxx\parser\validating\nmtoken-stl.cxx \
+cxx\parser\validating\nmtokens-stl.cxx \
+cxx\parser\validating\ncname-stl.cxx \
+cxx\parser\validating\id-stl.cxx \
+cxx\parser\validating\idref-stl.cxx \
+cxx\parser\validating\idrefs-stl.cxx \
+cxx\parser\validating\language-stl.cxx \
+cxx\parser\validating\uri-stl.cxx \
+cxx\parser\validating\qname-stl.cxx
+
+!else
+
+src = $(src) \
+cxx\parser\validating\string.cxx \
+cxx\parser\validating\normalized-string.cxx \
+cxx\parser\validating\token.cxx \
+cxx\parser\validating\name.cxx \
+cxx\parser\validating\nmtoken.cxx \
+cxx\parser\validating\nmtokens.cxx \
+cxx\parser\validating\ncname.cxx \
+cxx\parser\validating\id.cxx \
+cxx\parser\validating\idref.cxx \
+cxx\parser\validating\idrefs.cxx \
+cxx\parser\validating\language.cxx \
+cxx\parser\validating\uri.cxx \
+cxx\parser\validating\qname.cxx
+
+!endif # stl
+
+src = $(src) \
+cxx\parser\validating\base64-binary.cxx \
+cxx\parser\validating\hex-binary.cxx \
+cxx\parser\validating\gday.cxx \
+cxx\parser\validating\gmonth.cxx \
+cxx\parser\validating\gyear.cxx \
+cxx\parser\validating\gmonth-day.cxx \
+cxx\parser\validating\gyear-month.cxx \
+cxx\parser\validating\date.cxx \
+cxx\parser\validating\time.cxx \
+cxx\parser\validating\date-time.cxx \
+cxx\parser\validating\duration.cxx
+
+!else # validation
+
+src = $(src) \
+cxx\parser\non-validating\parser.cxx \
+cxx\parser\non-validating\time-zone.cxx \
+cxx\parser\non-validating\xml-schema-pskel.cxx
+
+src = $(src) \
+cxx\parser\non-validating\boolean.cxx \
+cxx\parser\non-validating\number.cxx \
+cxx\parser\non-validating\byte.cxx \
+cxx\parser\non-validating\unsigned-byte.cxx \
+cxx\parser\non-validating\short.cxx \
+cxx\parser\non-validating\unsigned-short.cxx \
+cxx\parser\non-validating\int.cxx \
+cxx\parser\non-validating\unsigned-int.cxx \
+cxx\parser\non-validating\integer.cxx \
+cxx\parser\non-validating\negative-integer.cxx \
+cxx\parser\non-validating\non-positive-integer.cxx \
+cxx\parser\non-validating\positive-integer.cxx \
+cxx\parser\non-validating\non-negative-integer.cxx \
+cxx\parser\non-validating\float.cxx \
+cxx\parser\non-validating\double.cxx \
+cxx\parser\non-validating\decimal.cxx
+
+!if "$(XSDE_LONGLONG)" == "y"
+src = $(src) \
+cxx\parser\non-validating\long-long.cxx \
+cxx\parser\non-validating\unsigned-long-long.cxx
+!else
+src = $(src) \
+cxx\parser\non-validating\long.cxx \
+cxx\parser\non-validating\unsigned-long.cxx
+!endif
+
+!if "$(XSDE_STL)" == "y"
+
+src = $(src) \
+cxx\parser\non-validating\string-stl.cxx \
+cxx\parser\non-validating\normalized-string-stl.cxx \
+cxx\parser\non-validating\token-stl.cxx \
+cxx\parser\non-validating\name-stl.cxx \
+cxx\parser\non-validating\nmtoken-stl.cxx \
+cxx\parser\non-validating\nmtokens-stl.cxx \
+cxx\parser\non-validating\ncname-stl.cxx \
+cxx\parser\non-validating\id-stl.cxx \
+cxx\parser\non-validating\idref-stl.cxx \
+cxx\parser\non-validating\idrefs-stl.cxx \
+cxx\parser\non-validating\language-stl.cxx \
+cxx\parser\non-validating\uri-stl.cxx \
+cxx\parser\non-validating\qname-stl.cxx
+
+!else
+
+src = $(src) \
+cxx\parser\non-validating\string.cxx \
+cxx\parser\non-validating\normalized-string.cxx \
+cxx\parser\non-validating\token.cxx \
+cxx\parser\non-validating\name.cxx \
+cxx\parser\non-validating\nmtoken.cxx \
+cxx\parser\non-validating\nmtokens.cxx \
+cxx\parser\non-validating\ncname.cxx \
+cxx\parser\non-validating\id.cxx \
+cxx\parser\non-validating\idref.cxx \
+cxx\parser\non-validating\idrefs.cxx \
+cxx\parser\non-validating\language.cxx \
+cxx\parser\non-validating\uri.cxx \
+cxx\parser\non-validating\qname.cxx
+
+!endif # stl
+
+src = $(src) \
+cxx\parser\non-validating\base64-binary.cxx \
+cxx\parser\non-validating\hex-binary.cxx \
+cxx\parser\non-validating\gday.cxx \
+cxx\parser\non-validating\gmonth.cxx \
+cxx\parser\non-validating\gyear.cxx \
+cxx\parser\non-validating\gmonth-day.cxx \
+cxx\parser\non-validating\gyear-month.cxx \
+cxx\parser\non-validating\date.cxx \
+cxx\parser\non-validating\time.cxx \
+cxx\parser\non-validating\date-time.cxx \
+cxx\parser\non-validating\duration.cxx
+
+!endif # validation
+
+
+## C++/Serializer
+##
+src = $(src) \
+cxx\serializer\elements.cxx \
+cxx\serializer\context.cxx
+
+src = $(src) \
+cxx\serializer\genx\document.cxx \
+cxx\serializer\genx\xml-error.cxx
+
+!if "$(XSDE_POLYMORPHIC)" == "y"
+src = $(src) cxx\serializer\map.cxx cxx\serializer\substitution-map.cxx
+!endif
+
+!if "$(XSDE_EXCEPTIONS)" == "y"
+src = $(src) cxx\serializer\exceptions.cxx
+!else
+src = $(src) cxx\serializer\error.cxx
+!endif
+
+# Serializer implementations.
+#
+!if "$(XSDE_SERIALIZER_VALIDATION)" == "y"
+
+src = $(src) \
+cxx\serializer\validating\serializer.cxx \
+cxx\serializer\validating\time-zone.cxx \
+cxx\serializer\validating\xml-schema-sskel.cxx
+
+!if "$(XSDE_POLYMORPHIC)" == "y"
+src = $(src) cxx\serializer\validating\inheritance-map.cxx
+!endif
+
+src = $(src) \
+cxx\serializer\validating\boolean.cxx \
+cxx\serializer\validating\byte.cxx \
+cxx\serializer\validating\unsigned-byte.cxx \
+cxx\serializer\validating\short.cxx \
+cxx\serializer\validating\unsigned-short.cxx \
+cxx\serializer\validating\int.cxx \
+cxx\serializer\validating\unsigned-int.cxx \
+cxx\serializer\validating\integer.cxx \
+cxx\serializer\validating\negative-integer.cxx \
+cxx\serializer\validating\non-positive-integer.cxx \
+cxx\serializer\validating\positive-integer.cxx \
+cxx\serializer\validating\non-negative-integer.cxx \
+cxx\serializer\validating\float.cxx \
+cxx\serializer\validating\double.cxx \
+cxx\serializer\validating\decimal.cxx
+
+!if "$(XSDE_LONGLONG)" == "y"
+src = $(src) \
+cxx\serializer\validating\long-long.cxx \
+cxx\serializer\validating\unsigned-long-long.cxx
+!else
+src = $(src) \
+cxx\serializer\validating\long.cxx \
+cxx\serializer\validating\unsigned-long.cxx
+!endif
+
+!if "$(XSDE_STL)" == "y"
+
+src = $(src) \
+cxx\serializer\validating\string-stl.cxx \
+cxx\serializer\validating\normalized-string-stl.cxx \
+cxx\serializer\validating\token-stl.cxx \
+cxx\serializer\validating\name-stl.cxx \
+cxx\serializer\validating\nmtoken-stl.cxx \
+cxx\serializer\validating\ncname-stl.cxx \
+cxx\serializer\validating\id-stl.cxx \
+cxx\serializer\validating\idref-stl.cxx \
+cxx\serializer\validating\language-stl.cxx \
+cxx\serializer\validating\uri-stl.cxx \
+cxx\serializer\validating\idrefs-stl.cxx \
+cxx\serializer\validating\nmtokens-stl.cxx \
+cxx\serializer\validating\qname-stl.cxx
+
+!else
+
+src = $(src) \
+cxx\serializer\validating\string.cxx \
+cxx\serializer\validating\normalized-string.cxx \
+cxx\serializer\validating\token.cxx \
+cxx\serializer\validating\name.cxx \
+cxx\serializer\validating\nmtoken.cxx \
+cxx\serializer\validating\ncname.cxx \
+cxx\serializer\validating\id.cxx \
+cxx\serializer\validating\idref.cxx \
+cxx\serializer\validating\language.cxx \
+cxx\serializer\validating\uri.cxx \
+cxx\serializer\validating\idrefs.cxx \
+cxx\serializer\validating\nmtokens.cxx \
+cxx\serializer\validating\qname.cxx
+
+!endif # stl
+
+src = $(src) \
+cxx\serializer\validating\base64-binary.cxx \
+cxx\serializer\validating\hex-binary.cxx \
+cxx\serializer\validating\gday.cxx \
+cxx\serializer\validating\gmonth.cxx \
+cxx\serializer\validating\gyear.cxx \
+cxx\serializer\validating\gmonth-day.cxx \
+cxx\serializer\validating\gyear-month.cxx \
+cxx\serializer\validating\date.cxx \
+cxx\serializer\validating\time.cxx \
+cxx\serializer\validating\date-time.cxx \
+cxx\serializer\validating\duration.cxx
+
+!else # validation
+
+src = $(src) \
+cxx\serializer\non-validating\serializer.cxx \
+cxx\serializer\non-validating\time-zone.cxx \
+cxx\serializer\non-validating\xml-schema-sskel.cxx
+
+src = $(src) \
+cxx\serializer\non-validating\boolean.cxx \
+cxx\serializer\non-validating\byte.cxx \
+cxx\serializer\non-validating\unsigned-byte.cxx \
+cxx\serializer\non-validating\short.cxx \
+cxx\serializer\non-validating\unsigned-short.cxx \
+cxx\serializer\non-validating\int.cxx \
+cxx\serializer\non-validating\unsigned-int.cxx \
+cxx\serializer\non-validating\integer.cxx \
+cxx\serializer\non-validating\negative-integer.cxx \
+cxx\serializer\non-validating\non-positive-integer.cxx \
+cxx\serializer\non-validating\positive-integer.cxx \
+cxx\serializer\non-validating\non-negative-integer.cxx \
+cxx\serializer\non-validating\float.cxx \
+cxx\serializer\non-validating\double.cxx \
+cxx\serializer\non-validating\decimal.cxx
+
+!if "$(XSDE_LONGLONG)" == "y"
+src = $(src) \
+cxx\serializer\non-validating\long-long.cxx \
+cxx\serializer\non-validating\unsigned-long-long.cxx
+!else
+src = $(src) \
+cxx\serializer\non-validating\long.cxx \
+cxx\serializer\non-validating\unsigned-long.cxx
+!endif
+
+!if "$(XSDE_STL)" == "y"
+
+src = $(src) \
+cxx\serializer\non-validating\string-stl.cxx \
+cxx\serializer\non-validating\normalized-string-stl.cxx \
+cxx\serializer\non-validating\token-stl.cxx \
+cxx\serializer\non-validating\name-stl.cxx \
+cxx\serializer\non-validating\nmtoken-stl.cxx \
+cxx\serializer\non-validating\ncname-stl.cxx \
+cxx\serializer\non-validating\id-stl.cxx \
+cxx\serializer\non-validating\idref-stl.cxx \
+cxx\serializer\non-validating\language-stl.cxx \
+cxx\serializer\non-validating\uri-stl.cxx \
+cxx\serializer\non-validating\idrefs-stl.cxx \
+cxx\serializer\non-validating\nmtokens-stl.cxx \
+cxx\serializer\non-validating\qname-stl.cxx
+
+!else
+
+src = $(src) \
+cxx\serializer\non-validating\string.cxx \
+cxx\serializer\non-validating\normalized-string.cxx \
+cxx\serializer\non-validating\token.cxx \
+cxx\serializer\non-validating\name.cxx \
+cxx\serializer\non-validating\nmtoken.cxx \
+cxx\serializer\non-validating\ncname.cxx \
+cxx\serializer\non-validating\id.cxx \
+cxx\serializer\non-validating\idref.cxx \
+cxx\serializer\non-validating\language.cxx \
+cxx\serializer\non-validating\uri.cxx \
+cxx\serializer\non-validating\idrefs.cxx \
+cxx\serializer\non-validating\nmtokens.cxx \
+cxx\serializer\non-validating\qname.cxx
+
+!endif # stl
+
+src = $(src) \
+cxx\serializer\non-validating\base64-binary.cxx \
+cxx\serializer\non-validating\hex-binary.cxx \
+cxx\serializer\non-validating\gday.cxx \
+cxx\serializer\non-validating\gmonth.cxx \
+cxx\serializer\non-validating\gyear.cxx \
+cxx\serializer\non-validating\gmonth-day.cxx \
+cxx\serializer\non-validating\gyear-month.cxx \
+cxx\serializer\non-validating\date.cxx \
+cxx\serializer\non-validating\time.cxx \
+cxx\serializer\non-validating\date-time.cxx \
+cxx\serializer\non-validating\duration.cxx
+
+!endif # validation
+
+
+#
+#
+obj = $(src:.cxx=.obj)
+obj = $(obj:.c=.obj)
+
+
+# Build.
+#
+xsde.lib: $(obj)
+ $(AR) $(ARFLAGS) /OUT:$@ $**
+!if "$(RANLIB)" != ""
+ $(RANLIB) $@
+!endif
+
+$(obj): config.h
+
+config.h:
+ @echo generating config.h
+ @echo /* Generated - do not edit. */ >$@
+ @echo #ifndef XSDE_CONFIG_H >>$@
+ @echo #define XSDE_CONFIG_H >>$@
+!if "$(XSDE_PLATFORM)" == "wince"
+ @echo #define XSDE_PLATFORM_WINCE >>$@
+!endif
+!if "$(XSDE_PLATFORM)" == "win32"
+ @echo #define XSDE_PLATFORM_WIN32 >>$@
+!endif
+!if "$(XSDE_PLATFORM)" == "posix"
+ @echo #define XSDE_PLATFORM_POSIX >>$@
+!endif
+ @echo #define XSDE_ARCH_WIDTH $(XSDE_ARCH_WIDTH) >>$@
+!if "$(XSDE_BYTEORDER)" == "l"
+ @echo #define XSDE_BYTEORDER 1234 >>$@
+!endif
+!if "$(XSDE_BYTEORDER)" == "b"
+ @echo #define XSDE_BYTEORDER 4321 >>$@
+!endif
+!if "$(XSDE_STL)" == "y"
+ @echo #define XSDE_STL >>$@
+!endif
+!if "$(XSDE_IOSTREAM)" == "y"
+ @echo #define XSDE_IOSTREAM >>$@
+!endif
+!if "$(XSDE_EXCEPTIONS)" == "y"
+ @echo #define XSDE_EXCEPTIONS >>$@
+!endif
+!if "$(XSDE_LONGLONG)" == "y"
+ @echo #define XSDE_LONGLONG >>$@
+!endif
+!if "$(XSDE_SNPRINTF)" == "y"
+ @echo #define XSDE_SNPRINTF >>$@
+!endif
+!if "$(XSDE_PARSER_VALIDATION)" == "y"
+ @echo #define XSDE_PARSER_VALIDATION >>$@
+!endif
+!if "$(XSDE_SERIALIZER_VALIDATION)" == "y"
+ @echo #define XSDE_SERIALIZER_VALIDATION >>$@
+!endif
+
+!if "$(XSDE_REUSE_STYLE)" == "mixin"
+ @echo #define XSDE_REUSE_STYLE_MIXIN >>$@
+!else
+ @echo #undef XSDE_REUSE_STYLE_MIXIN >>$@
+!endif
+!if "$(XSDE_REUSE_STYLE)" == "tiein"
+ @echo #define XSDE_REUSE_STYLE_TIEIN >>$@
+!else
+ @echo #undef XSDE_REUSE_STYLE_TIEIN >>$@
+!endif
+!if "$(XSDE_REUSE_STYLE)" == "none"
+ @echo #define XSDE_REUSE_STYLE_NONE >>$@
+!else
+ @echo #undef XSDE_REUSE_STYLE_NONE >>$@
+!endif
+!if "$(XSDE_POLYMORPHIC)" == "y"
+ @echo #define XSDE_POLYMORPHIC >>$@
+ @echo #define XSDE_PARSER_SMAP_BUCKETS $(XSDE_PARSER_SMAP_BUCKETS)UL >>$@
+!if "$(XSDE_PARSER_VALIDATION)" == "y"
+ @echo #define XSDE_PARSER_IMAP_BUCKETS $(XSDE_PARSER_IMAP_BUCKETS)UL >>$@
+!endif
+ @echo #define XSDE_SERIALIZER_SMAP_BUCKETS $(XSDE_SERIALIZER_SMAP_BUCKETS)UL >>$@
+ @echo #define XSDE_SERIALIZER_SMAP_BUCKET_BUCKETS $(XSDE_SERIALIZER_SMAP_BUCKET_BUCKETS)UL >>$@
+!if "$(XSDE_SERIALIZER_VALIDATION)" == "y"
+ @echo #define XSDE_SERIALIZER_IMAP_BUCKETS $(XSDE_SERIALIZER_IMAP_BUCKETS)UL >>$@
+!endif
+!else
+ @echo #undef XSDE_POLYMORPHIC >>$@
+!endif
+ @echo #endif >>$@
+
+# Test.
+#
+test: xsde.lib
+
+# Clean.
+#
+# Nmake that comes with eVC++ 4 cannot handle del $(obj)
+# because the resulting line is too long.
+#
+clean:
+ -del xsde.lib config.h
+ -del c\expat\*.obj
+ -del c\genx\*.obj
+ -del cxx\*.obj
+ -del cxx\parser\*.obj
+ -del cxx\parser\expat\*.obj
+!if "$(XSDE_PARSER_VALIDATION)" == "y"
+ -del cxx\parser\validating\*.obj
+!else
+ -del cxx\parser\non-validating\*.obj
+!endif
+ -del cxx\serializer\*.obj
+ -del cxx\serializer\genx\*.obj
+!if "$(XSDE_SERIALIZER_VALIDATION)" == "y"
+ -del cxx\serializer\validating\*.obj
+!else
+ -del cxx\serializer\non-validating\*.obj
+!endif
diff --git a/dist/makefile b/dist/makefile
new file mode 100644
index 0000000..df44825
--- /dev/null
+++ b/dist/makefile
@@ -0,0 +1,12 @@
+dirs := libxsde examples
+
+.PHONY: all $(dirs)
+all: $(dirs)
+
+examples: libxsde
+
+$(dirs):
+ $(MAKE) -C $@ $(MAKECMDGOALS)
+
+makefile: ;
+% :: $(dirs) ;
diff --git a/dist/nmakefile b/dist/nmakefile
new file mode 100644
index 0000000..f532175
--- /dev/null
+++ b/dist/nmakefile
@@ -0,0 +1,9 @@
+dirs = libxsde examples
+
+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 $@"