diff options
Diffstat (limited to 'xsd/dist/examples/cxx/tree/custom/contacts/makefile')
-rw-r--r-- | xsd/dist/examples/cxx/tree/custom/contacts/makefile | 39 |
1 files changed, 39 insertions, 0 deletions
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 |