root = ..\..\..\.. !include $(root)\build\cxx\rules.nmake # Build. # EXTRA_CPPFLAGS = /I$(root)\libxsde !if "$(XSDE_ENCODING)" == "iso8859-1" EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --char-encoding iso8859-1 !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_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 # Generate. # gen: supermen-pskel.hxx # Test. # test: driver.exe supermen.xml .\driver.exe supermen.xml # Clean. # cleanobj: -del $(impl).obj supermen-pskel.obj driver.obj driver.exe clean: cleanobj -del supermen-pskel.?xx