diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2009-11-27 18:17:22 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2009-11-27 18:17:22 +0200 |
commit | b0846152c522c859bee2fbce55721d7b79264848 (patch) | |
tree | 6e3daedf516d67d54d344af92193cb03ab18d9c4 /dist/examples/cxx/tree/compression/makefile | |
parent | 9e77d565b3b817ceb427d7ffc2c71fd7ffe5d169 (diff) |
Add XML compression example
Diffstat (limited to 'dist/examples/cxx/tree/compression/makefile')
-rw-r--r-- | dist/examples/cxx/tree/compression/makefile | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/dist/examples/cxx/tree/compression/makefile b/dist/examples/cxx/tree/compression/makefile new file mode 100644 index 0000000..f55c6ad --- /dev/null +++ b/dist/examples/cxx/tree/compression/makefile @@ -0,0 +1,37 @@ +root := ../../.. + +include $(root)/build/cxx/rules.make +include $(root)/build/xsd/tree-rules.make + + +override XSDFLAGS += --generate-ostream --generate-serialization + +override LIBS += -lz + +# Build. +# +driver: driver.o library.o compressed-format-target.o compressed-input-source.o + +library.o: library.cxx library.hxx +driver.o: driver.cxx library.hxx compressed-format-target.hxx \ +compressed-input-source.hxx +compressed-format-target.o: compressed-format-target.cxx +compressed-input-source.o: compressed-input-source.cxx + +library.cxx library.hxx: library.xsd + + +# Test +# +.PHONY: test +test: driver library.xml.gz + ./driver library.xml.gz + + +# Clean. +# +.PHONY: clean +clean: + rm -f library.o library.?xx driver.o compressed-format-target.o \ +compressed-input-source.o driver out.xml.gz + |