From afebd79d44b75aed3b38e867c65330ba80ddc0ee Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 13 Oct 2009 11:29:26 +0200 Subject: Extended the streaming example It now shows how to perform stream-oriented, partially in-memory XML processing using the C++/Tree mapping. --- dist/examples/cxx/tree/streaming/makefile | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'dist/examples/cxx/tree/streaming/makefile') diff --git a/dist/examples/cxx/tree/streaming/makefile b/dist/examples/cxx/tree/streaming/makefile index 40d2dd6..ed32b83 100644 --- a/dist/examples/cxx/tree/streaming/makefile +++ b/dist/examples/cxx/tree/streaming/makefile @@ -4,28 +4,30 @@ include $(root)/build/cxx/rules.make include $(root)/build/xsd/tree-rules.make -override XSDFLAGS += --generate-serialization --suppress-parsing --root-element-all +override XSDFLAGS += --generate-serialization # Build. # -driver: driver.o records.o +driver: driver.o parser.o serializer.o position.o -records.o: records.cxx records.hxx -driver.o: driver.cxx records.hxx +position.o: position.cxx position.hxx +driver.o: driver.cxx position.hxx parser.hxx serializer.hxx +parser.o: parser.cxx parser.hxx +serializer.o: serializer.cxx serializer.hxx -records.cxx records.hxx: records.xsd +position.cxx position.hxx: position.xsd # Test # .PHONY: test -test: driver - ./driver +test: driver position.xml + ./driver position.xml # Clean. # .PHONY: clean clean: - rm -f records.o records.?xx driver.o driver out.xml + rm -f position.o position.?xx parser.o serializer.o driver.o driver out.xml -- cgit v1.1