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