diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2009-10-13 11:29:26 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2009-10-13 11:29:26 +0200 |
commit | afebd79d44b75aed3b38e867c65330ba80ddc0ee (patch) | |
tree | 7fc95caae113884defce1ac712f93327f58f72e0 /examples/cxx/tree/streaming/makefile | |
parent | 0b21758fcd9f3127e30a1c9172c4c27b46a2b957 (diff) |
Extended the streaming example
It now shows how to perform stream-oriented, partially in-memory XML
processing using the C++/Tree mapping.
Diffstat (limited to 'examples/cxx/tree/streaming/makefile')
-rw-r--r-- | examples/cxx/tree/streaming/makefile | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/examples/cxx/tree/streaming/makefile b/examples/cxx/tree/streaming/makefile index ddac169..2cd388c 100644 --- a/examples/cxx/tree/streaming/makefile +++ b/examples/cxx/tree/streaming/makefile @@ -5,8 +5,8 @@ include $(dir $(lastword $(MAKEFILE_LIST)))../../../../build/bootstrap.make -xsd := records.xsd -cxx := driver.cxx +xsd := position.xsd +cxx := driver.cxx parser.cxx serializer.cxx obj := $(addprefix $(out_base)/,$(cxx:.cxx=.o) $(xsd:.xsd=.o)) dep := $(obj:.o=.o.d) @@ -35,8 +35,7 @@ genf := $(xsd:.xsd=.hxx) $(xsd:.xsd=.ixx) $(xsd:.xsd=.cxx) gen := $(addprefix $(out_base)/,$(genf)) $(gen): xsd := $(out_root)/xsd/xsd -$(gen): xsd_options := --generate-serialization --suppress-parsing \ ---root-element-all +$(gen): xsd_options := --generate-serialization $(gen): $(out_root)/xsd/xsd $(call include-dep,$(dep)) @@ -53,7 +52,12 @@ $(dist) $(dist-win) $(dist-common): path := $(subst $(src_root)/,,$(src_base)) $(dist-common): $(call install-data,$(src_base)/driver.cxx,$(dist_prefix)/$(path)/driver.cxx) - $(call install-data,$(src_base)/records.xsd,$(dist_prefix)/$(path)/records.xsd) + $(call install-data,$(src_base)/parser.cxx,$(dist_prefix)/$(path)/parser.cxx) + $(call install-data,$(src_base)/parser.hxx,$(dist_prefix)/$(path)/parser.hxx) + $(call install-data,$(src_base)/serializer.cxx,$(dist_prefix)/$(path)/serializer.cxx) + $(call install-data,$(src_base)/serializer.hxx,$(dist_prefix)/$(path)/serializer.hxx) + $(call install-data,$(src_base)/position.xsd,$(dist_prefix)/$(path)/position.xsd) + $(call install-data,$(src_base)/position.xml,$(dist_prefix)/$(path)/position.xml) $(dist): $(dist-common) $(call install-data,$(src_base)/README,$(dist_prefix)/$(path)/README) |