diff options
Diffstat (limited to 'dist/examples/cxx/serializer/wildcard')
-rw-r--r-- | dist/examples/cxx/serializer/wildcard/makefile | 45 | ||||
-rw-r--r-- | dist/examples/cxx/serializer/wildcard/nmakefile | 42 |
2 files changed, 87 insertions, 0 deletions
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 + |