From 018e1ba581ec6f01f069a45ec4cf89f152b44d5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Wed, 19 Mar 2025 15:41:36 +0100 Subject: remerge --- .../examples/cxx/tree/custom/contacts/makefile | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 xsd/dist/examples/cxx/tree/custom/contacts/makefile (limited to 'xsd/dist/examples/cxx/tree/custom/contacts/makefile') diff --git a/xsd/dist/examples/cxx/tree/custom/contacts/makefile b/xsd/dist/examples/cxx/tree/custom/contacts/makefile new file mode 100644 index 0000000..845f6c3 --- /dev/null +++ b/xsd/dist/examples/cxx/tree/custom/contacts/makefile @@ -0,0 +1,39 @@ +root := ../../../.. + +include $(root)/build/cxx/rules.make +include $(root)/build/xsd/tree-rules.make + + +override XSDFLAGS += --generate-inline \ +--hxx-epilogue '\#include "contacts-custom.hxx"' + +ifneq ($(shell uname -o),Msys) +override XSDFLAGS += --custom-type contact=/contact_base +else +# Prevent MSYS from converting / to Windows path. +override XSDFLAGS += --custom-type contact=//contact_base +endif + +# Build. +# +driver: driver.o contacts.o contacts-custom.o + +contacts.o: contacts.cxx contacts.ixx contacts.hxx contacts-custom.hxx +driver.o: driver.cxx contacts.ixx contacts.hxx contacts-custom.hxx +contacts-custom.o: contacts-custom.cxx contacts.ixx contacts.hxx contacts-custom.hxx + +contacts.cxx contacts.hxx contacts.ixx: contacts.xsd + + +# Test +# +.PHONY: test +test: driver contacts.xml + ./driver contacts.xml + + +# Clean. +# +.PHONY: clean +clean: + rm -f contacts-custom.o contacts.o contacts.?xx driver.o driver -- cgit v1.2.3