diff options
Diffstat (limited to 'dist/examples/cxx/parser/minimal/nmakefile')
-rw-r--r-- | dist/examples/cxx/parser/minimal/nmakefile | 56 |
1 files changed, 56 insertions, 0 deletions
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 + |