root := ../../..

include $(root)/build/cxx/rules.make

xsd_cxx_suffix := -parser-templates
include $(root)/build/xsd/parser-rules.make

override XSDFLAGS += --namespace-regex '% %parser_templates%'

ifeq ($(cxx_id),hp3)
.PHONY: test clean
test clean:
	@echo C++/Parser mapping is not supported on aCC A.03.xx
else

driver: driver.o

schema-parser-templates.hxx \
schema-parser-templates.txx: schema.xsd

driver.o: driver.cxx schema-parser-templates.hxx schema-parser-templates.txx

# Test.
#
.PHONY: test
test: driver instance.xml
	./driver instance.xml


# Clean.
#
.PHONY: clean
clean:
	rm -f schema-parser-templates.?xx driver.o driver

endif # cxx_id == hp3
