From a15cf65c44d5c224169c32ef5495b68c758134b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 18 May 2014 16:08:14 +0200 Subject: Imported Upstream version 3.3.0.2 --- README | 92 + build-0.3/abspath.make | 19 + build-0.3/bootstrap.make | 341 + build-0.3/c/c-d.make | 10 + build-0.3/c/c-o.make | 11 + build-0.3/c/configuration-rules.make | 19 + build-0.3/c/configuration-static.make | 13 + build-0.3/c/configuration.make | 44 + build-0.3/c/configure | 166 + build-0.3/c/cpp-options.make | 36 + build-0.3/c/generic/c-d.make | 19 + build-0.3/c/generic/c-o.make | 40 + build-0.3/c/generic/configuration-rules.make | 15 + build-0.3/c/generic/configuration-sl-rules.make | 15 + build-0.3/c/generic/configuration-sl.make | 21 + build-0.3/c/generic/configuration.make | 22 + build-0.3/c/generic/configure | 28 + build-0.3/c/generic/configure-sl | 37 + build-0.3/c/generic/o-e.make | 28 + build-0.3/c/generic/o-l.make | 64 + build-0.3/c/gnu/c-d.make | 59 + build-0.3/c/gnu/c-o.make | 42 + build-0.3/c/gnu/configuration-rules.make | 15 + build-0.3/c/gnu/configuration-static.make | 4 + build-0.3/c/gnu/configuration.make | 34 + build-0.3/c/gnu/configure | 55 + build-0.3/c/gnu/dep | 58 + build-0.3/c/gnu/o-e.make | 40 + build-0.3/c/gnu/o-l.make | 71 + build-0.3/c/intel/c-d.make | 59 + build-0.3/c/intel/c-o.make | 41 + build-0.3/c/intel/configuration-rules.make | 15 + build-0.3/c/intel/configuration-static.make | 4 + build-0.3/c/intel/configuration.make | 34 + build-0.3/c/intel/configure | 52 + build-0.3/c/intel/dep | 58 + build-0.3/c/intel/o-e.make | 39 + build-0.3/c/intel/o-l.make | 71 + build-0.3/c/o-e.make | 10 + build-0.3/c/o-l.make | 11 + build-0.3/clean.make | 17 + build-0.3/configuration-static.make | 9 + build-0.3/cxx/configuration-rules.make | 19 + build-0.3/cxx/configuration-static.make | 15 + build-0.3/cxx/configuration.make | 45 + build-0.3/cxx/configure | 167 + build-0.3/cxx/cxx-d.make | 10 + build-0.3/cxx/cxx-o.make | 10 + build-0.3/cxx/generic/configuration-rules.make | 15 + build-0.3/cxx/generic/configuration-sl-rules.make | 15 + build-0.3/cxx/generic/configuration-sl.make | 21 + build-0.3/cxx/generic/configuration.make | 22 + build-0.3/cxx/generic/configure | 28 + build-0.3/cxx/generic/configure-sl | 37 + build-0.3/cxx/generic/cxx-d.make | 19 + build-0.3/cxx/generic/cxx-o.make | 40 + build-0.3/cxx/generic/o-e.make | 28 + build-0.3/cxx/generic/o-l.make | 67 + build-0.3/cxx/gnu/configuration-rules.make | 15 + build-0.3/cxx/gnu/configuration-static.make | 4 + build-0.3/cxx/gnu/configuration.make | 34 + build-0.3/cxx/gnu/configure | 55 + build-0.3/cxx/gnu/cxx-d.make | 59 + build-0.3/cxx/gnu/cxx-o.make | 41 + build-0.3/cxx/gnu/o-e.make | 39 + build-0.3/cxx/gnu/o-l.make | 72 + build-0.3/cxx/intel/configuration-rules.make | 15 + build-0.3/cxx/intel/configuration-static.make | 4 + build-0.3/cxx/intel/configuration.make | 34 + build-0.3/cxx/intel/configure | 52 + build-0.3/cxx/intel/cxx-d.make | 59 + build-0.3/cxx/intel/cxx-o.make | 41 + build-0.3/cxx/intel/o-e.make | 39 + build-0.3/cxx/intel/o-l.make | 72 + build-0.3/cxx/o-e.make | 10 + build-0.3/cxx/o-l.make | 11 + build-0.3/dialog.bash | 249 + build-0.3/dir.make | 9 + build-0.3/frame.make | 104 + build-0.3/git/gitignore | 13 + build-0.3/git/gitignore.make | 11 + build-0.3/import.make | 75 + build-0.3/install.make | 7 + build-0.3/install/configuration.make | 46 + build-0.3/install/install | 22 + build-0.3/install/install-functions.make | 38 + build-0.3/install/install-sh | 519 + build-0.3/ld/configuration-lib-rules.make | 16 + build-0.3/ld/configuration-lib-static.make | 10 + build-0.3/ld/configuration-lib.make | 42 + build-0.3/ld/configure-lib | 51 + build-0.3/literals.make | 14 + build-0.3/m4/m4.make | 51 + build-0.3/message.make | 36 + build-0.3/run-if-arg | 18 + build-0.3/system.make | 14 + build-0.3/system/config.guess | 1494 ++ build-0.3/system/config.sub | 1700 ++ build-0.3/system/configuration-rules.make | 25 + build-0.3/system/configure | 138 + libbackend-elements/GPLv2 | 340 + libbackend-elements/INSTALL | 26 + libbackend-elements/LICENSE | 25 + libbackend-elements/NEWS | 91 + libbackend-elements/README | 14 + .../backend-elements/indentation/buffer.hxx | 61 + .../backend-elements/indentation/buffer.txx | 12 + .../backend-elements/indentation/clip.hxx | 173 + .../backend-elements/indentation/clip.txx | 12 + .../backend-elements/indentation/cxx.hxx | 1016 + .../backend-elements/indentation/cxx.txx | 12 + .../backend-elements/indentation/idl.hxx | 290 + .../backend-elements/indentation/idl.txx | 11 + .../backend-elements/indentation/sloc.hxx | 277 + libbackend-elements/backend-elements/makefile | 63 + libbackend-elements/backend-elements/regex.hxx | 208 + libbackend-elements/backend-elements/regex.txx | 52 + libbackend-elements/backend-elements/types.hxx | 16 + libbackend-elements/build/bootstrap.make | 46 + .../build/cxx/configuration-dynamic.make | 14 + .../build/cxx/gnu/configuration-dynamic.make | 8 + .../build/export/libbackend-elements/stub.make | 13 + .../build/import/libbackend-elements/LICENSE | 1 + .../libbackend-elements/configuration-rules.make | 15 + .../build/import/libbackend-elements/configure | 55 + .../build/import/libbackend-elements/stub.make | 32 + libbackend-elements/build/import/libboost/LICENSE | 340 + .../import/libboost/configuration-dynamic.make | 8 + .../build/import/libboost/configuration-rules.make | 15 + .../build/import/libboost/configure | 65 + .../build/import/libboost/regex/rules.make | 38 + .../build/import/libboost/regex/stub.make | 32 + libbackend-elements/build/import/libboost/version | 1 + libbackend-elements/build/import/libcult/LICENSE | 340 + .../import/libcult/configuration-dynamic.make | 4 + .../build/import/libcult/configuration-rules.make | 15 + libbackend-elements/build/import/libcult/configure | 55 + libbackend-elements/build/import/libcult/stub.make | 30 + .../build/ld/configuration-lib-dynamic.make | 13 + libbackend-elements/documentation/BUGS | 1 + libbackend-elements/documentation/TODO | 1 + libbackend-elements/documentation/default.css | 160 + libbackend-elements/documentation/index.xhtml | 56 + libbackend-elements/makefile | 17 + .../tests/indentation/cxx/driver.cxx | 105 + libbackend-elements/tests/indentation/cxx/makefile | 57 + .../tests/indentation/cxx/output.cxx | 75 + libbackend-elements/tests/indentation/makefile | 18 + libbackend-elements/tests/makefile | 18 + libbackend-elements/version | 1 + libcult/GPLv2 | 340 + libcult/INSTALL | 21 + libcult/LICENSE | 25 + libcult/NEWS | 126 + libcult/README | 15 + libcult/build/bootstrap.make | 46 + libcult/build/configuration-dynamic.make | 3 + libcult/build/configuration-rules.make | 18 + libcult/build/configuration.make | 28 + libcult/build/configure | 47 + libcult/build/cxx/configuration-dynamic.make | 14 + libcult/build/cxx/gnu/configuration-dynamic.make | 8 + libcult/build/export/libcult/stub.make | 10 + libcult/build/import/libcult/LICENSE | 1 + .../build/import/libcult/configuration-rules.make | 15 + libcult/build/import/libcult/configure | 55 + libcult/build/import/libcult/stub.make | 30 + libcult/build/ld/configuration-lib-dynamic.make | 13 + libcult/cult/cli/arguments.cxx | 22 + libcult/cult/cli/arguments.hxx | 85 + libcult/cult/cli/arguments.ixx | 21 + libcult/cult/cli/exceptions.hxx | 136 + libcult/cult/cli/file-arguments.cxx | 118 + libcult/cult/cli/file-arguments.hxx | 59 + libcult/cult/cli/mapper.hxx.m4 | 65 + libcult/cult/cli/options-parser.cxx | 40 + libcult/cult/cli/options-parser.hxx | 570 + libcult/cult/cli/options-parser.ixx | 12 + libcult/cult/cli/options-parser.txx | 34 + libcult/cult/cli/options-spec.cxx | 14 + libcult/cult/cli/options-spec.hxx | 723 + libcult/cult/cli/options-spec.ixx | 12 + libcult/cult/cli/options-spec.txx | 320 + libcult/cult/cli/options.cxx | 17 + libcult/cult/cli/options.hxx | 502 + libcult/cult/cli/options.ixx | 12 + libcult/cult/cli/options.txx | 320 + libcult/cult/cli/scanner.cxx | 17 + libcult/cult/cli/scanner.hxx | 132 + libcult/cult/cli/scanner.ixx | 12 + libcult/cult/containers/any.hxx | 192 + libcult/cult/containers/any.txx | 11 + libcult/cult/containers/deque.hxx | 166 + libcult/cult/containers/graph.hxx | 193 + libcult/cult/containers/graph.txx | 313 + libcult/cult/containers/iterator.hxx | 227 + libcult/cult/containers/list.hxx | 193 + libcult/cult/containers/map.hxx | 175 + libcult/cult/containers/pair.hxx | 58 + libcult/cult/containers/set.hxx | 175 + libcult/cult/containers/stack.hxx | 95 + libcult/cult/containers/vector.hxx | 164 + libcult/cult/dr/xdr/input-stream.cxx | 152 + libcult/cult/dr/xdr/input-stream.hxx | 78 + libcult/cult/dr/xdr/output-stream.cxx | 222 + libcult/cult/dr/xdr/output-stream.hxx | 89 + libcult/cult/eh/exception.cxx | 27 + libcult/cult/eh/exception.hxx | 25 + libcult/cult/makefile | 160 + libcult/cult/meta/answer.hxx | 27 + libcult/cult/meta/class-p.hxx | 33 + libcult/cult/meta/polymorphic-p.hxx | 56 + libcult/cult/meta/remove-c.hxx | 27 + libcult/cult/meta/remove-cv.hxx | 24 + libcult/cult/meta/remove-v.hxx | 27 + libcult/cult/mm/arch/generic/counter.hxx | 45 + libcult/cult/mm/arch/generic/counter.ixx | 47 + libcult/cult/mm/arch/i386/counter.hxx | 43 + libcult/cult/mm/arch/i386/counter.ixx | 46 + .../mm/arch/i386/i486/i586/i686/x86_64/counter.hxx | 43 + .../mm/arch/i386/i486/i586/i686/x86_64/counter.ixx | 46 + libcult/cult/mm/bits/evptr.hxx | 379 + libcult/cult/mm/bits/shptr.hxx | 85 + libcult/cult/mm/buffer.cxx | 140 + libcult/cult/mm/buffer.hxx | 80 + libcult/cult/mm/counter.cxx | 14 + libcult/cult/mm/counter.hxx | 79 + libcult/cult/mm/counter.ixx | 38 + libcult/cult/mm/evptr.hxx | 221 + libcult/cult/mm/exception.hxx | 31 + libcult/cult/mm/new.cxx | 192 + libcult/cult/mm/new.hxx | 297 + libcult/cult/mm/new.ixx | 36 + libcult/cult/mm/shptr.hxx | 139 + libcult/cult/mm/static-ptr.hxx | 75 + libcult/cult/os/exception.cxx | 13 + libcult/cult/os/exception.hxx | 46 + libcult/cult/os/net/address.cxx | 37 + libcult/cult/os/net/address.hxx | 60 + libcult/cult/os/net/datagram-socket.cxx | 26 + libcult/cult/os/net/datagram-socket.hxx | 57 + libcult/cult/os/net/ipv4/address.cxx | 37 + libcult/cult/os/net/ipv4/address.hxx | 143 + libcult/cult/os/net/ipv4/datagram-socket.cxx | 20 + libcult/cult/os/net/ipv4/datagram-socket.hxx | 282 + libcult/cult/os/net/ipv4/multicast-socket.cxx | 19 + libcult/cult/os/net/ipv4/multicast-socket.hxx | 133 + libcult/cult/os/net/multicast-socket.cxx | 26 + libcult/cult/os/net/multicast-socket.hxx | 40 + libcult/cult/os/net/socket.cxx | 26 + libcult/cult/os/net/socket.hxx | 54 + libcult/cult/rtti/type-id.hxx | 52 + libcult/cult/rtti/type-id.ixx | 45 + libcult/cult/rtti/type-id.txx | 18 + libcult/cult/rtti/type-info.cxx | 42 + libcult/cult/rtti/type-info.hxx | 147 + libcult/cult/rtti/type-info.ixx | 87 + libcult/cult/sched/condition.cxx | 49 + libcult/cult/sched/condition.hxx | 42 + libcult/cult/sched/exception.hxx | 30 + libcult/cult/sched/lock.cxx | 13 + libcult/cult/sched/lock.hxx | 58 + libcult/cult/sched/mutex.cxx | 54 + libcult/cult/sched/mutex.hxx | 41 + libcult/cult/sched/spin.cxx | 28 + libcult/cult/sched/spin.hxx | 41 + libcult/cult/sched/spin.ixx | 43 + libcult/cult/sched/thread.cxx | 211 + libcult/cult/sched/thread.hxx | 86 + libcult/cult/trace/log.cxx | 49 + libcult/cult/trace/log.hxx | 51 + libcult/cult/trace/log.ixx | 20 + libcult/cult/trace/null/record.ixx | 45 + libcult/cult/trace/null/record.txx | 18 + libcult/cult/trace/null/stream.ixx | 67 + libcult/cult/trace/null/stream.txx | 18 + libcult/cult/trace/record.hxx | 86 + libcult/cult/trace/record.ixx | 45 + libcult/cult/trace/record.txx | 19 + libcult/cult/trace/stream.hxx | 74 + libcult/cult/trace/stream.ixx | 76 + libcult/cult/trace/stream.txx | 19 + libcult/cult/types.hxx | 14 + libcult/cult/types/evptr.hxx | 21 + libcult/cult/types/fundamental.hxx | 175 + libcult/cult/types/shptr.hxx | 21 + libcult/cult/types/string.hxx | 397 + libcult/documentation/BUGS | 2 + libcult/documentation/CORE | 14 + libcult/documentation/DESIGN | 12 + libcult/documentation/DOC | 1 + libcult/documentation/NOTES | 3 + libcult/documentation/RELEASE | 1 + libcult/documentation/THOGHTS | 1 + libcult/documentation/TODO | 3 + libcult/documentation/TODO-CLI | 7 + libcult/documentation/TODO-EH | 5 + libcult/documentation/TODO-META | 2 + libcult/documentation/TODO-MM | 3 + libcult/documentation/TODO-SCHED | 12 + libcult/documentation/cli/index.xhtml | 106 + libcult/documentation/default.css | 160 + libcult/documentation/dr/index.xhtml | 57 + libcult/documentation/eh/index.xhtml | 106 + libcult/documentation/index.xhtml | 78 + libcult/documentation/meta/index.xhtml | 70 + libcult/documentation/mm/index.xhtml | 77 + libcult/documentation/os/index.xhtml | 57 + libcult/documentation/rtti/index.xhtml | 57 + libcult/documentation/sched/index.xhtml | 57 + libcult/documentation/trace/index.xhtml | 102 + libcult/documentation/types/index.xhtml | 56 + libcult/examples/cli/cli.cxx | 65 + libcult/examples/cli/makefile | 48 + libcult/examples/dr/xdr/makefile | 49 + libcult/examples/dr/xdr/xdr.cxx | 87 + libcult/examples/makefile | 36 + libcult/examples/mm/shptr/makefile | 48 + libcult/examples/mm/shptr/shptr.cxx | 73 + libcult/examples/mm/transfer/makefile | 48 + libcult/examples/mm/transfer/transfer.cxx | 117 + libcult/examples/os/net/ipv4/datagram/client.cxx | 66 + libcult/examples/os/net/ipv4/datagram/makefile | 55 + libcult/examples/os/net/ipv4/datagram/protocol.hxx | 20 + libcult/examples/os/net/ipv4/datagram/server.cxx | 123 + libcult/examples/os/net/ipv4/multicast/client.cxx | 66 + libcult/examples/os/net/ipv4/multicast/makefile | 55 + .../examples/os/net/ipv4/multicast/protocol.hxx | 20 + libcult/examples/os/net/ipv4/multicast/server.cxx | 134 + libcult/examples/sched/cancel/cancel.cxx | 63 + libcult/examples/sched/cancel/makefile | 48 + libcult/examples/sched/main/main.cxx | 43 + libcult/examples/sched/main/makefile | 48 + libcult/examples/trace/makefile | 48 + libcult/examples/trace/trace.cxx | 51 + libcult/makefile | 15 + libcult/version | 1 + libfrontend-elements/GPLv2 | 340 + libfrontend-elements/INSTALL | 25 + libfrontend-elements/LICENSE | 25 + libfrontend-elements/NEWS | 40 + libfrontend-elements/README | 14 + libfrontend-elements/build/bootstrap.make | 46 + .../build/cxx/configuration-dynamic.make | 14 + .../build/cxx/gnu/configuration-dynamic.make | 8 + .../build/export/libfrontend-elements/stub.make | 10 + libfrontend-elements/build/import/libcult/LICENSE | 340 + .../import/libcult/configuration-dynamic.make | 4 + .../build/import/libcult/configuration-rules.make | 15 + .../build/import/libcult/configure | 55 + .../build/import/libcult/stub.make | 30 + .../build/import/libfrontend-elements/LICENSE | 1 + .../libfrontend-elements/configuration-rules.make | 15 + .../build/import/libfrontend-elements/configure | 55 + .../build/import/libfrontend-elements/stub.make | 30 + .../build/ld/configuration-lib-dynamic.make | 13 + libfrontend-elements/documentation/DIAGNOSTIC | 4 + libfrontend-elements/documentation/TODO | 1 + libfrontend-elements/documentation/default.css | 160 + libfrontend-elements/documentation/index.xhtml | 77 + .../examples/diagnostic/driver.cxx | 29 + libfrontend-elements/examples/diagnostic/makefile | 48 + libfrontend-elements/examples/makefile | 16 + libfrontend-elements/frontend-elements/context.cxx | 11 + libfrontend-elements/frontend-elements/context.hxx | 133 + .../frontend-elements/diagnostic.cxx | 41 + .../frontend-elements/diagnostic.hxx | 364 + .../frontend-elements/diagnostic.ixx | 21 + .../frontend-elements/diagnostic.txx | 9 + libfrontend-elements/frontend-elements/makefile | 63 + .../frontend-elements/token-stream.cxx | 10 + .../frontend-elements/token-stream.hxx | 99 + .../frontend-elements/traversal.cxx | 10 + .../frontend-elements/traversal.hxx | 293 + .../frontend-elements/traversal.ixx | 8 + .../frontend-elements/traversal.txx | 135 + libfrontend-elements/frontend-elements/types.hxx | 16 + libfrontend-elements/makefile | 15 + libfrontend-elements/version | 1 + libxsd-frontend/GPLv2 | 340 + libxsd-frontend/INSTALL | 28 + libxsd-frontend/LICENSE | 22 + libxsd-frontend/NEWS | 281 + libxsd-frontend/README | 13 + libxsd-frontend/build/bootstrap.make | 46 + .../build/cxx/configuration-dynamic.make | 14 + .../build/cxx/gnu/configuration-dynamic.make | 8 + .../build/export/libxsd-frontend/stub.make | 10 + libxsd-frontend/build/import/libboost/LICENSE | 340 + .../import/libboost/configuration-dynamic.make | 8 + .../build/import/libboost/configuration-rules.make | 15 + libxsd-frontend/build/import/libboost/configure | 74 + .../build/import/libboost/filesystem/rules.make | 53 + .../build/import/libboost/filesystem/stub.make | 36 + libxsd-frontend/build/import/libboost/version | 1 + libxsd-frontend/build/import/libcult/LICENSE | 340 + .../import/libcult/configuration-dynamic.make | 4 + .../build/import/libcult/configuration-rules.make | 15 + libxsd-frontend/build/import/libcult/configure | 55 + libxsd-frontend/build/import/libcult/stub.make | 30 + .../build/import/libfrontend-elements/LICENSE | 340 + .../configuration-dynamic.make | 4 + .../libfrontend-elements/configuration-rules.make | 15 + .../build/import/libfrontend-elements/configure | 55 + .../build/import/libfrontend-elements/stub.make | 30 + libxsd-frontend/build/import/libxerces-c/LICENSE | 340 + .../import/libxerces-c/configuration-dynamic.make | 1 + .../import/libxerces-c/configuration-rules.make | 15 + libxsd-frontend/build/import/libxerces-c/configure | 73 + .../build/import/libxerces-c/rules.make | 52 + libxsd-frontend/build/import/libxerces-c/stub.make | 32 + libxsd-frontend/build/import/libxerces-c/version | 1 + .../build/import/libxsd-frontend/LICENSE | 1 + .../libxsd-frontend/configuration-rules.make | 15 + .../build/import/libxsd-frontend/configure | 55 + .../build/import/libxsd-frontend/stub.make | 30 + .../build/ld/configuration-lib-dynamic.make | 13 + libxsd-frontend/makefile | 17 + libxsd-frontend/tests/dump/driver.cxx | 734 + libxsd-frontend/tests/dump/makefile | 56 + libxsd-frontend/tests/makefile | 17 + libxsd-frontend/tests/schema/annotation/makefile | 35 + .../tests/schema/annotation/test-000.std | 67 + .../tests/schema/annotation/test-000.xsd | 120 + .../tests/schema/annotation/test-001.std | 36 + .../tests/schema/annotation/test-001.xsd | 53 + libxsd-frontend/tests/schema/anonymous/makefile | 35 + .../tests/schema/anonymous/test-000.std | 30 + .../tests/schema/anonymous/test-000.xsd | 42 + .../tests/schema/anonymous/test-001.std | 38 + .../tests/schema/anonymous/test-001.xsd | 47 + .../tests/schema/attribute-group/makefile | 35 + .../tests/schema/attribute-group/test-000.std | 17 + .../tests/schema/attribute-group/test-000.xsd | 31 + .../tests/schema/attribute-group/test-001.std | 12 + .../tests/schema/attribute-group/test-001.xsd | 20 + libxsd-frontend/tests/schema/default/makefile | 35 + libxsd-frontend/tests/schema/default/test-000.std | 28 + libxsd-frontend/tests/schema/default/test-000.xsd | 23 + libxsd-frontend/tests/schema/default/test-001.std | 15 + libxsd-frontend/tests/schema/default/test-001.xsd | 11 + .../tests/schema/element-group/makefile | 35 + .../tests/schema/element-group/test-000.std | 33 + .../tests/schema/element-group/test-000.xsd | 39 + .../tests/schema/element-group/test-001.std | 137 + .../tests/schema/element-group/test-001.xsd | 33 + .../tests/schema/element-group/test-002.std | 24 + .../tests/schema/element-group/test-002.xsd | 26 + libxsd-frontend/tests/schema/enumeration/makefile | 35 + .../tests/schema/enumeration/test-000.std | 62 + .../tests/schema/enumeration/test-000.xsd | 72 + libxsd-frontend/tests/schema/makefile | 25 + libxsd-frontend/tests/schema/union/makefile | 35 + libxsd-frontend/tests/schema/union/test-000.std | 37 + libxsd-frontend/tests/schema/union/test-000.xsd | 40 + libxsd-frontend/tests/schema/union/test-001.std | 15 + libxsd-frontend/tests/schema/union/test-001.xsd | 21 + libxsd-frontend/version | 1 + libxsd-frontend/xsd-frontend/makefile | 126 + libxsd-frontend/xsd-frontend/parser.cxx | 5126 +++++ libxsd-frontend/xsd-frontend/parser.hxx | 76 + libxsd-frontend/xsd-frontend/schema-dom-parser.cxx | 196 + libxsd-frontend/xsd-frontend/schema-dom-parser.hxx | 93 + libxsd-frontend/xsd-frontend/semantic-graph.hxx | 27 + .../xsd-frontend/semantic-graph/annotation.cxx | 50 + .../xsd-frontend/semantic-graph/annotation.hxx | 89 + .../xsd-frontend/semantic-graph/any-attribute.cxx | 114 + .../xsd-frontend/semantic-graph/any-attribute.hxx | 85 + .../xsd-frontend/semantic-graph/any.cxx | 125 + .../xsd-frontend/semantic-graph/any.hxx | 90 + .../semantic-graph/attribute-group.cxx | 39 + .../semantic-graph/attribute-group.hxx | 27 + .../xsd-frontend/semantic-graph/attribute.cxx | 44 + .../xsd-frontend/semantic-graph/attribute.hxx | 39 + .../xsd-frontend/semantic-graph/complex.cxx | 45 + .../xsd-frontend/semantic-graph/complex.hxx | 78 + .../xsd-frontend/semantic-graph/compositors.cxx | 124 + .../xsd-frontend/semantic-graph/compositors.hxx | 263 + .../xsd-frontend/semantic-graph/element-group.cxx | 38 + .../xsd-frontend/semantic-graph/element-group.hxx | 45 + .../xsd-frontend/semantic-graph/element.cxx | 63 + .../xsd-frontend/semantic-graph/element.hxx | 105 + .../xsd-frontend/semantic-graph/elements.cxx | 350 + .../xsd-frontend/semantic-graph/elements.hxx | 1247 ++ .../xsd-frontend/semantic-graph/enumeration.cxx | 67 + .../xsd-frontend/semantic-graph/enumeration.hxx | 35 + .../xsd-frontend/semantic-graph/fundamental.cxx.m4 | 216 + .../xsd-frontend/semantic-graph/fundamental.hxx.m4 | 165 + .../xsd-frontend/semantic-graph/fundamental.m4 | 18 + .../xsd-frontend/semantic-graph/list.cxx | 37 + .../xsd-frontend/semantic-graph/list.hxx | 25 + .../xsd-frontend/semantic-graph/namespace.cxx | 37 + .../xsd-frontend/semantic-graph/namespace.hxx | 32 + .../xsd-frontend/semantic-graph/particle.cxx | 61 + .../xsd-frontend/semantic-graph/particle.hxx | 145 + .../xsd-frontend/semantic-graph/schema.cxx | 139 + .../xsd-frontend/semantic-graph/schema.hxx | 281 + .../xsd-frontend/semantic-graph/union.cxx | 37 + .../xsd-frontend/semantic-graph/union.hxx | 25 + .../xsd-frontend/transformations/anonymous.cxx | 739 + .../xsd-frontend/transformations/anonymous.hxx | 60 + .../transformations/enum-synthesis.cxx | 249 + .../transformations/enum-synthesis.hxx | 33 + .../xsd-frontend/transformations/restriction.cxx | 582 + .../xsd-frontend/transformations/restriction.hxx | 39 + .../transformations/schema-per-type.cxx | 453 + .../transformations/schema-per-type.hxx | 61 + .../xsd-frontend/transformations/simplifier.cxx | 167 + .../xsd-frontend/transformations/simplifier.hxx | 33 + libxsd-frontend/xsd-frontend/traversal.hxx | 26 + .../xsd-frontend/traversal/any-attribute.hxx | 22 + libxsd-frontend/xsd-frontend/traversal/any.hxx | 22 + .../xsd-frontend/traversal/attribute-group.cxx | 30 + .../xsd-frontend/traversal/attribute-group.hxx | 30 + .../xsd-frontend/traversal/attribute.cxx | 48 + .../xsd-frontend/traversal/attribute.hxx | 41 + libxsd-frontend/xsd-frontend/traversal/complex.cxx | 64 + libxsd-frontend/xsd-frontend/traversal/complex.hxx | 45 + .../xsd-frontend/traversal/compositors.cxx | 165 + .../xsd-frontend/traversal/compositors.hxx | 136 + .../xsd-frontend/traversal/element-group.cxx | 43 + .../xsd-frontend/traversal/element-group.hxx | 36 + libxsd-frontend/xsd-frontend/traversal/element.cxx | 48 + libxsd-frontend/xsd-frontend/traversal/element.hxx | 39 + .../xsd-frontend/traversal/elements.cxx | 77 + .../xsd-frontend/traversal/elements.hxx | 480 + .../xsd-frontend/traversal/elements.txx | 11 + .../xsd-frontend/traversal/enumeration.cxx | 91 + .../xsd-frontend/traversal/enumeration.hxx | 60 + .../xsd-frontend/traversal/fundamental.cxx | 13 + .../xsd-frontend/traversal/fundamental.hxx | 234 + libxsd-frontend/xsd-frontend/traversal/list.cxx | 48 + libxsd-frontend/xsd-frontend/traversal/list.hxx | 39 + .../xsd-frontend/traversal/namespace.cxx | 13 + .../xsd-frontend/traversal/namespace.hxx | 45 + .../xsd-frontend/traversal/particle.cxx | 31 + .../xsd-frontend/traversal/particle.hxx | 30 + libxsd-frontend/xsd-frontend/traversal/schema.cxx | 13 + libxsd-frontend/xsd-frontend/traversal/schema.hxx | 150 + libxsd-frontend/xsd-frontend/traversal/union.cxx | 48 + libxsd-frontend/xsd-frontend/traversal/union.hxx | 39 + libxsd-frontend/xsd-frontend/types.hxx | 18 + libxsd-frontend/xsd-frontend/xml.hxx | 567 + makefile | 77 + xsd/FLOSSE | 89 + xsd/GPLv2 | 340 + xsd/INSTALL | 66 + xsd/LICENSE | 26 + xsd/NEWS | 1131 + xsd/README | 27 + xsd/build/bootstrap.make | 86 + xsd/build/configuration-dynamic.make | 7 + xsd/build/configuration-rules.make | 18 + xsd/build/configuration.make | 34 + xsd/build/configure | 80 + xsd/build/cxx/configuration-dynamic.make | 14 + xsd/build/cxx/gnu/configuration-dynamic.make | 8 + xsd/build/import/libace/LICENSE | 340 + xsd/build/import/libace/configuration-rules.make | 15 + xsd/build/import/libace/configure | 58 + xsd/build/import/libace/rules.make | 29 + xsd/build/import/libace/stub.make | 32 + xsd/build/import/libace/version | 1 + xsd/build/import/libbackend-elements/LICENSE | 340 + .../libbackend-elements/configuration-dynamic.make | 4 + .../libbackend-elements/configuration-rules.make | 15 + xsd/build/import/libbackend-elements/configure | 55 + xsd/build/import/libbackend-elements/stub.make | 32 + xsd/build/import/libboost/LICENSE | 340 + .../import/libboost/configuration-dynamic.make | 8 + xsd/build/import/libboost/configuration-rules.make | 15 + xsd/build/import/libboost/configure | 74 + xsd/build/import/libboost/date-time/rules.make | 51 + xsd/build/import/libboost/date-time/stub.make | 36 + xsd/build/import/libboost/filesystem/rules.make | 53 + xsd/build/import/libboost/filesystem/stub.make | 36 + xsd/build/import/libboost/regex/rules.make | 50 + xsd/build/import/libboost/regex/stub.make | 36 + xsd/build/import/libboost/serialization/rules.make | 50 + xsd/build/import/libboost/serialization/stub.make | 36 + xsd/build/import/libboost/version | 1 + xsd/build/import/libcult/LICENSE | 340 + .../import/libcult/configuration-dynamic.make | 4 + xsd/build/import/libcult/configuration-rules.make | 15 + xsd/build/import/libcult/configure | 55 + xsd/build/import/libcult/stub.make | 30 + xsd/build/import/libdbxml/LICENSE | 340 + xsd/build/import/libdbxml/configuration-rules.make | 15 + xsd/build/import/libdbxml/configure | 58 + xsd/build/import/libdbxml/rules.make | 42 + xsd/build/import/libdbxml/stub.make | 32 + xsd/build/import/libdbxml/version | 1 + xsd/build/import/libxerces-c/LICENSE | 340 + .../import/libxerces-c/configuration-dynamic.make | 1 + .../import/libxerces-c/configuration-rules.make | 15 + xsd/build/import/libxerces-c/configure | 73 + xsd/build/import/libxerces-c/rules.make | 52 + xsd/build/import/libxerces-c/stub.make | 32 + xsd/build/import/libxerces-c/version | 1 + xsd/build/import/libxqilla/LICENSE | 340 + .../import/libxqilla/configuration-rules.make | 15 + xsd/build/import/libxqilla/configure | 57 + xsd/build/import/libxqilla/rules.make | 30 + xsd/build/import/libxqilla/stub.make | 32 + xsd/build/import/libxqilla/version | 1 + xsd/build/import/libxsd-frontend/LICENSE | 22 + .../libxsd-frontend/configuration-dynamic.make | 4 + .../libxsd-frontend/configuration-rules.make | 15 + xsd/build/import/libxsd-frontend/configure | 55 + xsd/build/import/libxsd-frontend/stub.make | 30 + xsd/build/import/libz/LICENSE | 340 + xsd/build/import/libz/configuration-rules.make | 15 + xsd/build/import/libz/configure | 58 + xsd/build/import/libz/rules.make | 29 + xsd/build/import/libz/stub.make | 32 + xsd/build/import/libz/version | 1 + xsd/build/xsd/parser/xsd-cxx.make | 77 + xsd/build/xsd/tree/xsd-cxx.make | 48 + xsd/dist/README-UNIX | 85 + xsd/dist/README-WINDOWS | 212 + xsd/dist/etc/vc-10.0/xsd-cxx-parser.props | 33 + xsd/dist/etc/vc-10.0/xsd-cxx-parser.targets | 92 + xsd/dist/etc/vc-10.0/xsd-cxx-parser.xml | 284 + xsd/dist/etc/vc-10.0/xsd-cxx-tree.props | 45 + xsd/dist/etc/vc-10.0/xsd-cxx-tree.targets | 105 + xsd/dist/etc/vc-10.0/xsd-cxx-tree.xml | 390 + xsd/dist/etc/vc-8.0/xsd-cxx-parser.rules | 206 + xsd/dist/etc/vc-8.0/xsd-cxx-tree.rules | 320 + xsd/dist/etc/vc-9.0/xsd-cxx-parser.rules | 206 + xsd/dist/etc/vc-9.0/xsd-cxx-tree.rules | 319 + xsd/dist/examples/build/cxx/compilers.make | 131 + xsd/dist/examples/build/cxx/rules.make | 71 + xsd/dist/examples/build/xsd/common.make | 11 + xsd/dist/examples/build/xsd/parser-rules.make | 23 + xsd/dist/examples/build/xsd/tree-rules.make | 15 + xsd/dist/examples/cxx/makefile | 11 + .../cxx/parser/generated/generated-10.0.vcxproj | 207 + .../generated/generated-10.0.vcxproj.filters | 44 + .../cxx/parser/generated/generated-7.1.vcproj | 168 + .../cxx/parser/generated/generated-8.0.vcproj | 427 + .../cxx/parser/generated/generated-9.0.vcproj | 424 + .../parser/generated/generated-xerces2-7.1.vcproj | 168 + .../parser/generated/generated-xerces2-8.0.vcproj | 427 + .../parser/generated/generated-xerces2-9.0.vcproj | 424 + xsd/dist/examples/cxx/parser/generated/makefile | 49 + .../examples/cxx/parser/hello/hello-10.0.vcxproj | 205 + .../cxx/parser/hello/hello-10.0.vcxproj.filters | 38 + .../examples/cxx/parser/hello/hello-7.1.vcproj | 162 + .../examples/cxx/parser/hello/hello-8.0.vcproj | 419 + .../examples/cxx/parser/hello/hello-9.0.vcproj | 416 + .../cxx/parser/hello/hello-xerces2-7.1.vcproj | 162 + .../cxx/parser/hello/hello-xerces2-8.0.vcproj | 419 + .../cxx/parser/hello/hello-xerces2-9.0.vcproj | 416 + xsd/dist/examples/cxx/parser/hello/makefile | 28 + .../cxx/parser/library/library-10.0.vcxproj | 209 + .../parser/library/library-10.0.vcxproj.filters | 54 + .../examples/cxx/parser/library/library-7.1.vcproj | 178 + .../examples/cxx/parser/library/library-8.0.vcproj | 440 + .../examples/cxx/parser/library/library-9.0.vcproj | 437 + .../cxx/parser/library/library-xerces2-7.1.vcproj | 178 + .../cxx/parser/library/library-xerces2-8.0.vcproj | 440 + .../cxx/parser/library/library-xerces2-9.0.vcproj | 437 + xsd/dist/examples/cxx/parser/library/makefile | 30 + xsd/dist/examples/cxx/parser/makefile | 12 + xsd/dist/examples/cxx/parser/mixed/makefile | 30 + .../examples/cxx/parser/mixed/mixed-10.0.vcxproj | 206 + .../cxx/parser/mixed/mixed-10.0.vcxproj.filters | 41 + .../examples/cxx/parser/mixed/mixed-7.1.vcproj | 165 + .../examples/cxx/parser/mixed/mixed-8.0.vcproj | 423 + .../examples/cxx/parser/mixed/mixed-9.0.vcproj | 420 + .../cxx/parser/mixed/mixed-xerces2-7.1.vcproj | 165 + .../cxx/parser/mixed/mixed-xerces2-8.0.vcproj | 423 + .../cxx/parser/mixed/mixed-xerces2-9.0.vcproj | 420 + xsd/dist/examples/cxx/parser/mixin/makefile | 30 + .../examples/cxx/parser/mixin/mixin-10.0.vcxproj | 206 + .../cxx/parser/mixin/mixin-10.0.vcxproj.filters | 41 + .../examples/cxx/parser/mixin/mixin-7.1.vcproj | 165 + .../examples/cxx/parser/mixin/mixin-8.0.vcproj | 423 + .../examples/cxx/parser/mixin/mixin-9.0.vcproj | 420 + .../cxx/parser/mixin/mixin-xerces2-7.1.vcproj | 165 + .../cxx/parser/mixin/mixin-xerces2-8.0.vcproj | 423 + .../cxx/parser/mixin/mixin-xerces2-9.0.vcproj | 420 + xsd/dist/examples/cxx/parser/multiroot/makefile | 32 + .../cxx/parser/multiroot/multiroot-10.0.vcxproj | 212 + .../multiroot/multiroot-10.0.vcxproj.filters | 47 + .../cxx/parser/multiroot/multiroot-7.1.vcproj | 173 + .../cxx/parser/multiroot/multiroot-8.0.vcproj | 435 + .../cxx/parser/multiroot/multiroot-9.0.vcproj | 432 + .../parser/multiroot/multiroot-xerces2-7.1.vcproj | 173 + .../parser/multiroot/multiroot-xerces2-8.0.vcproj | 435 + .../parser/multiroot/multiroot-xerces2-9.0.vcproj | 432 + xsd/dist/examples/cxx/parser/parser-10.0.sln | 115 + xsd/dist/examples/cxx/parser/parser-7.1.sln | 93 + xsd/dist/examples/cxx/parser/parser-8.0.sln | 115 + xsd/dist/examples/cxx/parser/parser-9.0.sln | 115 + .../examples/cxx/parser/parser-xerces2-7.1.sln | 93 + .../examples/cxx/parser/parser-xerces2-8.0.sln | 115 + .../examples/cxx/parser/parser-xerces2-9.0.sln | 115 + xsd/dist/examples/cxx/parser/performance/makefile | 30 + .../parser/performance/performance-10.0.vcxproj | 207 + .../performance/performance-10.0.vcxproj.filters | 44 + .../cxx/parser/performance/performance-7.1.vcproj | 168 + .../cxx/parser/performance/performance-8.0.vcproj | 427 + .../cxx/parser/performance/performance-9.0.vcproj | 424 + .../performance/performance-xerces2-7.1.vcproj | 168 + .../performance/performance-xerces2-8.0.vcproj | 427 + .../performance/performance-xerces2-9.0.vcproj | 424 + xsd/dist/examples/cxx/parser/polymorphism/makefile | 30 + .../parser/polymorphism/polymorphism-10.0.vcxproj | 211 + .../polymorphism/polymorphism-10.0.vcxproj.filters | 44 + .../parser/polymorphism/polymorphism-7.1.vcproj | 170 + .../parser/polymorphism/polymorphism-8.0.vcproj | 431 + .../parser/polymorphism/polymorphism-9.0.vcproj | 428 + .../polymorphism/polymorphism-xerces2-7.1.vcproj | 170 + .../polymorphism/polymorphism-xerces2-8.0.vcproj | 431 + .../polymorphism/polymorphism-xerces2-9.0.vcproj | 428 + xsd/dist/examples/cxx/parser/polyroot/makefile | 31 + .../cxx/parser/polyroot/polyroot-10.0.vcxproj | 211 + .../parser/polyroot/polyroot-10.0.vcxproj.filters | 44 + .../cxx/parser/polyroot/polyroot-7.1.vcproj | 170 + .../cxx/parser/polyroot/polyroot-8.0.vcproj | 431 + .../cxx/parser/polyroot/polyroot-9.0.vcproj | 428 + .../parser/polyroot/polyroot-xerces2-7.1.vcproj | 170 + .../parser/polyroot/polyroot-xerces2-8.0.vcproj | 431 + .../parser/polyroot/polyroot-xerces2-9.0.vcproj | 428 + xsd/dist/examples/cxx/parser/wildcard/makefile | 28 + .../cxx/parser/wildcard/wildcard-10.0.vcxproj | 205 + .../parser/wildcard/wildcard-10.0.vcxproj.filters | 38 + .../cxx/parser/wildcard/wildcard-7.1.vcproj | 162 + .../cxx/parser/wildcard/wildcard-8.0.vcproj | 419 + .../cxx/parser/wildcard/wildcard-9.0.vcproj | 416 + .../parser/wildcard/wildcard-xerces2-7.1.vcproj | 162 + .../parser/wildcard/wildcard-xerces2-8.0.vcproj | 419 + .../parser/wildcard/wildcard-xerces2-9.0.vcproj | 416 + .../examples/cxx/tree/binary/boost/boost-10.0.sln | 25 + .../cxx/tree/binary/boost/boost-10.0.vcxproj | 212 + .../tree/binary/boost/boost-10.0.vcxproj.filters | 47 + .../examples/cxx/tree/binary/boost/boost-7.1.sln | 21 + .../cxx/tree/binary/boost/boost-7.1.vcproj | 173 + .../examples/cxx/tree/binary/boost/boost-8.0.sln | 25 + .../cxx/tree/binary/boost/boost-8.0.vcproj | 435 + .../examples/cxx/tree/binary/boost/boost-9.0.sln | 25 + .../cxx/tree/binary/boost/boost-9.0.vcproj | 432 + .../cxx/tree/binary/boost/boost-xerces2-7.1.sln | 21 + .../cxx/tree/binary/boost/boost-xerces2-7.1.vcproj | 173 + .../cxx/tree/binary/boost/boost-xerces2-8.0.sln | 25 + .../cxx/tree/binary/boost/boost-xerces2-8.0.vcproj | 435 + .../cxx/tree/binary/boost/boost-xerces2-9.0.sln | 25 + .../cxx/tree/binary/boost/boost-xerces2-9.0.vcproj | 432 + xsd/dist/examples/cxx/tree/binary/boost/makefile | 37 + xsd/dist/examples/cxx/tree/binary/cdr/cdr-10.0.sln | 25 + .../examples/cxx/tree/binary/cdr/cdr-10.0.vcxproj | 209 + .../cxx/tree/binary/cdr/cdr-10.0.vcxproj.filters | 38 + xsd/dist/examples/cxx/tree/binary/cdr/cdr-7.1.sln | 21 + .../examples/cxx/tree/binary/cdr/cdr-7.1.vcproj | 164 + xsd/dist/examples/cxx/tree/binary/cdr/cdr-8.0.sln | 25 + .../examples/cxx/tree/binary/cdr/cdr-8.0.vcproj | 423 + xsd/dist/examples/cxx/tree/binary/cdr/cdr-9.0.sln | 25 + .../examples/cxx/tree/binary/cdr/cdr-9.0.vcproj | 420 + .../cxx/tree/binary/cdr/cdr-xerces2-7.1.sln | 21 + .../cxx/tree/binary/cdr/cdr-xerces2-7.1.vcproj | 164 + .../cxx/tree/binary/cdr/cdr-xerces2-8.0.sln | 25 + .../cxx/tree/binary/cdr/cdr-xerces2-8.0.vcproj | 423 + .../cxx/tree/binary/cdr/cdr-xerces2-9.0.sln | 25 + .../cxx/tree/binary/cdr/cdr-xerces2-9.0.vcproj | 420 + xsd/dist/examples/cxx/tree/binary/cdr/makefile | 35 + xsd/dist/examples/cxx/tree/binary/makefile | 25 + xsd/dist/examples/cxx/tree/binary/xdr/makefile | 35 + xsd/dist/examples/cxx/tree/binary/xdr/xdr-10.0.sln | 25 + .../examples/cxx/tree/binary/xdr/xdr-10.0.vcxproj | 209 + .../cxx/tree/binary/xdr/xdr-10.0.vcxproj.filters | 38 + xsd/dist/examples/cxx/tree/binary/xdr/xdr-7.1.sln | 21 + .../examples/cxx/tree/binary/xdr/xdr-7.1.vcproj | 164 + xsd/dist/examples/cxx/tree/binary/xdr/xdr-8.0.sln | 25 + .../examples/cxx/tree/binary/xdr/xdr-8.0.vcproj | 423 + xsd/dist/examples/cxx/tree/binary/xdr/xdr-9.0.sln | 25 + .../examples/cxx/tree/binary/xdr/xdr-9.0.vcproj | 420 + .../cxx/tree/binary/xdr/xdr-xerces2-7.1.sln | 21 + .../cxx/tree/binary/xdr/xdr-xerces2-7.1.vcproj | 164 + .../cxx/tree/binary/xdr/xdr-xerces2-8.0.sln | 25 + .../cxx/tree/binary/xdr/xdr-xerces2-8.0.vcproj | 423 + .../cxx/tree/binary/xdr/xdr-xerces2-9.0.sln | 25 + .../cxx/tree/binary/xdr/xdr-xerces2-9.0.vcproj | 420 + .../examples/cxx/tree/caching/caching-10.0.vcxproj | 209 + .../cxx/tree/caching/caching-10.0.vcxproj.filters | 38 + .../examples/cxx/tree/caching/caching-7.1.vcproj | 164 + .../examples/cxx/tree/caching/caching-8.0.vcproj | 423 + .../examples/cxx/tree/caching/caching-9.0.vcproj | 420 + .../cxx/tree/caching/caching-xerces2-7.1.vcproj | 164 + .../cxx/tree/caching/caching-xerces2-8.0.vcproj | 423 + .../cxx/tree/caching/caching-xerces2-9.0.vcproj | 420 + xsd/dist/examples/cxx/tree/caching/makefile | 28 + .../cxx/tree/compression/compression-10.0.sln | 25 + .../cxx/tree/compression/compression-10.0.vcxproj | 213 + .../compression/compression-10.0.vcxproj.filters | 50 + .../cxx/tree/compression/compression-7.1.sln | 21 + .../cxx/tree/compression/compression-7.1.vcproj | 176 + .../cxx/tree/compression/compression-8.0.sln | 25 + .../cxx/tree/compression/compression-8.0.vcproj | 435 + .../cxx/tree/compression/compression-9.0.sln | 25 + .../cxx/tree/compression/compression-9.0.vcproj | 432 + .../tree/compression/compression-xerces2-7.1.sln | 21 + .../compression/compression-xerces2-7.1.vcproj | 176 + .../tree/compression/compression-xerces2-8.0.sln | 25 + .../compression/compression-xerces2-8.0.vcproj | 435 + .../tree/compression/compression-xerces2-9.0.sln | 25 + .../compression/compression-xerces2-9.0.vcproj | 432 + xsd/dist/examples/cxx/tree/compression/makefile | 37 + .../cxx/tree/custom/calendar/calendar-10.0.sln | 25 + .../cxx/tree/custom/calendar/calendar-10.0.vcxproj | 233 + .../custom/calendar/calendar-10.0.vcxproj.filters | 54 + .../cxx/tree/custom/calendar/calendar-7.1.sln | 21 + .../cxx/tree/custom/calendar/calendar-7.1.vcproj | 186 + .../cxx/tree/custom/calendar/calendar-8.0.sln | 25 + .../cxx/tree/custom/calendar/calendar-8.0.vcproj | 456 + .../cxx/tree/custom/calendar/calendar-9.0.sln | 25 + .../cxx/tree/custom/calendar/calendar-9.0.vcproj | 453 + .../tree/custom/calendar/calendar-xerces2-7.1.sln | 21 + .../custom/calendar/calendar-xerces2-7.1.vcproj | 186 + .../tree/custom/calendar/calendar-xerces2-8.0.sln | 25 + .../custom/calendar/calendar-xerces2-8.0.vcproj | 456 + .../tree/custom/calendar/calendar-xerces2-9.0.sln | 25 + .../custom/calendar/calendar-xerces2-9.0.vcproj | 453 + .../examples/cxx/tree/custom/calendar/makefile | 42 + .../cxx/tree/custom/comments/comments-10.0.vcxproj | 235 + .../custom/comments/comments-10.0.vcxproj.filters | 60 + .../cxx/tree/custom/comments/comments-7.1.vcproj | 192 + .../cxx/tree/custom/comments/comments-8.0.vcproj | 464 + .../cxx/tree/custom/comments/comments-9.0.vcproj | 461 + .../custom/comments/comments-xerces2-7.1.vcproj | 192 + .../custom/comments/comments-xerces2-8.0.vcproj | 464 + .../custom/comments/comments-xerces2-9.0.vcproj | 461 + .../examples/cxx/tree/custom/comments/makefile | 43 + .../cxx/tree/custom/contacts/contacts-10.0.vcxproj | 212 + .../custom/contacts/contacts-10.0.vcxproj.filters | 51 + .../cxx/tree/custom/contacts/contacts-7.1.vcproj | 177 + .../cxx/tree/custom/contacts/contacts-8.0.vcproj | 440 + .../cxx/tree/custom/contacts/contacts-9.0.vcproj | 437 + .../custom/contacts/contacts-xerces2-7.1.vcproj | 177 + .../custom/contacts/contacts-xerces2-8.0.vcproj | 440 + .../custom/contacts/contacts-xerces2-9.0.vcproj | 437 + .../examples/cxx/tree/custom/contacts/makefile | 33 + xsd/dist/examples/cxx/tree/custom/custom-10.0.sln | 75 + xsd/dist/examples/cxx/tree/custom/custom-7.1.sln | 61 + xsd/dist/examples/cxx/tree/custom/custom-8.0.sln | 75 + xsd/dist/examples/cxx/tree/custom/custom-9.0.sln | 75 + .../cxx/tree/custom/custom-xerces2-7.1.sln | 61 + .../cxx/tree/custom/custom-xerces2-8.0.sln | 75 + .../cxx/tree/custom/custom-xerces2-9.0.sln | 75 + .../cxx/tree/custom/double/double-10.0.vcxproj | 233 + .../tree/custom/double/double-10.0.vcxproj.filters | 54 + .../cxx/tree/custom/double/double-7.1.vcproj | 186 + .../cxx/tree/custom/double/double-8.0.vcproj | 456 + .../cxx/tree/custom/double/double-9.0.vcproj | 453 + .../tree/custom/double/double-xerces2-7.1.vcproj | 186 + .../tree/custom/double/double-xerces2-8.0.vcproj | 456 + .../tree/custom/double/double-xerces2-9.0.vcproj | 453 + xsd/dist/examples/cxx/tree/custom/double/makefile | 42 + xsd/dist/examples/cxx/tree/custom/makefile | 15 + xsd/dist/examples/cxx/tree/custom/mixed/makefile | 33 + .../cxx/tree/custom/mixed/mixed-10.0.vcxproj | 212 + .../tree/custom/mixed/mixed-10.0.vcxproj.filters | 51 + .../cxx/tree/custom/mixed/mixed-7.1.vcproj | 177 + .../cxx/tree/custom/mixed/mixed-8.0.vcproj | 440 + .../cxx/tree/custom/mixed/mixed-9.0.vcproj | 437 + .../cxx/tree/custom/mixed/mixed-xerces2-7.1.vcproj | 177 + .../cxx/tree/custom/mixed/mixed-xerces2-8.0.vcproj | 440 + .../cxx/tree/custom/mixed/mixed-xerces2-9.0.vcproj | 437 + .../examples/cxx/tree/custom/taxonomy/makefile | 39 + .../cxx/tree/custom/taxonomy/taxonomy-10.0.vcxproj | 214 + .../custom/taxonomy/taxonomy-10.0.vcxproj.filters | 57 + .../cxx/tree/custom/taxonomy/taxonomy-7.1.vcproj | 183 + .../cxx/tree/custom/taxonomy/taxonomy-8.0.vcproj | 448 + .../cxx/tree/custom/taxonomy/taxonomy-9.0.vcproj | 445 + .../custom/taxonomy/taxonomy-xerces2-7.1.vcproj | 183 + .../custom/taxonomy/taxonomy-xerces2-8.0.vcproj | 448 + .../custom/taxonomy/taxonomy-xerces2-9.0.vcproj | 445 + .../examples/cxx/tree/custom/wildcard/makefile | 34 + .../cxx/tree/custom/wildcard/wildcard-10.0.vcxproj | 212 + .../custom/wildcard/wildcard-10.0.vcxproj.filters | 51 + .../cxx/tree/custom/wildcard/wildcard-7.1.vcproj | 177 + .../cxx/tree/custom/wildcard/wildcard-8.0.vcproj | 440 + .../cxx/tree/custom/wildcard/wildcard-9.0.vcproj | 437 + .../custom/wildcard/wildcard-xerces2-7.1.vcproj | 177 + .../custom/wildcard/wildcard-xerces2-8.0.vcproj | 440 + .../custom/wildcard/wildcard-xerces2-9.0.vcproj | 437 + xsd/dist/examples/cxx/tree/dbxml/dbxml-10.0.sln | 25 + .../examples/cxx/tree/dbxml/dbxml-10.0.vcxproj | 209 + .../cxx/tree/dbxml/dbxml-10.0.vcxproj.filters | 38 + xsd/dist/examples/cxx/tree/dbxml/dbxml-7.1.sln | 21 + xsd/dist/examples/cxx/tree/dbxml/dbxml-7.1.vcproj | 164 + xsd/dist/examples/cxx/tree/dbxml/dbxml-8.0.sln | 25 + xsd/dist/examples/cxx/tree/dbxml/dbxml-8.0.vcproj | 423 + xsd/dist/examples/cxx/tree/dbxml/dbxml-9.0.sln | 25 + xsd/dist/examples/cxx/tree/dbxml/dbxml-9.0.vcproj | 420 + xsd/dist/examples/cxx/tree/dbxml/makefile | 33 + .../examples/cxx/tree/embedded/embedded-10.0.sln | 35 + .../cxx/tree/embedded/embedded-10.0.vcxproj | 219 + .../tree/embedded/embedded-10.0.vcxproj.filters | 50 + .../examples/cxx/tree/embedded/embedded-7.1.sln | 30 + .../examples/cxx/tree/embedded/embedded-7.1.vcproj | 176 + .../examples/cxx/tree/embedded/embedded-8.0.sln | 38 + .../examples/cxx/tree/embedded/embedded-8.0.vcproj | 439 + .../examples/cxx/tree/embedded/embedded-9.0.sln | 38 + .../examples/cxx/tree/embedded/embedded-9.0.vcproj | 436 + .../cxx/tree/embedded/embedded-xerces2-7.1.sln | 30 + .../cxx/tree/embedded/embedded-xerces2-7.1.vcproj | 176 + .../cxx/tree/embedded/embedded-xerces2-8.0.sln | 38 + .../cxx/tree/embedded/embedded-xerces2-8.0.vcproj | 439 + .../cxx/tree/embedded/embedded-xerces2-9.0.sln | 38 + .../cxx/tree/embedded/embedded-xerces2-9.0.vcproj | 436 + xsd/dist/examples/cxx/tree/embedded/makefile | 36 + .../examples/cxx/tree/embedded/xsdbin-10.0.vcxproj | 186 + .../cxx/tree/embedded/xsdbin-10.0.vcxproj.filters | 14 + .../examples/cxx/tree/embedded/xsdbin-7.1.vcproj | 127 + .../examples/cxx/tree/embedded/xsdbin-8.0.vcproj | 356 + .../examples/cxx/tree/embedded/xsdbin-9.0.vcproj | 353 + .../cxx/tree/embedded/xsdbin-xerces2-7.1.vcproj | 127 + .../cxx/tree/embedded/xsdbin-xerces2-8.0.vcproj | 356 + .../cxx/tree/embedded/xsdbin-xerces2-9.0.vcproj | 353 + .../examples/cxx/tree/hello/hello-10.0.vcxproj | 209 + .../cxx/tree/hello/hello-10.0.vcxproj.filters | 38 + xsd/dist/examples/cxx/tree/hello/hello-7.1.vcproj | 164 + xsd/dist/examples/cxx/tree/hello/hello-8.0.vcproj | 423 + xsd/dist/examples/cxx/tree/hello/hello-9.0.vcproj | 420 + .../cxx/tree/hello/hello-xerces2-7.1.vcproj | 164 + .../cxx/tree/hello/hello-xerces2-8.0.vcproj | 423 + .../cxx/tree/hello/hello-xerces2-9.0.vcproj | 420 + xsd/dist/examples/cxx/tree/hello/makefile | 29 + .../examples/cxx/tree/library/library-10.0.vcxproj | 210 + .../cxx/tree/library/library-10.0.vcxproj.filters | 45 + .../examples/cxx/tree/library/library-7.1.vcproj | 171 + .../examples/cxx/tree/library/library-8.0.vcproj | 432 + .../examples/cxx/tree/library/library-9.0.vcproj | 429 + .../cxx/tree/library/library-xerces2-7.1.vcproj | 171 + .../cxx/tree/library/library-xerces2-8.0.vcproj | 432 + .../cxx/tree/library/library-xerces2-9.0.vcproj | 429 + xsd/dist/examples/cxx/tree/library/makefile | 32 + xsd/dist/examples/cxx/tree/makefile | 24 + xsd/dist/examples/cxx/tree/messaging/makefile | 35 + .../cxx/tree/messaging/messaging-10.0.vcxproj | 213 + .../tree/messaging/messaging-10.0.vcxproj.filters | 50 + .../cxx/tree/messaging/messaging-7.1.vcproj | 176 + .../cxx/tree/messaging/messaging-8.0.vcproj | 439 + .../cxx/tree/messaging/messaging-9.0.vcproj | 436 + .../tree/messaging/messaging-xerces2-7.1.vcproj | 176 + .../tree/messaging/messaging-xerces2-8.0.vcproj | 439 + .../tree/messaging/messaging-xerces2-9.0.vcproj | 436 + xsd/dist/examples/cxx/tree/mixed/makefile | 28 + .../examples/cxx/tree/mixed/mixed-10.0.vcxproj | 209 + .../cxx/tree/mixed/mixed-10.0.vcxproj.filters | 38 + xsd/dist/examples/cxx/tree/mixed/mixed-7.1.vcproj | 164 + xsd/dist/examples/cxx/tree/mixed/mixed-8.0.vcproj | 423 + xsd/dist/examples/cxx/tree/mixed/mixed-9.0.vcproj | 420 + .../cxx/tree/mixed/mixed-xerces2-7.1.vcproj | 164 + .../cxx/tree/mixed/mixed-xerces2-8.0.vcproj | 423 + .../cxx/tree/mixed/mixed-xerces2-9.0.vcproj | 420 + xsd/dist/examples/cxx/tree/multiroot/makefile | 33 + .../cxx/tree/multiroot/multiroot-10.0.vcxproj | 211 + .../tree/multiroot/multiroot-10.0.vcxproj.filters | 44 + .../cxx/tree/multiroot/multiroot-7.1.vcproj | 170 + .../cxx/tree/multiroot/multiroot-8.0.vcproj | 431 + .../cxx/tree/multiroot/multiroot-9.0.vcproj | 428 + .../tree/multiroot/multiroot-xerces2-7.1.vcproj | 170 + .../tree/multiroot/multiroot-xerces2-8.0.vcproj | 431 + .../tree/multiroot/multiroot-xerces2-9.0.vcproj | 428 + xsd/dist/examples/cxx/tree/performance/makefile | 34 + .../cxx/tree/performance/performance-10.0.vcxproj | 214 + .../performance/performance-10.0.vcxproj.filters | 57 + .../cxx/tree/performance/performance-7.1.vcproj | 183 + .../cxx/tree/performance/performance-8.0.vcproj | 445 + .../cxx/tree/performance/performance-9.0.vcproj | 442 + .../performance/performance-xerces2-7.1.vcproj | 183 + .../performance/performance-xerces2-8.0.vcproj | 445 + .../performance/performance-xerces2-9.0.vcproj | 442 + xsd/dist/examples/cxx/tree/polymorphism/makefile | 30 + .../tree/polymorphism/polymorphism-10.0.vcxproj | 209 + .../polymorphism/polymorphism-10.0.vcxproj.filters | 38 + .../cxx/tree/polymorphism/polymorphism-7.1.vcproj | 164 + .../cxx/tree/polymorphism/polymorphism-8.0.vcproj | 423 + .../cxx/tree/polymorphism/polymorphism-9.0.vcproj | 420 + .../polymorphism/polymorphism-xerces2-7.1.vcproj | 164 + .../polymorphism/polymorphism-xerces2-8.0.vcproj | 423 + .../polymorphism/polymorphism-xerces2-9.0.vcproj | 420 + xsd/dist/examples/cxx/tree/streaming/makefile | 33 + .../cxx/tree/streaming/streaming-10.0.vcxproj | 213 + .../tree/streaming/streaming-10.0.vcxproj.filters | 50 + .../cxx/tree/streaming/streaming-7.1.vcproj | 176 + .../cxx/tree/streaming/streaming-8.0.vcproj | 435 + .../cxx/tree/streaming/streaming-9.0.vcproj | 432 + .../tree/streaming/streaming-xerces2-7.1.vcproj | 176 + .../tree/streaming/streaming-xerces2-8.0.vcproj | 435 + .../tree/streaming/streaming-xerces2-9.0.vcproj | 432 + xsd/dist/examples/cxx/tree/tree-10.0.sln | 115 + xsd/dist/examples/cxx/tree/tree-7.1.sln | 93 + xsd/dist/examples/cxx/tree/tree-8.0.sln | 115 + xsd/dist/examples/cxx/tree/tree-9.0.sln | 115 + xsd/dist/examples/cxx/tree/tree-xerces2-7.1.sln | 93 + xsd/dist/examples/cxx/tree/tree-xerces2-8.0.sln | 115 + xsd/dist/examples/cxx/tree/tree-xerces2-9.0.sln | 115 + xsd/dist/examples/cxx/tree/wildcard/makefile | 32 + .../cxx/tree/wildcard/wildcard-10.0.vcxproj | 210 + .../tree/wildcard/wildcard-10.0.vcxproj.filters | 45 + .../examples/cxx/tree/wildcard/wildcard-7.1.vcproj | 171 + .../examples/cxx/tree/wildcard/wildcard-8.0.vcproj | 432 + .../examples/cxx/tree/wildcard/wildcard-9.0.vcproj | 429 + .../cxx/tree/wildcard/wildcard-xerces2-7.1.vcproj | 171 + .../cxx/tree/wildcard/wildcard-xerces2-8.0.vcproj | 432 + .../cxx/tree/wildcard/wildcard-xerces2-9.0.vcproj | 429 + xsd/dist/examples/cxx/tree/xpath/makefile | 30 + xsd/dist/examples/cxx/tree/xpath/xpath-10.0.sln | 25 + .../examples/cxx/tree/xpath/xpath-10.0.vcxproj | 211 + .../cxx/tree/xpath/xpath-10.0.vcxproj.filters | 44 + xsd/dist/examples/cxx/tree/xpath/xpath-7.1.sln | 21 + xsd/dist/examples/cxx/tree/xpath/xpath-7.1.vcproj | 170 + xsd/dist/examples/cxx/tree/xpath/xpath-8.0.sln | 25 + xsd/dist/examples/cxx/tree/xpath/xpath-8.0.vcproj | 431 + xsd/dist/examples/cxx/tree/xpath/xpath-9.0.sln | 25 + xsd/dist/examples/cxx/tree/xpath/xpath-9.0.vcproj | 428 + .../examples/cxx/tree/xpath/xpath-xerces2-7.1.sln | 21 + .../cxx/tree/xpath/xpath-xerces2-7.1.vcproj | 170 + .../examples/cxx/tree/xpath/xpath-xerces2-8.0.sln | 25 + .../cxx/tree/xpath/xpath-xerces2-8.0.vcproj | 431 + .../examples/cxx/tree/xpath/xpath-xerces2-9.0.sln | 25 + .../cxx/tree/xpath/xpath-xerces2-9.0.vcproj | 428 + xsd/dist/examples/makefile | 11 + xsd/documentation/custom-literals.xsd | 49 + xsd/documentation/cxx/makefile | 22 + .../cxx/parser/guide/cxx-parser-guide.pdf | Bin 0 -> 150322 bytes .../cxx/parser/guide/cxx-parser-guide.ps | 20713 +++++++++++++++++++ xsd/documentation/cxx/parser/guide/figure-1.png | Bin 0 -> 34195 bytes xsd/documentation/cxx/parser/guide/figure-1.svg | 373 + xsd/documentation/cxx/parser/guide/guide.html2ps | 65 + xsd/documentation/cxx/parser/guide/index.xhtml | 4141 ++++ xsd/documentation/cxx/parser/guide/makefile | 55 + xsd/documentation/cxx/parser/makefile | 22 + xsd/documentation/cxx/tree/dbxml/driver.cxx | 175 + xsd/documentation/cxx/tree/dbxml/index.xhtml | 348 + xsd/documentation/cxx/tree/dbxml/library.xsd | 75 + .../cxx/tree/guide/cxx-tree-guide.pdf | Bin 0 -> 94183 bytes xsd/documentation/cxx/tree/guide/cxx-tree-guide.ps | 3470 ++++ xsd/documentation/cxx/tree/guide/guide.html2ps | 65 + xsd/documentation/cxx/tree/guide/index.xhtml | 2690 +++ xsd/documentation/cxx/tree/guide/makefile | 53 + xsd/documentation/cxx/tree/makefile | 44 + .../cxx/tree/manual/cxx-tree-manual.pdf | Bin 0 -> 198065 bytes .../cxx/tree/manual/cxx-tree-manual.ps | 6630 ++++++ xsd/documentation/cxx/tree/manual/index.xhtml | 6032 ++++++ xsd/documentation/cxx/tree/manual/makefile | 53 + xsd/documentation/cxx/tree/manual/manual.html2ps | 66 + xsd/documentation/cxx/tree/reference/footer.html | 6 + .../cxx/tree/reference/libxsd.doxygen | 1316 ++ xsd/documentation/cxx/tree/reference/makefile | 18 + xsd/documentation/default.css | 319 + xsd/documentation/future.xhtml | 103 + xsd/documentation/makefile | 47 + xsd/documentation/schema-authoring-guide.xhtml | 187 + xsd/documentation/xsd.1 | 1893 ++ xsd/documentation/xsd.xhtml | 1600 ++ xsd/examples/cxx/parser/README | 45 + xsd/examples/cxx/parser/generated/README | 32 + xsd/examples/cxx/parser/generated/library.xml | 53 + xsd/examples/cxx/parser/generated/library.xsd | 79 + xsd/examples/cxx/parser/generated/makefile | 111 + xsd/examples/cxx/parser/hello/README | 28 + xsd/examples/cxx/parser/hello/driver.cxx | 68 + xsd/examples/cxx/parser/hello/hello.xml | 20 + xsd/examples/cxx/parser/hello/hello.xsd | 22 + xsd/examples/cxx/parser/hello/makefile | 102 + xsd/examples/cxx/parser/library/README | 44 + xsd/examples/cxx/parser/library/driver.cxx | 110 + xsd/examples/cxx/parser/library/library-pimpl.cxx | 184 + xsd/examples/cxx/parser/library/library-pimpl.hxx | 136 + xsd/examples/cxx/parser/library/library.hxx | 242 + xsd/examples/cxx/parser/library/library.map | 16 + xsd/examples/cxx/parser/library/library.xml | 53 + xsd/examples/cxx/parser/library/library.xsd | 79 + xsd/examples/cxx/parser/library/makefile | 111 + xsd/examples/cxx/parser/makefile | 42 + xsd/examples/cxx/parser/mixed/README | 49 + xsd/examples/cxx/parser/mixed/anchor.hxx | 34 + xsd/examples/cxx/parser/mixed/driver.cxx | 101 + xsd/examples/cxx/parser/mixed/makefile | 108 + xsd/examples/cxx/parser/mixed/text.map | 7 + xsd/examples/cxx/parser/mixed/text.xml | 18 + xsd/examples/cxx/parser/mixed/text.xsd | 29 + xsd/examples/cxx/parser/mixin/README | 34 + xsd/examples/cxx/parser/mixin/driver.cxx | 104 + xsd/examples/cxx/parser/mixin/instance.xml | 17 + xsd/examples/cxx/parser/mixin/makefile | 108 + xsd/examples/cxx/parser/mixin/schema.map | 8 + xsd/examples/cxx/parser/mixin/schema.xsd | 31 + xsd/examples/cxx/parser/mixin/types.hxx | 44 + xsd/examples/cxx/parser/multiroot/README | 51 + xsd/examples/cxx/parser/multiroot/balance.xml | 17 + xsd/examples/cxx/parser/multiroot/deposit.xml | 18 + xsd/examples/cxx/parser/multiroot/driver.cxx | 162 + xsd/examples/cxx/parser/multiroot/makefile | 114 + .../cxx/parser/multiroot/protocol-pimpl.cxx | 47 + .../cxx/parser/multiroot/protocol-pimpl.hxx | 49 + xsd/examples/cxx/parser/multiroot/protocol.hxx | 62 + xsd/examples/cxx/parser/multiroot/protocol.map | 12 + xsd/examples/cxx/parser/multiroot/protocol.xsd | 51 + xsd/examples/cxx/parser/multiroot/withdraw.xml | 18 + xsd/examples/cxx/parser/performance/README | 44 + xsd/examples/cxx/parser/performance/driver.cxx | 343 + xsd/examples/cxx/parser/performance/gen.cxx | 76 + xsd/examples/cxx/parser/performance/makefile | 114 + xsd/examples/cxx/parser/performance/test-500k.xml | 1 + xsd/examples/cxx/parser/performance/test-50k.xml | 1 + xsd/examples/cxx/parser/performance/test-5k.xml | 1 + xsd/examples/cxx/parser/performance/test.xsd | 50 + xsd/examples/cxx/parser/performance/time.cxx | 47 + xsd/examples/cxx/parser/performance/time.hxx | 111 + xsd/examples/cxx/parser/polymorphism/README | 30 + xsd/examples/cxx/parser/polymorphism/driver.cxx | 71 + xsd/examples/cxx/parser/polymorphism/makefile | 107 + .../cxx/parser/polymorphism/supermen-pimpl.cxx | 86 + .../cxx/parser/polymorphism/supermen-pimpl.hxx | 69 + xsd/examples/cxx/parser/polymorphism/supermen.xml | 26 + xsd/examples/cxx/parser/polymorphism/supermen.xsd | 49 + xsd/examples/cxx/parser/polyroot/README | 36 + xsd/examples/cxx/parser/polyroot/batman.xml | 17 + xsd/examples/cxx/parser/polyroot/driver.cxx | 139 + xsd/examples/cxx/parser/polyroot/makefile | 111 + xsd/examples/cxx/parser/polyroot/person.xml | 16 + xsd/examples/cxx/parser/polyroot/superman.xml | 17 + .../cxx/parser/polyroot/supermen-pimpl.cxx | 86 + .../cxx/parser/polyroot/supermen-pimpl.hxx | 65 + xsd/examples/cxx/parser/polyroot/supermen.xsd | 37 + xsd/examples/cxx/parser/wildcard/README | 27 + xsd/examples/cxx/parser/wildcard/driver.cxx | 240 + xsd/examples/cxx/parser/wildcard/email.xml | 32 + xsd/examples/cxx/parser/wildcard/email.xsd | 51 + xsd/examples/cxx/parser/wildcard/makefile | 103 + xsd/examples/cxx/tree/README | 80 + xsd/examples/cxx/tree/binary/README | 16 + xsd/examples/cxx/tree/binary/boost/README | 49 + .../tree/binary/boost/boost-archive-extraction.hxx | 188 + .../tree/binary/boost/boost-archive-insertion.hxx | 177 + xsd/examples/cxx/tree/binary/boost/driver.cxx | 73 + .../cxx/tree/binary/boost/library-prologue.hxx | 9 + xsd/examples/cxx/tree/binary/boost/library.xml | 53 + xsd/examples/cxx/tree/binary/boost/library.xsd | 76 + xsd/examples/cxx/tree/binary/boost/makefile | 119 + xsd/examples/cxx/tree/binary/cdr/README | 36 + xsd/examples/cxx/tree/binary/cdr/driver.cxx | 88 + xsd/examples/cxx/tree/binary/cdr/library.xml | 53 + xsd/examples/cxx/tree/binary/cdr/library.xsd | 76 + xsd/examples/cxx/tree/binary/cdr/makefile | 109 + xsd/examples/cxx/tree/binary/makefile | 57 + xsd/examples/cxx/tree/binary/xdr/README | 34 + xsd/examples/cxx/tree/binary/xdr/driver.cxx | 149 + xsd/examples/cxx/tree/binary/xdr/library.xml | 53 + xsd/examples/cxx/tree/binary/xdr/library.xsd | 76 + xsd/examples/cxx/tree/binary/xdr/makefile | 101 + xsd/examples/cxx/tree/caching/README | 29 + xsd/examples/cxx/tree/caching/driver.cxx | 209 + xsd/examples/cxx/tree/caching/library.xml | 53 + xsd/examples/cxx/tree/caching/library.xsd | 73 + xsd/examples/cxx/tree/caching/makefile | 103 + xsd/examples/cxx/tree/compression/README | 48 + .../tree/compression/compressed-format-target.cxx | 157 + .../tree/compression/compressed-format-target.hxx | 96 + .../tree/compression/compressed-input-source.cxx | 215 + .../tree/compression/compressed-input-source.hxx | 132 + xsd/examples/cxx/tree/compression/driver.cxx | 125 + xsd/examples/cxx/tree/compression/library.xml.gz | Bin 0 -> 486 bytes xsd/examples/cxx/tree/compression/library.xsd | 73 + xsd/examples/cxx/tree/compression/makefile | 117 + xsd/examples/cxx/tree/custom/README | 40 + xsd/examples/cxx/tree/custom/calendar/README | 47 + xsd/examples/cxx/tree/custom/calendar/calendar.xml | 23 + xsd/examples/cxx/tree/custom/calendar/calendar.xsd | 32 + xsd/examples/cxx/tree/custom/calendar/driver.cxx | 40 + xsd/examples/cxx/tree/custom/calendar/makefile | 129 + .../cxx/tree/custom/calendar/xml-schema-custom.cxx | 57 + .../cxx/tree/custom/calendar/xml-schema-custom.hxx | 34 + xsd/examples/cxx/tree/custom/comments/README | 57 + .../cxx/tree/custom/comments/dom-parse.cxx | 125 + .../cxx/tree/custom/comments/dom-parse.hxx | 23 + xsd/examples/cxx/tree/custom/comments/driver.cxx | 91 + xsd/examples/cxx/tree/custom/comments/makefile | 125 + xsd/examples/cxx/tree/custom/comments/people.xml | 21 + xsd/examples/cxx/tree/custom/comments/people.xsd | 30 + .../cxx/tree/custom/comments/xml-schema-custom.cxx | 118 + .../cxx/tree/custom/comments/xml-schema-custom.hxx | 58 + xsd/examples/cxx/tree/custom/contacts/README | 40 + .../cxx/tree/custom/contacts/contacts-custom.cxx | 51 + .../cxx/tree/custom/contacts/contacts-custom.hxx | 44 + xsd/examples/cxx/tree/custom/contacts/contacts.xml | 21 + xsd/examples/cxx/tree/custom/contacts/contacts.xsd | 32 + xsd/examples/cxx/tree/custom/contacts/driver.cxx | 39 + xsd/examples/cxx/tree/custom/contacts/makefile | 114 + xsd/examples/cxx/tree/custom/double/README | 62 + .../cxx/tree/custom/double/double-custom.cxx | 97 + .../cxx/tree/custom/double/double-custom.hxx | 68 + xsd/examples/cxx/tree/custom/double/driver.cxx | 32 + xsd/examples/cxx/tree/custom/double/makefile | 114 + xsd/examples/cxx/tree/custom/double/order.xsd | 26 + xsd/examples/cxx/tree/custom/makefile | 50 + xsd/examples/cxx/tree/custom/mixed/README | 50 + xsd/examples/cxx/tree/custom/mixed/driver.cxx | 124 + xsd/examples/cxx/tree/custom/mixed/makefile | 116 + .../cxx/tree/custom/mixed/people-custom.cxx | 90 + .../cxx/tree/custom/mixed/people-custom.hxx | 84 + xsd/examples/cxx/tree/custom/mixed/people.xml | 39 + xsd/examples/cxx/tree/custom/mixed/people.xsd | 46 + xsd/examples/cxx/tree/custom/taxonomy/README | 53 + xsd/examples/cxx/tree/custom/taxonomy/driver.cxx | 39 + xsd/examples/cxx/tree/custom/taxonomy/makefile | 123 + .../cxx/tree/custom/taxonomy/people-custom-fwd.hxx | 20 + .../cxx/tree/custom/taxonomy/people-custom.cxx | 157 + .../cxx/tree/custom/taxonomy/people-custom.hxx | 97 + xsd/examples/cxx/tree/custom/taxonomy/people.xml | 27 + xsd/examples/cxx/tree/custom/taxonomy/people.xsd | 45 + xsd/examples/cxx/tree/custom/wildcard/README | 45 + xsd/examples/cxx/tree/custom/wildcard/driver.cxx | 48 + xsd/examples/cxx/tree/custom/wildcard/makefile | 117 + .../cxx/tree/custom/wildcard/wildcard-custom.cxx | 85 + .../cxx/tree/custom/wildcard/wildcard-custom.hxx | 67 + xsd/examples/cxx/tree/custom/wildcard/wildcard.xml | 15 + xsd/examples/cxx/tree/custom/wildcard/wildcard.xsd | 26 + xsd/examples/cxx/tree/dbxml/README | 45 + xsd/examples/cxx/tree/dbxml/driver.cxx | 175 + xsd/examples/cxx/tree/dbxml/library.xsd | 75 + xsd/examples/cxx/tree/dbxml/makefile | 107 + xsd/examples/cxx/tree/embedded/README | 48 + xsd/examples/cxx/tree/embedded/driver.cxx | 222 + .../cxx/tree/embedded/grammar-input-stream.cxx | 115 + .../cxx/tree/embedded/grammar-input-stream.hxx | 53 + xsd/examples/cxx/tree/embedded/library.xml | 53 + xsd/examples/cxx/tree/embedded/library.xsd | 73 + xsd/examples/cxx/tree/embedded/makefile | 123 + xsd/examples/cxx/tree/embedded/xsdbin.cxx | 505 + xsd/examples/cxx/tree/hello/README | 26 + xsd/examples/cxx/tree/hello/driver.cxx | 37 + xsd/examples/cxx/tree/hello/hello.xml | 20 + xsd/examples/cxx/tree/hello/hello.xsd | 53 + xsd/examples/cxx/tree/hello/makefile | 103 + xsd/examples/cxx/tree/library/README | 32 + xsd/examples/cxx/tree/library/driver.cxx | 131 + xsd/examples/cxx/tree/library/library.xml | 53 + xsd/examples/cxx/tree/library/library.xsd | 73 + xsd/examples/cxx/tree/library/makefile | 103 + xsd/examples/cxx/tree/makefile | 62 + xsd/examples/cxx/tree/messaging/README | 58 + xsd/examples/cxx/tree/messaging/balance.xml | 17 + xsd/examples/cxx/tree/messaging/deposit.xml | 18 + xsd/examples/cxx/tree/messaging/dom-parse.cxx | 125 + xsd/examples/cxx/tree/messaging/dom-parse.hxx | 23 + xsd/examples/cxx/tree/messaging/dom-serialize.cxx | 89 + xsd/examples/cxx/tree/messaging/dom-serialize.hxx | 21 + xsd/examples/cxx/tree/messaging/driver.cxx | 145 + xsd/examples/cxx/tree/messaging/makefile | 118 + xsd/examples/cxx/tree/messaging/protocol.xsd | 54 + xsd/examples/cxx/tree/messaging/withdraw.xml | 18 + xsd/examples/cxx/tree/mixed/README | 41 + xsd/examples/cxx/tree/mixed/driver.cxx | 121 + xsd/examples/cxx/tree/mixed/makefile | 104 + xsd/examples/cxx/tree/mixed/text.xml | 18 + xsd/examples/cxx/tree/mixed/text.xsd | 29 + xsd/examples/cxx/tree/multiroot/README | 45 + xsd/examples/cxx/tree/multiroot/balance.xml | 17 + xsd/examples/cxx/tree/multiroot/deposit.xml | 18 + xsd/examples/cxx/tree/multiroot/dom-parse.cxx | 125 + xsd/examples/cxx/tree/multiroot/dom-parse.hxx | 23 + xsd/examples/cxx/tree/multiroot/driver.cxx | 125 + xsd/examples/cxx/tree/multiroot/makefile | 110 + xsd/examples/cxx/tree/multiroot/protocol.xsd | 51 + xsd/examples/cxx/tree/multiroot/withdraw.xml | 18 + xsd/examples/cxx/tree/performance/README | 60 + xsd/examples/cxx/tree/performance/driver.cxx | 91 + xsd/examples/cxx/tree/performance/gen.cxx | 76 + xsd/examples/cxx/tree/performance/makefile | 116 + xsd/examples/cxx/tree/performance/parsing.cxx | 225 + .../cxx/tree/performance/serialization.cxx | 151 + xsd/examples/cxx/tree/performance/test-500k.xml | 1 + xsd/examples/cxx/tree/performance/test-50k.xml | 1 + xsd/examples/cxx/tree/performance/test-5k.xml | 1 + xsd/examples/cxx/tree/performance/test.xsd | 50 + xsd/examples/cxx/tree/performance/time.cxx | 47 + xsd/examples/cxx/tree/performance/time.hxx | 111 + xsd/examples/cxx/tree/polymorphism/README | 32 + xsd/examples/cxx/tree/polymorphism/driver.cxx | 60 + xsd/examples/cxx/tree/polymorphism/makefile | 105 + xsd/examples/cxx/tree/polymorphism/supermen.xml | 26 + xsd/examples/cxx/tree/polymorphism/supermen.xsd | 49 + xsd/examples/cxx/tree/streaming/README | 46 + xsd/examples/cxx/tree/streaming/driver.cxx | 176 + xsd/examples/cxx/tree/streaming/makefile | 112 + xsd/examples/cxx/tree/streaming/parser.cxx | 300 + xsd/examples/cxx/tree/streaming/parser.hxx | 46 + xsd/examples/cxx/tree/streaming/position.xml | 30 + xsd/examples/cxx/tree/streaming/position.xsd | 38 + xsd/examples/cxx/tree/streaming/serializer.cxx | 165 + xsd/examples/cxx/tree/streaming/serializer.hxx | 81 + xsd/examples/cxx/tree/wildcard/README | 34 + xsd/examples/cxx/tree/wildcard/driver.cxx | 160 + xsd/examples/cxx/tree/wildcard/email.xml | 32 + xsd/examples/cxx/tree/wildcard/email.xsd | 51 + xsd/examples/cxx/tree/wildcard/makefile | 103 + xsd/examples/cxx/tree/xpath/README | 47 + xsd/examples/cxx/tree/xpath/dom-parse.cxx | 120 + xsd/examples/cxx/tree/xpath/dom-parse.hxx | 26 + xsd/examples/cxx/tree/xpath/driver-2.cxx | 139 + xsd/examples/cxx/tree/xpath/driver.cxx | 137 + xsd/examples/cxx/tree/xpath/makefile | 113 + xsd/examples/cxx/tree/xpath/people.xml | 29 + xsd/examples/cxx/tree/xpath/people.xsd | 39 + xsd/examples/makefile | 21 + xsd/libxsd/FLOSSE | 89 + xsd/libxsd/GPLv2 | 340 + xsd/libxsd/INSTALL | 17 + xsd/libxsd/LICENSE | 26 + xsd/libxsd/README | 12 + xsd/libxsd/makefile | 45 + xsd/libxsd/xsd/cxx/auto-array.hxx | 114 + xsd/libxsd/xsd/cxx/compilers/vc-7/post.hxx | 6 + xsd/libxsd/xsd/cxx/compilers/vc-7/pre.hxx | 36 + xsd/libxsd/xsd/cxx/compilers/vc-8/post.hxx | 6 + xsd/libxsd/xsd/cxx/compilers/vc-8/pre.hxx | 28 + xsd/libxsd/xsd/cxx/config.hxx | 15 + xsd/libxsd/xsd/cxx/exceptions.hxx | 21 + xsd/libxsd/xsd/cxx/parser/document.hxx | 90 + xsd/libxsd/xsd/cxx/parser/document.txx | 129 + xsd/libxsd/xsd/cxx/parser/elements.hxx | 95 + xsd/libxsd/xsd/cxx/parser/elements.txx | 60 + xsd/libxsd/xsd/cxx/parser/error-handler.hxx | 57 + xsd/libxsd/xsd/cxx/parser/error-handler.txx | 41 + xsd/libxsd/xsd/cxx/parser/exceptions.hxx | 153 + xsd/libxsd/xsd/cxx/parser/exceptions.ixx | 129 + xsd/libxsd/xsd/cxx/parser/exceptions.txx | 59 + xsd/libxsd/xsd/cxx/parser/expat/elements.hxx | 344 + xsd/libxsd/xsd/cxx/parser/expat/elements.txx | 822 + xsd/libxsd/xsd/cxx/parser/map.hxx | 79 + xsd/libxsd/xsd/cxx/parser/map.ixx | 27 + xsd/libxsd/xsd/cxx/parser/map.txx | 31 + .../xsd/cxx/parser/non-validating/parser.hxx | 248 + .../xsd/cxx/parser/non-validating/parser.txx | 464 + .../cxx/parser/non-validating/xml-schema-pimpl.hxx | 791 + .../cxx/parser/non-validating/xml-schema-pimpl.ixx | 129 + .../cxx/parser/non-validating/xml-schema-pimpl.txx | 2068 ++ .../cxx/parser/non-validating/xml-schema-pskel.hxx | 647 + .../cxx/parser/non-validating/xml-schema-pskel.ixx | 1249 ++ .../cxx/parser/non-validating/xml-schema-pskel.txx | 69 + xsd/libxsd/xsd/cxx/parser/schema-exceptions.hxx | 187 + xsd/libxsd/xsd/cxx/parser/schema-exceptions.ixx | 145 + xsd/libxsd/xsd/cxx/parser/schema-exceptions.txx | 75 + xsd/libxsd/xsd/cxx/parser/substitution-map.hxx | 241 + xsd/libxsd/xsd/cxx/parser/substitution-map.txx | 84 + .../xsd/cxx/parser/validating/exceptions.hxx | 153 + .../xsd/cxx/parser/validating/exceptions.ixx | 163 + .../xsd/cxx/parser/validating/exceptions.txx | 97 + .../xsd/cxx/parser/validating/inheritance-map.hxx | 101 + .../xsd/cxx/parser/validating/inheritance-map.txx | 73 + xsd/libxsd/xsd/cxx/parser/validating/parser.hxx | 471 + xsd/libxsd/xsd/cxx/parser/validating/parser.txx | 667 + .../xsd/cxx/parser/validating/xml-schema-pimpl.hxx | 1121 + .../xsd/cxx/parser/validating/xml-schema-pimpl.ixx | 676 + .../xsd/cxx/parser/validating/xml-schema-pimpl.txx | 2746 +++ .../xsd/cxx/parser/validating/xml-schema-pskel.hxx | 647 + .../xsd/cxx/parser/validating/xml-schema-pskel.ixx | 1249 ++ .../xsd/cxx/parser/validating/xml-schema-pskel.txx | 69 + xsd/libxsd/xsd/cxx/parser/xerces/elements.hxx | 462 + xsd/libxsd/xsd/cxx/parser/xerces/elements.txx | 967 + xsd/libxsd/xsd/cxx/parser/xml-schema.hxx | 572 + xsd/libxsd/xsd/cxx/parser/xml-schema.ixx | 1022 + xsd/libxsd/xsd/cxx/parser/xml-schema.txx | 34 + xsd/libxsd/xsd/cxx/post.hxx | 13 + xsd/libxsd/xsd/cxx/pre.hxx | 15 + xsd/libxsd/xsd/cxx/ro-string.hxx | 430 + xsd/libxsd/xsd/cxx/ro-string.txx | 133 + xsd/libxsd/xsd/cxx/tree/ace-cdr-stream-common.hxx | 26 + .../xsd/cxx/tree/ace-cdr-stream-extraction.hxx | 334 + .../xsd/cxx/tree/ace-cdr-stream-insertion.hxx | 249 + xsd/libxsd/xsd/cxx/tree/bits/literals.hxx | 261 + xsd/libxsd/xsd/cxx/tree/bits/literals.ixx | 876 + xsd/libxsd/xsd/cxx/tree/buffer.hxx | 337 + xsd/libxsd/xsd/cxx/tree/buffer.txx | 147 + xsd/libxsd/xsd/cxx/tree/comparison-map.hxx | 113 + xsd/libxsd/xsd/cxx/tree/comparison-map.txx | 301 + xsd/libxsd/xsd/cxx/tree/containers-wildcard.hxx | 1335 ++ xsd/libxsd/xsd/cxx/tree/containers.hxx | 1458 ++ xsd/libxsd/xsd/cxx/tree/containers.txx | 284 + xsd/libxsd/xsd/cxx/tree/date-time-extraction.txx | 157 + xsd/libxsd/xsd/cxx/tree/date-time-insertion.txx | 188 + xsd/libxsd/xsd/cxx/tree/date-time-ostream.txx | 324 + xsd/libxsd/xsd/cxx/tree/date-time.hxx | 1951 ++ xsd/libxsd/xsd/cxx/tree/date-time.ixx | 893 + xsd/libxsd/xsd/cxx/tree/date-time.txx | 94 + xsd/libxsd/xsd/cxx/tree/element-map.hxx | 146 + xsd/libxsd/xsd/cxx/tree/element-map.txx | 71 + xsd/libxsd/xsd/cxx/tree/elements.hxx | 1490 ++ xsd/libxsd/xsd/cxx/tree/elements.ixx | 29 + xsd/libxsd/xsd/cxx/tree/elements.txx | 57 + xsd/libxsd/xsd/cxx/tree/error-handler.hxx | 62 + xsd/libxsd/xsd/cxx/tree/error-handler.txx | 32 + xsd/libxsd/xsd/cxx/tree/exceptions.hxx | 1034 + xsd/libxsd/xsd/cxx/tree/exceptions.txx | 510 + xsd/libxsd/xsd/cxx/tree/facet.hxx | 43 + xsd/libxsd/xsd/cxx/tree/istream-fwd.hxx | 21 + xsd/libxsd/xsd/cxx/tree/istream.hxx | 258 + xsd/libxsd/xsd/cxx/tree/list.hxx | 134 + xsd/libxsd/xsd/cxx/tree/ostream.hxx | 245 + xsd/libxsd/xsd/cxx/tree/parsing.hxx | 12 + xsd/libxsd/xsd/cxx/tree/parsing.txx | 914 + xsd/libxsd/xsd/cxx/tree/parsing/boolean.hxx | 76 + xsd/libxsd/xsd/cxx/tree/parsing/byte.hxx | 80 + xsd/libxsd/xsd/cxx/tree/parsing/date-time.txx | 702 + xsd/libxsd/xsd/cxx/tree/parsing/decimal.hxx | 85 + xsd/libxsd/xsd/cxx/tree/parsing/double.hxx | 94 + xsd/libxsd/xsd/cxx/tree/parsing/element-map.txx | 42 + xsd/libxsd/xsd/cxx/tree/parsing/float.hxx | 94 + xsd/libxsd/xsd/cxx/tree/parsing/int.hxx | 80 + xsd/libxsd/xsd/cxx/tree/parsing/long.hxx | 80 + xsd/libxsd/xsd/cxx/tree/parsing/short.hxx | 80 + xsd/libxsd/xsd/cxx/tree/parsing/unsigned-byte.hxx | 80 + xsd/libxsd/xsd/cxx/tree/parsing/unsigned-int.hxx | 80 + xsd/libxsd/xsd/cxx/tree/parsing/unsigned-long.hxx | 80 + xsd/libxsd/xsd/cxx/tree/parsing/unsigned-short.hxx | 80 + xsd/libxsd/xsd/cxx/tree/serialization.hxx | 66 + xsd/libxsd/xsd/cxx/tree/serialization.txx | 764 + xsd/libxsd/xsd/cxx/tree/serialization/boolean.hxx | 52 + xsd/libxsd/xsd/cxx/tree/serialization/byte.hxx | 46 + .../xsd/cxx/tree/serialization/date-time.txx | 620 + xsd/libxsd/xsd/cxx/tree/serialization/decimal.hxx | 126 + xsd/libxsd/xsd/cxx/tree/serialization/double.hxx | 96 + .../xsd/cxx/tree/serialization/element-map.txx | 40 + xsd/libxsd/xsd/cxx/tree/serialization/float.hxx | 94 + xsd/libxsd/xsd/cxx/tree/serialization/int.hxx | 46 + xsd/libxsd/xsd/cxx/tree/serialization/long.hxx | 46 + xsd/libxsd/xsd/cxx/tree/serialization/short.hxx | 46 + .../xsd/cxx/tree/serialization/unsigned-byte.hxx | 46 + .../xsd/cxx/tree/serialization/unsigned-int.hxx | 46 + .../xsd/cxx/tree/serialization/unsigned-long.hxx | 46 + .../xsd/cxx/tree/serialization/unsigned-short.hxx | 46 + xsd/libxsd/xsd/cxx/tree/std-ostream-map.hxx | 114 + xsd/libxsd/xsd/cxx/tree/std-ostream-map.txx | 293 + xsd/libxsd/xsd/cxx/tree/std-ostream-operators.hxx | 274 + xsd/libxsd/xsd/cxx/tree/stream-extraction-map.hxx | 105 + xsd/libxsd/xsd/cxx/tree/stream-extraction-map.txx | 310 + xsd/libxsd/xsd/cxx/tree/stream-extraction.hxx | 303 + xsd/libxsd/xsd/cxx/tree/stream-insertion-map.hxx | 154 + xsd/libxsd/xsd/cxx/tree/stream-insertion-map.txx | 340 + xsd/libxsd/xsd/cxx/tree/stream-insertion.hxx | 273 + xsd/libxsd/xsd/cxx/tree/text.hxx | 30 + xsd/libxsd/xsd/cxx/tree/text.txx | 77 + xsd/libxsd/xsd/cxx/tree/type-factory-map.hxx | 173 + xsd/libxsd/xsd/cxx/tree/type-factory-map.txx | 481 + xsd/libxsd/xsd/cxx/tree/type-serializer-map.hxx | 235 + xsd/libxsd/xsd/cxx/tree/type-serializer-map.txx | 576 + xsd/libxsd/xsd/cxx/tree/types.hxx | 3791 ++++ xsd/libxsd/xsd/cxx/tree/types.txx | 598 + xsd/libxsd/xsd/cxx/tree/xdr-stream-common.hxx | 26 + xsd/libxsd/xsd/cxx/tree/xdr-stream-extraction.hxx | 295 + xsd/libxsd/xsd/cxx/tree/xdr-stream-insertion.hxx | 259 + xsd/libxsd/xsd/cxx/version.hxx | 29 + xsd/libxsd/xsd/cxx/xml/bits/literals.hxx | 83 + xsd/libxsd/xsd/cxx/xml/bits/literals.ixx | 261 + xsd/libxsd/xsd/cxx/xml/char-iso8859-1.hxx | 72 + xsd/libxsd/xsd/cxx/xml/char-iso8859-1.txx | 101 + xsd/libxsd/xsd/cxx/xml/char-lcp.hxx | 56 + xsd/libxsd/xsd/cxx/xml/char-lcp.txx | 55 + xsd/libxsd/xsd/cxx/xml/char-utf8.hxx | 57 + xsd/libxsd/xsd/cxx/xml/char-utf8.txx | 293 + xsd/libxsd/xsd/cxx/xml/dom/auto-ptr.hxx | 158 + .../xsd/cxx/xml/dom/bits/error-handler-proxy.hxx | 61 + .../xsd/cxx/xml/dom/bits/error-handler-proxy.txx | 80 + xsd/libxsd/xsd/cxx/xml/dom/elements.hxx | 36 + xsd/libxsd/xsd/cxx/xml/dom/elements.txx | 57 + xsd/libxsd/xsd/cxx/xml/dom/parsing-header.hxx | 24 + xsd/libxsd/xsd/cxx/xml/dom/parsing-source.hxx | 138 + xsd/libxsd/xsd/cxx/xml/dom/parsing-source.txx | 510 + .../xsd/cxx/xml/dom/serialization-header.hxx | 81 + .../xsd/cxx/xml/dom/serialization-header.txx | 192 + .../xsd/cxx/xml/dom/serialization-source.hxx | 181 + .../xsd/cxx/xml/dom/serialization-source.txx | 394 + xsd/libxsd/xsd/cxx/xml/dom/wildcard-source.hxx | 31 + xsd/libxsd/xsd/cxx/xml/dom/wildcard-source.txx | 38 + xsd/libxsd/xsd/cxx/xml/elements.hxx | 113 + xsd/libxsd/xsd/cxx/xml/elements.txx | 73 + xsd/libxsd/xsd/cxx/xml/error-handler.hxx | 59 + xsd/libxsd/xsd/cxx/xml/exceptions.hxx | 20 + xsd/libxsd/xsd/cxx/xml/qualified-name.hxx | 84 + .../xsd/cxx/xml/sax/bits/error-handler-proxy.hxx | 80 + .../xsd/cxx/xml/sax/bits/error-handler-proxy.txx | 89 + xsd/libxsd/xsd/cxx/xml/sax/std-input-source.hxx | 174 + xsd/libxsd/xsd/cxx/xml/std-memory-manager.hxx | 50 + xsd/libxsd/xsd/cxx/xml/string.hxx | 85 + xsd/libxsd/xsd/cxx/xml/string.ixx | 171 + xsd/libxsd/xsd/cxx/xml/string.txx | 151 + xsd/libxsd/xsd/cxx/zc-istream.hxx | 217 + xsd/libxsd/xsd/cxx/zc-istream.txx | 94 + xsd/makefile | 96 + xsd/tests/clash/clash.xsd | 25 + xsd/tests/clash/foo.xsd | 11 + xsd/tests/code/name-conflict/test.xsd | 40 + xsd/tests/code/name-escaping/test.xsd | 60 + xsd/tests/cxx/makefile | 17 + xsd/tests/cxx/parser/built-in/driver.cxx | 531 + xsd/tests/cxx/parser/built-in/makefile | 79 + xsd/tests/cxx/parser/built-in/output | 164 + xsd/tests/cxx/parser/built-in/test.xml | 199 + xsd/tests/cxx/parser/built-in/test.xsd | 63 + xsd/tests/cxx/parser/enumeration/driver.cxx | 83 + xsd/tests/cxx/parser/enumeration/gender.hxx | 15 + xsd/tests/cxx/parser/enumeration/makefile | 80 + xsd/tests/cxx/parser/enumeration/output | 3 + xsd/tests/cxx/parser/enumeration/test.map | 7 + xsd/tests/cxx/parser/enumeration/test.xml | 10 + xsd/tests/cxx/parser/enumeration/test.xsd | 35 + xsd/tests/cxx/parser/generated-impl/makefile | 90 + xsd/tests/cxx/parser/generated-impl/output | 122 + xsd/tests/cxx/parser/generated-impl/test.xml | 168 + xsd/tests/cxx/parser/generated-impl/test.xsd | 142 + xsd/tests/cxx/parser/list/driver.cxx | 107 + xsd/tests/cxx/parser/list/makefile | 79 + xsd/tests/cxx/parser/list/output | 26 + xsd/tests/cxx/parser/list/test.xml | 25 + xsd/tests/cxx/parser/list/test.xsd | 25 + xsd/tests/cxx/parser/makefile | 20 + .../cxx/parser/name-clash/inheritance/driver.cxx | 64 + .../cxx/parser/name-clash/inheritance/makefile | 80 + xsd/tests/cxx/parser/name-clash/inheritance/output | 2 + .../cxx/parser/name-clash/inheritance/test.xml | 8 + .../cxx/parser/name-clash/inheritance/test.xsd | 22 + xsd/tests/cxx/parser/polymorphism/makefile | 18 + .../cxx/parser/polymorphism/same-type/driver.cxx | 64 + .../cxx/parser/polymorphism/same-type/makefile | 80 + xsd/tests/cxx/parser/polymorphism/same-type/output | 4 + .../cxx/parser/polymorphism/same-type/test.xml | 10 + .../cxx/parser/polymorphism/same-type/test.xsd | 21 + xsd/tests/cxx/parser/recursive/driver.cxx | 141 + xsd/tests/cxx/parser/recursive/makefile | 80 + xsd/tests/cxx/parser/recursive/output | 22 + xsd/tests/cxx/parser/recursive/test.xml | 11 + xsd/tests/cxx/parser/recursive/test.xsd | 27 + xsd/tests/cxx/parser/test-template/driver.cxx | 68 + xsd/tests/cxx/parser/test-template/makefile | 79 + xsd/tests/cxx/parser/test-template/output | 1 + xsd/tests/cxx/parser/test-template/test.xml | 7 + xsd/tests/cxx/parser/test-template/test.xsd | 12 + xsd/tests/cxx/parser/union/driver.cxx | 62 + xsd/tests/cxx/parser/union/makefile | 79 + xsd/tests/cxx/parser/union/output | 2 + xsd/tests/cxx/parser/union/test.xml | 10 + xsd/tests/cxx/parser/union/test.xsd | 16 + xsd/tests/cxx/parser/validation/all/driver.cxx | 100 + xsd/tests/cxx/parser/validation/all/makefile | 89 + xsd/tests/cxx/parser/validation/all/test-000.std | 46 + xsd/tests/cxx/parser/validation/all/test-000.xml | 53 + xsd/tests/cxx/parser/validation/all/test-001.std | 6 + xsd/tests/cxx/parser/validation/all/test-001.xml | 11 + xsd/tests/cxx/parser/validation/all/test-002.std | 4 + xsd/tests/cxx/parser/validation/all/test-002.xml | 9 + xsd/tests/cxx/parser/validation/all/test-003.std | 6 + xsd/tests/cxx/parser/validation/all/test-003.xml | 12 + xsd/tests/cxx/parser/validation/all/test.xsd | 20 + xsd/tests/cxx/parser/validation/any/driver.cxx | 123 + xsd/tests/cxx/parser/validation/any/makefile | 89 + xsd/tests/cxx/parser/validation/any/test-000.std | 29 + xsd/tests/cxx/parser/validation/any/test-000.xml | 21 + xsd/tests/cxx/parser/validation/any/test.xsd | 20 + .../cxx/parser/validation/attribute/driver.cxx | 199 + xsd/tests/cxx/parser/validation/attribute/makefile | 89 + .../cxx/parser/validation/attribute/test-000.std | 24 + .../cxx/parser/validation/attribute/test-000.xml | 10 + xsd/tests/cxx/parser/validation/attribute/test.xsd | 71 + .../parser/validation/built-in/any-type/driver.cxx | 156 + .../parser/validation/built-in/any-type/makefile | 89 + .../validation/built-in/any-type/test-000.std | 99 + .../validation/built-in/any-type/test-000.xml | 41 + .../parser/validation/built-in/any-type/test.xsd | 31 + .../parser/validation/built-in/binary/driver.cxx | 155 + .../cxx/parser/validation/built-in/binary/makefile | 65 + .../parser/validation/built-in/boolean/driver.cxx | 147 + .../parser/validation/built-in/boolean/makefile | 65 + .../cxx/parser/validation/built-in/byte/driver.cxx | 258 + .../cxx/parser/validation/built-in/byte/makefile | 65 + .../validation/built-in/date-time/driver.cxx | 1535 ++ .../parser/validation/built-in/date-time/makefile | 65 + .../parser/validation/built-in/float/driver.cxx | 287 + .../cxx/parser/validation/built-in/float/makefile | 65 + .../cxx/parser/validation/built-in/int/driver.cxx | 118 + .../cxx/parser/validation/built-in/int/makefile | 65 + .../parser/validation/built-in/integer/driver.cxx | 305 + .../parser/validation/built-in/integer/makefile | 65 + .../cxx/parser/validation/built-in/long/driver.cxx | 118 + .../cxx/parser/validation/built-in/long/makefile | 65 + xsd/tests/cxx/parser/validation/built-in/makefile | 19 + .../parser/validation/built-in/qname/driver.cxx | 107 + .../cxx/parser/validation/built-in/qname/makefile | 65 + .../parser/validation/built-in/short/driver.cxx | 118 + .../cxx/parser/validation/built-in/short/makefile | 65 + .../parser/validation/built-in/string/driver.cxx | 514 + .../cxx/parser/validation/built-in/string/makefile | 65 + .../cxx/parser/validation/built-in/uri/driver.cxx | 55 + .../cxx/parser/validation/built-in/uri/makefile | 65 + xsd/tests/cxx/parser/validation/choice/driver.cxx | 128 + xsd/tests/cxx/parser/validation/choice/makefile | 89 + .../cxx/parser/validation/choice/test-000.std | 22 + .../cxx/parser/validation/choice/test-000.xml | 30 + .../cxx/parser/validation/choice/test-001.std | 4 + .../cxx/parser/validation/choice/test-001.xml | 10 + .../cxx/parser/validation/choice/test-002.std | 11 + .../cxx/parser/validation/choice/test-002.xml | 17 + .../cxx/parser/validation/choice/test-003.std | 5 + .../cxx/parser/validation/choice/test-003.xml | 11 + .../cxx/parser/validation/choice/test-004.std | 4 + .../cxx/parser/validation/choice/test-004.xml | 11 + xsd/tests/cxx/parser/validation/choice/test.xsd | 24 + xsd/tests/cxx/parser/validation/makefile | 18 + .../cxx/parser/validation/restriction/driver.cxx | 109 + .../cxx/parser/validation/restriction/makefile | 89 + .../cxx/parser/validation/restriction/test-000.std | 0 .../cxx/parser/validation/restriction/test-000.xml | 31 + .../cxx/parser/validation/restriction/test-001.std | 1 + .../cxx/parser/validation/restriction/test-001.xml | 11 + .../cxx/parser/validation/restriction/test-002.std | 1 + .../cxx/parser/validation/restriction/test-002.xml | 12 + .../cxx/parser/validation/restriction/test-003.std | 1 + .../cxx/parser/validation/restriction/test-003.xml | 16 + .../cxx/parser/validation/restriction/test-004.std | 1 + .../cxx/parser/validation/restriction/test-004.xml | 10 + .../cxx/parser/validation/restriction/test-005.std | 1 + .../cxx/parser/validation/restriction/test-005.xml | 11 + .../cxx/parser/validation/restriction/test.xsd | 82 + .../cxx/parser/validation/sequence/driver.cxx | 141 + xsd/tests/cxx/parser/validation/sequence/makefile | 89 + .../cxx/parser/validation/sequence/test-000.std | 56 + .../cxx/parser/validation/sequence/test-000.xml | 46 + .../cxx/parser/validation/sequence/test-001.std | 4 + .../cxx/parser/validation/sequence/test-001.xml | 10 + .../cxx/parser/validation/sequence/test-002.std | 20 + .../cxx/parser/validation/sequence/test-002.xml | 27 + .../cxx/parser/validation/sequence/test-003.std | 5 + .../cxx/parser/validation/sequence/test-003.xml | 17 + .../cxx/parser/validation/sequence/test-004.std | 4 + .../cxx/parser/validation/sequence/test-004.xml | 14 + .../cxx/parser/validation/sequence/test-005.std | 6 + .../cxx/parser/validation/sequence/test-005.xml | 15 + .../cxx/parser/validation/sequence/test-006.std | 13 + .../cxx/parser/validation/sequence/test-006.xml | 17 + xsd/tests/cxx/parser/validation/sequence/test.xsd | 28 + xsd/tests/cxx/tree/binary/cdr/driver.cxx | 137 + xsd/tests/cxx/tree/binary/cdr/makefile | 86 + xsd/tests/cxx/tree/binary/cdr/test.xml | 91 + xsd/tests/cxx/tree/binary/cdr/test.xsd | 120 + xsd/tests/cxx/tree/binary/makefile | 18 + xsd/tests/cxx/tree/binary/polymorphic/driver.cxx | 151 + xsd/tests/cxx/tree/binary/polymorphic/makefile | 86 + xsd/tests/cxx/tree/binary/polymorphic/test.xml | 92 + xsd/tests/cxx/tree/binary/polymorphic/test.xsd | 125 + xsd/tests/cxx/tree/binary/xdr/driver.cxx | 181 + xsd/tests/cxx/tree/binary/xdr/makefile | 81 + xsd/tests/cxx/tree/binary/xdr/test.xml | 91 + xsd/tests/cxx/tree/binary/xdr/test.xsd | 120 + xsd/tests/cxx/tree/built-in/attributes.xml | 73 + xsd/tests/cxx/tree/built-in/driver.cxx | 94 + xsd/tests/cxx/tree/built-in/elements.xml | 84 + xsd/tests/cxx/tree/built-in/inherited.xml | 84 + xsd/tests/cxx/tree/built-in/makefile | 97 + xsd/tests/cxx/tree/built-in/types.xsd | 460 + xsd/tests/cxx/tree/chameleon/driver.cxx | 37 + xsd/tests/cxx/tree/chameleon/includee.xsd | 13 + xsd/tests/cxx/tree/chameleon/includer.xsd | 12 + xsd/tests/cxx/tree/chameleon/makefile | 82 + xsd/tests/cxx/tree/chameleon/output | 3 + xsd/tests/cxx/tree/chameleon/test.xml | 8 + xsd/tests/cxx/tree/comparison/driver.cxx | 40 + xsd/tests/cxx/tree/comparison/makefile | 82 + xsd/tests/cxx/tree/comparison/test.xml | 19 + xsd/tests/cxx/tree/comparison/test.xsd | 30 + xsd/tests/cxx/tree/compilation/driver.cxx | 119 + xsd/tests/cxx/tree/compilation/makefile | 82 + xsd/tests/cxx/tree/compilation/test.xsd | 12 + xsd/tests/cxx/tree/complex/ctor/driver.cxx | 112 + xsd/tests/cxx/tree/complex/ctor/makefile | 84 + xsd/tests/cxx/tree/complex/ctor/test.xsd | 182 + xsd/tests/cxx/tree/complex/makefile | 18 + xsd/tests/cxx/tree/containment/driver.cxx | 113 + xsd/tests/cxx/tree/containment/makefile | 82 + xsd/tests/cxx/tree/containment/test.xsd | 59 + xsd/tests/cxx/tree/default/general/driver.cxx | 39 + xsd/tests/cxx/tree/default/general/makefile | 83 + xsd/tests/cxx/tree/default/general/output | 28 + xsd/tests/cxx/tree/default/general/test.xml | 16 + xsd/tests/cxx/tree/default/general/test.xsd | 241 + xsd/tests/cxx/tree/default/makefile | 18 + xsd/tests/cxx/tree/default/omit/driver.cxx | 48 + xsd/tests/cxx/tree/default/omit/makefile | 83 + xsd/tests/cxx/tree/default/omit/output | 21 + xsd/tests/cxx/tree/default/omit/test.xml | 9 + xsd/tests/cxx/tree/default/omit/test.xsd | 30 + xsd/tests/cxx/tree/detach/driver.cxx | 101 + xsd/tests/cxx/tree/detach/makefile | 82 + xsd/tests/cxx/tree/detach/test.xsd | 32 + .../cxx/tree/encoding/char/iso-8859-1/driver.cxx | 76 + .../cxx/tree/encoding/char/iso-8859-1/makefile | 83 + .../cxx/tree/encoding/char/iso-8859-1/test.std | 18 + .../cxx/tree/encoding/char/iso-8859-1/test.xml | 14 + .../cxx/tree/encoding/char/iso-8859-1/test.xsd | 31 + xsd/tests/cxx/tree/encoding/char/lcp/driver.cxx | 42 + xsd/tests/cxx/tree/encoding/char/lcp/makefile | 82 + xsd/tests/cxx/tree/encoding/char/lcp/test.std | 6 + xsd/tests/cxx/tree/encoding/char/lcp/test.xml | 7 + xsd/tests/cxx/tree/encoding/char/lcp/test.xsd | 12 + xsd/tests/cxx/tree/encoding/char/makefile | 18 + xsd/tests/cxx/tree/encoding/char/utf-8/driver.cxx | 67 + xsd/tests/cxx/tree/encoding/char/utf-8/makefile | 82 + xsd/tests/cxx/tree/encoding/char/utf-8/test.std | Bin 0 -> 796 bytes xsd/tests/cxx/tree/encoding/char/utf-8/test.xml | 15 + xsd/tests/cxx/tree/encoding/char/utf-8/test.xsd | 33 + xsd/tests/cxx/tree/encoding/makefile | 18 + xsd/tests/cxx/tree/encoding/wchar/driver.cxx | 57 + xsd/tests/cxx/tree/encoding/wchar/makefile | 83 + xsd/tests/cxx/tree/encoding/wchar/test.std | Bin 0 -> 768 bytes xsd/tests/cxx/tree/encoding/wchar/test.xml | 14 + xsd/tests/cxx/tree/encoding/wchar/test.xsd | 33 + xsd/tests/cxx/tree/enumeration/ctor/driver.cxx | 32 + xsd/tests/cxx/tree/enumeration/ctor/makefile | 83 + xsd/tests/cxx/tree/enumeration/ctor/test.xsd | 41 + .../cxx/tree/enumeration/inheritance/driver.cxx | 49 + .../cxx/tree/enumeration/inheritance/makefile | 82 + xsd/tests/cxx/tree/enumeration/inheritance/output | 1 + .../cxx/tree/enumeration/inheritance/test.xml | 3 + .../cxx/tree/enumeration/inheritance/test.xsd | 22 + xsd/tests/cxx/tree/enumeration/makefile | 18 + xsd/tests/cxx/tree/float/driver.cxx | 55 + xsd/tests/cxx/tree/float/makefile | 82 + xsd/tests/cxx/tree/float/test.std | 68 + xsd/tests/cxx/tree/float/test.xml | 35 + xsd/tests/cxx/tree/float/test.xsd | 74 + xsd/tests/cxx/tree/list/ctor/driver.cxx | 52 + xsd/tests/cxx/tree/list/ctor/makefile | 83 + xsd/tests/cxx/tree/list/ctor/test.xsd | 18 + xsd/tests/cxx/tree/list/makefile | 18 + xsd/tests/cxx/tree/makefile | 42 + .../cxx/tree/name-clash/inheritance/driver.cxx | 37 + xsd/tests/cxx/tree/name-clash/inheritance/makefile | 82 + xsd/tests/cxx/tree/name-clash/inheritance/output | 3 + xsd/tests/cxx/tree/name-clash/inheritance/test.xml | 8 + xsd/tests/cxx/tree/name-clash/inheritance/test.xsd | 53 + xsd/tests/cxx/tree/name-clash/makefile | 18 + xsd/tests/cxx/tree/naming/camel/driver.cxx | 145 + xsd/tests/cxx/tree/naming/camel/makefile | 90 + xsd/tests/cxx/tree/naming/camel/test.xsd | 31 + xsd/tests/cxx/tree/naming/java/driver.cxx | 145 + xsd/tests/cxx/tree/naming/java/makefile | 90 + xsd/tests/cxx/tree/naming/java/test.xsd | 31 + xsd/tests/cxx/tree/naming/knr/driver.cxx | 145 + xsd/tests/cxx/tree/naming/knr/makefile | 90 + xsd/tests/cxx/tree/naming/knr/test.xsd | 31 + xsd/tests/cxx/tree/naming/makefile | 18 + .../cxx/tree/polymorphism/comparison/driver.cxx | 75 + .../cxx/tree/polymorphism/comparison/makefile | 83 + .../cxx/tree/polymorphism/comparison/test.xml | 7 + .../cxx/tree/polymorphism/comparison/test.xsd | 39 + xsd/tests/cxx/tree/polymorphism/makefile | 18 + xsd/tests/cxx/tree/polymorphism/ostream/driver.cxx | 36 + xsd/tests/cxx/tree/polymorphism/ostream/makefile | 84 + xsd/tests/cxx/tree/polymorphism/ostream/output | 13 + xsd/tests/cxx/tree/polymorphism/ostream/test.xml | 9 + xsd/tests/cxx/tree/polymorphism/ostream/test.xsd | 39 + .../cxx/tree/polymorphism/same-type/driver.cxx | 37 + xsd/tests/cxx/tree/polymorphism/same-type/makefile | 83 + xsd/tests/cxx/tree/polymorphism/same-type/output | 9 + xsd/tests/cxx/tree/polymorphism/same-type/test.xml | 10 + xsd/tests/cxx/tree/polymorphism/same-type/test.xsd | 21 + xsd/tests/cxx/tree/prefix/bar.xsd | 34 + xsd/tests/cxx/tree/prefix/driver.cxx | 36 + xsd/tests/cxx/tree/prefix/foo.xsd | 16 + xsd/tests/cxx/tree/prefix/makefile | 83 + xsd/tests/cxx/tree/prefix/output | 22 + xsd/tests/cxx/tree/prefix/test.xml | 19 + xsd/tests/cxx/tree/prefix/test.xsd | 40 + xsd/tests/cxx/tree/test-template/driver.cxx | 37 + xsd/tests/cxx/tree/test-template/makefile | 82 + xsd/tests/cxx/tree/test-template/output | 2 + xsd/tests/cxx/tree/test-template/test.xml | 7 + xsd/tests/cxx/tree/test-template/test.xsd | 12 + xsd/tests/cxx/tree/types-only/driver.cxx | 33 + xsd/tests/cxx/tree/types-only/makefile | 82 + xsd/tests/cxx/tree/types-only/test.xsd | 52 + xsd/tests/cxx/tree/union/ctor/driver.cxx | 32 + xsd/tests/cxx/tree/union/ctor/makefile | 83 + xsd/tests/cxx/tree/union/ctor/test.xsd | 14 + xsd/tests/cxx/tree/union/makefile | 18 + xsd/tests/cxx/tree/wildcard/driver.cxx | 202 + xsd/tests/cxx/tree/wildcard/makefile | 83 + xsd/tests/cxx/tree/wildcard/output | 24 + xsd/tests/cxx/tree/wildcard/test.xml | 19 + xsd/tests/cxx/tree/wildcard/test.xsd | 18 + xsd/tests/failed/test-00.xsd | 12 + xsd/tests/makefile | 16 + .../morphing/anonymous/attribute-group/test.xsd | 31 + .../anonymous/cyclic-inclusion/includee.xsd | 18 + .../anonymous/cyclic-inclusion/includer.xsd | 18 + xsd/tests/morphing/anonymous/group/test.xsd | 29 + xsd/tests/morphing/anonymous/test-000.xsd | 20 + .../morphing/anonymous/unstable/includee-1.xsd | 12 + .../morphing/anonymous/unstable/includee-2.xsd | 14 + xsd/tests/morphing/anonymous/unstable/includer.xsd | 18 + xsd/tests/processing/inheritance/test-000.xsd | 22 + xsd/tests/processing/inheritance/test-001.xsd | 26 + xsd/tests/schema/anonymous/test.xsd | 143 + xsd/tests/schema/any-attribute/test.xsd | 22 + xsd/tests/schema/any-type/test.xsd | 22 + xsd/tests/schema/any/fail.xsd | 19 + xsd/tests/schema/any/test.xsd | 19 + xsd/tests/schema/attribute-group/global.xsd | 50 + xsd/tests/schema/attribute/global.xsd | 21 + xsd/tests/schema/attribute/local.xsd | 37 + xsd/tests/schema/attribute/ref.xsd | 42 + xsd/tests/schema/cardinality/test.xsd | 46 + xsd/tests/schema/chameleon/includer.xsd | 17 + xsd/tests/schema/chameleon/schemas/includee.xsd | 12 + xsd/tests/schema/enumeration/test.xsd | 89 + xsd/tests/schema/forward/test.xsd | 32 + xsd/tests/schema/group/global.xsd | 39 + xsd/tests/schema/group/test.xsd | 148 + xsd/tests/schema/import/importer.xsd | 20 + xsd/tests/schema/import/schemas/importee.xsd | 15 + xsd/tests/schema/include/includer.xsd | 17 + xsd/tests/schema/include/schemas/includee.xsd | 14 + xsd/tests/schema/inheritance/cycle.xsd | 34 + .../inheritance/sourced-forward/includee.xsd | 10 + .../inheritance/sourced-forward/includer.xsd | 14 + xsd/tests/schema/list/anonymous/test.xsd | 16 + xsd/tests/schema/list/any-simple-type/test.xsd | 12 + xsd/tests/schema/list/driver.cxx | 13 + xsd/tests/schema/list/test.xsd | 72 + xsd/tests/schema/no-namespace/test.xsd | 15 + xsd/tests/schema/recursive/test.xsd | 43 + xsd/tests/schema/ref-type/idref.xsd | 42 + xsd/tests/schema/ref-type/idrefs.xsd | 43 + xsd/tests/schema/ref-type/invalid-0.xsd | 17 + xsd/tests/schema/ref-type/invalid-1.xsd | 11 + xsd/tests/schema/restriction/test.xsd | 67 + xsd/tests/schema/union/test.xsd | 65 + xsd/version | 1 + xsd/xsd/cxx/elements.cxx | 1319 ++ xsd/xsd/cxx/elements.hxx | 627 + xsd/xsd/cxx/literal-map.cxx | 296 + xsd/xsd/cxx/literal-map.hxx | 23 + xsd/xsd/cxx/parser/attribute-validation-source.cxx | 404 + xsd/xsd/cxx/parser/attribute-validation-source.hxx | 20 + .../cxx/parser/characters-validation-source.cxx | 75 + .../cxx/parser/characters-validation-source.hxx | 20 + xsd/xsd/cxx/parser/cli.hxx | 154 + xsd/xsd/cxx/parser/driver-source.cxx | 768 + xsd/xsd/cxx/parser/driver-source.hxx | 20 + xsd/xsd/cxx/parser/element-validation-source.cxx | 1586 ++ xsd/xsd/cxx/parser/element-validation-source.hxx | 20 + xsd/xsd/cxx/parser/elements.cxx | 275 + xsd/xsd/cxx/parser/elements.hxx | 314 + xsd/xsd/cxx/parser/generator.cxx | 1588 ++ xsd/xsd/cxx/parser/generator.hxx | 58 + xsd/xsd/cxx/parser/impl-header.cxx | 234 + xsd/xsd/cxx/parser/impl-header.hxx | 20 + xsd/xsd/cxx/parser/impl-source.cxx | 386 + xsd/xsd/cxx/parser/impl-source.hxx | 20 + xsd/xsd/cxx/parser/name-processor.cxx | 1201 ++ xsd/xsd/cxx/parser/name-processor.hxx | 34 + xsd/xsd/cxx/parser/parser-forward.cxx | 112 + xsd/xsd/cxx/parser/parser-forward.hxx | 20 + xsd/xsd/cxx/parser/parser-header.cxx | 1440 ++ xsd/xsd/cxx/parser/parser-header.hxx | 20 + xsd/xsd/cxx/parser/parser-inline.cxx | 402 + xsd/xsd/cxx/parser/parser-inline.hxx | 20 + xsd/xsd/cxx/parser/parser-source.cxx | 935 + xsd/xsd/cxx/parser/parser-source.hxx | 20 + xsd/xsd/cxx/parser/print-impl-common.hxx | 643 + xsd/xsd/cxx/parser/state-processor.cxx | 318 + xsd/xsd/cxx/parser/state-processor.hxx | 28 + xsd/xsd/cxx/parser/type-processor.cxx | 352 + xsd/xsd/cxx/parser/type-processor.hxx | 37 + xsd/xsd/cxx/parser/validator.cxx | 727 + xsd/xsd/cxx/parser/validator.hxx | 35 + xsd/xsd/cxx/tree/cli.hxx | 228 + xsd/xsd/cxx/tree/counter.cxx | 267 + xsd/xsd/cxx/tree/counter.hxx | 29 + xsd/xsd/cxx/tree/default-value.cxx | 1256 ++ xsd/xsd/cxx/tree/default-value.hxx | 353 + xsd/xsd/cxx/tree/elements.cxx | 1355 ++ xsd/xsd/cxx/tree/elements.hxx | 2055 ++ xsd/xsd/cxx/tree/fundamental-header.hxx | 1320 ++ xsd/xsd/cxx/tree/generator.cxx | 1842 ++ xsd/xsd/cxx/tree/generator.hxx | 52 + xsd/xsd/cxx/tree/name-processor.cxx | 2140 ++ xsd/xsd/cxx/tree/name-processor.hxx | 31 + xsd/xsd/cxx/tree/parser-header.cxx | 474 + xsd/xsd/cxx/tree/parser-header.hxx | 21 + xsd/xsd/cxx/tree/parser-source.cxx | 542 + xsd/xsd/cxx/tree/parser-source.hxx | 20 + xsd/xsd/cxx/tree/polymorphism-processor.cxx | 791 + xsd/xsd/cxx/tree/polymorphism-processor.hxx | 35 + xsd/xsd/cxx/tree/serialization-header.cxx | 581 + xsd/xsd/cxx/tree/serialization-header.hxx | 20 + xsd/xsd/cxx/tree/serialization-source.cxx | 1336 ++ xsd/xsd/cxx/tree/serialization-source.hxx | 22 + xsd/xsd/cxx/tree/stream-extraction-source.cxx | 763 + xsd/xsd/cxx/tree/stream-extraction-source.hxx | 20 + xsd/xsd/cxx/tree/stream-header.cxx | 183 + xsd/xsd/cxx/tree/stream-header.hxx | 20 + xsd/xsd/cxx/tree/stream-insertion-header.cxx | 178 + xsd/xsd/cxx/tree/stream-insertion-header.hxx | 20 + xsd/xsd/cxx/tree/stream-insertion-source.cxx | 534 + xsd/xsd/cxx/tree/stream-insertion-source.hxx | 20 + xsd/xsd/cxx/tree/stream-source.cxx | 489 + xsd/xsd/cxx/tree/stream-source.hxx | 22 + xsd/xsd/cxx/tree/tree-forward.cxx | 327 + xsd/xsd/cxx/tree/tree-forward.hxx | 20 + xsd/xsd/cxx/tree/tree-header.cxx | 3867 ++++ xsd/xsd/cxx/tree/tree-header.hxx | 20 + xsd/xsd/cxx/tree/tree-inline.cxx | 1062 + xsd/xsd/cxx/tree/tree-inline.hxx | 20 + xsd/xsd/cxx/tree/tree-source.cxx | 3468 ++++ xsd/xsd/cxx/tree/tree-source.hxx | 20 + xsd/xsd/cxx/tree/validator.cxx | 680 + xsd/xsd/cxx/tree/validator.hxx | 33 + xsd/xsd/elements.hxx | 134 + xsd/xsd/makefile | 153 + xsd/xsd/processing/cardinality/processor.cxx | 407 + xsd/xsd/processing/cardinality/processor.hxx | 32 + xsd/xsd/processing/inheritance/processor.cxx | 474 + xsd/xsd/processing/inheritance/processor.hxx | 32 + xsd/xsd/type-map/lexer.cxx | 133 + xsd/xsd/type-map/lexer.hxx | 80 + xsd/xsd/type-map/parser.cxx | 281 + xsd/xsd/type-map/parser.hxx | 46 + xsd/xsd/type-map/type-map.hxx | 160 + xsd/xsd/usage.hxx | 226 + xsd/xsd/xsd.cxx | 1406 ++ xsd/xsd/xsd.hxx | 84 + 1936 files changed, 330719 insertions(+) create mode 100644 README create mode 100644 build-0.3/abspath.make create mode 100644 build-0.3/bootstrap.make create mode 100644 build-0.3/c/c-d.make create mode 100644 build-0.3/c/c-o.make create mode 100644 build-0.3/c/configuration-rules.make create mode 100644 build-0.3/c/configuration-static.make create mode 100644 build-0.3/c/configuration.make create mode 100755 build-0.3/c/configure create mode 100644 build-0.3/c/cpp-options.make create mode 100644 build-0.3/c/generic/c-d.make create mode 100644 build-0.3/c/generic/c-o.make create mode 100644 build-0.3/c/generic/configuration-rules.make create mode 100644 build-0.3/c/generic/configuration-sl-rules.make create mode 100644 build-0.3/c/generic/configuration-sl.make create mode 100644 build-0.3/c/generic/configuration.make create mode 100755 build-0.3/c/generic/configure create mode 100755 build-0.3/c/generic/configure-sl create mode 100644 build-0.3/c/generic/o-e.make create mode 100644 build-0.3/c/generic/o-l.make create mode 100644 build-0.3/c/gnu/c-d.make create mode 100644 build-0.3/c/gnu/c-o.make create mode 100644 build-0.3/c/gnu/configuration-rules.make create mode 100644 build-0.3/c/gnu/configuration-static.make create mode 100644 build-0.3/c/gnu/configuration.make create mode 100755 build-0.3/c/gnu/configure create mode 100755 build-0.3/c/gnu/dep create mode 100644 build-0.3/c/gnu/o-e.make create mode 100644 build-0.3/c/gnu/o-l.make create mode 100644 build-0.3/c/intel/c-d.make create mode 100644 build-0.3/c/intel/c-o.make create mode 100644 build-0.3/c/intel/configuration-rules.make create mode 100644 build-0.3/c/intel/configuration-static.make create mode 100644 build-0.3/c/intel/configuration.make create mode 100755 build-0.3/c/intel/configure create mode 100755 build-0.3/c/intel/dep create mode 100644 build-0.3/c/intel/o-e.make create mode 100644 build-0.3/c/intel/o-l.make create mode 100644 build-0.3/c/o-e.make create mode 100644 build-0.3/c/o-l.make create mode 100644 build-0.3/clean.make create mode 100644 build-0.3/configuration-static.make create mode 100644 build-0.3/cxx/configuration-rules.make create mode 100644 build-0.3/cxx/configuration-static.make create mode 100644 build-0.3/cxx/configuration.make create mode 100755 build-0.3/cxx/configure create mode 100644 build-0.3/cxx/cxx-d.make create mode 100644 build-0.3/cxx/cxx-o.make create mode 100644 build-0.3/cxx/generic/configuration-rules.make create mode 100644 build-0.3/cxx/generic/configuration-sl-rules.make create mode 100644 build-0.3/cxx/generic/configuration-sl.make create mode 100644 build-0.3/cxx/generic/configuration.make create mode 100755 build-0.3/cxx/generic/configure create mode 100755 build-0.3/cxx/generic/configure-sl create mode 100644 build-0.3/cxx/generic/cxx-d.make create mode 100644 build-0.3/cxx/generic/cxx-o.make create mode 100644 build-0.3/cxx/generic/o-e.make create mode 100644 build-0.3/cxx/generic/o-l.make create mode 100644 build-0.3/cxx/gnu/configuration-rules.make create mode 100644 build-0.3/cxx/gnu/configuration-static.make create mode 100644 build-0.3/cxx/gnu/configuration.make create mode 100755 build-0.3/cxx/gnu/configure create mode 100644 build-0.3/cxx/gnu/cxx-d.make create mode 100644 build-0.3/cxx/gnu/cxx-o.make create mode 100644 build-0.3/cxx/gnu/o-e.make create mode 100644 build-0.3/cxx/gnu/o-l.make create mode 100644 build-0.3/cxx/intel/configuration-rules.make create mode 100644 build-0.3/cxx/intel/configuration-static.make create mode 100644 build-0.3/cxx/intel/configuration.make create mode 100755 build-0.3/cxx/intel/configure create mode 100644 build-0.3/cxx/intel/cxx-d.make create mode 100644 build-0.3/cxx/intel/cxx-o.make create mode 100644 build-0.3/cxx/intel/o-e.make create mode 100644 build-0.3/cxx/intel/o-l.make create mode 100644 build-0.3/cxx/o-e.make create mode 100644 build-0.3/cxx/o-l.make create mode 100644 build-0.3/dialog.bash create mode 100644 build-0.3/dir.make create mode 100644 build-0.3/frame.make create mode 100755 build-0.3/git/gitignore create mode 100644 build-0.3/git/gitignore.make create mode 100644 build-0.3/import.make create mode 100644 build-0.3/install.make create mode 100644 build-0.3/install/configuration.make create mode 100755 build-0.3/install/install create mode 100644 build-0.3/install/install-functions.make create mode 100755 build-0.3/install/install-sh create mode 100644 build-0.3/ld/configuration-lib-rules.make create mode 100644 build-0.3/ld/configuration-lib-static.make create mode 100644 build-0.3/ld/configuration-lib.make create mode 100755 build-0.3/ld/configure-lib create mode 100644 build-0.3/literals.make create mode 100644 build-0.3/m4/m4.make create mode 100644 build-0.3/message.make create mode 100755 build-0.3/run-if-arg create mode 100644 build-0.3/system.make create mode 100755 build-0.3/system/config.guess create mode 100755 build-0.3/system/config.sub create mode 100644 build-0.3/system/configuration-rules.make create mode 100755 build-0.3/system/configure create mode 100644 libbackend-elements/GPLv2 create mode 100644 libbackend-elements/INSTALL create mode 100644 libbackend-elements/LICENSE create mode 100644 libbackend-elements/NEWS create mode 100644 libbackend-elements/README create mode 100644 libbackend-elements/backend-elements/indentation/buffer.hxx create mode 100644 libbackend-elements/backend-elements/indentation/buffer.txx create mode 100644 libbackend-elements/backend-elements/indentation/clip.hxx create mode 100644 libbackend-elements/backend-elements/indentation/clip.txx create mode 100644 libbackend-elements/backend-elements/indentation/cxx.hxx create mode 100644 libbackend-elements/backend-elements/indentation/cxx.txx create mode 100644 libbackend-elements/backend-elements/indentation/idl.hxx create mode 100644 libbackend-elements/backend-elements/indentation/idl.txx create mode 100644 libbackend-elements/backend-elements/indentation/sloc.hxx create mode 100644 libbackend-elements/backend-elements/makefile create mode 100644 libbackend-elements/backend-elements/regex.hxx create mode 100644 libbackend-elements/backend-elements/regex.txx create mode 100644 libbackend-elements/backend-elements/types.hxx create mode 100644 libbackend-elements/build/bootstrap.make create mode 100644 libbackend-elements/build/cxx/configuration-dynamic.make create mode 100644 libbackend-elements/build/cxx/gnu/configuration-dynamic.make create mode 100644 libbackend-elements/build/export/libbackend-elements/stub.make create mode 120000 libbackend-elements/build/import/libbackend-elements/LICENSE create mode 100644 libbackend-elements/build/import/libbackend-elements/configuration-rules.make create mode 100755 libbackend-elements/build/import/libbackend-elements/configure create mode 100644 libbackend-elements/build/import/libbackend-elements/stub.make create mode 100644 libbackend-elements/build/import/libboost/LICENSE create mode 100644 libbackend-elements/build/import/libboost/configuration-dynamic.make create mode 100644 libbackend-elements/build/import/libboost/configuration-rules.make create mode 100755 libbackend-elements/build/import/libboost/configure create mode 100644 libbackend-elements/build/import/libboost/regex/rules.make create mode 100644 libbackend-elements/build/import/libboost/regex/stub.make create mode 100644 libbackend-elements/build/import/libboost/version create mode 100644 libbackend-elements/build/import/libcult/LICENSE create mode 100644 libbackend-elements/build/import/libcult/configuration-dynamic.make create mode 100644 libbackend-elements/build/import/libcult/configuration-rules.make create mode 100755 libbackend-elements/build/import/libcult/configure create mode 100644 libbackend-elements/build/import/libcult/stub.make create mode 100644 libbackend-elements/build/ld/configuration-lib-dynamic.make create mode 100644 libbackend-elements/documentation/BUGS create mode 100644 libbackend-elements/documentation/TODO create mode 100644 libbackend-elements/documentation/default.css create mode 100644 libbackend-elements/documentation/index.xhtml create mode 100644 libbackend-elements/makefile create mode 100644 libbackend-elements/tests/indentation/cxx/driver.cxx create mode 100644 libbackend-elements/tests/indentation/cxx/makefile create mode 100644 libbackend-elements/tests/indentation/cxx/output.cxx create mode 100644 libbackend-elements/tests/indentation/makefile create mode 100644 libbackend-elements/tests/makefile create mode 100644 libbackend-elements/version create mode 100644 libcult/GPLv2 create mode 100644 libcult/INSTALL create mode 100644 libcult/LICENSE create mode 100644 libcult/NEWS create mode 100644 libcult/README create mode 100644 libcult/build/bootstrap.make create mode 100644 libcult/build/configuration-dynamic.make create mode 100644 libcult/build/configuration-rules.make create mode 100644 libcult/build/configuration.make create mode 100755 libcult/build/configure create mode 100644 libcult/build/cxx/configuration-dynamic.make create mode 100644 libcult/build/cxx/gnu/configuration-dynamic.make create mode 100644 libcult/build/export/libcult/stub.make create mode 120000 libcult/build/import/libcult/LICENSE create mode 100644 libcult/build/import/libcult/configuration-rules.make create mode 100755 libcult/build/import/libcult/configure create mode 100644 libcult/build/import/libcult/stub.make create mode 100644 libcult/build/ld/configuration-lib-dynamic.make create mode 100644 libcult/cult/cli/arguments.cxx create mode 100644 libcult/cult/cli/arguments.hxx create mode 100644 libcult/cult/cli/arguments.ixx create mode 100644 libcult/cult/cli/exceptions.hxx create mode 100644 libcult/cult/cli/file-arguments.cxx create mode 100644 libcult/cult/cli/file-arguments.hxx create mode 100644 libcult/cult/cli/mapper.hxx.m4 create mode 100644 libcult/cult/cli/options-parser.cxx create mode 100644 libcult/cult/cli/options-parser.hxx create mode 100644 libcult/cult/cli/options-parser.ixx create mode 100644 libcult/cult/cli/options-parser.txx create mode 100644 libcult/cult/cli/options-spec.cxx create mode 100644 libcult/cult/cli/options-spec.hxx create mode 100644 libcult/cult/cli/options-spec.ixx create mode 100644 libcult/cult/cli/options-spec.txx create mode 100644 libcult/cult/cli/options.cxx create mode 100644 libcult/cult/cli/options.hxx create mode 100644 libcult/cult/cli/options.ixx create mode 100644 libcult/cult/cli/options.txx create mode 100644 libcult/cult/cli/scanner.cxx create mode 100644 libcult/cult/cli/scanner.hxx create mode 100644 libcult/cult/cli/scanner.ixx create mode 100644 libcult/cult/containers/any.hxx create mode 100644 libcult/cult/containers/any.txx create mode 100644 libcult/cult/containers/deque.hxx create mode 100644 libcult/cult/containers/graph.hxx create mode 100644 libcult/cult/containers/graph.txx create mode 100644 libcult/cult/containers/iterator.hxx create mode 100644 libcult/cult/containers/list.hxx create mode 100644 libcult/cult/containers/map.hxx create mode 100644 libcult/cult/containers/pair.hxx create mode 100644 libcult/cult/containers/set.hxx create mode 100644 libcult/cult/containers/stack.hxx create mode 100644 libcult/cult/containers/vector.hxx create mode 100644 libcult/cult/dr/xdr/input-stream.cxx create mode 100644 libcult/cult/dr/xdr/input-stream.hxx create mode 100644 libcult/cult/dr/xdr/output-stream.cxx create mode 100644 libcult/cult/dr/xdr/output-stream.hxx create mode 100644 libcult/cult/eh/exception.cxx create mode 100644 libcult/cult/eh/exception.hxx create mode 100644 libcult/cult/makefile create mode 100644 libcult/cult/meta/answer.hxx create mode 100644 libcult/cult/meta/class-p.hxx create mode 100644 libcult/cult/meta/polymorphic-p.hxx create mode 100644 libcult/cult/meta/remove-c.hxx create mode 100644 libcult/cult/meta/remove-cv.hxx create mode 100644 libcult/cult/meta/remove-v.hxx create mode 100644 libcult/cult/mm/arch/generic/counter.hxx create mode 100644 libcult/cult/mm/arch/generic/counter.ixx create mode 100644 libcult/cult/mm/arch/i386/counter.hxx create mode 100644 libcult/cult/mm/arch/i386/counter.ixx create mode 100644 libcult/cult/mm/arch/i386/i486/i586/i686/x86_64/counter.hxx create mode 100644 libcult/cult/mm/arch/i386/i486/i586/i686/x86_64/counter.ixx create mode 100644 libcult/cult/mm/bits/evptr.hxx create mode 100644 libcult/cult/mm/bits/shptr.hxx create mode 100644 libcult/cult/mm/buffer.cxx create mode 100644 libcult/cult/mm/buffer.hxx create mode 100644 libcult/cult/mm/counter.cxx create mode 100644 libcult/cult/mm/counter.hxx create mode 100644 libcult/cult/mm/counter.ixx create mode 100644 libcult/cult/mm/evptr.hxx create mode 100644 libcult/cult/mm/exception.hxx create mode 100644 libcult/cult/mm/new.cxx create mode 100644 libcult/cult/mm/new.hxx create mode 100644 libcult/cult/mm/new.ixx create mode 100644 libcult/cult/mm/shptr.hxx create mode 100644 libcult/cult/mm/static-ptr.hxx create mode 100644 libcult/cult/os/exception.cxx create mode 100644 libcult/cult/os/exception.hxx create mode 100644 libcult/cult/os/net/address.cxx create mode 100644 libcult/cult/os/net/address.hxx create mode 100644 libcult/cult/os/net/datagram-socket.cxx create mode 100644 libcult/cult/os/net/datagram-socket.hxx create mode 100644 libcult/cult/os/net/ipv4/address.cxx create mode 100644 libcult/cult/os/net/ipv4/address.hxx create mode 100644 libcult/cult/os/net/ipv4/datagram-socket.cxx create mode 100644 libcult/cult/os/net/ipv4/datagram-socket.hxx create mode 100644 libcult/cult/os/net/ipv4/multicast-socket.cxx create mode 100644 libcult/cult/os/net/ipv4/multicast-socket.hxx create mode 100644 libcult/cult/os/net/multicast-socket.cxx create mode 100644 libcult/cult/os/net/multicast-socket.hxx create mode 100644 libcult/cult/os/net/socket.cxx create mode 100644 libcult/cult/os/net/socket.hxx create mode 100644 libcult/cult/rtti/type-id.hxx create mode 100644 libcult/cult/rtti/type-id.ixx create mode 100644 libcult/cult/rtti/type-id.txx create mode 100644 libcult/cult/rtti/type-info.cxx create mode 100644 libcult/cult/rtti/type-info.hxx create mode 100644 libcult/cult/rtti/type-info.ixx create mode 100644 libcult/cult/sched/condition.cxx create mode 100644 libcult/cult/sched/condition.hxx create mode 100644 libcult/cult/sched/exception.hxx create mode 100644 libcult/cult/sched/lock.cxx create mode 100644 libcult/cult/sched/lock.hxx create mode 100644 libcult/cult/sched/mutex.cxx create mode 100644 libcult/cult/sched/mutex.hxx create mode 100644 libcult/cult/sched/spin.cxx create mode 100644 libcult/cult/sched/spin.hxx create mode 100644 libcult/cult/sched/spin.ixx create mode 100644 libcult/cult/sched/thread.cxx create mode 100644 libcult/cult/sched/thread.hxx create mode 100644 libcult/cult/trace/log.cxx create mode 100644 libcult/cult/trace/log.hxx create mode 100644 libcult/cult/trace/log.ixx create mode 100644 libcult/cult/trace/null/record.ixx create mode 100644 libcult/cult/trace/null/record.txx create mode 100644 libcult/cult/trace/null/stream.ixx create mode 100644 libcult/cult/trace/null/stream.txx create mode 100644 libcult/cult/trace/record.hxx create mode 100644 libcult/cult/trace/record.ixx create mode 100644 libcult/cult/trace/record.txx create mode 100644 libcult/cult/trace/stream.hxx create mode 100644 libcult/cult/trace/stream.ixx create mode 100644 libcult/cult/trace/stream.txx create mode 100644 libcult/cult/types.hxx create mode 100644 libcult/cult/types/evptr.hxx create mode 100644 libcult/cult/types/fundamental.hxx create mode 100644 libcult/cult/types/shptr.hxx create mode 100644 libcult/cult/types/string.hxx create mode 100644 libcult/documentation/BUGS create mode 100644 libcult/documentation/CORE create mode 100644 libcult/documentation/DESIGN create mode 100644 libcult/documentation/DOC create mode 100644 libcult/documentation/NOTES create mode 100644 libcult/documentation/RELEASE create mode 100644 libcult/documentation/THOGHTS create mode 100644 libcult/documentation/TODO create mode 100644 libcult/documentation/TODO-CLI create mode 100644 libcult/documentation/TODO-EH create mode 100644 libcult/documentation/TODO-META create mode 100644 libcult/documentation/TODO-MM create mode 100644 libcult/documentation/TODO-SCHED create mode 100644 libcult/documentation/cli/index.xhtml create mode 100644 libcult/documentation/default.css create mode 100644 libcult/documentation/dr/index.xhtml create mode 100644 libcult/documentation/eh/index.xhtml create mode 100644 libcult/documentation/index.xhtml create mode 100644 libcult/documentation/meta/index.xhtml create mode 100644 libcult/documentation/mm/index.xhtml create mode 100644 libcult/documentation/os/index.xhtml create mode 100644 libcult/documentation/rtti/index.xhtml create mode 100644 libcult/documentation/sched/index.xhtml create mode 100644 libcult/documentation/trace/index.xhtml create mode 100644 libcult/documentation/types/index.xhtml create mode 100644 libcult/examples/cli/cli.cxx create mode 100644 libcult/examples/cli/makefile create mode 100644 libcult/examples/dr/xdr/makefile create mode 100644 libcult/examples/dr/xdr/xdr.cxx create mode 100644 libcult/examples/makefile create mode 100644 libcult/examples/mm/shptr/makefile create mode 100644 libcult/examples/mm/shptr/shptr.cxx create mode 100644 libcult/examples/mm/transfer/makefile create mode 100644 libcult/examples/mm/transfer/transfer.cxx create mode 100644 libcult/examples/os/net/ipv4/datagram/client.cxx create mode 100644 libcult/examples/os/net/ipv4/datagram/makefile create mode 100644 libcult/examples/os/net/ipv4/datagram/protocol.hxx create mode 100644 libcult/examples/os/net/ipv4/datagram/server.cxx create mode 100644 libcult/examples/os/net/ipv4/multicast/client.cxx create mode 100644 libcult/examples/os/net/ipv4/multicast/makefile create mode 100644 libcult/examples/os/net/ipv4/multicast/protocol.hxx create mode 100644 libcult/examples/os/net/ipv4/multicast/server.cxx create mode 100644 libcult/examples/sched/cancel/cancel.cxx create mode 100644 libcult/examples/sched/cancel/makefile create mode 100644 libcult/examples/sched/main/main.cxx create mode 100644 libcult/examples/sched/main/makefile create mode 100644 libcult/examples/trace/makefile create mode 100644 libcult/examples/trace/trace.cxx create mode 100644 libcult/makefile create mode 100644 libcult/version create mode 100644 libfrontend-elements/GPLv2 create mode 100644 libfrontend-elements/INSTALL create mode 100644 libfrontend-elements/LICENSE create mode 100644 libfrontend-elements/NEWS create mode 100644 libfrontend-elements/README create mode 100644 libfrontend-elements/build/bootstrap.make create mode 100644 libfrontend-elements/build/cxx/configuration-dynamic.make create mode 100644 libfrontend-elements/build/cxx/gnu/configuration-dynamic.make create mode 100644 libfrontend-elements/build/export/libfrontend-elements/stub.make create mode 100644 libfrontend-elements/build/import/libcult/LICENSE create mode 100644 libfrontend-elements/build/import/libcult/configuration-dynamic.make create mode 100644 libfrontend-elements/build/import/libcult/configuration-rules.make create mode 100755 libfrontend-elements/build/import/libcult/configure create mode 100644 libfrontend-elements/build/import/libcult/stub.make create mode 120000 libfrontend-elements/build/import/libfrontend-elements/LICENSE create mode 100644 libfrontend-elements/build/import/libfrontend-elements/configuration-rules.make create mode 100755 libfrontend-elements/build/import/libfrontend-elements/configure create mode 100644 libfrontend-elements/build/import/libfrontend-elements/stub.make create mode 100644 libfrontend-elements/build/ld/configuration-lib-dynamic.make create mode 100644 libfrontend-elements/documentation/DIAGNOSTIC create mode 100644 libfrontend-elements/documentation/TODO create mode 100644 libfrontend-elements/documentation/default.css create mode 100644 libfrontend-elements/documentation/index.xhtml create mode 100644 libfrontend-elements/examples/diagnostic/driver.cxx create mode 100644 libfrontend-elements/examples/diagnostic/makefile create mode 100644 libfrontend-elements/examples/makefile create mode 100644 libfrontend-elements/frontend-elements/context.cxx create mode 100644 libfrontend-elements/frontend-elements/context.hxx create mode 100644 libfrontend-elements/frontend-elements/diagnostic.cxx create mode 100644 libfrontend-elements/frontend-elements/diagnostic.hxx create mode 100644 libfrontend-elements/frontend-elements/diagnostic.ixx create mode 100644 libfrontend-elements/frontend-elements/diagnostic.txx create mode 100644 libfrontend-elements/frontend-elements/makefile create mode 100644 libfrontend-elements/frontend-elements/token-stream.cxx create mode 100644 libfrontend-elements/frontend-elements/token-stream.hxx create mode 100644 libfrontend-elements/frontend-elements/traversal.cxx create mode 100644 libfrontend-elements/frontend-elements/traversal.hxx create mode 100644 libfrontend-elements/frontend-elements/traversal.ixx create mode 100644 libfrontend-elements/frontend-elements/traversal.txx create mode 100644 libfrontend-elements/frontend-elements/types.hxx create mode 100644 libfrontend-elements/makefile create mode 100644 libfrontend-elements/version create mode 100644 libxsd-frontend/GPLv2 create mode 100644 libxsd-frontend/INSTALL create mode 100644 libxsd-frontend/LICENSE create mode 100644 libxsd-frontend/NEWS create mode 100644 libxsd-frontend/README create mode 100644 libxsd-frontend/build/bootstrap.make create mode 100644 libxsd-frontend/build/cxx/configuration-dynamic.make create mode 100644 libxsd-frontend/build/cxx/gnu/configuration-dynamic.make create mode 100644 libxsd-frontend/build/export/libxsd-frontend/stub.make create mode 100644 libxsd-frontend/build/import/libboost/LICENSE create mode 100644 libxsd-frontend/build/import/libboost/configuration-dynamic.make create mode 100644 libxsd-frontend/build/import/libboost/configuration-rules.make create mode 100755 libxsd-frontend/build/import/libboost/configure create mode 100644 libxsd-frontend/build/import/libboost/filesystem/rules.make create mode 100644 libxsd-frontend/build/import/libboost/filesystem/stub.make create mode 100644 libxsd-frontend/build/import/libboost/version create mode 100644 libxsd-frontend/build/import/libcult/LICENSE create mode 100644 libxsd-frontend/build/import/libcult/configuration-dynamic.make create mode 100644 libxsd-frontend/build/import/libcult/configuration-rules.make create mode 100755 libxsd-frontend/build/import/libcult/configure create mode 100644 libxsd-frontend/build/import/libcult/stub.make create mode 100644 libxsd-frontend/build/import/libfrontend-elements/LICENSE create mode 100644 libxsd-frontend/build/import/libfrontend-elements/configuration-dynamic.make create mode 100644 libxsd-frontend/build/import/libfrontend-elements/configuration-rules.make create mode 100755 libxsd-frontend/build/import/libfrontend-elements/configure create mode 100644 libxsd-frontend/build/import/libfrontend-elements/stub.make create mode 100644 libxsd-frontend/build/import/libxerces-c/LICENSE create mode 100644 libxsd-frontend/build/import/libxerces-c/configuration-dynamic.make create mode 100644 libxsd-frontend/build/import/libxerces-c/configuration-rules.make create mode 100755 libxsd-frontend/build/import/libxerces-c/configure create mode 100644 libxsd-frontend/build/import/libxerces-c/rules.make create mode 100644 libxsd-frontend/build/import/libxerces-c/stub.make create mode 100644 libxsd-frontend/build/import/libxerces-c/version create mode 120000 libxsd-frontend/build/import/libxsd-frontend/LICENSE create mode 100644 libxsd-frontend/build/import/libxsd-frontend/configuration-rules.make create mode 100755 libxsd-frontend/build/import/libxsd-frontend/configure create mode 100644 libxsd-frontend/build/import/libxsd-frontend/stub.make create mode 100644 libxsd-frontend/build/ld/configuration-lib-dynamic.make create mode 100644 libxsd-frontend/makefile create mode 100644 libxsd-frontend/tests/dump/driver.cxx create mode 100644 libxsd-frontend/tests/dump/makefile create mode 100644 libxsd-frontend/tests/makefile create mode 100644 libxsd-frontend/tests/schema/annotation/makefile create mode 100644 libxsd-frontend/tests/schema/annotation/test-000.std create mode 100644 libxsd-frontend/tests/schema/annotation/test-000.xsd create mode 100644 libxsd-frontend/tests/schema/annotation/test-001.std create mode 100644 libxsd-frontend/tests/schema/annotation/test-001.xsd create mode 100644 libxsd-frontend/tests/schema/anonymous/makefile create mode 100644 libxsd-frontend/tests/schema/anonymous/test-000.std create mode 100644 libxsd-frontend/tests/schema/anonymous/test-000.xsd create mode 100644 libxsd-frontend/tests/schema/anonymous/test-001.std create mode 100644 libxsd-frontend/tests/schema/anonymous/test-001.xsd create mode 100644 libxsd-frontend/tests/schema/attribute-group/makefile create mode 100644 libxsd-frontend/tests/schema/attribute-group/test-000.std create mode 100644 libxsd-frontend/tests/schema/attribute-group/test-000.xsd create mode 100644 libxsd-frontend/tests/schema/attribute-group/test-001.std create mode 100644 libxsd-frontend/tests/schema/attribute-group/test-001.xsd create mode 100644 libxsd-frontend/tests/schema/default/makefile create mode 100644 libxsd-frontend/tests/schema/default/test-000.std create mode 100644 libxsd-frontend/tests/schema/default/test-000.xsd create mode 100644 libxsd-frontend/tests/schema/default/test-001.std create mode 100644 libxsd-frontend/tests/schema/default/test-001.xsd create mode 100644 libxsd-frontend/tests/schema/element-group/makefile create mode 100644 libxsd-frontend/tests/schema/element-group/test-000.std create mode 100644 libxsd-frontend/tests/schema/element-group/test-000.xsd create mode 100644 libxsd-frontend/tests/schema/element-group/test-001.std create mode 100644 libxsd-frontend/tests/schema/element-group/test-001.xsd create mode 100644 libxsd-frontend/tests/schema/element-group/test-002.std create mode 100644 libxsd-frontend/tests/schema/element-group/test-002.xsd create mode 100644 libxsd-frontend/tests/schema/enumeration/makefile create mode 100644 libxsd-frontend/tests/schema/enumeration/test-000.std create mode 100644 libxsd-frontend/tests/schema/enumeration/test-000.xsd create mode 100644 libxsd-frontend/tests/schema/makefile create mode 100644 libxsd-frontend/tests/schema/union/makefile create mode 100644 libxsd-frontend/tests/schema/union/test-000.std create mode 100644 libxsd-frontend/tests/schema/union/test-000.xsd create mode 100644 libxsd-frontend/tests/schema/union/test-001.std create mode 100644 libxsd-frontend/tests/schema/union/test-001.xsd create mode 100644 libxsd-frontend/version create mode 100644 libxsd-frontend/xsd-frontend/makefile create mode 100644 libxsd-frontend/xsd-frontend/parser.cxx create mode 100644 libxsd-frontend/xsd-frontend/parser.hxx create mode 100644 libxsd-frontend/xsd-frontend/schema-dom-parser.cxx create mode 100644 libxsd-frontend/xsd-frontend/schema-dom-parser.hxx create mode 100644 libxsd-frontend/xsd-frontend/semantic-graph.hxx create mode 100644 libxsd-frontend/xsd-frontend/semantic-graph/annotation.cxx create mode 100644 libxsd-frontend/xsd-frontend/semantic-graph/annotation.hxx create mode 100644 libxsd-frontend/xsd-frontend/semantic-graph/any-attribute.cxx create mode 100644 libxsd-frontend/xsd-frontend/semantic-graph/any-attribute.hxx create mode 100644 libxsd-frontend/xsd-frontend/semantic-graph/any.cxx create mode 100644 libxsd-frontend/xsd-frontend/semantic-graph/any.hxx create mode 100644 libxsd-frontend/xsd-frontend/semantic-graph/attribute-group.cxx create mode 100644 libxsd-frontend/xsd-frontend/semantic-graph/attribute-group.hxx create mode 100644 libxsd-frontend/xsd-frontend/semantic-graph/attribute.cxx create mode 100644 libxsd-frontend/xsd-frontend/semantic-graph/attribute.hxx create mode 100644 libxsd-frontend/xsd-frontend/semantic-graph/complex.cxx create mode 100644 libxsd-frontend/xsd-frontend/semantic-graph/complex.hxx create mode 100644 libxsd-frontend/xsd-frontend/semantic-graph/compositors.cxx create mode 100644 libxsd-frontend/xsd-frontend/semantic-graph/compositors.hxx create mode 100644 libxsd-frontend/xsd-frontend/semantic-graph/element-group.cxx create mode 100644 libxsd-frontend/xsd-frontend/semantic-graph/element-group.hxx create mode 100644 libxsd-frontend/xsd-frontend/semantic-graph/element.cxx create mode 100644 libxsd-frontend/xsd-frontend/semantic-graph/element.hxx create mode 100644 libxsd-frontend/xsd-frontend/semantic-graph/elements.cxx create mode 100644 libxsd-frontend/xsd-frontend/semantic-graph/elements.hxx create mode 100644 libxsd-frontend/xsd-frontend/semantic-graph/enumeration.cxx create mode 100644 libxsd-frontend/xsd-frontend/semantic-graph/enumeration.hxx create mode 100644 libxsd-frontend/xsd-frontend/semantic-graph/fundamental.cxx.m4 create mode 100644 libxsd-frontend/xsd-frontend/semantic-graph/fundamental.hxx.m4 create mode 100644 libxsd-frontend/xsd-frontend/semantic-graph/fundamental.m4 create mode 100644 libxsd-frontend/xsd-frontend/semantic-graph/list.cxx create mode 100644 libxsd-frontend/xsd-frontend/semantic-graph/list.hxx create mode 100644 libxsd-frontend/xsd-frontend/semantic-graph/namespace.cxx create mode 100644 libxsd-frontend/xsd-frontend/semantic-graph/namespace.hxx create mode 100644 libxsd-frontend/xsd-frontend/semantic-graph/particle.cxx create mode 100644 libxsd-frontend/xsd-frontend/semantic-graph/particle.hxx create mode 100644 libxsd-frontend/xsd-frontend/semantic-graph/schema.cxx create mode 100644 libxsd-frontend/xsd-frontend/semantic-graph/schema.hxx create mode 100644 libxsd-frontend/xsd-frontend/semantic-graph/union.cxx create mode 100644 libxsd-frontend/xsd-frontend/semantic-graph/union.hxx create mode 100644 libxsd-frontend/xsd-frontend/transformations/anonymous.cxx create mode 100644 libxsd-frontend/xsd-frontend/transformations/anonymous.hxx create mode 100644 libxsd-frontend/xsd-frontend/transformations/enum-synthesis.cxx create mode 100644 libxsd-frontend/xsd-frontend/transformations/enum-synthesis.hxx create mode 100644 libxsd-frontend/xsd-frontend/transformations/restriction.cxx create mode 100644 libxsd-frontend/xsd-frontend/transformations/restriction.hxx create mode 100644 libxsd-frontend/xsd-frontend/transformations/schema-per-type.cxx create mode 100644 libxsd-frontend/xsd-frontend/transformations/schema-per-type.hxx create mode 100644 libxsd-frontend/xsd-frontend/transformations/simplifier.cxx create mode 100644 libxsd-frontend/xsd-frontend/transformations/simplifier.hxx create mode 100644 libxsd-frontend/xsd-frontend/traversal.hxx create mode 100644 libxsd-frontend/xsd-frontend/traversal/any-attribute.hxx create mode 100644 libxsd-frontend/xsd-frontend/traversal/any.hxx create mode 100644 libxsd-frontend/xsd-frontend/traversal/attribute-group.cxx create mode 100644 libxsd-frontend/xsd-frontend/traversal/attribute-group.hxx create mode 100644 libxsd-frontend/xsd-frontend/traversal/attribute.cxx create mode 100644 libxsd-frontend/xsd-frontend/traversal/attribute.hxx create mode 100644 libxsd-frontend/xsd-frontend/traversal/complex.cxx create mode 100644 libxsd-frontend/xsd-frontend/traversal/complex.hxx create mode 100644 libxsd-frontend/xsd-frontend/traversal/compositors.cxx create mode 100644 libxsd-frontend/xsd-frontend/traversal/compositors.hxx create mode 100644 libxsd-frontend/xsd-frontend/traversal/element-group.cxx create mode 100644 libxsd-frontend/xsd-frontend/traversal/element-group.hxx create mode 100644 libxsd-frontend/xsd-frontend/traversal/element.cxx create mode 100644 libxsd-frontend/xsd-frontend/traversal/element.hxx create mode 100644 libxsd-frontend/xsd-frontend/traversal/elements.cxx create mode 100644 libxsd-frontend/xsd-frontend/traversal/elements.hxx create mode 100644 libxsd-frontend/xsd-frontend/traversal/elements.txx create mode 100644 libxsd-frontend/xsd-frontend/traversal/enumeration.cxx create mode 100644 libxsd-frontend/xsd-frontend/traversal/enumeration.hxx create mode 100644 libxsd-frontend/xsd-frontend/traversal/fundamental.cxx create mode 100644 libxsd-frontend/xsd-frontend/traversal/fundamental.hxx create mode 100644 libxsd-frontend/xsd-frontend/traversal/list.cxx create mode 100644 libxsd-frontend/xsd-frontend/traversal/list.hxx create mode 100644 libxsd-frontend/xsd-frontend/traversal/namespace.cxx create mode 100644 libxsd-frontend/xsd-frontend/traversal/namespace.hxx create mode 100644 libxsd-frontend/xsd-frontend/traversal/particle.cxx create mode 100644 libxsd-frontend/xsd-frontend/traversal/particle.hxx create mode 100644 libxsd-frontend/xsd-frontend/traversal/schema.cxx create mode 100644 libxsd-frontend/xsd-frontend/traversal/schema.hxx create mode 100644 libxsd-frontend/xsd-frontend/traversal/union.cxx create mode 100644 libxsd-frontend/xsd-frontend/traversal/union.hxx create mode 100644 libxsd-frontend/xsd-frontend/types.hxx create mode 100644 libxsd-frontend/xsd-frontend/xml.hxx create mode 100644 makefile create mode 100644 xsd/FLOSSE create mode 100644 xsd/GPLv2 create mode 100644 xsd/INSTALL create mode 100644 xsd/LICENSE create mode 100644 xsd/NEWS create mode 100644 xsd/README create mode 100644 xsd/build/bootstrap.make create mode 100644 xsd/build/configuration-dynamic.make create mode 100644 xsd/build/configuration-rules.make create mode 100644 xsd/build/configuration.make create mode 100755 xsd/build/configure create mode 100644 xsd/build/cxx/configuration-dynamic.make create mode 100644 xsd/build/cxx/gnu/configuration-dynamic.make create mode 100644 xsd/build/import/libace/LICENSE create mode 100644 xsd/build/import/libace/configuration-rules.make create mode 100755 xsd/build/import/libace/configure create mode 100644 xsd/build/import/libace/rules.make create mode 100644 xsd/build/import/libace/stub.make create mode 100644 xsd/build/import/libace/version create mode 100644 xsd/build/import/libbackend-elements/LICENSE create mode 100644 xsd/build/import/libbackend-elements/configuration-dynamic.make create mode 100644 xsd/build/import/libbackend-elements/configuration-rules.make create mode 100755 xsd/build/import/libbackend-elements/configure create mode 100644 xsd/build/import/libbackend-elements/stub.make create mode 100644 xsd/build/import/libboost/LICENSE create mode 100644 xsd/build/import/libboost/configuration-dynamic.make create mode 100644 xsd/build/import/libboost/configuration-rules.make create mode 100755 xsd/build/import/libboost/configure create mode 100644 xsd/build/import/libboost/date-time/rules.make create mode 100644 xsd/build/import/libboost/date-time/stub.make create mode 100644 xsd/build/import/libboost/filesystem/rules.make create mode 100644 xsd/build/import/libboost/filesystem/stub.make create mode 100644 xsd/build/import/libboost/regex/rules.make create mode 100644 xsd/build/import/libboost/regex/stub.make create mode 100644 xsd/build/import/libboost/serialization/rules.make create mode 100644 xsd/build/import/libboost/serialization/stub.make create mode 100644 xsd/build/import/libboost/version create mode 100644 xsd/build/import/libcult/LICENSE create mode 100644 xsd/build/import/libcult/configuration-dynamic.make create mode 100644 xsd/build/import/libcult/configuration-rules.make create mode 100755 xsd/build/import/libcult/configure create mode 100644 xsd/build/import/libcult/stub.make create mode 100644 xsd/build/import/libdbxml/LICENSE create mode 100644 xsd/build/import/libdbxml/configuration-rules.make create mode 100755 xsd/build/import/libdbxml/configure create mode 100644 xsd/build/import/libdbxml/rules.make create mode 100644 xsd/build/import/libdbxml/stub.make create mode 100644 xsd/build/import/libdbxml/version create mode 100644 xsd/build/import/libxerces-c/LICENSE create mode 100644 xsd/build/import/libxerces-c/configuration-dynamic.make create mode 100644 xsd/build/import/libxerces-c/configuration-rules.make create mode 100755 xsd/build/import/libxerces-c/configure create mode 100644 xsd/build/import/libxerces-c/rules.make create mode 100644 xsd/build/import/libxerces-c/stub.make create mode 100644 xsd/build/import/libxerces-c/version create mode 100644 xsd/build/import/libxqilla/LICENSE create mode 100644 xsd/build/import/libxqilla/configuration-rules.make create mode 100755 xsd/build/import/libxqilla/configure create mode 100644 xsd/build/import/libxqilla/rules.make create mode 100644 xsd/build/import/libxqilla/stub.make create mode 100644 xsd/build/import/libxqilla/version create mode 100644 xsd/build/import/libxsd-frontend/LICENSE create mode 100644 xsd/build/import/libxsd-frontend/configuration-dynamic.make create mode 100644 xsd/build/import/libxsd-frontend/configuration-rules.make create mode 100755 xsd/build/import/libxsd-frontend/configure create mode 100644 xsd/build/import/libxsd-frontend/stub.make create mode 100644 xsd/build/import/libz/LICENSE create mode 100644 xsd/build/import/libz/configuration-rules.make create mode 100755 xsd/build/import/libz/configure create mode 100644 xsd/build/import/libz/rules.make create mode 100644 xsd/build/import/libz/stub.make create mode 100644 xsd/build/import/libz/version create mode 100644 xsd/build/xsd/parser/xsd-cxx.make create mode 100644 xsd/build/xsd/tree/xsd-cxx.make create mode 100644 xsd/dist/README-UNIX create mode 100644 xsd/dist/README-WINDOWS create mode 100644 xsd/dist/etc/vc-10.0/xsd-cxx-parser.props create mode 100644 xsd/dist/etc/vc-10.0/xsd-cxx-parser.targets create mode 100644 xsd/dist/etc/vc-10.0/xsd-cxx-parser.xml create mode 100644 xsd/dist/etc/vc-10.0/xsd-cxx-tree.props create mode 100644 xsd/dist/etc/vc-10.0/xsd-cxx-tree.targets create mode 100644 xsd/dist/etc/vc-10.0/xsd-cxx-tree.xml create mode 100644 xsd/dist/etc/vc-8.0/xsd-cxx-parser.rules create mode 100644 xsd/dist/etc/vc-8.0/xsd-cxx-tree.rules create mode 100644 xsd/dist/etc/vc-9.0/xsd-cxx-parser.rules create mode 100644 xsd/dist/etc/vc-9.0/xsd-cxx-tree.rules create mode 100644 xsd/dist/examples/build/cxx/compilers.make create mode 100644 xsd/dist/examples/build/cxx/rules.make create mode 100644 xsd/dist/examples/build/xsd/common.make create mode 100644 xsd/dist/examples/build/xsd/parser-rules.make create mode 100644 xsd/dist/examples/build/xsd/tree-rules.make create mode 100644 xsd/dist/examples/cxx/makefile create mode 100644 xsd/dist/examples/cxx/parser/generated/generated-10.0.vcxproj create mode 100644 xsd/dist/examples/cxx/parser/generated/generated-10.0.vcxproj.filters create mode 100644 xsd/dist/examples/cxx/parser/generated/generated-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/parser/generated/generated-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/parser/generated/generated-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/parser/generated/generated-xerces2-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/parser/generated/generated-xerces2-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/parser/generated/generated-xerces2-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/parser/generated/makefile create mode 100644 xsd/dist/examples/cxx/parser/hello/hello-10.0.vcxproj create mode 100644 xsd/dist/examples/cxx/parser/hello/hello-10.0.vcxproj.filters create mode 100644 xsd/dist/examples/cxx/parser/hello/hello-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/parser/hello/hello-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/parser/hello/hello-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/parser/hello/hello-xerces2-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/parser/hello/hello-xerces2-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/parser/hello/hello-xerces2-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/parser/hello/makefile create mode 100644 xsd/dist/examples/cxx/parser/library/library-10.0.vcxproj create mode 100644 xsd/dist/examples/cxx/parser/library/library-10.0.vcxproj.filters create mode 100644 xsd/dist/examples/cxx/parser/library/library-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/parser/library/library-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/parser/library/library-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/parser/library/library-xerces2-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/parser/library/library-xerces2-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/parser/library/library-xerces2-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/parser/library/makefile create mode 100644 xsd/dist/examples/cxx/parser/makefile create mode 100644 xsd/dist/examples/cxx/parser/mixed/makefile create mode 100644 xsd/dist/examples/cxx/parser/mixed/mixed-10.0.vcxproj create mode 100644 xsd/dist/examples/cxx/parser/mixed/mixed-10.0.vcxproj.filters create mode 100644 xsd/dist/examples/cxx/parser/mixed/mixed-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/parser/mixed/mixed-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/parser/mixed/mixed-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/parser/mixed/mixed-xerces2-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/parser/mixed/mixed-xerces2-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/parser/mixed/mixed-xerces2-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/parser/mixin/makefile create mode 100644 xsd/dist/examples/cxx/parser/mixin/mixin-10.0.vcxproj create mode 100644 xsd/dist/examples/cxx/parser/mixin/mixin-10.0.vcxproj.filters create mode 100644 xsd/dist/examples/cxx/parser/mixin/mixin-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/parser/mixin/mixin-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/parser/mixin/mixin-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/parser/mixin/mixin-xerces2-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/parser/mixin/mixin-xerces2-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/parser/mixin/mixin-xerces2-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/parser/multiroot/makefile create mode 100644 xsd/dist/examples/cxx/parser/multiroot/multiroot-10.0.vcxproj create mode 100644 xsd/dist/examples/cxx/parser/multiroot/multiroot-10.0.vcxproj.filters create mode 100644 xsd/dist/examples/cxx/parser/multiroot/multiroot-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/parser/multiroot/multiroot-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/parser/multiroot/multiroot-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/parser/multiroot/multiroot-xerces2-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/parser/multiroot/multiroot-xerces2-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/parser/multiroot/multiroot-xerces2-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/parser/parser-10.0.sln create mode 100644 xsd/dist/examples/cxx/parser/parser-7.1.sln create mode 100644 xsd/dist/examples/cxx/parser/parser-8.0.sln create mode 100644 xsd/dist/examples/cxx/parser/parser-9.0.sln create mode 100644 xsd/dist/examples/cxx/parser/parser-xerces2-7.1.sln create mode 100644 xsd/dist/examples/cxx/parser/parser-xerces2-8.0.sln create mode 100644 xsd/dist/examples/cxx/parser/parser-xerces2-9.0.sln create mode 100644 xsd/dist/examples/cxx/parser/performance/makefile create mode 100644 xsd/dist/examples/cxx/parser/performance/performance-10.0.vcxproj create mode 100644 xsd/dist/examples/cxx/parser/performance/performance-10.0.vcxproj.filters create mode 100644 xsd/dist/examples/cxx/parser/performance/performance-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/parser/performance/performance-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/parser/performance/performance-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/parser/performance/performance-xerces2-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/parser/performance/performance-xerces2-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/parser/performance/performance-xerces2-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/parser/polymorphism/makefile create mode 100644 xsd/dist/examples/cxx/parser/polymorphism/polymorphism-10.0.vcxproj create mode 100644 xsd/dist/examples/cxx/parser/polymorphism/polymorphism-10.0.vcxproj.filters create mode 100644 xsd/dist/examples/cxx/parser/polymorphism/polymorphism-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/parser/polymorphism/polymorphism-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/parser/polymorphism/polymorphism-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/parser/polymorphism/polymorphism-xerces2-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/parser/polymorphism/polymorphism-xerces2-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/parser/polymorphism/polymorphism-xerces2-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/parser/polyroot/makefile create mode 100644 xsd/dist/examples/cxx/parser/polyroot/polyroot-10.0.vcxproj create mode 100644 xsd/dist/examples/cxx/parser/polyroot/polyroot-10.0.vcxproj.filters create mode 100644 xsd/dist/examples/cxx/parser/polyroot/polyroot-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/parser/polyroot/polyroot-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/parser/polyroot/polyroot-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/parser/polyroot/polyroot-xerces2-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/parser/polyroot/polyroot-xerces2-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/parser/polyroot/polyroot-xerces2-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/parser/wildcard/makefile create mode 100644 xsd/dist/examples/cxx/parser/wildcard/wildcard-10.0.vcxproj create mode 100644 xsd/dist/examples/cxx/parser/wildcard/wildcard-10.0.vcxproj.filters create mode 100644 xsd/dist/examples/cxx/parser/wildcard/wildcard-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/parser/wildcard/wildcard-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/parser/wildcard/wildcard-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/parser/wildcard/wildcard-xerces2-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/parser/wildcard/wildcard-xerces2-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/parser/wildcard/wildcard-xerces2-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/binary/boost/boost-10.0.sln create mode 100644 xsd/dist/examples/cxx/tree/binary/boost/boost-10.0.vcxproj create mode 100644 xsd/dist/examples/cxx/tree/binary/boost/boost-10.0.vcxproj.filters create mode 100644 xsd/dist/examples/cxx/tree/binary/boost/boost-7.1.sln create mode 100644 xsd/dist/examples/cxx/tree/binary/boost/boost-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/binary/boost/boost-8.0.sln create mode 100644 xsd/dist/examples/cxx/tree/binary/boost/boost-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/binary/boost/boost-9.0.sln create mode 100644 xsd/dist/examples/cxx/tree/binary/boost/boost-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/binary/boost/boost-xerces2-7.1.sln create mode 100644 xsd/dist/examples/cxx/tree/binary/boost/boost-xerces2-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/binary/boost/boost-xerces2-8.0.sln create mode 100644 xsd/dist/examples/cxx/tree/binary/boost/boost-xerces2-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/binary/boost/boost-xerces2-9.0.sln create mode 100644 xsd/dist/examples/cxx/tree/binary/boost/boost-xerces2-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/binary/boost/makefile create mode 100644 xsd/dist/examples/cxx/tree/binary/cdr/cdr-10.0.sln create mode 100644 xsd/dist/examples/cxx/tree/binary/cdr/cdr-10.0.vcxproj create mode 100644 xsd/dist/examples/cxx/tree/binary/cdr/cdr-10.0.vcxproj.filters create mode 100644 xsd/dist/examples/cxx/tree/binary/cdr/cdr-7.1.sln create mode 100644 xsd/dist/examples/cxx/tree/binary/cdr/cdr-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/binary/cdr/cdr-8.0.sln create mode 100644 xsd/dist/examples/cxx/tree/binary/cdr/cdr-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/binary/cdr/cdr-9.0.sln create mode 100644 xsd/dist/examples/cxx/tree/binary/cdr/cdr-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/binary/cdr/cdr-xerces2-7.1.sln create mode 100644 xsd/dist/examples/cxx/tree/binary/cdr/cdr-xerces2-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/binary/cdr/cdr-xerces2-8.0.sln create mode 100644 xsd/dist/examples/cxx/tree/binary/cdr/cdr-xerces2-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/binary/cdr/cdr-xerces2-9.0.sln create mode 100644 xsd/dist/examples/cxx/tree/binary/cdr/cdr-xerces2-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/binary/cdr/makefile create mode 100644 xsd/dist/examples/cxx/tree/binary/makefile create mode 100644 xsd/dist/examples/cxx/tree/binary/xdr/makefile create mode 100644 xsd/dist/examples/cxx/tree/binary/xdr/xdr-10.0.sln create mode 100644 xsd/dist/examples/cxx/tree/binary/xdr/xdr-10.0.vcxproj create mode 100644 xsd/dist/examples/cxx/tree/binary/xdr/xdr-10.0.vcxproj.filters create mode 100644 xsd/dist/examples/cxx/tree/binary/xdr/xdr-7.1.sln create mode 100644 xsd/dist/examples/cxx/tree/binary/xdr/xdr-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/binary/xdr/xdr-8.0.sln create mode 100644 xsd/dist/examples/cxx/tree/binary/xdr/xdr-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/binary/xdr/xdr-9.0.sln create mode 100644 xsd/dist/examples/cxx/tree/binary/xdr/xdr-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/binary/xdr/xdr-xerces2-7.1.sln create mode 100644 xsd/dist/examples/cxx/tree/binary/xdr/xdr-xerces2-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/binary/xdr/xdr-xerces2-8.0.sln create mode 100644 xsd/dist/examples/cxx/tree/binary/xdr/xdr-xerces2-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/binary/xdr/xdr-xerces2-9.0.sln create mode 100644 xsd/dist/examples/cxx/tree/binary/xdr/xdr-xerces2-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/caching/caching-10.0.vcxproj create mode 100644 xsd/dist/examples/cxx/tree/caching/caching-10.0.vcxproj.filters create mode 100644 xsd/dist/examples/cxx/tree/caching/caching-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/caching/caching-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/caching/caching-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/caching/caching-xerces2-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/caching/caching-xerces2-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/caching/caching-xerces2-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/caching/makefile create mode 100644 xsd/dist/examples/cxx/tree/compression/compression-10.0.sln create mode 100644 xsd/dist/examples/cxx/tree/compression/compression-10.0.vcxproj create mode 100644 xsd/dist/examples/cxx/tree/compression/compression-10.0.vcxproj.filters create mode 100644 xsd/dist/examples/cxx/tree/compression/compression-7.1.sln create mode 100644 xsd/dist/examples/cxx/tree/compression/compression-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/compression/compression-8.0.sln create mode 100644 xsd/dist/examples/cxx/tree/compression/compression-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/compression/compression-9.0.sln create mode 100644 xsd/dist/examples/cxx/tree/compression/compression-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/compression/compression-xerces2-7.1.sln create mode 100644 xsd/dist/examples/cxx/tree/compression/compression-xerces2-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/compression/compression-xerces2-8.0.sln create mode 100644 xsd/dist/examples/cxx/tree/compression/compression-xerces2-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/compression/compression-xerces2-9.0.sln create mode 100644 xsd/dist/examples/cxx/tree/compression/compression-xerces2-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/compression/makefile create mode 100644 xsd/dist/examples/cxx/tree/custom/calendar/calendar-10.0.sln create mode 100644 xsd/dist/examples/cxx/tree/custom/calendar/calendar-10.0.vcxproj create mode 100644 xsd/dist/examples/cxx/tree/custom/calendar/calendar-10.0.vcxproj.filters create mode 100644 xsd/dist/examples/cxx/tree/custom/calendar/calendar-7.1.sln create mode 100644 xsd/dist/examples/cxx/tree/custom/calendar/calendar-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/custom/calendar/calendar-8.0.sln create mode 100644 xsd/dist/examples/cxx/tree/custom/calendar/calendar-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/custom/calendar/calendar-9.0.sln create mode 100644 xsd/dist/examples/cxx/tree/custom/calendar/calendar-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/custom/calendar/calendar-xerces2-7.1.sln create mode 100644 xsd/dist/examples/cxx/tree/custom/calendar/calendar-xerces2-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/custom/calendar/calendar-xerces2-8.0.sln create mode 100644 xsd/dist/examples/cxx/tree/custom/calendar/calendar-xerces2-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/custom/calendar/calendar-xerces2-9.0.sln create mode 100644 xsd/dist/examples/cxx/tree/custom/calendar/calendar-xerces2-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/custom/calendar/makefile create mode 100644 xsd/dist/examples/cxx/tree/custom/comments/comments-10.0.vcxproj create mode 100644 xsd/dist/examples/cxx/tree/custom/comments/comments-10.0.vcxproj.filters create mode 100644 xsd/dist/examples/cxx/tree/custom/comments/comments-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/custom/comments/comments-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/custom/comments/comments-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/custom/comments/comments-xerces2-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/custom/comments/comments-xerces2-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/custom/comments/comments-xerces2-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/custom/comments/makefile create mode 100644 xsd/dist/examples/cxx/tree/custom/contacts/contacts-10.0.vcxproj create mode 100644 xsd/dist/examples/cxx/tree/custom/contacts/contacts-10.0.vcxproj.filters create mode 100644 xsd/dist/examples/cxx/tree/custom/contacts/contacts-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/custom/contacts/contacts-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/custom/contacts/contacts-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/custom/contacts/contacts-xerces2-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/custom/contacts/contacts-xerces2-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/custom/contacts/contacts-xerces2-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/custom/contacts/makefile create mode 100644 xsd/dist/examples/cxx/tree/custom/custom-10.0.sln create mode 100644 xsd/dist/examples/cxx/tree/custom/custom-7.1.sln create mode 100644 xsd/dist/examples/cxx/tree/custom/custom-8.0.sln create mode 100644 xsd/dist/examples/cxx/tree/custom/custom-9.0.sln create mode 100644 xsd/dist/examples/cxx/tree/custom/custom-xerces2-7.1.sln create mode 100644 xsd/dist/examples/cxx/tree/custom/custom-xerces2-8.0.sln create mode 100644 xsd/dist/examples/cxx/tree/custom/custom-xerces2-9.0.sln create mode 100644 xsd/dist/examples/cxx/tree/custom/double/double-10.0.vcxproj create mode 100644 xsd/dist/examples/cxx/tree/custom/double/double-10.0.vcxproj.filters create mode 100644 xsd/dist/examples/cxx/tree/custom/double/double-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/custom/double/double-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/custom/double/double-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/custom/double/double-xerces2-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/custom/double/double-xerces2-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/custom/double/double-xerces2-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/custom/double/makefile create mode 100644 xsd/dist/examples/cxx/tree/custom/makefile create mode 100644 xsd/dist/examples/cxx/tree/custom/mixed/makefile create mode 100644 xsd/dist/examples/cxx/tree/custom/mixed/mixed-10.0.vcxproj create mode 100644 xsd/dist/examples/cxx/tree/custom/mixed/mixed-10.0.vcxproj.filters create mode 100644 xsd/dist/examples/cxx/tree/custom/mixed/mixed-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/custom/mixed/mixed-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/custom/mixed/mixed-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/custom/mixed/mixed-xerces2-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/custom/mixed/mixed-xerces2-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/custom/mixed/mixed-xerces2-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/custom/taxonomy/makefile create mode 100644 xsd/dist/examples/cxx/tree/custom/taxonomy/taxonomy-10.0.vcxproj create mode 100644 xsd/dist/examples/cxx/tree/custom/taxonomy/taxonomy-10.0.vcxproj.filters create mode 100644 xsd/dist/examples/cxx/tree/custom/taxonomy/taxonomy-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/custom/taxonomy/taxonomy-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/custom/taxonomy/taxonomy-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/custom/taxonomy/taxonomy-xerces2-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/custom/taxonomy/taxonomy-xerces2-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/custom/taxonomy/taxonomy-xerces2-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/custom/wildcard/makefile create mode 100644 xsd/dist/examples/cxx/tree/custom/wildcard/wildcard-10.0.vcxproj create mode 100644 xsd/dist/examples/cxx/tree/custom/wildcard/wildcard-10.0.vcxproj.filters create mode 100644 xsd/dist/examples/cxx/tree/custom/wildcard/wildcard-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/custom/wildcard/wildcard-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/custom/wildcard/wildcard-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/custom/wildcard/wildcard-xerces2-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/custom/wildcard/wildcard-xerces2-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/custom/wildcard/wildcard-xerces2-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/dbxml/dbxml-10.0.sln create mode 100644 xsd/dist/examples/cxx/tree/dbxml/dbxml-10.0.vcxproj create mode 100644 xsd/dist/examples/cxx/tree/dbxml/dbxml-10.0.vcxproj.filters create mode 100644 xsd/dist/examples/cxx/tree/dbxml/dbxml-7.1.sln create mode 100644 xsd/dist/examples/cxx/tree/dbxml/dbxml-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/dbxml/dbxml-8.0.sln create mode 100644 xsd/dist/examples/cxx/tree/dbxml/dbxml-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/dbxml/dbxml-9.0.sln create mode 100644 xsd/dist/examples/cxx/tree/dbxml/dbxml-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/dbxml/makefile create mode 100644 xsd/dist/examples/cxx/tree/embedded/embedded-10.0.sln create mode 100644 xsd/dist/examples/cxx/tree/embedded/embedded-10.0.vcxproj create mode 100644 xsd/dist/examples/cxx/tree/embedded/embedded-10.0.vcxproj.filters create mode 100644 xsd/dist/examples/cxx/tree/embedded/embedded-7.1.sln create mode 100644 xsd/dist/examples/cxx/tree/embedded/embedded-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/embedded/embedded-8.0.sln create mode 100644 xsd/dist/examples/cxx/tree/embedded/embedded-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/embedded/embedded-9.0.sln create mode 100644 xsd/dist/examples/cxx/tree/embedded/embedded-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/embedded/embedded-xerces2-7.1.sln create mode 100644 xsd/dist/examples/cxx/tree/embedded/embedded-xerces2-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/embedded/embedded-xerces2-8.0.sln create mode 100644 xsd/dist/examples/cxx/tree/embedded/embedded-xerces2-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/embedded/embedded-xerces2-9.0.sln create mode 100644 xsd/dist/examples/cxx/tree/embedded/embedded-xerces2-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/embedded/makefile create mode 100644 xsd/dist/examples/cxx/tree/embedded/xsdbin-10.0.vcxproj create mode 100644 xsd/dist/examples/cxx/tree/embedded/xsdbin-10.0.vcxproj.filters create mode 100644 xsd/dist/examples/cxx/tree/embedded/xsdbin-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/embedded/xsdbin-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/embedded/xsdbin-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/embedded/xsdbin-xerces2-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/embedded/xsdbin-xerces2-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/embedded/xsdbin-xerces2-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/hello/hello-10.0.vcxproj create mode 100644 xsd/dist/examples/cxx/tree/hello/hello-10.0.vcxproj.filters create mode 100644 xsd/dist/examples/cxx/tree/hello/hello-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/hello/hello-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/hello/hello-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/hello/hello-xerces2-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/hello/hello-xerces2-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/hello/hello-xerces2-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/hello/makefile create mode 100644 xsd/dist/examples/cxx/tree/library/library-10.0.vcxproj create mode 100644 xsd/dist/examples/cxx/tree/library/library-10.0.vcxproj.filters create mode 100644 xsd/dist/examples/cxx/tree/library/library-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/library/library-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/library/library-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/library/library-xerces2-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/library/library-xerces2-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/library/library-xerces2-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/library/makefile create mode 100644 xsd/dist/examples/cxx/tree/makefile create mode 100644 xsd/dist/examples/cxx/tree/messaging/makefile create mode 100644 xsd/dist/examples/cxx/tree/messaging/messaging-10.0.vcxproj create mode 100644 xsd/dist/examples/cxx/tree/messaging/messaging-10.0.vcxproj.filters create mode 100644 xsd/dist/examples/cxx/tree/messaging/messaging-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/messaging/messaging-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/messaging/messaging-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/messaging/messaging-xerces2-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/messaging/messaging-xerces2-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/messaging/messaging-xerces2-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/mixed/makefile create mode 100644 xsd/dist/examples/cxx/tree/mixed/mixed-10.0.vcxproj create mode 100644 xsd/dist/examples/cxx/tree/mixed/mixed-10.0.vcxproj.filters create mode 100644 xsd/dist/examples/cxx/tree/mixed/mixed-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/mixed/mixed-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/mixed/mixed-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/mixed/mixed-xerces2-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/mixed/mixed-xerces2-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/mixed/mixed-xerces2-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/multiroot/makefile create mode 100644 xsd/dist/examples/cxx/tree/multiroot/multiroot-10.0.vcxproj create mode 100644 xsd/dist/examples/cxx/tree/multiroot/multiroot-10.0.vcxproj.filters create mode 100644 xsd/dist/examples/cxx/tree/multiroot/multiroot-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/multiroot/multiroot-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/multiroot/multiroot-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/multiroot/multiroot-xerces2-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/multiroot/multiroot-xerces2-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/multiroot/multiroot-xerces2-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/performance/makefile create mode 100644 xsd/dist/examples/cxx/tree/performance/performance-10.0.vcxproj create mode 100644 xsd/dist/examples/cxx/tree/performance/performance-10.0.vcxproj.filters create mode 100644 xsd/dist/examples/cxx/tree/performance/performance-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/performance/performance-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/performance/performance-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/performance/performance-xerces2-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/performance/performance-xerces2-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/performance/performance-xerces2-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/polymorphism/makefile create mode 100644 xsd/dist/examples/cxx/tree/polymorphism/polymorphism-10.0.vcxproj create mode 100644 xsd/dist/examples/cxx/tree/polymorphism/polymorphism-10.0.vcxproj.filters create mode 100644 xsd/dist/examples/cxx/tree/polymorphism/polymorphism-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/polymorphism/polymorphism-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/polymorphism/polymorphism-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/polymorphism/polymorphism-xerces2-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/polymorphism/polymorphism-xerces2-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/polymorphism/polymorphism-xerces2-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/streaming/makefile create mode 100644 xsd/dist/examples/cxx/tree/streaming/streaming-10.0.vcxproj create mode 100644 xsd/dist/examples/cxx/tree/streaming/streaming-10.0.vcxproj.filters create mode 100644 xsd/dist/examples/cxx/tree/streaming/streaming-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/streaming/streaming-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/streaming/streaming-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/streaming/streaming-xerces2-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/streaming/streaming-xerces2-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/streaming/streaming-xerces2-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/tree-10.0.sln create mode 100644 xsd/dist/examples/cxx/tree/tree-7.1.sln create mode 100644 xsd/dist/examples/cxx/tree/tree-8.0.sln create mode 100644 xsd/dist/examples/cxx/tree/tree-9.0.sln create mode 100644 xsd/dist/examples/cxx/tree/tree-xerces2-7.1.sln create mode 100644 xsd/dist/examples/cxx/tree/tree-xerces2-8.0.sln create mode 100644 xsd/dist/examples/cxx/tree/tree-xerces2-9.0.sln create mode 100644 xsd/dist/examples/cxx/tree/wildcard/makefile create mode 100644 xsd/dist/examples/cxx/tree/wildcard/wildcard-10.0.vcxproj create mode 100644 xsd/dist/examples/cxx/tree/wildcard/wildcard-10.0.vcxproj.filters create mode 100644 xsd/dist/examples/cxx/tree/wildcard/wildcard-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/wildcard/wildcard-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/wildcard/wildcard-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/wildcard/wildcard-xerces2-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/wildcard/wildcard-xerces2-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/wildcard/wildcard-xerces2-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/xpath/makefile create mode 100644 xsd/dist/examples/cxx/tree/xpath/xpath-10.0.sln create mode 100644 xsd/dist/examples/cxx/tree/xpath/xpath-10.0.vcxproj create mode 100644 xsd/dist/examples/cxx/tree/xpath/xpath-10.0.vcxproj.filters create mode 100644 xsd/dist/examples/cxx/tree/xpath/xpath-7.1.sln create mode 100644 xsd/dist/examples/cxx/tree/xpath/xpath-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/xpath/xpath-8.0.sln create mode 100644 xsd/dist/examples/cxx/tree/xpath/xpath-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/xpath/xpath-9.0.sln create mode 100644 xsd/dist/examples/cxx/tree/xpath/xpath-9.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/xpath/xpath-xerces2-7.1.sln create mode 100644 xsd/dist/examples/cxx/tree/xpath/xpath-xerces2-7.1.vcproj create mode 100644 xsd/dist/examples/cxx/tree/xpath/xpath-xerces2-8.0.sln create mode 100644 xsd/dist/examples/cxx/tree/xpath/xpath-xerces2-8.0.vcproj create mode 100644 xsd/dist/examples/cxx/tree/xpath/xpath-xerces2-9.0.sln create mode 100644 xsd/dist/examples/cxx/tree/xpath/xpath-xerces2-9.0.vcproj create mode 100644 xsd/dist/examples/makefile create mode 100644 xsd/documentation/custom-literals.xsd create mode 100644 xsd/documentation/cxx/makefile create mode 100644 xsd/documentation/cxx/parser/guide/cxx-parser-guide.pdf create mode 100644 xsd/documentation/cxx/parser/guide/cxx-parser-guide.ps create mode 100644 xsd/documentation/cxx/parser/guide/figure-1.png create mode 100644 xsd/documentation/cxx/parser/guide/figure-1.svg create mode 100644 xsd/documentation/cxx/parser/guide/guide.html2ps create mode 100644 xsd/documentation/cxx/parser/guide/index.xhtml create mode 100644 xsd/documentation/cxx/parser/guide/makefile create mode 100644 xsd/documentation/cxx/parser/makefile create mode 100644 xsd/documentation/cxx/tree/dbxml/driver.cxx create mode 100644 xsd/documentation/cxx/tree/dbxml/index.xhtml create mode 100644 xsd/documentation/cxx/tree/dbxml/library.xsd create mode 100644 xsd/documentation/cxx/tree/guide/cxx-tree-guide.pdf create mode 100644 xsd/documentation/cxx/tree/guide/cxx-tree-guide.ps create mode 100644 xsd/documentation/cxx/tree/guide/guide.html2ps create mode 100644 xsd/documentation/cxx/tree/guide/index.xhtml create mode 100644 xsd/documentation/cxx/tree/guide/makefile create mode 100644 xsd/documentation/cxx/tree/makefile create mode 100644 xsd/documentation/cxx/tree/manual/cxx-tree-manual.pdf create mode 100644 xsd/documentation/cxx/tree/manual/cxx-tree-manual.ps create mode 100644 xsd/documentation/cxx/tree/manual/index.xhtml create mode 100644 xsd/documentation/cxx/tree/manual/makefile create mode 100644 xsd/documentation/cxx/tree/manual/manual.html2ps create mode 100644 xsd/documentation/cxx/tree/reference/footer.html create mode 100644 xsd/documentation/cxx/tree/reference/libxsd.doxygen create mode 100644 xsd/documentation/cxx/tree/reference/makefile create mode 100644 xsd/documentation/default.css create mode 100644 xsd/documentation/future.xhtml create mode 100644 xsd/documentation/makefile create mode 100644 xsd/documentation/schema-authoring-guide.xhtml create mode 100644 xsd/documentation/xsd.1 create mode 100644 xsd/documentation/xsd.xhtml create mode 100644 xsd/examples/cxx/parser/README create mode 100644 xsd/examples/cxx/parser/generated/README create mode 100644 xsd/examples/cxx/parser/generated/library.xml create mode 100644 xsd/examples/cxx/parser/generated/library.xsd create mode 100644 xsd/examples/cxx/parser/generated/makefile create mode 100644 xsd/examples/cxx/parser/hello/README create mode 100644 xsd/examples/cxx/parser/hello/driver.cxx create mode 100644 xsd/examples/cxx/parser/hello/hello.xml create mode 100644 xsd/examples/cxx/parser/hello/hello.xsd create mode 100644 xsd/examples/cxx/parser/hello/makefile create mode 100644 xsd/examples/cxx/parser/library/README create mode 100644 xsd/examples/cxx/parser/library/driver.cxx create mode 100644 xsd/examples/cxx/parser/library/library-pimpl.cxx create mode 100644 xsd/examples/cxx/parser/library/library-pimpl.hxx create mode 100644 xsd/examples/cxx/parser/library/library.hxx create mode 100644 xsd/examples/cxx/parser/library/library.map create mode 100644 xsd/examples/cxx/parser/library/library.xml create mode 100644 xsd/examples/cxx/parser/library/library.xsd create mode 100644 xsd/examples/cxx/parser/library/makefile create mode 100644 xsd/examples/cxx/parser/makefile create mode 100644 xsd/examples/cxx/parser/mixed/README create mode 100644 xsd/examples/cxx/parser/mixed/anchor.hxx create mode 100644 xsd/examples/cxx/parser/mixed/driver.cxx create mode 100644 xsd/examples/cxx/parser/mixed/makefile create mode 100644 xsd/examples/cxx/parser/mixed/text.map create mode 100644 xsd/examples/cxx/parser/mixed/text.xml create mode 100644 xsd/examples/cxx/parser/mixed/text.xsd create mode 100644 xsd/examples/cxx/parser/mixin/README create mode 100644 xsd/examples/cxx/parser/mixin/driver.cxx create mode 100644 xsd/examples/cxx/parser/mixin/instance.xml create mode 100644 xsd/examples/cxx/parser/mixin/makefile create mode 100644 xsd/examples/cxx/parser/mixin/schema.map create mode 100644 xsd/examples/cxx/parser/mixin/schema.xsd create mode 100644 xsd/examples/cxx/parser/mixin/types.hxx create mode 100644 xsd/examples/cxx/parser/multiroot/README create mode 100644 xsd/examples/cxx/parser/multiroot/balance.xml create mode 100644 xsd/examples/cxx/parser/multiroot/deposit.xml create mode 100644 xsd/examples/cxx/parser/multiroot/driver.cxx create mode 100644 xsd/examples/cxx/parser/multiroot/makefile create mode 100644 xsd/examples/cxx/parser/multiroot/protocol-pimpl.cxx create mode 100644 xsd/examples/cxx/parser/multiroot/protocol-pimpl.hxx create mode 100644 xsd/examples/cxx/parser/multiroot/protocol.hxx create mode 100644 xsd/examples/cxx/parser/multiroot/protocol.map create mode 100644 xsd/examples/cxx/parser/multiroot/protocol.xsd create mode 100644 xsd/examples/cxx/parser/multiroot/withdraw.xml create mode 100644 xsd/examples/cxx/parser/performance/README create mode 100644 xsd/examples/cxx/parser/performance/driver.cxx create mode 100644 xsd/examples/cxx/parser/performance/gen.cxx create mode 100644 xsd/examples/cxx/parser/performance/makefile create mode 100644 xsd/examples/cxx/parser/performance/test-500k.xml create mode 100644 xsd/examples/cxx/parser/performance/test-50k.xml create mode 100644 xsd/examples/cxx/parser/performance/test-5k.xml create mode 100644 xsd/examples/cxx/parser/performance/test.xsd create mode 100644 xsd/examples/cxx/parser/performance/time.cxx create mode 100644 xsd/examples/cxx/parser/performance/time.hxx create mode 100644 xsd/examples/cxx/parser/polymorphism/README create mode 100644 xsd/examples/cxx/parser/polymorphism/driver.cxx create mode 100644 xsd/examples/cxx/parser/polymorphism/makefile create mode 100644 xsd/examples/cxx/parser/polymorphism/supermen-pimpl.cxx create mode 100644 xsd/examples/cxx/parser/polymorphism/supermen-pimpl.hxx create mode 100644 xsd/examples/cxx/parser/polymorphism/supermen.xml create mode 100644 xsd/examples/cxx/parser/polymorphism/supermen.xsd create mode 100644 xsd/examples/cxx/parser/polyroot/README create mode 100644 xsd/examples/cxx/parser/polyroot/batman.xml create mode 100644 xsd/examples/cxx/parser/polyroot/driver.cxx create mode 100644 xsd/examples/cxx/parser/polyroot/makefile create mode 100644 xsd/examples/cxx/parser/polyroot/person.xml create mode 100644 xsd/examples/cxx/parser/polyroot/superman.xml create mode 100644 xsd/examples/cxx/parser/polyroot/supermen-pimpl.cxx create mode 100644 xsd/examples/cxx/parser/polyroot/supermen-pimpl.hxx create mode 100644 xsd/examples/cxx/parser/polyroot/supermen.xsd create mode 100644 xsd/examples/cxx/parser/wildcard/README create mode 100644 xsd/examples/cxx/parser/wildcard/driver.cxx create mode 100644 xsd/examples/cxx/parser/wildcard/email.xml create mode 100644 xsd/examples/cxx/parser/wildcard/email.xsd create mode 100644 xsd/examples/cxx/parser/wildcard/makefile create mode 100644 xsd/examples/cxx/tree/README create mode 100644 xsd/examples/cxx/tree/binary/README create mode 100644 xsd/examples/cxx/tree/binary/boost/README create mode 100644 xsd/examples/cxx/tree/binary/boost/boost-archive-extraction.hxx create mode 100644 xsd/examples/cxx/tree/binary/boost/boost-archive-insertion.hxx create mode 100644 xsd/examples/cxx/tree/binary/boost/driver.cxx create mode 100644 xsd/examples/cxx/tree/binary/boost/library-prologue.hxx create mode 100644 xsd/examples/cxx/tree/binary/boost/library.xml create mode 100644 xsd/examples/cxx/tree/binary/boost/library.xsd create mode 100644 xsd/examples/cxx/tree/binary/boost/makefile create mode 100644 xsd/examples/cxx/tree/binary/cdr/README create mode 100644 xsd/examples/cxx/tree/binary/cdr/driver.cxx create mode 100644 xsd/examples/cxx/tree/binary/cdr/library.xml create mode 100644 xsd/examples/cxx/tree/binary/cdr/library.xsd create mode 100644 xsd/examples/cxx/tree/binary/cdr/makefile create mode 100644 xsd/examples/cxx/tree/binary/makefile create mode 100644 xsd/examples/cxx/tree/binary/xdr/README create mode 100644 xsd/examples/cxx/tree/binary/xdr/driver.cxx create mode 100644 xsd/examples/cxx/tree/binary/xdr/library.xml create mode 100644 xsd/examples/cxx/tree/binary/xdr/library.xsd create mode 100644 xsd/examples/cxx/tree/binary/xdr/makefile create mode 100644 xsd/examples/cxx/tree/caching/README create mode 100644 xsd/examples/cxx/tree/caching/driver.cxx create mode 100644 xsd/examples/cxx/tree/caching/library.xml create mode 100644 xsd/examples/cxx/tree/caching/library.xsd create mode 100644 xsd/examples/cxx/tree/caching/makefile create mode 100644 xsd/examples/cxx/tree/compression/README create mode 100644 xsd/examples/cxx/tree/compression/compressed-format-target.cxx create mode 100644 xsd/examples/cxx/tree/compression/compressed-format-target.hxx create mode 100644 xsd/examples/cxx/tree/compression/compressed-input-source.cxx create mode 100644 xsd/examples/cxx/tree/compression/compressed-input-source.hxx create mode 100644 xsd/examples/cxx/tree/compression/driver.cxx create mode 100644 xsd/examples/cxx/tree/compression/library.xml.gz create mode 100644 xsd/examples/cxx/tree/compression/library.xsd create mode 100644 xsd/examples/cxx/tree/compression/makefile create mode 100644 xsd/examples/cxx/tree/custom/README create mode 100644 xsd/examples/cxx/tree/custom/calendar/README create mode 100644 xsd/examples/cxx/tree/custom/calendar/calendar.xml create mode 100644 xsd/examples/cxx/tree/custom/calendar/calendar.xsd create mode 100644 xsd/examples/cxx/tree/custom/calendar/driver.cxx create mode 100644 xsd/examples/cxx/tree/custom/calendar/makefile create mode 100644 xsd/examples/cxx/tree/custom/calendar/xml-schema-custom.cxx create mode 100644 xsd/examples/cxx/tree/custom/calendar/xml-schema-custom.hxx create mode 100644 xsd/examples/cxx/tree/custom/comments/README create mode 100644 xsd/examples/cxx/tree/custom/comments/dom-parse.cxx create mode 100644 xsd/examples/cxx/tree/custom/comments/dom-parse.hxx create mode 100644 xsd/examples/cxx/tree/custom/comments/driver.cxx create mode 100644 xsd/examples/cxx/tree/custom/comments/makefile create mode 100644 xsd/examples/cxx/tree/custom/comments/people.xml create mode 100644 xsd/examples/cxx/tree/custom/comments/people.xsd create mode 100644 xsd/examples/cxx/tree/custom/comments/xml-schema-custom.cxx create mode 100644 xsd/examples/cxx/tree/custom/comments/xml-schema-custom.hxx create mode 100644 xsd/examples/cxx/tree/custom/contacts/README create mode 100644 xsd/examples/cxx/tree/custom/contacts/contacts-custom.cxx create mode 100644 xsd/examples/cxx/tree/custom/contacts/contacts-custom.hxx create mode 100644 xsd/examples/cxx/tree/custom/contacts/contacts.xml create mode 100644 xsd/examples/cxx/tree/custom/contacts/contacts.xsd create mode 100644 xsd/examples/cxx/tree/custom/contacts/driver.cxx create mode 100644 xsd/examples/cxx/tree/custom/contacts/makefile create mode 100644 xsd/examples/cxx/tree/custom/double/README create mode 100644 xsd/examples/cxx/tree/custom/double/double-custom.cxx create mode 100644 xsd/examples/cxx/tree/custom/double/double-custom.hxx create mode 100644 xsd/examples/cxx/tree/custom/double/driver.cxx create mode 100644 xsd/examples/cxx/tree/custom/double/makefile create mode 100644 xsd/examples/cxx/tree/custom/double/order.xsd create mode 100644 xsd/examples/cxx/tree/custom/makefile create mode 100644 xsd/examples/cxx/tree/custom/mixed/README create mode 100644 xsd/examples/cxx/tree/custom/mixed/driver.cxx create mode 100644 xsd/examples/cxx/tree/custom/mixed/makefile create mode 100644 xsd/examples/cxx/tree/custom/mixed/people-custom.cxx create mode 100644 xsd/examples/cxx/tree/custom/mixed/people-custom.hxx create mode 100644 xsd/examples/cxx/tree/custom/mixed/people.xml create mode 100644 xsd/examples/cxx/tree/custom/mixed/people.xsd create mode 100644 xsd/examples/cxx/tree/custom/taxonomy/README create mode 100644 xsd/examples/cxx/tree/custom/taxonomy/driver.cxx create mode 100644 xsd/examples/cxx/tree/custom/taxonomy/makefile create mode 100644 xsd/examples/cxx/tree/custom/taxonomy/people-custom-fwd.hxx create mode 100644 xsd/examples/cxx/tree/custom/taxonomy/people-custom.cxx create mode 100644 xsd/examples/cxx/tree/custom/taxonomy/people-custom.hxx create mode 100644 xsd/examples/cxx/tree/custom/taxonomy/people.xml create mode 100644 xsd/examples/cxx/tree/custom/taxonomy/people.xsd create mode 100644 xsd/examples/cxx/tree/custom/wildcard/README create mode 100644 xsd/examples/cxx/tree/custom/wildcard/driver.cxx create mode 100644 xsd/examples/cxx/tree/custom/wildcard/makefile create mode 100644 xsd/examples/cxx/tree/custom/wildcard/wildcard-custom.cxx create mode 100644 xsd/examples/cxx/tree/custom/wildcard/wildcard-custom.hxx create mode 100644 xsd/examples/cxx/tree/custom/wildcard/wildcard.xml create mode 100644 xsd/examples/cxx/tree/custom/wildcard/wildcard.xsd create mode 100644 xsd/examples/cxx/tree/dbxml/README create mode 100644 xsd/examples/cxx/tree/dbxml/driver.cxx create mode 100644 xsd/examples/cxx/tree/dbxml/library.xsd create mode 100644 xsd/examples/cxx/tree/dbxml/makefile create mode 100644 xsd/examples/cxx/tree/embedded/README create mode 100644 xsd/examples/cxx/tree/embedded/driver.cxx create mode 100644 xsd/examples/cxx/tree/embedded/grammar-input-stream.cxx create mode 100644 xsd/examples/cxx/tree/embedded/grammar-input-stream.hxx create mode 100644 xsd/examples/cxx/tree/embedded/library.xml create mode 100644 xsd/examples/cxx/tree/embedded/library.xsd create mode 100644 xsd/examples/cxx/tree/embedded/makefile create mode 100644 xsd/examples/cxx/tree/embedded/xsdbin.cxx create mode 100644 xsd/examples/cxx/tree/hello/README create mode 100644 xsd/examples/cxx/tree/hello/driver.cxx create mode 100644 xsd/examples/cxx/tree/hello/hello.xml create mode 100644 xsd/examples/cxx/tree/hello/hello.xsd create mode 100644 xsd/examples/cxx/tree/hello/makefile create mode 100644 xsd/examples/cxx/tree/library/README create mode 100644 xsd/examples/cxx/tree/library/driver.cxx create mode 100644 xsd/examples/cxx/tree/library/library.xml create mode 100644 xsd/examples/cxx/tree/library/library.xsd create mode 100644 xsd/examples/cxx/tree/library/makefile create mode 100644 xsd/examples/cxx/tree/makefile create mode 100644 xsd/examples/cxx/tree/messaging/README create mode 100644 xsd/examples/cxx/tree/messaging/balance.xml create mode 100644 xsd/examples/cxx/tree/messaging/deposit.xml create mode 100644 xsd/examples/cxx/tree/messaging/dom-parse.cxx create mode 100644 xsd/examples/cxx/tree/messaging/dom-parse.hxx create mode 100644 xsd/examples/cxx/tree/messaging/dom-serialize.cxx create mode 100644 xsd/examples/cxx/tree/messaging/dom-serialize.hxx create mode 100644 xsd/examples/cxx/tree/messaging/driver.cxx create mode 100644 xsd/examples/cxx/tree/messaging/makefile create mode 100644 xsd/examples/cxx/tree/messaging/protocol.xsd create mode 100644 xsd/examples/cxx/tree/messaging/withdraw.xml create mode 100644 xsd/examples/cxx/tree/mixed/README create mode 100644 xsd/examples/cxx/tree/mixed/driver.cxx create mode 100644 xsd/examples/cxx/tree/mixed/makefile create mode 100644 xsd/examples/cxx/tree/mixed/text.xml create mode 100644 xsd/examples/cxx/tree/mixed/text.xsd create mode 100644 xsd/examples/cxx/tree/multiroot/README create mode 100644 xsd/examples/cxx/tree/multiroot/balance.xml create mode 100644 xsd/examples/cxx/tree/multiroot/deposit.xml create mode 100644 xsd/examples/cxx/tree/multiroot/dom-parse.cxx create mode 100644 xsd/examples/cxx/tree/multiroot/dom-parse.hxx create mode 100644 xsd/examples/cxx/tree/multiroot/driver.cxx create mode 100644 xsd/examples/cxx/tree/multiroot/makefile create mode 100644 xsd/examples/cxx/tree/multiroot/protocol.xsd create mode 100644 xsd/examples/cxx/tree/multiroot/withdraw.xml create mode 100644 xsd/examples/cxx/tree/performance/README create mode 100644 xsd/examples/cxx/tree/performance/driver.cxx create mode 100644 xsd/examples/cxx/tree/performance/gen.cxx create mode 100644 xsd/examples/cxx/tree/performance/makefile create mode 100644 xsd/examples/cxx/tree/performance/parsing.cxx create mode 100644 xsd/examples/cxx/tree/performance/serialization.cxx create mode 100644 xsd/examples/cxx/tree/performance/test-500k.xml create mode 100644 xsd/examples/cxx/tree/performance/test-50k.xml create mode 100644 xsd/examples/cxx/tree/performance/test-5k.xml create mode 100644 xsd/examples/cxx/tree/performance/test.xsd create mode 100644 xsd/examples/cxx/tree/performance/time.cxx create mode 100644 xsd/examples/cxx/tree/performance/time.hxx create mode 100644 xsd/examples/cxx/tree/polymorphism/README create mode 100644 xsd/examples/cxx/tree/polymorphism/driver.cxx create mode 100644 xsd/examples/cxx/tree/polymorphism/makefile create mode 100644 xsd/examples/cxx/tree/polymorphism/supermen.xml create mode 100644 xsd/examples/cxx/tree/polymorphism/supermen.xsd create mode 100644 xsd/examples/cxx/tree/streaming/README create mode 100644 xsd/examples/cxx/tree/streaming/driver.cxx create mode 100644 xsd/examples/cxx/tree/streaming/makefile create mode 100644 xsd/examples/cxx/tree/streaming/parser.cxx create mode 100644 xsd/examples/cxx/tree/streaming/parser.hxx create mode 100644 xsd/examples/cxx/tree/streaming/position.xml create mode 100644 xsd/examples/cxx/tree/streaming/position.xsd create mode 100644 xsd/examples/cxx/tree/streaming/serializer.cxx create mode 100644 xsd/examples/cxx/tree/streaming/serializer.hxx create mode 100644 xsd/examples/cxx/tree/wildcard/README create mode 100644 xsd/examples/cxx/tree/wildcard/driver.cxx create mode 100644 xsd/examples/cxx/tree/wildcard/email.xml create mode 100644 xsd/examples/cxx/tree/wildcard/email.xsd create mode 100644 xsd/examples/cxx/tree/wildcard/makefile create mode 100644 xsd/examples/cxx/tree/xpath/README create mode 100644 xsd/examples/cxx/tree/xpath/dom-parse.cxx create mode 100644 xsd/examples/cxx/tree/xpath/dom-parse.hxx create mode 100644 xsd/examples/cxx/tree/xpath/driver-2.cxx create mode 100644 xsd/examples/cxx/tree/xpath/driver.cxx create mode 100644 xsd/examples/cxx/tree/xpath/makefile create mode 100644 xsd/examples/cxx/tree/xpath/people.xml create mode 100644 xsd/examples/cxx/tree/xpath/people.xsd create mode 100644 xsd/examples/makefile create mode 100644 xsd/libxsd/FLOSSE create mode 100644 xsd/libxsd/GPLv2 create mode 100644 xsd/libxsd/INSTALL create mode 100644 xsd/libxsd/LICENSE create mode 100644 xsd/libxsd/README create mode 100644 xsd/libxsd/makefile create mode 100644 xsd/libxsd/xsd/cxx/auto-array.hxx create mode 100644 xsd/libxsd/xsd/cxx/compilers/vc-7/post.hxx create mode 100644 xsd/libxsd/xsd/cxx/compilers/vc-7/pre.hxx create mode 100644 xsd/libxsd/xsd/cxx/compilers/vc-8/post.hxx create mode 100644 xsd/libxsd/xsd/cxx/compilers/vc-8/pre.hxx create mode 100644 xsd/libxsd/xsd/cxx/config.hxx create mode 100644 xsd/libxsd/xsd/cxx/exceptions.hxx create mode 100644 xsd/libxsd/xsd/cxx/parser/document.hxx create mode 100644 xsd/libxsd/xsd/cxx/parser/document.txx create mode 100644 xsd/libxsd/xsd/cxx/parser/elements.hxx create mode 100644 xsd/libxsd/xsd/cxx/parser/elements.txx create mode 100644 xsd/libxsd/xsd/cxx/parser/error-handler.hxx create mode 100644 xsd/libxsd/xsd/cxx/parser/error-handler.txx create mode 100644 xsd/libxsd/xsd/cxx/parser/exceptions.hxx create mode 100644 xsd/libxsd/xsd/cxx/parser/exceptions.ixx create mode 100644 xsd/libxsd/xsd/cxx/parser/exceptions.txx create mode 100644 xsd/libxsd/xsd/cxx/parser/expat/elements.hxx create mode 100644 xsd/libxsd/xsd/cxx/parser/expat/elements.txx create mode 100644 xsd/libxsd/xsd/cxx/parser/map.hxx create mode 100644 xsd/libxsd/xsd/cxx/parser/map.ixx create mode 100644 xsd/libxsd/xsd/cxx/parser/map.txx create mode 100644 xsd/libxsd/xsd/cxx/parser/non-validating/parser.hxx create mode 100644 xsd/libxsd/xsd/cxx/parser/non-validating/parser.txx create mode 100644 xsd/libxsd/xsd/cxx/parser/non-validating/xml-schema-pimpl.hxx create mode 100644 xsd/libxsd/xsd/cxx/parser/non-validating/xml-schema-pimpl.ixx create mode 100644 xsd/libxsd/xsd/cxx/parser/non-validating/xml-schema-pimpl.txx create mode 100644 xsd/libxsd/xsd/cxx/parser/non-validating/xml-schema-pskel.hxx create mode 100644 xsd/libxsd/xsd/cxx/parser/non-validating/xml-schema-pskel.ixx create mode 100644 xsd/libxsd/xsd/cxx/parser/non-validating/xml-schema-pskel.txx create mode 100644 xsd/libxsd/xsd/cxx/parser/schema-exceptions.hxx create mode 100644 xsd/libxsd/xsd/cxx/parser/schema-exceptions.ixx create mode 100644 xsd/libxsd/xsd/cxx/parser/schema-exceptions.txx create mode 100644 xsd/libxsd/xsd/cxx/parser/substitution-map.hxx create mode 100644 xsd/libxsd/xsd/cxx/parser/substitution-map.txx create mode 100644 xsd/libxsd/xsd/cxx/parser/validating/exceptions.hxx create mode 100644 xsd/libxsd/xsd/cxx/parser/validating/exceptions.ixx create mode 100644 xsd/libxsd/xsd/cxx/parser/validating/exceptions.txx create mode 100644 xsd/libxsd/xsd/cxx/parser/validating/inheritance-map.hxx create mode 100644 xsd/libxsd/xsd/cxx/parser/validating/inheritance-map.txx create mode 100644 xsd/libxsd/xsd/cxx/parser/validating/parser.hxx create mode 100644 xsd/libxsd/xsd/cxx/parser/validating/parser.txx create mode 100644 xsd/libxsd/xsd/cxx/parser/validating/xml-schema-pimpl.hxx create mode 100644 xsd/libxsd/xsd/cxx/parser/validating/xml-schema-pimpl.ixx create mode 100644 xsd/libxsd/xsd/cxx/parser/validating/xml-schema-pimpl.txx create mode 100644 xsd/libxsd/xsd/cxx/parser/validating/xml-schema-pskel.hxx create mode 100644 xsd/libxsd/xsd/cxx/parser/validating/xml-schema-pskel.ixx create mode 100644 xsd/libxsd/xsd/cxx/parser/validating/xml-schema-pskel.txx create mode 100644 xsd/libxsd/xsd/cxx/parser/xerces/elements.hxx create mode 100644 xsd/libxsd/xsd/cxx/parser/xerces/elements.txx create mode 100644 xsd/libxsd/xsd/cxx/parser/xml-schema.hxx create mode 100644 xsd/libxsd/xsd/cxx/parser/xml-schema.ixx create mode 100644 xsd/libxsd/xsd/cxx/parser/xml-schema.txx create mode 100644 xsd/libxsd/xsd/cxx/post.hxx create mode 100644 xsd/libxsd/xsd/cxx/pre.hxx create mode 100644 xsd/libxsd/xsd/cxx/ro-string.hxx create mode 100644 xsd/libxsd/xsd/cxx/ro-string.txx create mode 100644 xsd/libxsd/xsd/cxx/tree/ace-cdr-stream-common.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/ace-cdr-stream-extraction.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/ace-cdr-stream-insertion.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/bits/literals.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/bits/literals.ixx create mode 100644 xsd/libxsd/xsd/cxx/tree/buffer.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/buffer.txx create mode 100644 xsd/libxsd/xsd/cxx/tree/comparison-map.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/comparison-map.txx create mode 100644 xsd/libxsd/xsd/cxx/tree/containers-wildcard.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/containers.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/containers.txx create mode 100644 xsd/libxsd/xsd/cxx/tree/date-time-extraction.txx create mode 100644 xsd/libxsd/xsd/cxx/tree/date-time-insertion.txx create mode 100644 xsd/libxsd/xsd/cxx/tree/date-time-ostream.txx create mode 100644 xsd/libxsd/xsd/cxx/tree/date-time.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/date-time.ixx create mode 100644 xsd/libxsd/xsd/cxx/tree/date-time.txx create mode 100644 xsd/libxsd/xsd/cxx/tree/element-map.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/element-map.txx create mode 100644 xsd/libxsd/xsd/cxx/tree/elements.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/elements.ixx create mode 100644 xsd/libxsd/xsd/cxx/tree/elements.txx create mode 100644 xsd/libxsd/xsd/cxx/tree/error-handler.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/error-handler.txx create mode 100644 xsd/libxsd/xsd/cxx/tree/exceptions.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/exceptions.txx create mode 100644 xsd/libxsd/xsd/cxx/tree/facet.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/istream-fwd.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/istream.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/list.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/ostream.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/parsing.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/parsing.txx create mode 100644 xsd/libxsd/xsd/cxx/tree/parsing/boolean.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/parsing/byte.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/parsing/date-time.txx create mode 100644 xsd/libxsd/xsd/cxx/tree/parsing/decimal.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/parsing/double.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/parsing/element-map.txx create mode 100644 xsd/libxsd/xsd/cxx/tree/parsing/float.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/parsing/int.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/parsing/long.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/parsing/short.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/parsing/unsigned-byte.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/parsing/unsigned-int.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/parsing/unsigned-long.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/parsing/unsigned-short.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/serialization.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/serialization.txx create mode 100644 xsd/libxsd/xsd/cxx/tree/serialization/boolean.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/serialization/byte.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/serialization/date-time.txx create mode 100644 xsd/libxsd/xsd/cxx/tree/serialization/decimal.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/serialization/double.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/serialization/element-map.txx create mode 100644 xsd/libxsd/xsd/cxx/tree/serialization/float.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/serialization/int.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/serialization/long.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/serialization/short.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/serialization/unsigned-byte.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/serialization/unsigned-int.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/serialization/unsigned-long.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/serialization/unsigned-short.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/std-ostream-map.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/std-ostream-map.txx create mode 100644 xsd/libxsd/xsd/cxx/tree/std-ostream-operators.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/stream-extraction-map.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/stream-extraction-map.txx create mode 100644 xsd/libxsd/xsd/cxx/tree/stream-extraction.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/stream-insertion-map.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/stream-insertion-map.txx create mode 100644 xsd/libxsd/xsd/cxx/tree/stream-insertion.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/text.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/text.txx create mode 100644 xsd/libxsd/xsd/cxx/tree/type-factory-map.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/type-factory-map.txx create mode 100644 xsd/libxsd/xsd/cxx/tree/type-serializer-map.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/type-serializer-map.txx create mode 100644 xsd/libxsd/xsd/cxx/tree/types.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/types.txx create mode 100644 xsd/libxsd/xsd/cxx/tree/xdr-stream-common.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/xdr-stream-extraction.hxx create mode 100644 xsd/libxsd/xsd/cxx/tree/xdr-stream-insertion.hxx create mode 100644 xsd/libxsd/xsd/cxx/version.hxx create mode 100644 xsd/libxsd/xsd/cxx/xml/bits/literals.hxx create mode 100644 xsd/libxsd/xsd/cxx/xml/bits/literals.ixx create mode 100644 xsd/libxsd/xsd/cxx/xml/char-iso8859-1.hxx create mode 100644 xsd/libxsd/xsd/cxx/xml/char-iso8859-1.txx create mode 100644 xsd/libxsd/xsd/cxx/xml/char-lcp.hxx create mode 100644 xsd/libxsd/xsd/cxx/xml/char-lcp.txx create mode 100644 xsd/libxsd/xsd/cxx/xml/char-utf8.hxx create mode 100644 xsd/libxsd/xsd/cxx/xml/char-utf8.txx create mode 100644 xsd/libxsd/xsd/cxx/xml/dom/auto-ptr.hxx create mode 100644 xsd/libxsd/xsd/cxx/xml/dom/bits/error-handler-proxy.hxx create mode 100644 xsd/libxsd/xsd/cxx/xml/dom/bits/error-handler-proxy.txx create mode 100644 xsd/libxsd/xsd/cxx/xml/dom/elements.hxx create mode 100644 xsd/libxsd/xsd/cxx/xml/dom/elements.txx create mode 100644 xsd/libxsd/xsd/cxx/xml/dom/parsing-header.hxx create mode 100644 xsd/libxsd/xsd/cxx/xml/dom/parsing-source.hxx create mode 100644 xsd/libxsd/xsd/cxx/xml/dom/parsing-source.txx create mode 100644 xsd/libxsd/xsd/cxx/xml/dom/serialization-header.hxx create mode 100644 xsd/libxsd/xsd/cxx/xml/dom/serialization-header.txx create mode 100644 xsd/libxsd/xsd/cxx/xml/dom/serialization-source.hxx create mode 100644 xsd/libxsd/xsd/cxx/xml/dom/serialization-source.txx create mode 100644 xsd/libxsd/xsd/cxx/xml/dom/wildcard-source.hxx create mode 100644 xsd/libxsd/xsd/cxx/xml/dom/wildcard-source.txx create mode 100644 xsd/libxsd/xsd/cxx/xml/elements.hxx create mode 100644 xsd/libxsd/xsd/cxx/xml/elements.txx create mode 100644 xsd/libxsd/xsd/cxx/xml/error-handler.hxx create mode 100644 xsd/libxsd/xsd/cxx/xml/exceptions.hxx create mode 100644 xsd/libxsd/xsd/cxx/xml/qualified-name.hxx create mode 100644 xsd/libxsd/xsd/cxx/xml/sax/bits/error-handler-proxy.hxx create mode 100644 xsd/libxsd/xsd/cxx/xml/sax/bits/error-handler-proxy.txx create mode 100644 xsd/libxsd/xsd/cxx/xml/sax/std-input-source.hxx create mode 100644 xsd/libxsd/xsd/cxx/xml/std-memory-manager.hxx create mode 100644 xsd/libxsd/xsd/cxx/xml/string.hxx create mode 100644 xsd/libxsd/xsd/cxx/xml/string.ixx create mode 100644 xsd/libxsd/xsd/cxx/xml/string.txx create mode 100644 xsd/libxsd/xsd/cxx/zc-istream.hxx create mode 100644 xsd/libxsd/xsd/cxx/zc-istream.txx create mode 100644 xsd/makefile create mode 100644 xsd/tests/clash/clash.xsd create mode 100644 xsd/tests/clash/foo.xsd create mode 100644 xsd/tests/code/name-conflict/test.xsd create mode 100644 xsd/tests/code/name-escaping/test.xsd create mode 100644 xsd/tests/cxx/makefile create mode 100644 xsd/tests/cxx/parser/built-in/driver.cxx create mode 100644 xsd/tests/cxx/parser/built-in/makefile create mode 100644 xsd/tests/cxx/parser/built-in/output create mode 100644 xsd/tests/cxx/parser/built-in/test.xml create mode 100644 xsd/tests/cxx/parser/built-in/test.xsd create mode 100644 xsd/tests/cxx/parser/enumeration/driver.cxx create mode 100644 xsd/tests/cxx/parser/enumeration/gender.hxx create mode 100644 xsd/tests/cxx/parser/enumeration/makefile create mode 100644 xsd/tests/cxx/parser/enumeration/output create mode 100644 xsd/tests/cxx/parser/enumeration/test.map create mode 100644 xsd/tests/cxx/parser/enumeration/test.xml create mode 100644 xsd/tests/cxx/parser/enumeration/test.xsd create mode 100644 xsd/tests/cxx/parser/generated-impl/makefile create mode 100644 xsd/tests/cxx/parser/generated-impl/output create mode 100644 xsd/tests/cxx/parser/generated-impl/test.xml create mode 100644 xsd/tests/cxx/parser/generated-impl/test.xsd create mode 100644 xsd/tests/cxx/parser/list/driver.cxx create mode 100644 xsd/tests/cxx/parser/list/makefile create mode 100644 xsd/tests/cxx/parser/list/output create mode 100644 xsd/tests/cxx/parser/list/test.xml create mode 100644 xsd/tests/cxx/parser/list/test.xsd create mode 100644 xsd/tests/cxx/parser/makefile create mode 100644 xsd/tests/cxx/parser/name-clash/inheritance/driver.cxx create mode 100644 xsd/tests/cxx/parser/name-clash/inheritance/makefile create mode 100644 xsd/tests/cxx/parser/name-clash/inheritance/output create mode 100644 xsd/tests/cxx/parser/name-clash/inheritance/test.xml create mode 100644 xsd/tests/cxx/parser/name-clash/inheritance/test.xsd create mode 100644 xsd/tests/cxx/parser/polymorphism/makefile create mode 100644 xsd/tests/cxx/parser/polymorphism/same-type/driver.cxx create mode 100644 xsd/tests/cxx/parser/polymorphism/same-type/makefile create mode 100644 xsd/tests/cxx/parser/polymorphism/same-type/output create mode 100644 xsd/tests/cxx/parser/polymorphism/same-type/test.xml create mode 100644 xsd/tests/cxx/parser/polymorphism/same-type/test.xsd create mode 100644 xsd/tests/cxx/parser/recursive/driver.cxx create mode 100644 xsd/tests/cxx/parser/recursive/makefile create mode 100644 xsd/tests/cxx/parser/recursive/output create mode 100644 xsd/tests/cxx/parser/recursive/test.xml create mode 100644 xsd/tests/cxx/parser/recursive/test.xsd create mode 100644 xsd/tests/cxx/parser/test-template/driver.cxx create mode 100644 xsd/tests/cxx/parser/test-template/makefile create mode 100644 xsd/tests/cxx/parser/test-template/output create mode 100644 xsd/tests/cxx/parser/test-template/test.xml create mode 100644 xsd/tests/cxx/parser/test-template/test.xsd create mode 100644 xsd/tests/cxx/parser/union/driver.cxx create mode 100644 xsd/tests/cxx/parser/union/makefile create mode 100644 xsd/tests/cxx/parser/union/output create mode 100644 xsd/tests/cxx/parser/union/test.xml create mode 100644 xsd/tests/cxx/parser/union/test.xsd create mode 100644 xsd/tests/cxx/parser/validation/all/driver.cxx create mode 100644 xsd/tests/cxx/parser/validation/all/makefile create mode 100644 xsd/tests/cxx/parser/validation/all/test-000.std create mode 100644 xsd/tests/cxx/parser/validation/all/test-000.xml create mode 100644 xsd/tests/cxx/parser/validation/all/test-001.std create mode 100644 xsd/tests/cxx/parser/validation/all/test-001.xml create mode 100644 xsd/tests/cxx/parser/validation/all/test-002.std create mode 100644 xsd/tests/cxx/parser/validation/all/test-002.xml create mode 100644 xsd/tests/cxx/parser/validation/all/test-003.std create mode 100644 xsd/tests/cxx/parser/validation/all/test-003.xml create mode 100644 xsd/tests/cxx/parser/validation/all/test.xsd create mode 100644 xsd/tests/cxx/parser/validation/any/driver.cxx create mode 100644 xsd/tests/cxx/parser/validation/any/makefile create mode 100644 xsd/tests/cxx/parser/validation/any/test-000.std create mode 100644 xsd/tests/cxx/parser/validation/any/test-000.xml create mode 100644 xsd/tests/cxx/parser/validation/any/test.xsd create mode 100644 xsd/tests/cxx/parser/validation/attribute/driver.cxx create mode 100644 xsd/tests/cxx/parser/validation/attribute/makefile create mode 100644 xsd/tests/cxx/parser/validation/attribute/test-000.std create mode 100644 xsd/tests/cxx/parser/validation/attribute/test-000.xml create mode 100644 xsd/tests/cxx/parser/validation/attribute/test.xsd create mode 100644 xsd/tests/cxx/parser/validation/built-in/any-type/driver.cxx create mode 100644 xsd/tests/cxx/parser/validation/built-in/any-type/makefile create mode 100644 xsd/tests/cxx/parser/validation/built-in/any-type/test-000.std create mode 100644 xsd/tests/cxx/parser/validation/built-in/any-type/test-000.xml create mode 100644 xsd/tests/cxx/parser/validation/built-in/any-type/test.xsd create mode 100644 xsd/tests/cxx/parser/validation/built-in/binary/driver.cxx create mode 100644 xsd/tests/cxx/parser/validation/built-in/binary/makefile create mode 100644 xsd/tests/cxx/parser/validation/built-in/boolean/driver.cxx create mode 100644 xsd/tests/cxx/parser/validation/built-in/boolean/makefile create mode 100644 xsd/tests/cxx/parser/validation/built-in/byte/driver.cxx create mode 100644 xsd/tests/cxx/parser/validation/built-in/byte/makefile create mode 100644 xsd/tests/cxx/parser/validation/built-in/date-time/driver.cxx create mode 100644 xsd/tests/cxx/parser/validation/built-in/date-time/makefile create mode 100644 xsd/tests/cxx/parser/validation/built-in/float/driver.cxx create mode 100644 xsd/tests/cxx/parser/validation/built-in/float/makefile create mode 100644 xsd/tests/cxx/parser/validation/built-in/int/driver.cxx create mode 100644 xsd/tests/cxx/parser/validation/built-in/int/makefile create mode 100644 xsd/tests/cxx/parser/validation/built-in/integer/driver.cxx create mode 100644 xsd/tests/cxx/parser/validation/built-in/integer/makefile create mode 100644 xsd/tests/cxx/parser/validation/built-in/long/driver.cxx create mode 100644 xsd/tests/cxx/parser/validation/built-in/long/makefile create mode 100644 xsd/tests/cxx/parser/validation/built-in/makefile create mode 100644 xsd/tests/cxx/parser/validation/built-in/qname/driver.cxx create mode 100644 xsd/tests/cxx/parser/validation/built-in/qname/makefile create mode 100644 xsd/tests/cxx/parser/validation/built-in/short/driver.cxx create mode 100644 xsd/tests/cxx/parser/validation/built-in/short/makefile create mode 100644 xsd/tests/cxx/parser/validation/built-in/string/driver.cxx create mode 100644 xsd/tests/cxx/parser/validation/built-in/string/makefile create mode 100644 xsd/tests/cxx/parser/validation/built-in/uri/driver.cxx create mode 100644 xsd/tests/cxx/parser/validation/built-in/uri/makefile create mode 100644 xsd/tests/cxx/parser/validation/choice/driver.cxx create mode 100644 xsd/tests/cxx/parser/validation/choice/makefile create mode 100644 xsd/tests/cxx/parser/validation/choice/test-000.std create mode 100644 xsd/tests/cxx/parser/validation/choice/test-000.xml create mode 100644 xsd/tests/cxx/parser/validation/choice/test-001.std create mode 100644 xsd/tests/cxx/parser/validation/choice/test-001.xml create mode 100644 xsd/tests/cxx/parser/validation/choice/test-002.std create mode 100644 xsd/tests/cxx/parser/validation/choice/test-002.xml create mode 100644 xsd/tests/cxx/parser/validation/choice/test-003.std create mode 100644 xsd/tests/cxx/parser/validation/choice/test-003.xml create mode 100644 xsd/tests/cxx/parser/validation/choice/test-004.std create mode 100644 xsd/tests/cxx/parser/validation/choice/test-004.xml create mode 100644 xsd/tests/cxx/parser/validation/choice/test.xsd create mode 100644 xsd/tests/cxx/parser/validation/makefile create mode 100644 xsd/tests/cxx/parser/validation/restriction/driver.cxx create mode 100644 xsd/tests/cxx/parser/validation/restriction/makefile create mode 100644 xsd/tests/cxx/parser/validation/restriction/test-000.std create mode 100644 xsd/tests/cxx/parser/validation/restriction/test-000.xml create mode 100644 xsd/tests/cxx/parser/validation/restriction/test-001.std create mode 100644 xsd/tests/cxx/parser/validation/restriction/test-001.xml create mode 100644 xsd/tests/cxx/parser/validation/restriction/test-002.std create mode 100644 xsd/tests/cxx/parser/validation/restriction/test-002.xml create mode 100644 xsd/tests/cxx/parser/validation/restriction/test-003.std create mode 100644 xsd/tests/cxx/parser/validation/restriction/test-003.xml create mode 100644 xsd/tests/cxx/parser/validation/restriction/test-004.std create mode 100644 xsd/tests/cxx/parser/validation/restriction/test-004.xml create mode 100644 xsd/tests/cxx/parser/validation/restriction/test-005.std create mode 100644 xsd/tests/cxx/parser/validation/restriction/test-005.xml create mode 100644 xsd/tests/cxx/parser/validation/restriction/test.xsd create mode 100644 xsd/tests/cxx/parser/validation/sequence/driver.cxx create mode 100644 xsd/tests/cxx/parser/validation/sequence/makefile create mode 100644 xsd/tests/cxx/parser/validation/sequence/test-000.std create mode 100644 xsd/tests/cxx/parser/validation/sequence/test-000.xml create mode 100644 xsd/tests/cxx/parser/validation/sequence/test-001.std create mode 100644 xsd/tests/cxx/parser/validation/sequence/test-001.xml create mode 100644 xsd/tests/cxx/parser/validation/sequence/test-002.std create mode 100644 xsd/tests/cxx/parser/validation/sequence/test-002.xml create mode 100644 xsd/tests/cxx/parser/validation/sequence/test-003.std create mode 100644 xsd/tests/cxx/parser/validation/sequence/test-003.xml create mode 100644 xsd/tests/cxx/parser/validation/sequence/test-004.std create mode 100644 xsd/tests/cxx/parser/validation/sequence/test-004.xml create mode 100644 xsd/tests/cxx/parser/validation/sequence/test-005.std create mode 100644 xsd/tests/cxx/parser/validation/sequence/test-005.xml create mode 100644 xsd/tests/cxx/parser/validation/sequence/test-006.std create mode 100644 xsd/tests/cxx/parser/validation/sequence/test-006.xml create mode 100644 xsd/tests/cxx/parser/validation/sequence/test.xsd create mode 100644 xsd/tests/cxx/tree/binary/cdr/driver.cxx create mode 100644 xsd/tests/cxx/tree/binary/cdr/makefile create mode 100644 xsd/tests/cxx/tree/binary/cdr/test.xml create mode 100644 xsd/tests/cxx/tree/binary/cdr/test.xsd create mode 100644 xsd/tests/cxx/tree/binary/makefile create mode 100644 xsd/tests/cxx/tree/binary/polymorphic/driver.cxx create mode 100644 xsd/tests/cxx/tree/binary/polymorphic/makefile create mode 100644 xsd/tests/cxx/tree/binary/polymorphic/test.xml create mode 100644 xsd/tests/cxx/tree/binary/polymorphic/test.xsd create mode 100644 xsd/tests/cxx/tree/binary/xdr/driver.cxx create mode 100644 xsd/tests/cxx/tree/binary/xdr/makefile create mode 100644 xsd/tests/cxx/tree/binary/xdr/test.xml create mode 100644 xsd/tests/cxx/tree/binary/xdr/test.xsd create mode 100644 xsd/tests/cxx/tree/built-in/attributes.xml create mode 100644 xsd/tests/cxx/tree/built-in/driver.cxx create mode 100644 xsd/tests/cxx/tree/built-in/elements.xml create mode 100644 xsd/tests/cxx/tree/built-in/inherited.xml create mode 100644 xsd/tests/cxx/tree/built-in/makefile create mode 100644 xsd/tests/cxx/tree/built-in/types.xsd create mode 100644 xsd/tests/cxx/tree/chameleon/driver.cxx create mode 100644 xsd/tests/cxx/tree/chameleon/includee.xsd create mode 100644 xsd/tests/cxx/tree/chameleon/includer.xsd create mode 100644 xsd/tests/cxx/tree/chameleon/makefile create mode 100644 xsd/tests/cxx/tree/chameleon/output create mode 100644 xsd/tests/cxx/tree/chameleon/test.xml create mode 100644 xsd/tests/cxx/tree/comparison/driver.cxx create mode 100644 xsd/tests/cxx/tree/comparison/makefile create mode 100644 xsd/tests/cxx/tree/comparison/test.xml create mode 100644 xsd/tests/cxx/tree/comparison/test.xsd create mode 100644 xsd/tests/cxx/tree/compilation/driver.cxx create mode 100644 xsd/tests/cxx/tree/compilation/makefile create mode 100644 xsd/tests/cxx/tree/compilation/test.xsd create mode 100644 xsd/tests/cxx/tree/complex/ctor/driver.cxx create mode 100644 xsd/tests/cxx/tree/complex/ctor/makefile create mode 100644 xsd/tests/cxx/tree/complex/ctor/test.xsd create mode 100644 xsd/tests/cxx/tree/complex/makefile create mode 100644 xsd/tests/cxx/tree/containment/driver.cxx create mode 100644 xsd/tests/cxx/tree/containment/makefile create mode 100644 xsd/tests/cxx/tree/containment/test.xsd create mode 100644 xsd/tests/cxx/tree/default/general/driver.cxx create mode 100644 xsd/tests/cxx/tree/default/general/makefile create mode 100644 xsd/tests/cxx/tree/default/general/output create mode 100644 xsd/tests/cxx/tree/default/general/test.xml create mode 100644 xsd/tests/cxx/tree/default/general/test.xsd create mode 100644 xsd/tests/cxx/tree/default/makefile create mode 100644 xsd/tests/cxx/tree/default/omit/driver.cxx create mode 100644 xsd/tests/cxx/tree/default/omit/makefile create mode 100644 xsd/tests/cxx/tree/default/omit/output create mode 100644 xsd/tests/cxx/tree/default/omit/test.xml create mode 100644 xsd/tests/cxx/tree/default/omit/test.xsd create mode 100644 xsd/tests/cxx/tree/detach/driver.cxx create mode 100644 xsd/tests/cxx/tree/detach/makefile create mode 100644 xsd/tests/cxx/tree/detach/test.xsd create mode 100644 xsd/tests/cxx/tree/encoding/char/iso-8859-1/driver.cxx create mode 100644 xsd/tests/cxx/tree/encoding/char/iso-8859-1/makefile create mode 100644 xsd/tests/cxx/tree/encoding/char/iso-8859-1/test.std create mode 100644 xsd/tests/cxx/tree/encoding/char/iso-8859-1/test.xml create mode 100644 xsd/tests/cxx/tree/encoding/char/iso-8859-1/test.xsd create mode 100644 xsd/tests/cxx/tree/encoding/char/lcp/driver.cxx create mode 100644 xsd/tests/cxx/tree/encoding/char/lcp/makefile create mode 100644 xsd/tests/cxx/tree/encoding/char/lcp/test.std create mode 100644 xsd/tests/cxx/tree/encoding/char/lcp/test.xml create mode 100644 xsd/tests/cxx/tree/encoding/char/lcp/test.xsd create mode 100644 xsd/tests/cxx/tree/encoding/char/makefile create mode 100644 xsd/tests/cxx/tree/encoding/char/utf-8/driver.cxx create mode 100644 xsd/tests/cxx/tree/encoding/char/utf-8/makefile create mode 100644 xsd/tests/cxx/tree/encoding/char/utf-8/test.std create mode 100644 xsd/tests/cxx/tree/encoding/char/utf-8/test.xml create mode 100644 xsd/tests/cxx/tree/encoding/char/utf-8/test.xsd create mode 100644 xsd/tests/cxx/tree/encoding/makefile create mode 100644 xsd/tests/cxx/tree/encoding/wchar/driver.cxx create mode 100644 xsd/tests/cxx/tree/encoding/wchar/makefile create mode 100644 xsd/tests/cxx/tree/encoding/wchar/test.std create mode 100644 xsd/tests/cxx/tree/encoding/wchar/test.xml create mode 100644 xsd/tests/cxx/tree/encoding/wchar/test.xsd create mode 100644 xsd/tests/cxx/tree/enumeration/ctor/driver.cxx create mode 100644 xsd/tests/cxx/tree/enumeration/ctor/makefile create mode 100644 xsd/tests/cxx/tree/enumeration/ctor/test.xsd create mode 100644 xsd/tests/cxx/tree/enumeration/inheritance/driver.cxx create mode 100644 xsd/tests/cxx/tree/enumeration/inheritance/makefile create mode 100644 xsd/tests/cxx/tree/enumeration/inheritance/output create mode 100644 xsd/tests/cxx/tree/enumeration/inheritance/test.xml create mode 100644 xsd/tests/cxx/tree/enumeration/inheritance/test.xsd create mode 100644 xsd/tests/cxx/tree/enumeration/makefile create mode 100644 xsd/tests/cxx/tree/float/driver.cxx create mode 100644 xsd/tests/cxx/tree/float/makefile create mode 100644 xsd/tests/cxx/tree/float/test.std create mode 100644 xsd/tests/cxx/tree/float/test.xml create mode 100644 xsd/tests/cxx/tree/float/test.xsd create mode 100644 xsd/tests/cxx/tree/list/ctor/driver.cxx create mode 100644 xsd/tests/cxx/tree/list/ctor/makefile create mode 100644 xsd/tests/cxx/tree/list/ctor/test.xsd create mode 100644 xsd/tests/cxx/tree/list/makefile create mode 100644 xsd/tests/cxx/tree/makefile create mode 100644 xsd/tests/cxx/tree/name-clash/inheritance/driver.cxx create mode 100644 xsd/tests/cxx/tree/name-clash/inheritance/makefile create mode 100644 xsd/tests/cxx/tree/name-clash/inheritance/output create mode 100644 xsd/tests/cxx/tree/name-clash/inheritance/test.xml create mode 100644 xsd/tests/cxx/tree/name-clash/inheritance/test.xsd create mode 100644 xsd/tests/cxx/tree/name-clash/makefile create mode 100644 xsd/tests/cxx/tree/naming/camel/driver.cxx create mode 100644 xsd/tests/cxx/tree/naming/camel/makefile create mode 100644 xsd/tests/cxx/tree/naming/camel/test.xsd create mode 100644 xsd/tests/cxx/tree/naming/java/driver.cxx create mode 100644 xsd/tests/cxx/tree/naming/java/makefile create mode 100644 xsd/tests/cxx/tree/naming/java/test.xsd create mode 100644 xsd/tests/cxx/tree/naming/knr/driver.cxx create mode 100644 xsd/tests/cxx/tree/naming/knr/makefile create mode 100644 xsd/tests/cxx/tree/naming/knr/test.xsd create mode 100644 xsd/tests/cxx/tree/naming/makefile create mode 100644 xsd/tests/cxx/tree/polymorphism/comparison/driver.cxx create mode 100644 xsd/tests/cxx/tree/polymorphism/comparison/makefile create mode 100644 xsd/tests/cxx/tree/polymorphism/comparison/test.xml create mode 100644 xsd/tests/cxx/tree/polymorphism/comparison/test.xsd create mode 100644 xsd/tests/cxx/tree/polymorphism/makefile create mode 100644 xsd/tests/cxx/tree/polymorphism/ostream/driver.cxx create mode 100644 xsd/tests/cxx/tree/polymorphism/ostream/makefile create mode 100644 xsd/tests/cxx/tree/polymorphism/ostream/output create mode 100644 xsd/tests/cxx/tree/polymorphism/ostream/test.xml create mode 100644 xsd/tests/cxx/tree/polymorphism/ostream/test.xsd create mode 100644 xsd/tests/cxx/tree/polymorphism/same-type/driver.cxx create mode 100644 xsd/tests/cxx/tree/polymorphism/same-type/makefile create mode 100644 xsd/tests/cxx/tree/polymorphism/same-type/output create mode 100644 xsd/tests/cxx/tree/polymorphism/same-type/test.xml create mode 100644 xsd/tests/cxx/tree/polymorphism/same-type/test.xsd create mode 100644 xsd/tests/cxx/tree/prefix/bar.xsd create mode 100644 xsd/tests/cxx/tree/prefix/driver.cxx create mode 100644 xsd/tests/cxx/tree/prefix/foo.xsd create mode 100644 xsd/tests/cxx/tree/prefix/makefile create mode 100644 xsd/tests/cxx/tree/prefix/output create mode 100644 xsd/tests/cxx/tree/prefix/test.xml create mode 100644 xsd/tests/cxx/tree/prefix/test.xsd create mode 100644 xsd/tests/cxx/tree/test-template/driver.cxx create mode 100644 xsd/tests/cxx/tree/test-template/makefile create mode 100644 xsd/tests/cxx/tree/test-template/output create mode 100644 xsd/tests/cxx/tree/test-template/test.xml create mode 100644 xsd/tests/cxx/tree/test-template/test.xsd create mode 100644 xsd/tests/cxx/tree/types-only/driver.cxx create mode 100644 xsd/tests/cxx/tree/types-only/makefile create mode 100644 xsd/tests/cxx/tree/types-only/test.xsd create mode 100644 xsd/tests/cxx/tree/union/ctor/driver.cxx create mode 100644 xsd/tests/cxx/tree/union/ctor/makefile create mode 100644 xsd/tests/cxx/tree/union/ctor/test.xsd create mode 100644 xsd/tests/cxx/tree/union/makefile create mode 100644 xsd/tests/cxx/tree/wildcard/driver.cxx create mode 100644 xsd/tests/cxx/tree/wildcard/makefile create mode 100644 xsd/tests/cxx/tree/wildcard/output create mode 100644 xsd/tests/cxx/tree/wildcard/test.xml create mode 100644 xsd/tests/cxx/tree/wildcard/test.xsd create mode 100644 xsd/tests/failed/test-00.xsd create mode 100644 xsd/tests/makefile create mode 100644 xsd/tests/morphing/anonymous/attribute-group/test.xsd create mode 100644 xsd/tests/morphing/anonymous/cyclic-inclusion/includee.xsd create mode 100644 xsd/tests/morphing/anonymous/cyclic-inclusion/includer.xsd create mode 100644 xsd/tests/morphing/anonymous/group/test.xsd create mode 100644 xsd/tests/morphing/anonymous/test-000.xsd create mode 100644 xsd/tests/morphing/anonymous/unstable/includee-1.xsd create mode 100644 xsd/tests/morphing/anonymous/unstable/includee-2.xsd create mode 100644 xsd/tests/morphing/anonymous/unstable/includer.xsd create mode 100644 xsd/tests/processing/inheritance/test-000.xsd create mode 100644 xsd/tests/processing/inheritance/test-001.xsd create mode 100644 xsd/tests/schema/anonymous/test.xsd create mode 100644 xsd/tests/schema/any-attribute/test.xsd create mode 100644 xsd/tests/schema/any-type/test.xsd create mode 100644 xsd/tests/schema/any/fail.xsd create mode 100644 xsd/tests/schema/any/test.xsd create mode 100644 xsd/tests/schema/attribute-group/global.xsd create mode 100644 xsd/tests/schema/attribute/global.xsd create mode 100644 xsd/tests/schema/attribute/local.xsd create mode 100644 xsd/tests/schema/attribute/ref.xsd create mode 100644 xsd/tests/schema/cardinality/test.xsd create mode 100644 xsd/tests/schema/chameleon/includer.xsd create mode 100644 xsd/tests/schema/chameleon/schemas/includee.xsd create mode 100644 xsd/tests/schema/enumeration/test.xsd create mode 100644 xsd/tests/schema/forward/test.xsd create mode 100644 xsd/tests/schema/group/global.xsd create mode 100644 xsd/tests/schema/group/test.xsd create mode 100644 xsd/tests/schema/import/importer.xsd create mode 100644 xsd/tests/schema/import/schemas/importee.xsd create mode 100644 xsd/tests/schema/include/includer.xsd create mode 100644 xsd/tests/schema/include/schemas/includee.xsd create mode 100644 xsd/tests/schema/inheritance/cycle.xsd create mode 100644 xsd/tests/schema/inheritance/sourced-forward/includee.xsd create mode 100644 xsd/tests/schema/inheritance/sourced-forward/includer.xsd create mode 100644 xsd/tests/schema/list/anonymous/test.xsd create mode 100644 xsd/tests/schema/list/any-simple-type/test.xsd create mode 100644 xsd/tests/schema/list/driver.cxx create mode 100644 xsd/tests/schema/list/test.xsd create mode 100644 xsd/tests/schema/no-namespace/test.xsd create mode 100644 xsd/tests/schema/recursive/test.xsd create mode 100644 xsd/tests/schema/ref-type/idref.xsd create mode 100644 xsd/tests/schema/ref-type/idrefs.xsd create mode 100644 xsd/tests/schema/ref-type/invalid-0.xsd create mode 100644 xsd/tests/schema/ref-type/invalid-1.xsd create mode 100644 xsd/tests/schema/restriction/test.xsd create mode 100644 xsd/tests/schema/union/test.xsd create mode 100644 xsd/version create mode 100644 xsd/xsd/cxx/elements.cxx create mode 100644 xsd/xsd/cxx/elements.hxx create mode 100644 xsd/xsd/cxx/literal-map.cxx create mode 100644 xsd/xsd/cxx/literal-map.hxx create mode 100644 xsd/xsd/cxx/parser/attribute-validation-source.cxx create mode 100644 xsd/xsd/cxx/parser/attribute-validation-source.hxx create mode 100644 xsd/xsd/cxx/parser/characters-validation-source.cxx create mode 100644 xsd/xsd/cxx/parser/characters-validation-source.hxx create mode 100644 xsd/xsd/cxx/parser/cli.hxx create mode 100644 xsd/xsd/cxx/parser/driver-source.cxx create mode 100644 xsd/xsd/cxx/parser/driver-source.hxx create mode 100644 xsd/xsd/cxx/parser/element-validation-source.cxx create mode 100644 xsd/xsd/cxx/parser/element-validation-source.hxx create mode 100644 xsd/xsd/cxx/parser/elements.cxx create mode 100644 xsd/xsd/cxx/parser/elements.hxx create mode 100644 xsd/xsd/cxx/parser/generator.cxx create mode 100644 xsd/xsd/cxx/parser/generator.hxx create mode 100644 xsd/xsd/cxx/parser/impl-header.cxx create mode 100644 xsd/xsd/cxx/parser/impl-header.hxx create mode 100644 xsd/xsd/cxx/parser/impl-source.cxx create mode 100644 xsd/xsd/cxx/parser/impl-source.hxx create mode 100644 xsd/xsd/cxx/parser/name-processor.cxx create mode 100644 xsd/xsd/cxx/parser/name-processor.hxx create mode 100644 xsd/xsd/cxx/parser/parser-forward.cxx create mode 100644 xsd/xsd/cxx/parser/parser-forward.hxx create mode 100644 xsd/xsd/cxx/parser/parser-header.cxx create mode 100644 xsd/xsd/cxx/parser/parser-header.hxx create mode 100644 xsd/xsd/cxx/parser/parser-inline.cxx create mode 100644 xsd/xsd/cxx/parser/parser-inline.hxx create mode 100644 xsd/xsd/cxx/parser/parser-source.cxx create mode 100644 xsd/xsd/cxx/parser/parser-source.hxx create mode 100644 xsd/xsd/cxx/parser/print-impl-common.hxx create mode 100644 xsd/xsd/cxx/parser/state-processor.cxx create mode 100644 xsd/xsd/cxx/parser/state-processor.hxx create mode 100644 xsd/xsd/cxx/parser/type-processor.cxx create mode 100644 xsd/xsd/cxx/parser/type-processor.hxx create mode 100644 xsd/xsd/cxx/parser/validator.cxx create mode 100644 xsd/xsd/cxx/parser/validator.hxx create mode 100644 xsd/xsd/cxx/tree/cli.hxx create mode 100644 xsd/xsd/cxx/tree/counter.cxx create mode 100644 xsd/xsd/cxx/tree/counter.hxx create mode 100644 xsd/xsd/cxx/tree/default-value.cxx create mode 100644 xsd/xsd/cxx/tree/default-value.hxx create mode 100644 xsd/xsd/cxx/tree/elements.cxx create mode 100644 xsd/xsd/cxx/tree/elements.hxx create mode 100644 xsd/xsd/cxx/tree/fundamental-header.hxx create mode 100644 xsd/xsd/cxx/tree/generator.cxx create mode 100644 xsd/xsd/cxx/tree/generator.hxx create mode 100644 xsd/xsd/cxx/tree/name-processor.cxx create mode 100644 xsd/xsd/cxx/tree/name-processor.hxx create mode 100644 xsd/xsd/cxx/tree/parser-header.cxx create mode 100644 xsd/xsd/cxx/tree/parser-header.hxx create mode 100644 xsd/xsd/cxx/tree/parser-source.cxx create mode 100644 xsd/xsd/cxx/tree/parser-source.hxx create mode 100644 xsd/xsd/cxx/tree/polymorphism-processor.cxx create mode 100644 xsd/xsd/cxx/tree/polymorphism-processor.hxx create mode 100644 xsd/xsd/cxx/tree/serialization-header.cxx create mode 100644 xsd/xsd/cxx/tree/serialization-header.hxx create mode 100644 xsd/xsd/cxx/tree/serialization-source.cxx create mode 100644 xsd/xsd/cxx/tree/serialization-source.hxx create mode 100644 xsd/xsd/cxx/tree/stream-extraction-source.cxx create mode 100644 xsd/xsd/cxx/tree/stream-extraction-source.hxx create mode 100644 xsd/xsd/cxx/tree/stream-header.cxx create mode 100644 xsd/xsd/cxx/tree/stream-header.hxx create mode 100644 xsd/xsd/cxx/tree/stream-insertion-header.cxx create mode 100644 xsd/xsd/cxx/tree/stream-insertion-header.hxx create mode 100644 xsd/xsd/cxx/tree/stream-insertion-source.cxx create mode 100644 xsd/xsd/cxx/tree/stream-insertion-source.hxx create mode 100644 xsd/xsd/cxx/tree/stream-source.cxx create mode 100644 xsd/xsd/cxx/tree/stream-source.hxx create mode 100644 xsd/xsd/cxx/tree/tree-forward.cxx create mode 100644 xsd/xsd/cxx/tree/tree-forward.hxx create mode 100644 xsd/xsd/cxx/tree/tree-header.cxx create mode 100644 xsd/xsd/cxx/tree/tree-header.hxx create mode 100644 xsd/xsd/cxx/tree/tree-inline.cxx create mode 100644 xsd/xsd/cxx/tree/tree-inline.hxx create mode 100644 xsd/xsd/cxx/tree/tree-source.cxx create mode 100644 xsd/xsd/cxx/tree/tree-source.hxx create mode 100644 xsd/xsd/cxx/tree/validator.cxx create mode 100644 xsd/xsd/cxx/tree/validator.hxx create mode 100644 xsd/xsd/elements.hxx create mode 100644 xsd/xsd/makefile create mode 100644 xsd/xsd/processing/cardinality/processor.cxx create mode 100644 xsd/xsd/processing/cardinality/processor.hxx create mode 100644 xsd/xsd/processing/inheritance/processor.cxx create mode 100644 xsd/xsd/processing/inheritance/processor.hxx create mode 100644 xsd/xsd/type-map/lexer.cxx create mode 100644 xsd/xsd/type-map/lexer.hxx create mode 100644 xsd/xsd/type-map/parser.cxx create mode 100644 xsd/xsd/type-map/parser.hxx create mode 100644 xsd/xsd/type-map/type-map.hxx create mode 100644 xsd/xsd/usage.hxx create mode 100644 xsd/xsd/xsd.cxx create mode 100644 xsd/xsd/xsd.hxx diff --git a/README b/README new file mode 100644 index 0000000..8f2d04a --- /dev/null +++ b/README @@ -0,0 +1,92 @@ +This archive contains pre-configured CodeSynthesis XSD source code +with all its dependencies (except Xerces-C++ and Boost). It allows +you to build the XSD compiler in non-interactive mode (that is, +without answering any configuration questions). + +The following GNU tools are required to build XSD. Any fairly recent +GNU/Linux distribution should have these already installed: + +GNU bash >= 2.00 (bash --version) http://www.gnu.org/software/bash/ +GNU m4 >= 1.4 (m4 --version) http://www.gnu.org/software/m4/ +GNU make >= 3.81 (make --version) http://www.gnu.org/software/make/ +GNU g++ >= 3.4.3 (g++ --version) http://gcc.gnu.org/ + +The build system expects you to have the Xerces-C++ (2.6.0 or later) +as well as Boost filesystem and regex (1.33.1 or later) libraries +built and installed in a location where the C++ compiler looks by +default (normally /usr/lib/ and /usr/local/lib/). Alternatively, you +can provide include (-I) and library (-L) paths for this packages via +the CPPFLAGS and LDFLAGS variables, respectively. + +The build system supports the following variables: + +CXX (defaults to g++ if not set) +AR (defaults to ar if not set) +RANLIB (defaults to ranlib if not set) +CPPFLAGS +CXXFLAGS +LDFALGS +LIBS +BOOST_LIB_SUFFIX +BOOST_LINK_SYSTEM + +For example: + +$ make CXX=g++-4.2 CXXFLAGS=-O3 -j 4 + +The BOOST_LIB_SUFFIX variable allows you to specify the optional +Boost library suffix. For example, if your Boost library names are +in the libboost_regex-gcc41-mt-d.so format, then you will need to +set BOOST_LIB_SUFFIX to -gcc41-mt-d. + +The BOOST_LINK_SYSTEM variable allows you to specify whether the +Boost system library should be explicitly linked to which may be +required by newer linkers. The valid values are 'y' (default) and +'n'. + +If you would like to see the full compiler/linker/etc., command lines, +you can add verbose=1 to the make command line: + +$ make verbose=1 + +After the build is complete, the XSD compiler can be found in the +xsd/xsd/ directory and the runtime headers in the xsd/libxsd/ directory. +You can install the XSD compiler, runtime library, and documentation +with the install target, for example: + +$ make install_prefix=/usr install + +You can fine-tune the installation locations with the following make +variables: + +install_prefix default is /usr/local +install_data_prefix default is install_prefix +install_exec_prefix default is install_prefix + +install_bin_dir default is install_exec_prefix/bin +install_sbin_dir default is install_exec_prefix/sbin +install_lib_dir default is install_exec_prefix/lib + +install_data_dir default is install_data_prefix/share +install_inc_dir default is install_data_prefix/include + +install_doc_dir default is install_data_dir/doc +install_man_dir default is install_data_dir/man +install_info_dir default is install_data_dir/info + +You can also create a distribution package with the XSD compiler binary, +source code for the runtime library and examples, as well as the +documentation using the dist and dist-win targets, for example: + +$ make dist_prefix=./xsd-x.y.z dist + +Or, for Windows: + +$ make dist_prefix=./xsd-x.y.z dist-win + +The build system also supports the clean target: + +$ make clean + +Send bug reports or any other feedback to the xsd-users@codesynthesis.com +mailing list. diff --git a/build-0.3/abspath.make b/build-0.3/abspath.make new file mode 100644 index 0000000..428608c --- /dev/null +++ b/build-0.3/abspath.make @@ -0,0 +1,19 @@ +# file : build/abspath.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +.PHONY: FORCE + +%:: FORCE + @echo $(abspath $@) + +$(MAKEFILE_LIST):: ;@: + +# Remove all default rules. +# +.SUFFIXES: + +ifeq ($(filter -r,$(MAKEFLAGS)),) +MAKEFLAGS += -r +endif diff --git a/build-0.3/bootstrap.make b/build-0.3/bootstrap.make new file mode 100644 index 0000000..c45f952 --- /dev/null +++ b/build-0.3/bootstrap.make @@ -0,0 +1,341 @@ +# file : build/bootstrap.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + + + +# First time bootstrap.make is read +# +ifndef %makefile% + +# Configure make. +# + +# Forces make to delete targets whos rebuild commands failed but +# updated the target. +# +.DELETE_ON_ERROR: + +# Remove all built-in rules. +# +.SUFFIXES: + +ifeq ($(filter -r,$(MAKEFLAGS)),) +MAKEFLAGS += -r +endif + + +# Disable implicit phony misfeature. +# +#ifeq ($(filter --no-implicit-phony,$(MAKEFLAGS)),) +#MAKEFLAGS += --no-implicit-phony +#endif + +# Enable second expansion. +# +.SECONDEXPANSION: + +# Force target. Used to force rule executions. +# +.PHONY: FORCE + + +# Export variables that could be useful for configuration scripts. +# +export bld_root +export MAKE + +%replica% := +%foreign% := +%interactive% := t + +# List of realpath'ed include-once files. +# +%included_files% := + +#$(warning init %included_files%: $(%included_files%)) + +# @@ maybe I should set makefile to bootstrap and restore it at the end. +# This way I will be able to use %makefile% below (instead of _self) and +# also it will be consistent. +# + +%makefile% := $(abspath $(firstword $(MAKEFILE_LIST))) +%makefile_realpath% := $(realpath $(%makefile%)) + + +# +# include facility +# + +# Execute makefile search algorithm. Return abspath of the makefile if found +# and empty string otherwise. +# +%frame_exclude% += include-find-makefile +define include-find-makefile +$(if $(wildcard $1),\ +$(abspath $1),\ +$(if $(filter-out /%,$1),\ +$(call include-search-dirs,$1,$(.INCLUDE_DIRS)))) +endef + +# Search for $1 in the list of directoris $2 +# +%frame_exclude% += include-search-dirs +define include-search-dirs +$(if $(strip $2),\ +$(if $(wildcard $(firstword $2)/$1),\ +$(abspath $(firstword $2)/$1),\ +$(call include-search-dirs,$1,$(wordlist 2,$(words $2),$2)))) +endef + +# Test if $1 is a 'foreign' makefile, i.e., does not reside in +# src_root, out_root, or bld_root. +# +%frame_exclude% += include-test-foreign +define include-test-foreign +$(if $(%foreign%),t,\ +$(if $(filter $(bld_root)/% $(src_root)/% $(out_root)/%,$1),,t)) +endef + + +%frame_exclude% += include-body +define include-body +%interactive% := +%makefile% := $(call include-find-makefile,$2) +%makefile_realpath% := $(realpath $(%makefile%)) +%foreign% := $(call include-test-foreign,$(%makefile%)) + +$1 $$(if $$(%makefile%),$$(%makefile%),$2) + +%makefile_realpath% := $3 +%makefile% := $4 +%interactive% := $5 +%foreign% := $6 +endef + +%frame_exclude% += include +define include +$(eval $(foreach f,$1,\ + $(call include-body,\ + include,$f,$(%makefile_realpath%),$(%makefile%),$(%interactive%),$(%foreign%)))) +endef + +%frame_exclude% += -include +define -include +$(eval $(foreach f,$1,\ + $(call include-body,\ + -include,$f,$(%makefile_realpath%),$(%makefile%),$(%interactive%),$(%foreign%)))) +endef + + +# +# include-once +# + +# This one simply delegates to the include directive to get the +# error message. +# +# $1 : include/-include +# $2 : file +# +%frame_exclude% += include-once-failed-body +define include-once-failed-body +$1 $2 +endef + +# +# $1 : include/-include +# $2 : file +# +%frame_exclude% += include-once-file-body +define include-once-file-body +%interactive% := +%makefile% := $2 +%makefile_realpath% := $(realpath $2) +%foreign% := $(call include-test-foreign,$(%makefile%)) + +%included_files% += $$(%makefile_realpath%) + +$1 $2 + +%makefile_realpath% := $3 +%makefile% := $4 +%interactive% := $5 +%foreign% := $6 +endef + + +%frame_exclude% += include-once-file-filter +define include-once-file-filter +$(if $(filter $(realpath $2),$(%included_files%)),,\ + $(call include-once-file-body,\ + $1,$2,$(%makefile_realpath%),$(%makefile%),$(%interactive%),$(%foreign%))) +endef + +# +# $1 : include/-include +# $2 : file +# $6 : value +# + +%frame_exclude% += include-once-value-body +define include-once-value-body +%interactive% := +%makefile% := $2 +%makefile_realpath% := $(realpath $2) +%foreign% := $(call include-test-foreign,$(%makefile%)) + +%include_once_$$(%makefile_realpath%)% += $7 + +$1 $2 + +%makefile_realpath% := $3 +%makefile% := $4 +%interactive% := $5 +%foreign% := $6 +endef + + +%frame_exclude% += include-once-value-filter +define include-once-value-filter +$(if $(filter $3,$(value %include_once_$(realpath $2)%)),,\ + $(call include-once-value-body,\ + $1,$2,$(%makefile_realpath%),$(%makefile%),$(%interactive%),$(%foreign%),$3)) +endef + + +# $1 - include/-include +# $2 - abspath or empty if not found +# $3 - orginal path +# $4 - value [optional] +# +%frame_exclude% += include-once-filter +define include-once-filter +$(if $2,\ +$(if $4,\ +$(call include-once-value-filter,$1,$2,$4),\ +$(call include-once-file-filter,$1,$2)),\ +$(call include-once-failed-body,$1,$3)) +endef + +%frame_exclude% += include-once +define include-once +$(eval $(call include-once-filter,\ +include,$(call include-find-makefile,$1),$1,$(strip $2))) +endef + +%frame_exclude% += -include-once +define -include-once +$(eval $(call include-once-filter,\ +-include,$(call include-find-makefile,$1),$1,$(strip $2))) +endef + + +#$(warning include facility is up) + +endif # %makefile% + +# +# +bld_root := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))) + + +# initialize {src,out}_{root,base} +# +%frame_exclude% += find-bootstrap-base +define find-bootstrap-base +$(if $(findstring $(abspath $(lastword $1)),$(%makefile%)),$2,\ +$(call find-bootstrap-base,\ +$(wordlist 1,$(words $(wordlist 2,$(words $1),$1)),$1),\ +$(lastword $1))) +endef + +src_root := $(abspath $(dir $(call find-bootstrap-base,$(MAKEFILE_LIST)))..) +src_base := $(abspath $(dir $(%makefile%))) + +ifneq ($(src_root),$(src_base)) + +ifeq ($(origin out_root),undefined) + out_root := $(abspath $(patsubst \ + %$(subst $(src_root)/,,$(src_base)),%,$(CURDIR))) +endif + +out_base := $(out_root)/$(subst $(src_root)/,,$(src_base)) + +else + +ifeq ($(origin out_root),undefined) + out_root := $(abspath $(CURDIR)) +endif + +out_base := $(out_root) + +endif + +scf_root := $(src_root)/build +dcf_root := $(out_root)/build + +$(out_root)/%: export out_root := $(out_root) +$(out_root)/%: export src_root := $(src_root) +$(out_root)/%: export scf_root := $(scf_root) +$(out_root)/%: export dcf_root := $(dcf_root) +$(out_root)/%: export project_name := $(project_name) + +$(out_base)/%: out_root := $(out_root) +$(out_base)/%: out_base := $(out_base) +$(out_base)/%: src_base := $(src_base) + +ifdef build_debug + +$(warning "bld root: $(bld_root)") +$(warning "scf root: $(scf_root)") +$(warning "dcf root: $(dcf_root)") +$(warning "src root: $(src_root)") +$(warning "src base: $(src_base)") +$(warning "out root: $(out_root)") +$(warning "out base: $(out_base)") + +endif + +#$(warning paths are set) + +# frame facility +# +$(call include-once,$(bld_root)/frame.make) + +# import facility +# +$(call include-once,$(bld_root)/import.make) + +# Load some common facilities. +# +$(call include-once,$(bld_root)/literals.make) +$(call include-once,$(bld_root)/message.make) +$(call include-once,$(bld_root)/dir.make) + + +# Static configuration. +# +$(call include,$(bld_root)/configuration-static.make) + +ifneq ($(bld_root),$(scf_root)) +$(call -include,$(scf_root)/configuration-static.make) +endif + + +# `disfigure' target. +# +.PHONY: disfigure + +disfigure:: $(build_absolute_clean_target) + +#@@ Is there a better way? +# +ifeq ($(.DEFAULT_GOAL),disfigure) +.DEFAULT_GOAL := +endif + +# Dynamic configuration. +# diff --git a/build-0.3/c/c-d.make b/build-0.3/c/c-d.make new file mode 100644 index 0000000..446d643 --- /dev/null +++ b/build-0.3/c/c-d.make @@ -0,0 +1,10 @@ +# file : build/c/c-d.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include,$(bld_root)/c/configuration.make) + +ifdef c_id +$(call include-once,$(bld_root)/c/$(c_id)/c-d.make,$(out_base)) +endif diff --git a/build-0.3/c/c-o.make b/build-0.3/c/c-o.make new file mode 100644 index 0000000..0e6a532 --- /dev/null +++ b/build-0.3/c/c-o.make @@ -0,0 +1,11 @@ +# file : build/c/c-o.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include,$(bld_root)/c/configuration.make) + + +ifdef c_id +$(call include-once,$(bld_root)/c/$(c_id)/c-o.make,$(out_base)) +endif diff --git a/build-0.3/c/configuration-rules.make b/build-0.3/c/configuration-rules.make new file mode 100644 index 0000000..836fa1d --- /dev/null +++ b/build-0.3/c/configuration-rules.make @@ -0,0 +1,19 @@ +# file : build/c/configuration-rules.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(dcf_root)/c/configuration-dynamic.make: | $(dcf_root)/c/. + $(call message,,$(bld_root)/c/configure $@ \ +"$(origin c_pp_options)" \ +"$(origin c_options)" \ +"$(origin c_ld_options)" \ +"$(origin c_libs)") + +ifndef %foreign% + +disfigure:: + $(call message,rm $(dcf_root)/c/configuration-dynamic.make,\ +rm -f $(dcf_root)/c/configuration-dynamic.make) + +endif diff --git a/build-0.3/c/configuration-static.make b/build-0.3/c/configuration-static.make new file mode 100644 index 0000000..d95ebfa --- /dev/null +++ b/build-0.3/c/configuration-static.make @@ -0,0 +1,13 @@ +# file : build/c/configuration-static.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +c_h_suffix := h +c_s_suffix := c + +# Get user-supplied static configuration if any. +# +ifneq ($(bld_root),$(scf_root)) +$(call -include,$(scf_root)/c/configuration-static.make) +endif diff --git a/build-0.3/c/configuration.make b/build-0.3/c/configuration.make new file mode 100644 index 0000000..97da2f0 --- /dev/null +++ b/build-0.3/c/configuration.make @@ -0,0 +1,44 @@ +# file : build/c/configuration.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include-once,$(bld_root)/c/configuration-rules.make,$(dcf_root)) + +# Static configuration. +# +$(call include,$(bld_root)/c/configuration-static.make) + +# Dynamic configuration. +# +c_id := +c_optimize := +c_debug := +c_rpath := + +c_pp_extra_options := +c_extra_options := +c_ld_extra_options := +c_extra_libs := +c_extra_lib_paths := + +$(call -include,$(dcf_root)/c/configuration-dynamic.make) + +ifdef c_id + +$(out_root)/%: c_id := $(c_id) +$(out_root)/%: c_optimize := $(c_optimize) +$(out_root)/%: c_debug := $(c_debug) +$(out_root)/%: c_rpath := $(c_rpath) + +$(out_root)/%: c_pp_extra_options := $(c_pp_extra_options) +$(out_root)/%: c_extra_options := $(c_extra_options) +$(out_root)/%: c_ld_extra_options := $(c_ld_extra_options) +$(out_root)/%: c_extra_libs := $(c_extra_libs) +$(out_root)/%: c_extra_lib_paths := $(c_extra_lib_paths) + +else + +.NOTPARALLEL: + +endif diff --git a/build-0.3/c/configure b/build-0.3/c/configure new file mode 100755 index 0000000..6281fa2 --- /dev/null +++ b/build-0.3/c/configure @@ -0,0 +1,166 @@ +#! /usr/bin/env bash + +# file : build/c/configure +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +# $1 out file +# $2 origin of the c_pp_options make variable +# $3 origin of the c_options make variable +# $4 origin of the c_ld_options make variable +# $5 origin of the c_libs make variable +# +# bld_root - build root +# project_name - project name +# + +source $bld_root/dialog.bash + +$echo +$echo +$echo "configuring '$project_name'" +$echo +$echo + +$echo +$echo "Please select the C compiler you would like to use:" +$echo +$echo "(1) GNU C (gcc)" +$echo "(2) Intel C (icc)" +$echo "(3) Other C compiler" +$echo + +id=`read_option "gnu intel generic" "gnu"` + +if [ "$id" != "generic" ]; then + + $echo + $echo "Would you like the C compiler to optimize generated code?" + $echo + + optimize=`read_y_n y` + + + $echo + $echo "Would you like the C compiler to generate debug information?" + $echo + + debug=`read_y_n y` + + $echo + $echo "Embed dynamic library paths into executables (rpath)?" + $echo + + rpath=`read_y_n y` + +fi + +# pp_options +# +if [ "$2" != "undefined" ]; then + + pp_options=$c_pp_options + + if [ "$pp_options" ]; then + $echo + $echo "Extra C preprocessor options: $pp_options" + $echo + fi +else + + $echo + $echo "Please enter any extra C preprocessor options." + $echo + + read -e -p "[]: " pp_options +fi + + +# options +# +if [ "$3" != "undefined" ]; then + + options=$c_options + + if [ "$options" ]; then + $echo + $echo "Extra C compiler options: $options" + $echo + fi +else + + $echo + $echo "Please enter any extra C compiler options." + $echo + + read -p "[]: " options +fi + + +# ld_options +# +if [ "$4" != "undefined" ]; then + + ld_options=$c_ld_options + + if [ "$ld_options" ]; then + $echo + $echo "Extra C linker options: $ld_options" + $echo + fi +else + + $echo + $echo "Please enter any extra C linker options." + $echo + + read -e -p "[]: " ld_options +fi + + +# libs +# +if [ "$5" != "undefined" ]; then + + libs=$c_libs + + if [ "$libs" ]; then + $echo + $echo "Extra C libraries: $libs" + $echo + fi +else + + $echo + $echo "Please enter any extra C libraries." + $echo + + read -e -p "[]: " libs +fi + + +# Extract -L paths from the ld options. +# +paths= + +if [ "$ld_options" ]; then + paths=`echo "$ld_options" | sed -e 's/-L *\([^ ]*\)/\\ +-L\1\\ +/g' | sed -e 's/^-L\([^ ]*\)$/\1/' -e t -e d` + paths=`echo $paths | sed -e 's/ /:/g'` +fi + +echo "c_id := $id" >$1 + +if [ "$id" != "generic" ]; then + echo "c_optimize := $optimize" >>$1 + echo "c_debug := $debug" >>$1 + echo "c_rpath := $rpath" >>$1 +fi + +echo "c_pp_extra_options := $pp_options" >>$1 +echo "c_extra_options := $options" >>$1 +echo "c_ld_extra_options := $ld_options" >>$1 +echo "c_extra_libs := $libs" >>$1 +echo "c_extra_lib_paths := $paths" >>$1 diff --git a/build-0.3/c/cpp-options.make b/build-0.3/c/cpp-options.make new file mode 100644 index 0000000..8956d41 --- /dev/null +++ b/build-0.3/c/cpp-options.make @@ -0,0 +1,36 @@ +# file : build/c/cpp-options.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(out_base)/%.cpp-options: c-cpp-options-expand-impl = $(if $1,cat $1 >>$2) +$(out_base)/%.cpp-options: c-cpp-options-expand = \ +$(call c-cpp-options-expand-impl,$(filter %.cpp-options,$1),$2) + + +#@@ Asymmetry: I hide creation commands but show removals. +# +$(out_base)/%.cpp-options: c-cpp-options-force-impl = \ +$(if $(subst $1,,$2)$(subst $2,,$1),FORCE) + +$(out_base)/%.cpp-options: c-cpp-options-force = \ +$(call c-cpp-options-force-impl,$(shell if test -f $1; then exec head -n 1 $1; fi),include: $2) + + +# @@ Need to incroporate prefix: into force-check. Then it will probably +# have to be non-optional. +# + +ifeq ($(src_base),$(out_base)) +$(out_base)/%.cpp-options: $$(call c-cpp-options-force,$$@,$$(value)) +else +$(out_base)/%.cpp-options: $$(call c-cpp-options-force,$$@,$$(value)) | $$(dir $$@). +endif + @echo "include: $(value)" >$@ + $(if $(strip $(prefix)),@echo "prefix: $(prefix)" >>$@) + @$(call c-cpp-options-expand,$^,$@) + +# Clean. +# +$(out_base)/%.cpp-options.clean: + $(call message,rm $(basename $@),rm -f $(basename $@)) diff --git a/build-0.3/c/generic/c-d.make b/build-0.3/c/generic/c-d.make new file mode 100644 index 0000000..8f77d50 --- /dev/null +++ b/build-0.3/c/generic/c-d.make @@ -0,0 +1,19 @@ +# file : build/c/generic/c-o.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include,$(bld_root)/c/generic/configuration.make) + +# Make will try to build dependecies (since they are ultimately included +# files) during configuartion phase without c_generic being discovered +# yet. This is also why dependecies should be included with -include. +# +ifdef c_generic + +.PHONY: $(out_base)/%.o.d.$(c_s_suffix).clean + +$(out_base)/%.o.d.$(c_s_suffix).clean: + @: + +endif diff --git a/build-0.3/c/generic/c-o.make b/build-0.3/c/generic/c-o.make new file mode 100644 index 0000000..7b6e622 --- /dev/null +++ b/build-0.3/c/generic/c-o.make @@ -0,0 +1,40 @@ +# file : build/c/generic/c-o.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include-once,$(bld_root)/c/cpp-options.make,$(out_base)) +$(call include,$(bld_root)/c/generic/configuration.make) + +$(out_base)/%.o: c := $(c_generic) + +#@@ wrong prefix +# +$(out_base)/%.o: expand-cpp-options-impl = \ +$(if $1,$(shell sed -e 's%include: \(.*\)%\1%' -e t -e d $1)) + +$(out_base)/%.o: expand-cpp-options = \ +$(call expand-cpp-options-impl,$(filter %.cpp-options,$1)) + +ifeq ($(out_base),$(src_base)) +$(out_base)/%.o: $(src_base)/%.$(c_s_suffix) +else +$(out_base)/%.o: $(src_base)/%.$(c_s_suffix) | $$(dir $$@). +endif + $(call message,c $<,$(c) \ +$(cpp_options) $(call expand-cpp-options,$^) $(c_pp_extra_options) \ +$(c_options) $(c_pic_options) $(c_extra_options) -o $@ -c $<) + +ifneq ($(out_base),$(src_base)) + +$(out_base)/%.o: $(out_base)/%.$(c_s_suffix) | $$(dir $$@). + $(call message,c $<,$(c) \ +$(cpp_options) $(call expand-cpp-options,$^) $(c_pp_extra_options) \ +$(c_options) $(c_pic_options) $(c_extra_options) -o $@ -c $<) + +endif + +.PHONY: $(out_base)/%.o.$(c_s_suffix).clean + +$(out_base)/%.o.$(c_s_suffix).clean: + $(call message,rm $$1,rm -f $$1,$(basename $(basename $@))) diff --git a/build-0.3/c/generic/configuration-rules.make b/build-0.3/c/generic/configuration-rules.make new file mode 100644 index 0000000..5fa9117 --- /dev/null +++ b/build-0.3/c/generic/configuration-rules.make @@ -0,0 +1,15 @@ +# file : build/c/generic/configuration-rules.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(dcf_root)/c/generic/configuration-dynamic.make: | $(dcf_root)/c/generic/. + $(call message,,$(bld_root)/c/generic/configure $@) + +ifndef %foreign% + +disfigure:: + $(call message,rm $(dcf_root)/c/generic/configuration-dynamic.make,\ +rm -f $(dcf_root)/c/generic/configuration-dynamic.make) + +endif diff --git a/build-0.3/c/generic/configuration-sl-rules.make b/build-0.3/c/generic/configuration-sl-rules.make new file mode 100644 index 0000000..e685be6 --- /dev/null +++ b/build-0.3/c/generic/configuration-sl-rules.make @@ -0,0 +1,15 @@ +# file : build/c/generic/configuration-sl-rules.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(dcf_root)/c/generic/configuration-sl-dynamic.make: | $(dcf_root)/c/generic/. + $(call message,,$(bld_root)/c/generic/configure-sl $@) + +ifndef %foreign% + +disfigure:: + $(call message,rm $(dcf_root)/c/generic/configuration-sl-dynamic.make,\ +rm -f $(dcf_root)/c/generic/configuration-sl-dynamic.make) + +endif diff --git a/build-0.3/c/generic/configuration-sl.make b/build-0.3/c/generic/configuration-sl.make new file mode 100644 index 0000000..b3a18a8 --- /dev/null +++ b/build-0.3/c/generic/configuration-sl.make @@ -0,0 +1,21 @@ +# file : build/c/generic/configuration-sl.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include-once,$(bld_root)/c/generic/configuration-sl-rules.make,$(dcf_root)) + +# Dynamic configuration. +# +c_generic_pic_option := + +$(call -include,$(dcf_root)/c/generic/configuration-sl-dynamic.make) + +ifdef c_generic_pic_option + +$(out_root)/%: c_generic_pic_option := $(c_generic_pic_option) +$(out_root)/%: c_generic_shared_option := $(c_generic_shared_option) + +else +.NOTPARALLEL: +endif diff --git a/build-0.3/c/generic/configuration.make b/build-0.3/c/generic/configuration.make new file mode 100644 index 0000000..95e79f8 --- /dev/null +++ b/build-0.3/c/generic/configuration.make @@ -0,0 +1,22 @@ +# file : build/c/generic/configuration.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include-once,$(bld_root)/c/generic/configuration-rules.make,$(dcf_root)) + +# Static configuration. +# +ifneq ($(bld_root),$(scf_root)) +$(call -include,$(scf_root)/c/generic/configuration-static.make) +endif + +# Dynamic configuration. +# +c_generic := + +$(call -include,$(dcf_root)/c/generic/configuration-dynamic.make) + +ifndef c_generic +.NOTPARALLEL: +endif diff --git a/build-0.3/c/generic/configure b/build-0.3/c/generic/configure new file mode 100755 index 0000000..76be8df --- /dev/null +++ b/build-0.3/c/generic/configure @@ -0,0 +1,28 @@ +#! /usr/bin/env bash + +# file : build/c/generic/configure +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +# $1 out file +# +# bld_root - build root +# project_name - project name +# + +source $bld_root/dialog.bash + +$echo +$echo +$echo "configuring '$project_name'" +$echo +$echo + +$echo +$echo "Please enter the C compiler executable you would like to use." +$echo + +c_generic=`read_path --command` + +echo "c_generic := $c_generic" > $1 diff --git a/build-0.3/c/generic/configure-sl b/build-0.3/c/generic/configure-sl new file mode 100755 index 0000000..5500e8b --- /dev/null +++ b/build-0.3/c/generic/configure-sl @@ -0,0 +1,37 @@ +#! /usr/bin/env bash + +# file : build/c/generic/configure-sl +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +# $1 out file +# +# bld_root - build root +# project_name - project name +# + +source $bld_root/dialog.bash + +$echo +$echo +$echo "configuring '$project_name'" +$echo +$echo + +$echo +$echo "Please enter C compiler option(s) used to build position-" +$echo "independent code (e.g., -fPIC, -Kpic, etc)." +$echo + +read -e -p "[]: " pic_option + +$echo +$echo "Please enter C compiler option(s) used to build shared" +$echo "libraries (e.g., -shared, -G, etc)." +$echo + +read -e -p "[]: " shared_option + +echo "c_generic_pic_option := $pic_option" > $1 +echo "c_generic_shared_option := $shared_option" >> $1 diff --git a/build-0.3/c/generic/o-e.make b/build-0.3/c/generic/o-e.make new file mode 100644 index 0000000..4a88a0f --- /dev/null +++ b/build-0.3/c/generic/o-e.make @@ -0,0 +1,28 @@ +# file : build/c/generic/o-e.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include,$(bld_root)/c/generic/configuration.make) + +ifneq ($(c_extra_lib_paths),) +vpath %.so $(c_extra_lib_paths) +vpath %.a $(c_extra_lib_paths) +endif + +$(out_base)/%: ld := $(c_generic) +$(out_base)/%: expand-l = $(shell sed -e 's%^rpath:\(.*\)%%' $1) + +ifeq ($(out_base),$(src_base)) +$(out_base)/%: $(out_base)/%.o +else +$(out_base)/%: $(out_base)/%.o | $$(dir $$@). +endif + $(call message,ld $@,$(ld) \ +$(c_extra_options) $(ld_options) $(c_ld_extra_options) -o $@ \ +$(foreach f,$^,$(if $(patsubst %.l,,$f),$f,$(call expand-l,$f))) $(c_extra_libs)) + +.PHONY: $(out_base)/%.o.clean + +$(out_base)/%.o.clean: + $(call message,rm $(basename $(basename $@)),rm -f $(basename $@) $(basename $(basename $@))) diff --git a/build-0.3/c/generic/o-l.make b/build-0.3/c/generic/o-l.make new file mode 100644 index 0000000..cee21af --- /dev/null +++ b/build-0.3/c/generic/o-l.make @@ -0,0 +1,64 @@ +# file : build/c/generic/o-l.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include,$(bld_root)/c/generic/configuration.make) + +ifeq ($(ld_lib_type),shared) +$(call include,$(bld_root)/c/generic/configuration-sl.make) +endif + +ifneq ($(c_extra_lib_paths),) +vpath %.so $(c_extra_lib_paths) +vpath %.a $(c_extra_lib_paths) +endif + +ifdef ld_lib_type + +.PHONY: $(out_base)/%.l.o.clean + +ifeq ($(ld_lib_type),archive) + +$(out_base)/%.l: ar := $(ld_lib_ar) +$(out_base)/%.l: ar_options ?= -rc + +$(out_base)/%.l: ranlib := $(ld_lib_ranlib) +$(out_base)/%.l: ranlib_options ?= + +ifeq ($(out_base),$(src_base)) +$(out_base)/%.l: +else +$(out_base)/%.l: | $$(dir $$@). +endif + $(call message,ar $@,$(ar) $(ar_options) $(@D)/lib$(basename $(@F)).a $(filter %.o,$^)) + $(call message,,$(ranlib) $(ranlib_options) $(@D)/lib$(basename $(@F)).a) + $(call message,,echo "$(@D)/lib$(basename $(@F)).a" >$@) + $(call message,,echo "$(patsubst %.l,`cat %.l`,$(filter %.a %.so %.l,$^))" | xargs -n 1 echo >>$@) + +$(out_base)/%.l.o.clean: + $(call message,rm $$1,rm -f $$1 $(@D)/$(patsubst %.l.o.clean,lib%.a,$(@F)),$(basename $(basename $@))) + +else + +$(out_base)/%.l: ld := $(c_generic) +$(out_base)/%.l: c_pic_options := $(c_generic_pic_option) +$(out_base)/%.l: expand-l = $(shell sed -e 's%^rpath:\(.*\)%%' $1) + +ifeq ($(out_base),$(src_base)) +$(out_base)/%.l: +else +$(out_base)/%.l: | $$(dir $$@). +endif + $(call message,ld $@,$(ld) $(c_generic_shared_option) \ +$(c_extra_options) $(ld_options) $(c_ld_extra_options) -o $(@D)/lib$(basename $(@F)).so \ +$(foreach f,$^,$(if $(patsubst %.l,,$f),$f,$(call expand-l,$f))) $(c_extra_libs)) + $(call message,,echo "$(@D)/lib$(basename $(@F)).so" >$@) + $(call message,,echo "rpath:$(@D)" >>$@) + $(call message,,echo "$(patsubst %.l,`cat %.l`,$(filter %.a %.so %.l,$^))" | xargs -n 1 echo >>$@) + +$(out_base)/%.l.o.clean: + $(call message,rm $$1,rm -f $$1 $(@D)/$(patsubst %.l.o.clean,lib%.so,$(@F)),$(basename $(basename $@))) + +endif +endif diff --git a/build-0.3/c/gnu/c-d.make b/build-0.3/c/gnu/c-d.make new file mode 100644 index 0000000..d7e6c57 --- /dev/null +++ b/build-0.3/c/gnu/c-d.make @@ -0,0 +1,59 @@ +# file : build/c/gnu/c-o.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include-once,$(bld_root)/c/cpp-options.make,$(out_base)) +$(call include,$(bld_root)/c/gnu/configuration.make) + +# Make will try to build dependecies (since they are ultimately included +# files) during configuartion phase without c_gnu being discovered yet. +# This is also why dependecies should be included with -include. +# +ifdef c_gnu + +$(out_base)/%.o.d: c := $(c_gnu) +$(out_base)/%.o.d: cpp_options ?= + +#@@ This needs to be shared with c-o. +# +#@@ wrong prefix +# +$(out_base)/%.o.d: expand-cpp-options-impl = \ +$(if $1,$(shell sed -e 's%include: \(.*\)%\1%' -e t -e d $1)) + +$(out_base)/%.o.d: expand-cpp-options = \ +$(call expand-cpp-options-impl,$(filter %.cpp-options,$1)) + +.PRECIOUS: $(out_base)/%.o.d + +ifeq ($(out_base),$(src_base)) +$(out_base)/%.o.d: $(src_base)/%.$(c_s_suffix) +else +$(out_base)/%.o.d: $(src_base)/%.$(c_s_suffix) | $$(dir $$@). +endif + $(call message,,if test -f $@; then mv $@ $@.old; fi && \ +$(c) $(cpp_options) $(call expand-cpp-options,$^) $(c_pp_extra_options) \ +$(c_extra_options) -M -MG -MP -MQ $@ -MQ $(basename $@) $< | \ +$(bld_root)/c/gnu/dep $(out_base) $(filter %.cpp-options,$^) >$@ && \ +if test -f $@.old; then if cmp -s $@ $@.old; then rm -f $@.old && false; \ +else rm -f $@.old && true; fi fi) + +ifneq ($(out_base),$(src_base)) + +$(out_base)/%.o.d: $(out_base)/%.$(c_s_suffix) | $$(dir $$@). + $(call message,,if test -f $@; then mv $@ $@.old; fi && \ +$(c) $(cpp_options) $(call expand-cpp-options,$^) $(c_pp_extra_options) \ +$(c_extra_options) -M -MG -MP -MQ $@ -MQ $(basename $@) $< | \ +$(bld_root)/c/gnu/dep $(out_base) $(filter %.cpp-options,$^) >$@ && \ +if test -f $@.old; then if cmp -s $@ $@.old; then rm -f $@.old && false; \ +else rm -f $@.old && true; fi fi) + +endif + +.PHONY: $(out_base)/%.o.d.$(c_s_suffix).clean + +$(out_base)/%.o.d.$(c_s_suffix).clean: + $(call message,rm $$1,rm -f $$1,$(basename $(basename $@))) + +endif diff --git a/build-0.3/c/gnu/c-o.make b/build-0.3/c/gnu/c-o.make new file mode 100644 index 0000000..9f5ecdd --- /dev/null +++ b/build-0.3/c/gnu/c-o.make @@ -0,0 +1,42 @@ +# file : build/c/gnu/c-o.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include-once,$(bld_root)/c/cpp-options.make,$(out_base)) +$(call include,$(bld_root)/c/gnu/configuration.make) + +$(out_base)/%.o: c := $(c_gnu) +$(out_base)/%.o: c_options := $(c_gnu_optimization_options) $(c_gnu_debugging_options) + +#@@ wrong prefix +# +$(out_base)/%.o: expand-cpp-options-impl = \ +$(if $1,$(shell sed -e 's%include: \(.*\)%\1%' -e t -e d $1)) + +$(out_base)/%.o: expand-cpp-options = \ +$(call expand-cpp-options-impl,$(filter %.cpp-options,$1)) + +ifeq ($(out_base),$(src_base)) +$(out_base)/%.o: $(src_base)/%.$(c_s_suffix) +else +$(out_base)/%.o: $(src_base)/%.$(c_s_suffix) | $$(dir $$@). +endif + $(call message,c $<,$(c) \ +$(cpp_options) $(call expand-cpp-options,$^) $(c_pp_extra_options) $(c_options) \ +$(c_pic_options) $(subst y,-fexceptions,$(filter y,$(c_exceptions))) $(c_extra_options) -o $@ -c $<) + + +ifneq ($(out_base),$(src_base)) + +$(out_base)/%.o: $(out_base)/%.$(c_s_suffix) | $$(dir $$@). + $(call message,c $<,$(c) \ +$(cpp_options) $(call expand-cpp-options,$^) $(c_pp_extra_options) $(c_options) \ +$(c_pic_options) $(subst y,-fexceptions,$(filter y,$(c_exceptions))) $(c_extra_options) -o $@ -c $<) + +endif + +.PHONY: $(out_base)/%.o.$(c_s_suffix).clean + +$(out_base)/%.o.$(c_s_suffix).clean: + $(call message,rm $$1,rm -f $$1,$(basename $(basename $@))) diff --git a/build-0.3/c/gnu/configuration-rules.make b/build-0.3/c/gnu/configuration-rules.make new file mode 100644 index 0000000..478db2d --- /dev/null +++ b/build-0.3/c/gnu/configuration-rules.make @@ -0,0 +1,15 @@ +# file : build/c/gnu/configuration-rules.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(dcf_root)/c/gnu/configuration-dynamic.make: | $(dcf_root)/c/gnu/. + $(call message,,$(bld_root)/c/gnu/configure $@ $(c_optimize)) + +ifndef %foreign% + +disfigure:: + $(call message,rm $(dcf_root)/c/gnu/configuration-dynamic.make,\ +rm -f $(dcf_root)/c/gnu/configuration-dynamic.make) + +endif diff --git a/build-0.3/c/gnu/configuration-static.make b/build-0.3/c/gnu/configuration-static.make new file mode 100644 index 0000000..eb00863 --- /dev/null +++ b/build-0.3/c/gnu/configuration-static.make @@ -0,0 +1,4 @@ +# file : build/c/gnu/configuration-static.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file diff --git a/build-0.3/c/gnu/configuration.make b/build-0.3/c/gnu/configuration.make new file mode 100644 index 0000000..c2e4a32 --- /dev/null +++ b/build-0.3/c/gnu/configuration.make @@ -0,0 +1,34 @@ +# file : build/c/gnu/configuration.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include-once,$(bld_root)/c/gnu/configuration-rules.make,$(dcf_root)) + +# Static configuration. +# +$(call include,$(bld_root)/c/gnu/configuration-static.make) + +ifneq ($(bld_root),$(scf_root)) +$(call -include,$(scf_root)/c/gnu/configuration-static.make) +endif + +# Dynamic configuration. +# +c_gnu := +c_gnu_optimization_options := + +$(call -include,$(dcf_root)/c/gnu/configuration-dynamic.make) + +ifdef c_gnu + +c_gnu_debugging_options := $(if $(findstring y,$(c_debug)),-g) + +$(out_root)/%: c_gnu_debugging_options := $(c_gnu_debugging_options) +$(out_root)/%: c_gnu_optimization_options := $(c_gnu_optimization_options) + +else + +.NOTPARALLEL: + +endif diff --git a/build-0.3/c/gnu/configure b/build-0.3/c/gnu/configure new file mode 100755 index 0000000..5695ba4 --- /dev/null +++ b/build-0.3/c/gnu/configure @@ -0,0 +1,55 @@ +#! /usr/bin/env bash + +# file : build/c/gnu/configure +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +# $1 out file +# $2 optimize (y/n) +# +# bld_root - build root +# project_name - project name +# + + +source $bld_root/dialog.bash + +$echo +$echo +$echo "configuring '$project_name'" +$echo +$echo + +$echo +$echo "Please enter the gcc binary you would like to use, for example 'gcc-3.4'," +$echo "'/usr/local/bin/gcc' or 'distcc gcc'." +$echo + +c_gnu=`read_path --command gcc` +c_gnu_libraries=`$c_gnu -print-search-dirs | sed -e 's/libraries: =//p' -e d` + + +optimization= + +if [ "$2" == "y" ]; then + + $echo + $echo "Please select the optimization level you would like to use:" + $echo + $echo "(1) -O1 [Tries to reduce code size and execution time, without" + $echo " performing any optimizations that take a great deal of" + $echo " compilation time.]" + $echo "(2) -O2 [Performs nearly all supported optimizations that do not" + $echo " involve a space-speed tradeoff.]" + $echo "(3) -O3 [Optimize even more.]" + $echo "(4) -Os [Optimize for size.]" + $echo + + optimization=`read_option "-O1 -O2 -O3 -Os" "-O2"` + +fi + +echo "c_gnu := $c_gnu" > $1 +echo "c_gnu_libraries := $c_gnu_libraries" >> $1 +echo "c_gnu_optimization_options := $optimization" >> $1 diff --git a/build-0.3/c/gnu/dep b/build-0.3/c/gnu/dep new file mode 100755 index 0000000..1286ce2 --- /dev/null +++ b/build-0.3/c/gnu/dep @@ -0,0 +1,58 @@ +#! /usr/bin/env bash + +# file : build/c/gnu/dep +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +# Post-process generated dependency information. +# +# $1 current project's $(out_base) +# $2 - $N optional .cpp-options files + +out_base=$1 +shift + +files=$* + +#echo $out_base +#echo $files + +script= + +function gen_script () +{ + while [ "$1" ]; do + prefix=$1 + shift + + path=$1 + shift + + # Besides unresolved paths also replace default installation + # targets (/usr/include and /usr/local/include). + # + script="$script"\ +"s \\ $prefix \\ $path$prefix g;"\ +"s \\ /usr/include/$prefix \\ $path$prefix g;"\ +"s \\ /usr/local/include/$prefix \\ $path$prefix g;"\ +"s ^$prefix $path$prefix ;"\ +"s ^/usr/include/$prefix $path$prefix ;"\ +"s ^/usr/local/include/$prefix $path$prefix ;" + done +} + +if [ "$files" ]; then + prefixes=`sed -e 's%^prefix: \(.*\)$%\1%' -e t -e d $files` + gen_script $prefixes +fi + +# The last part of the script translates all file names that don't start +# with / or . (that is, local generated files) to files in $out_base. Note +# that it is assumed that such files are never installed and therefore there +# is no way to get around the situation where this file is picket up from +# some other place (e.g., /usr/include). +# +epilogue="s% \([^/. \\\\]\)% $out_base/\1%g;s%^\([^/. ].*:\)%$out_base/\1%" + +exec sed -e "$script$epilogue" diff --git a/build-0.3/c/gnu/o-e.make b/build-0.3/c/gnu/o-e.make new file mode 100644 index 0000000..a1da582 --- /dev/null +++ b/build-0.3/c/gnu/o-e.make @@ -0,0 +1,40 @@ +# file : build/c/gnu/o-e.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include,$(bld_root)/c/gnu/configuration.make) + +#@@ should it be lib%.so? +# +ifneq ($(c_extra_lib_paths),) +vpath %.so $(c_extra_lib_paths) +vpath %.a $(c_extra_lib_paths) +endif + +ifneq ($(c_gnu_libraries),) +vpath %.so $(c_gnu_libraries) +vpath %.a $(c_gnu_libraries) +endif + +$(out_base)/%: ld := $(c_gnu) +$(out_base)/%: ld_options := $(c_gnu_optimization_options) $(c_gnu_debugging_options) $(c_ld_extra_options) + +$(out_base)/%: expand-l = $(if $(subst n,,$(c_rpath)),\ +$(shell sed -e 's%^rpath:\(.*\)%-Wl,-rpath,\1%' $1),\ +$(shell sed -e 's%^rpath:\(.*\)%%' $1)) + +ifeq ($(out_base),$(src_base)) +$(out_base)/%: $(out_base)/%.o +else +$(out_base)/%: $(out_base)/%.o | $$(dir $$@). +endif + $(call message,ld $@,$(ld) \ +$(c_extra_options) $(ld_options) $(c_ld_extra_options) -o $@ \ +$(foreach f,$^,$(if $(patsubst %.l,,$f),$f,$(call expand-l,$f))) $(c_extra_libs)) + + +.PHONY: $(out_base)/%.o.clean + +$(out_base)/%.o.clean: + $(call message,rm $(basename $(basename $@)),rm -f $(basename $@) $(basename $(basename $@))) diff --git a/build-0.3/c/gnu/o-l.make b/build-0.3/c/gnu/o-l.make new file mode 100644 index 0000000..5e66650 --- /dev/null +++ b/build-0.3/c/gnu/o-l.make @@ -0,0 +1,71 @@ +# file : build/c/gnu/o-l.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include,$(bld_root)/c/gnu/configuration.make) + +ifneq ($(c_extra_lib_paths),) +vpath %.so $(c_extra_lib_paths) +vpath %.a $(c_extra_lib_paths) +endif + +ifneq ($(c_gnu_libraries),) +vpath %.so $(c_gnu_libraries) +vpath %.a $(c_gnu_libraries) +endif + +ifdef ld_lib_type + +.PHONY: $(out_base)/%.l.o.clean + +ifeq ($(ld_lib_type),archive) + +$(out_base)/%.l: ar := $(ld_lib_ar) +$(out_base)/%.l: ar_options ?= -rc + +$(out_base)/%.l: ranlib := $(ld_lib_ranlib) +$(out_base)/%.l: ranlib_options ?= + +ifeq ($(out_base),$(src_base)) +$(out_base)/%.l: +else +$(out_base)/%.l: | $$(dir $$@). +endif + $(call message,ar $@,$(ar) $(ar_options) $(@D)/lib$(basename $(@F)).a $(filter %.o,$^)) + $(call message,,$(ranlib) $(ranlib_options) $(@D)/lib$(basename $(@F)).a) + $(call message,,echo "$(@D)/lib$(basename $(@F)).a" >$@) + $(call message,,echo "$(patsubst %.l,`cat %.l`,$(filter %.a %.so %.l,$^))" | xargs -n 1 echo >>$@) + +$(out_base)/%.l.o.clean: + $(call message,rm $$1,rm -f $$1 $(@D)/$(patsubst %.l.o.clean,lib%.a,$(@F)),$(basename $(basename $@))) + +else + +$(out_base)/%.l: ld := $(c_gnu) +$(out_base)/%.l: ld_options := $(c_gnu_optimization_options) $(c_gnu_debugging_options) +$(out_base)/%.l: c_pic_options := -fPIC +$(out_base)/%.l: comma_ := , + +$(out_base)/%.l: expand-l = $(if $(subst n,,$(c_rpath)),\ +$(shell sed -e 's%^rpath:\(.*\)%-Wl,-rpath,\1%' $1),\ +$(shell sed -e 's%^rpath:\(.*\)%%' $1)) + +ifeq ($(out_base),$(src_base)) +$(out_base)/%.l: +else +$(out_base)/%.l: | $$(dir $$@). +endif + $(call message,ld $@,$(ld) -shared \ +$(c_extra_options) $(ld_options) $(c_ld_extra_options) \ +-o $(@D)/lib$(basename $(@F)).so -Wl$(comma_)-soname=lib$(basename $(@F)).so \ +$(foreach f,$^,$(if $(patsubst %.l,,$f),$f,$(call expand-l,$f))) $(c_extra_libs)) + $(call message,,echo "$(@D)/lib$(basename $(@F)).so" >$@) + $(call message,,echo "rpath:$(@D)" >>$@) + $(call message,,echo "$(patsubst %.l,`cat %.l`,$(filter %.a %.so %.l,$^))" | xargs -n 1 echo >>$@) + +$(out_base)/%.l.o.clean: + $(call message,rm $$1,rm -f $$1 $(@D)/$(patsubst %.l.o.clean,lib%.so,$(@F)),$(basename $(basename $@))) + +endif +endif diff --git a/build-0.3/c/intel/c-d.make b/build-0.3/c/intel/c-d.make new file mode 100644 index 0000000..aa6a559 --- /dev/null +++ b/build-0.3/c/intel/c-d.make @@ -0,0 +1,59 @@ +# file : build/c/intel/c-o.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include-once,$(bld_root)/c/cpp-options.make,$(out_base)) +$(call include,$(bld_root)/c/intel/configuration.make) + +# Make will try to build dependecies (since they are ultimately included +# files) during configuartion phase without c_intel being discovered yet. +# This is also why dependecies should be included with -include. +# +ifdef c_intel + +$(out_base)/%.o.d: c := $(c_intel) +$(out_base)/%.o.d: cpp_options ?= + +#@@ This needs to be shared with c-o. +# +#@@ wrong prefix +# +$(out_base)/%.o.d: expand-cpp-options-impl = \ +$(if $1,$(shell sed -e 's%include: \(.*\)%\1%' -e t -e d $1)) + +$(out_base)/%.o.d: expand-cpp-options = \ +$(call expand-cpp-options-impl,$(filter %.cpp-options,$1)) + +.PRECIOUS: $(out_base)/%.o.d + +ifeq ($(out_base),$(src_base)) +$(out_base)/%.o.d: $(src_base)/%.$(c_s_suffix) +else +$(out_base)/%.o.d: $(src_base)/%.$(c_s_suffix) | $$(dir $$@). +endif + $(call message,,if test -f $@; then mv $@ $@.old; fi && \ +$(c) $(cpp_options) $(call expand-cpp-options,$^) $(c_pp_extra_options) \ +$(c_extra_options) -M -MG -MP -MQ $@ -MQ $(basename $@) $< | \ +$(bld_root)/c/intel/dep $(out_base) $(filter %.cpp-options,$^) >$@ && \ +if test -f $@.old; then if cmp -s $@ $@.old; then rm -f $@.old && false; \ +else rm -f $@.old && true; fi fi) + +ifneq ($(out_base),$(src_base)) + +$(out_base)/%.o.d: $(out_base)/%.$(c_s_suffix) | $$(dir $$@). + $(call message,,if test -f $@; then mv $@ $@.old; fi && \ +$(c) $(cpp_options) $(call expand-cpp-options,$^) $(c_pp_extra_options) \ +$(c_extra_options) -M -MG -MP -MQ $@ -MQ $(basename $@) $< | \ +$(bld_root)/c/intel/dep $(out_base) $(filter %.cpp-options,$^) >$@ && \ +if test -f $@.old; then if cmp -s $@ $@.old; then rm -f $@.old && false; \ +else rm -f $@.old && true; fi fi) + +endif + +.PHONY: $(out_base)/%.o.d.$(c_s_suffix).clean + +$(out_base)/%.o.d.$(c_s_suffix).clean: + $(call message,rm $$1,rm -f $$1,$(basename $(basename $@))) + +endif diff --git a/build-0.3/c/intel/c-o.make b/build-0.3/c/intel/c-o.make new file mode 100644 index 0000000..3e359aa --- /dev/null +++ b/build-0.3/c/intel/c-o.make @@ -0,0 +1,41 @@ +# file : build/c/intel/c-o.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include-once,$(bld_root)/c/cpp-options.make,$(out_base)) +$(call include,$(bld_root)/c/intel/configuration.make) + +$(out_base)/%.o: c := $(c_intel) +$(out_base)/%.o: c_options := $(c_intel_optimization_options) $(c_intel_debugging_options) + +#@@ wrong prefix +# +$(out_base)/%.o: expand-cpp-options-impl = \ +$(if $1,$(shell sed -e 's%include: \(.*\)%\1%' -e t -e d $1)) + +$(out_base)/%.o: expand-cpp-options = \ +$(call expand-cpp-options-impl,$(filter %.cpp-options,$1)) + +ifeq ($(out_base),$(src_base)) +$(out_base)/%.o: $(src_base)/%.$(c_s_suffix) +else +$(out_base)/%.o: $(src_base)/%.$(c_s_suffix) | $$(dir $$@). +endif + $(call message,c $<,$(c) \ +$(cpp_options) $(call expand-cpp-options,$^) $(c_pp_extra_options) $(c_options) \ +$(c_pic_options) $(subst y,-fexceptions,$(filter y,$(c_exceptions))) $(c_extra_options) -o $@ -c $<) + +ifneq ($(out_base),$(src_base)) + +$(out_base)/%.o: $(out_base)/%.$(c_s_suffix) | $$(dir $$@). + $(call message,c $<,$(c) \ +$(cpp_options) $(call expand-cpp-options,$^) $(c_pp_extra_options) $(c_options) \ +$(c_pic_options) $(subst y,-fexceptions,$(filter y,$(c_exceptions))) $(c_extra_options) -o $@ -c $<) + +endif + +.PHONY: $(out_base)/%.o.$(c_s_suffix).clean + +$(out_base)/%.o.$(c_s_suffix).clean: + $(call message,rm $$1,rm -f $$1,$(basename $(basename $@))) diff --git a/build-0.3/c/intel/configuration-rules.make b/build-0.3/c/intel/configuration-rules.make new file mode 100644 index 0000000..e464e00 --- /dev/null +++ b/build-0.3/c/intel/configuration-rules.make @@ -0,0 +1,15 @@ +# file : build/c/intel/configuration-rules.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(dcf_root)/c/intel/configuration-dynamic.make: | $(dcf_root)/c/intel/. + $(call message,,$(bld_root)/c/intel/configure $@ $(c_optimize)) + +ifndef %foreign% + +disfigure:: + $(call message,rm $(dcf_root)/c/intel/configuration-dynamic.make,\ +rm -f $(dcf_root)/c/intel/configuration-dynamic.make) + +endif diff --git a/build-0.3/c/intel/configuration-static.make b/build-0.3/c/intel/configuration-static.make new file mode 100644 index 0000000..29f44b1 --- /dev/null +++ b/build-0.3/c/intel/configuration-static.make @@ -0,0 +1,4 @@ +# file : build/c/intel/configuration-static.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file diff --git a/build-0.3/c/intel/configuration.make b/build-0.3/c/intel/configuration.make new file mode 100644 index 0000000..5e3e38f --- /dev/null +++ b/build-0.3/c/intel/configuration.make @@ -0,0 +1,34 @@ +# file : build/c/intel/configuration.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include-once,$(bld_root)/c/intel/configuration-rules.make,$(dcf_root)) + +# Static configuration. +# +$(call include,$(bld_root)/c/intel/configuration-static.make) + +ifneq ($(bld_root),$(scf_root)) +$(call -include,$(scf_root)/c/intel/configuration-static.make) +endif + +# Dynamic configuration. +# +c_intel := +c_intel_optimization_options := + +$(call -include,$(dcf_root)/c/intel/configuration-dynamic.make) + +ifdef c_intel + +c_intel_debugging_options := $(if $(findstring y,$(c_debug)),-g) + +$(out_root)/%: c_intel_debugging_options := $(c_intel_debugging_options) +$(out_root)/%: c_intel_optimization_options := $(c_intel_optimization_options) + +else + +.NOTPARALLEL: + +endif diff --git a/build-0.3/c/intel/configure b/build-0.3/c/intel/configure new file mode 100755 index 0000000..0d1382d --- /dev/null +++ b/build-0.3/c/intel/configure @@ -0,0 +1,52 @@ +#! /usr/bin/env bash + +# file : build/c/intel/configure +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +# $1 out file +# $2 optimize (y/n) +# +# bld_root - build root +# project_name - project name +# + + +source $bld_root/dialog.bash + +$echo +$echo +$echo "configuring '$project_name'" +$echo +$echo + +$echo +$echo "Please enter the icc binary you would like to use, for example " +$echo "'/opt/intel_cc_80/bin/icc'." +$echo + +c_intel=`read_path --command icc` +c_intel_libraries=`$c_intel -print-search-dirs | sed -e 's/libraries: =//p' -e d` + +# Intel optimizes by default. +# +optimization=-O0 + +if [ "$2" == "y" ]; then + + $echo + $echo "Please select the optimization level you would like to use:" + $echo + $echo "(1) -O1 [Enable optimizations.]" + $echo "(2) -O2 [Same as -O1.]" + $echo "(3) -O3 [As -O2 plus more aggressive optimizations that may not" + $echo " improve performance for all programs.]" + $echo + + optimization=`read_option "-O1 -O2 -O3" "-O2"` +fi + +echo "c_intel := $c_intel" > $1 +echo "c_intel_libraries := $c_intel_libraries" >> $1 +echo "c_intel_optimization_options := $optimization" >> $1 diff --git a/build-0.3/c/intel/dep b/build-0.3/c/intel/dep new file mode 100755 index 0000000..70f3b79 --- /dev/null +++ b/build-0.3/c/intel/dep @@ -0,0 +1,58 @@ +#! /usr/bin/env bash + +# file : build/c/intel/dep +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +# Post-process generated dependency information. +# +# $1 current project's $(out_base) +# $2 - $N optional .cpp-options files + +out_base=$1 +shift + +files=$* + +#echo $out_base +#echo $files + +script= + +function gen_script () +{ + while [ "$1" ]; do + prefix=$1 + shift + + path=$1 + shift + + # Besides unresolved paths also replace default installation + # targets (/usr/include and /usr/local/include). + # + script="$script"\ +"s \\ $prefix \\ $path$prefix g;"\ +"s \\ /usr/include/$prefix \\ $path$prefix g;"\ +"s \\ /usr/local/include/$prefix \\ $path$prefix g;"\ +"s ^$prefix $path$prefix ;"\ +"s ^/usr/include/$prefix $path$prefix ;"\ +"s ^/usr/local/include/$prefix $path$prefix ;" + done +} + +if [ "$files" ]; then + prefixes=`sed -e 's%^prefix: \(.*\)$%\1%' -e t -e d $files` + gen_script $prefixes +fi + +# The last part of the script translates all file names that don't start +# with / or . (that is, local generated files) to files in $out_base. Note +# that it is assumed that such files are never installed and therefore there +# is no way to get around the situation where this file is picket up from +# some other place (e.g., /usr/include). +# +epilogue="s% \([^/. \\\\]\)% $out_base/\1%g;s%^\([^/. ].*:\)%$out_base/\1%" + +exec sed -e "$script$epilogue" diff --git a/build-0.3/c/intel/o-e.make b/build-0.3/c/intel/o-e.make new file mode 100644 index 0000000..7442637 --- /dev/null +++ b/build-0.3/c/intel/o-e.make @@ -0,0 +1,39 @@ +# file : build/c/intel/o-e.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include,$(bld_root)/c/intel/configuration.make) + +#@@ should it be lib%.so? +# +ifneq ($(c_extra_lib_paths),) +vpath %.so $(c_extra_lib_paths) +vpath %.a $(c_extra_lib_paths) +endif + +ifneq ($(c_intel_libraries),) +vpath %.so $(c_intel_libraries) +vpath %.a $(c_intel_libraries) +endif + +$(out_base)/%: ld := $(c_intel) +$(out_base)/%: ld_options := $(c_intel_optimization_options) $(c_intel_debugging_options) $(c_ld_extra_options) + +$(out_base)/%: expand-l = $(if $(subst n,,$(c_rpath)),\ +$(shell sed -e 's%^rpath:\(.*\)%-Wl,-rpath,\1%' $1),\ +$(shell sed -e 's%^rpath:\(.*\)%%' $1)) + +ifeq ($(out_base),$(src_base)) +$(out_base)/%: $(out_base)/%.o +else +$(out_base)/%: $(out_base)/%.o | $$(dir $$@). +endif + $(call message,ld $@,$(ld) \ +$(c_extra_options) $(ld_options) $(c_ld_extra_options) -o $@ \ +$(foreach f,$^,$(if $(patsubst %.l,,$f),$f,$(call expand-l,$f))) $(c_extra_libs)) + +.PHONY: $(out_base)/%.o.clean + +$(out_base)/%.o.clean: + $(call message,rm $(basename $(basename $@)),rm -f $(basename $@) $(basename $(basename $@))) diff --git a/build-0.3/c/intel/o-l.make b/build-0.3/c/intel/o-l.make new file mode 100644 index 0000000..818a4ca --- /dev/null +++ b/build-0.3/c/intel/o-l.make @@ -0,0 +1,71 @@ +# file : build/c/intel/o-l.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include,$(bld_root)/c/intel/configuration.make) + +ifneq ($(c_extra_lib_paths),) +vpath %.so $(c_extra_lib_paths) +vpath %.a $(c_extra_lib_paths) +endif + +ifneq ($(c_intel_libraries),) +vpath %.so $(c_intel_libraries) +vpath %.a $(c_intel_libraries) +endif + +ifdef ld_lib_type + +.PHONY: $(out_base)/%.l.o.clean + +ifeq ($(ld_lib_type),archive) + +$(out_base)/%.l: ar := $(ld_lib_ar) +$(out_base)/%.l: ar_options ?= -rc + +$(out_base)/%.l: ranlib := $(ld_lib_ranlib) +$(out_base)/%.l: ranlib_options ?= + +ifeq ($(out_base),$(src_base)) +$(out_base)/%.l: +else +$(out_base)/%.l: | $$(dir $$@). +endif + $(call message,ar $@,$(ar) $(ar_options) $(@D)/lib$(basename $(@F)).a $(filter %.o,$^)) + $(call message,,$(ranlib) $(ranlib_options) $(@D)/lib$(basename $(@F)).a) + $(call message,,echo "$(@D)/lib$(basename $(@F)).a" >$@) + $(call message,,echo "$(patsubst %.l,`cat %.l`,$(filter %.a %.so %.l,$^))" | xargs -n 1 echo >>$@) + +$(out_base)/%.l.o.clean: + $(call message,rm $$1,rm -f $$1 $(@D)/$(patsubst %.l.o.clean,lib%.a,$(@F)),$(basename $(basename $@))) + +else + +$(out_base)/%.l: ld := $(c_intel) +$(out_base)/%.l: ld_options := $(c_intel_optimization_options) $(c_intel_debugging_options) +$(out_base)/%.l: c_pic_options := -fPIC +$(out_base)/%.l: comma_ := , + +$(out_base)/%.l: expand-l = $(if $(subst n,,$(c_rpath)),\ +$(shell sed -e 's%^rpath:\(.*\)%-Wl,-rpath,\1%' $1),\ +$(shell sed -e 's%^rpath:\(.*\)%%' $1)) + +ifeq ($(out_base),$(src_base)) +$(out_base)/%.l: +else +$(out_base)/%.l: | $$(dir $$@). +endif + $(call message,ld $@,$(ld) -shared \ +$(c_extra_options) $(ld_options) $(c_ld_extra_options) \ +-o $(@D)/lib$(basename $(@F)).so -Wl$(comma_)-soname=lib$(basename $(@F)).so \ +$(foreach f,$^,$(if $(patsubst %.l,,$f),$f,$(call expand-l,$f))) $(c_extra_libs)) + $(call message,,echo "$(@D)/lib$(basename $(@F)).so" >$@) + $(call message,,echo "rpath:$(@D)" >>$@) + $(call message,,echo "$(patsubst %.l,`cat %.l`,$(filter %.a %.so %.l,$^))" | xargs -n 1 echo >>$@) + +$(out_base)/%.l.o.clean: + $(call message,rm $$1,rm -f $$1 $(@D)/$(patsubst %.l.o.clean,lib%.so,$(@F)),$(basename $(basename $@))) + +endif +endif diff --git a/build-0.3/c/o-e.make b/build-0.3/c/o-e.make new file mode 100644 index 0000000..10469a4 --- /dev/null +++ b/build-0.3/c/o-e.make @@ -0,0 +1,10 @@ +# file : build/c/o-e.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include,$(bld_root)/c/configuration.make) + +ifdef c_id +$(call include-once,$(bld_root)/c/$(c_id)/o-e.make,$(out_base)) +endif diff --git a/build-0.3/c/o-l.make b/build-0.3/c/o-l.make new file mode 100644 index 0000000..5ee8a0f --- /dev/null +++ b/build-0.3/c/o-l.make @@ -0,0 +1,11 @@ +# file : build/c/o-l.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include,$(bld_root)/ld/configuration-lib.make) +$(call include,$(bld_root)/c/configuration.make) + +ifdef c_id +$(call include-once,$(bld_root)/c/$(c_id)/o-l.make,$(out_base)) +endif diff --git a/build-0.3/clean.make b/build-0.3/clean.make new file mode 100644 index 0000000..0cea632 --- /dev/null +++ b/build-0.3/clean.make @@ -0,0 +1,17 @@ +# file : build/clean.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +#@@ Maybe create file aliases.make for standard aliases +# plus check for interactivity? What if some targets +# are not defined? +# + +ifdef %interactive% + +.PHONY: clean + +clean: $(out_base)/.clean + +endif diff --git a/build-0.3/configuration-static.make b/build-0.3/configuration-static.make new file mode 100644 index 0000000..3e8b727 --- /dev/null +++ b/build-0.3/configuration-static.make @@ -0,0 +1,9 @@ +# file : build/configuration-static.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +# Name of the target that cleans absolutely everything. Used as +# a prerequisite of `disfigure' target. +# +build_absolute_clean_target := clean diff --git a/build-0.3/cxx/configuration-rules.make b/build-0.3/cxx/configuration-rules.make new file mode 100644 index 0000000..354791e --- /dev/null +++ b/build-0.3/cxx/configuration-rules.make @@ -0,0 +1,19 @@ +# file : build/cxx/configuration-rules.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(dcf_root)/cxx/configuration-dynamic.make: | $(dcf_root)/cxx/. + $(call message,,$(bld_root)/cxx/configure $@ \ +"$(origin cxx_pp_options)" \ +"$(origin cxx_options)" \ +"$(origin cxx_ld_options)" \ +"$(origin cxx_libs)") + +ifndef %foreign% + +disfigure:: + $(call message,rm $(dcf_root)/cxx/configuration-dynamic.make,\ +rm -f $(dcf_root)/cxx/configuration-dynamic.make) + +endif diff --git a/build-0.3/cxx/configuration-static.make b/build-0.3/cxx/configuration-static.make new file mode 100644 index 0000000..b1339bf --- /dev/null +++ b/build-0.3/cxx/configuration-static.make @@ -0,0 +1,15 @@ +# file : build/cxx/configuration-static.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +cxx_h_suffix := hxx +cxx_t_suffix := txx +cxx_i_suffix := ixx +cxx_s_suffix := cxx + +# Get user-supplied static configuration if any. +# +ifneq ($(bld_root),$(scf_root)) +$(call -include,$(scf_root)/cxx/configuration-static.make) +endif \ No newline at end of file diff --git a/build-0.3/cxx/configuration.make b/build-0.3/cxx/configuration.make new file mode 100644 index 0000000..5ad97ae --- /dev/null +++ b/build-0.3/cxx/configuration.make @@ -0,0 +1,45 @@ +# file : build/cxx/configuration.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include-once,$(bld_root)/cxx/configuration-rules.make,$(dcf_root)) + +# Static configuration. +# +$(call include,$(bld_root)/cxx/configuration-static.make) + + +# Dynamic configuration. +# +cxx_id := +cxx_optimize := +cxx_debug := +cxx_rpath := + +cxx_pp_extra_options := +cxx_extra_options := +cxx_ld_extra_options := +cxx_extra_libs := +cxx_extra_lib_paths := + +$(call -include,$(dcf_root)/cxx/configuration-dynamic.make) + +ifdef cxx_id + +$(out_root)/%: cxx_id := $(cxx_id) +$(out_root)/%: cxx_optimize := $(cxx_optimize) +$(out_root)/%: cxx_debug := $(cxx_debug) +$(out_root)/%: cxx_rpath := $(cxx_rpath) + +$(out_root)/%: cxx_pp_extra_options := $(cxx_pp_extra_options) +$(out_root)/%: cxx_extra_options := $(cxx_extra_options) +$(out_root)/%: cxx_ld_extra_options := $(cxx_ld_extra_options) +$(out_root)/%: cxx_extra_libs := $(cxx_extra_libs) +$(out_root)/%: cxx_extra_lib_paths := $(cxx_extra_lib_paths) + +else + +.NOTPARALLEL: + +endif diff --git a/build-0.3/cxx/configure b/build-0.3/cxx/configure new file mode 100755 index 0000000..033424b --- /dev/null +++ b/build-0.3/cxx/configure @@ -0,0 +1,167 @@ +#! /usr/bin/env bash + +# file : build/cxx/configure +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +# $1 out file +# $2 origin of the cxx_pp_options make variable +# $3 origin of the cxx_options make variable +# $4 origin of the cxx_ld_options make variable +# $5 origin of the cxx_libs make variable +# +# bld_root - build root +# project_name - project name +# + +source $bld_root/dialog.bash + + +$echo +$echo +$echo "configuring '$project_name'" +$echo +$echo + +$echo +$echo "Please select the C++ compiler you would like to use:" +$echo +$echo "(1) GNU C++ (g++)" +$echo "(2) Intel C++ (icc)" +$echo "(3) Other C++ compiler" +$echo + +id=`read_option "gnu intel generic" "gnu"` + +if [ "$id" != "generic" ]; then + + $echo + $echo "Would you like the C++ compiler to optimize generated code?" + $echo + + optimize=`read_y_n y` + + + $echo + $echo "Would you like the C++ compiler to generate debug information?" + $echo + + debug=`read_y_n y` + + $echo + $echo "Embed dynamic library paths into executables (rpath)?" + $echo + + rpath=`read_y_n y` + +fi + +# pp_options +# +if [ "$2" != "undefined" ]; then + + pp_options=$cxx_pp_options + + if [ "$pp_options" ]; then + $echo + $echo "Extra C++ preprocessor options: $pp_options" + $echo + fi +else + + $echo + $echo "Please enter any extra C++ preprocessor options." + $echo + + read -e -p "[]: " pp_options +fi + + +# options +# +if [ "$3" != "undefined" ]; then + + options=$cxx_options + + if [ "$options" ]; then + $echo + $echo "Extra C++ compiler options: $options" + $echo + fi +else + + $echo + $echo "Please enter any extra C++ compiler options." + $echo + + read -p "[]: " options +fi + + +# ld_options +# +if [ "$4" != "undefined" ]; then + + ld_options=$cxx_ld_options + + if [ "$ld_options" ]; then + $echo + $echo "Extra C++ linker options: $ld_options" + $echo + fi +else + + $echo + $echo "Please enter any extra C++ linker options." + $echo + + read -e -p "[]: " ld_options +fi + + +# libs +# +if [ "$5" != "undefined" ]; then + + libs=$cxx_libs + + if [ "$libs" ]; then + $echo + $echo "Extra C++ libraries: $libs" + $echo + fi +else + + $echo + $echo "Please enter any extra C++ libraries." + $echo + + read -e -p "[]: " libs +fi + + +# Extract -L paths from the ld options. +# +paths= + +if [ "$ld_options" ]; then + paths=`echo "$ld_options" | sed -e 's/-L *\([^ ]*\)/\\ +-L\1\\ +/g' | sed -e 's/^-L\([^ ]*\)$/\1/' -e t -e d` + paths=`echo $paths | sed -e 's/ /:/g'` +fi + +echo "cxx_id := $id" >$1 + +if [ "$id" != "generic" ]; then + echo "cxx_optimize := $optimize" >>$1 + echo "cxx_debug := $debug" >>$1 + echo "cxx_rpath := $rpath" >>$1 +fi + +echo "cxx_pp_extra_options := $pp_options" >>$1 +echo "cxx_extra_options := $options" >>$1 +echo "cxx_ld_extra_options := $ld_options" >>$1 +echo "cxx_extra_libs := $libs" >>$1 +echo "cxx_extra_lib_paths := $paths" >>$1 diff --git a/build-0.3/cxx/cxx-d.make b/build-0.3/cxx/cxx-d.make new file mode 100644 index 0000000..34b80c9 --- /dev/null +++ b/build-0.3/cxx/cxx-d.make @@ -0,0 +1,10 @@ +# file : build/cxx/cxx-d.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include,$(bld_root)/cxx/configuration.make) + +ifdef cxx_id +$(call include-once,$(bld_root)/cxx/$(cxx_id)/cxx-d.make,$(out_base)) +endif diff --git a/build-0.3/cxx/cxx-o.make b/build-0.3/cxx/cxx-o.make new file mode 100644 index 0000000..e01067f --- /dev/null +++ b/build-0.3/cxx/cxx-o.make @@ -0,0 +1,10 @@ +# file : build/cxx/cxx-o.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include,$(bld_root)/cxx/configuration.make) + +ifdef cxx_id +$(call include-once,$(bld_root)/cxx/$(cxx_id)/cxx-o.make,$(out_base)) +endif diff --git a/build-0.3/cxx/generic/configuration-rules.make b/build-0.3/cxx/generic/configuration-rules.make new file mode 100644 index 0000000..bb4fe67 --- /dev/null +++ b/build-0.3/cxx/generic/configuration-rules.make @@ -0,0 +1,15 @@ +# file : build/cxx/generic/configuration-rules.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(dcf_root)/cxx/generic/configuration-dynamic.make: | $(dcf_root)/cxx/generic/. + $(call message,,$(bld_root)/cxx/generic/configure $@) + +ifndef %foreign% + +disfigure:: + $(call message,rm $(dcf_root)/cxx/generic/configuration-dynamic.make,\ +rm -f $(dcf_root)/cxx/generic/configuration-dynamic.make) + +endif diff --git a/build-0.3/cxx/generic/configuration-sl-rules.make b/build-0.3/cxx/generic/configuration-sl-rules.make new file mode 100644 index 0000000..cbcf160 --- /dev/null +++ b/build-0.3/cxx/generic/configuration-sl-rules.make @@ -0,0 +1,15 @@ +# file : build/cxx/generic/configuration-sl-rules.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(dcf_root)/cxx/generic/configuration-sl-dynamic.make: | $(dcf_root)/cxx/generic/. + $(call message,,$(bld_root)/cxx/generic/configure-sl $@) + +ifndef %foreign% + +disfigure:: + $(call message,rm $(dcf_root)/cxx/generic/configuration-sl-dynamic.make,\ +rm -f $(dcf_root)/cxx/generic/configuration-sl-dynamic.make) + +endif diff --git a/build-0.3/cxx/generic/configuration-sl.make b/build-0.3/cxx/generic/configuration-sl.make new file mode 100644 index 0000000..2a5e682 --- /dev/null +++ b/build-0.3/cxx/generic/configuration-sl.make @@ -0,0 +1,21 @@ +# file : build/cxx/generic/configuration-sl.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include-once,$(bld_root)/cxx/generic/configuration-sl-rules.make,$(dcf_root)) + +# Dynamic configuration. +# +cxx_generic_pic_option := + +$(call -include,$(dcf_root)/cxx/generic/configuration-sl-dynamic.make) + +ifdef cxx_generic_pic_option + +$(out_root)/%: cxx_generic_pic_option := $(cxx_generic_pic_option) +$(out_root)/%: cxx_generic_shared_option := $(cxx_generic_shared_option) + +else +.NOTPARALLEL: +endif diff --git a/build-0.3/cxx/generic/configuration.make b/build-0.3/cxx/generic/configuration.make new file mode 100644 index 0000000..b57eaaf --- /dev/null +++ b/build-0.3/cxx/generic/configuration.make @@ -0,0 +1,22 @@ +# file : build/cxx/generic/configuration.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include-once,$(bld_root)/cxx/generic/configuration-rules.make,$(dcf_root)) + +# Static configuration. +# +ifneq ($(bld_root),$(scf_root)) +$(call -include,$(scf_root)/cxx/generic/configuration-static.make) +endif + +# Dynamic configuration. +# +cxx_generic := + +$(call -include,$(dcf_root)/cxx/generic/configuration-dynamic.make) + +ifndef cxx_generic +.NOTPARALLEL: +endif diff --git a/build-0.3/cxx/generic/configure b/build-0.3/cxx/generic/configure new file mode 100755 index 0000000..48b1b59 --- /dev/null +++ b/build-0.3/cxx/generic/configure @@ -0,0 +1,28 @@ +#! /usr/bin/env bash + +# file : build/cxx/generic/configure +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +# $1 out file +# +# bld_root - build root +# project_name - project name +# + +source $bld_root/dialog.bash + +$echo +$echo +$echo "configuring '$project_name'" +$echo +$echo + +$echo +$echo "Please enter the C++ compiler executable you would like to use." +$echo + +cxx_generic=`read_path --command` + +echo "cxx_generic := $cxx_generic" > $1 diff --git a/build-0.3/cxx/generic/configure-sl b/build-0.3/cxx/generic/configure-sl new file mode 100755 index 0000000..1c4b8b5 --- /dev/null +++ b/build-0.3/cxx/generic/configure-sl @@ -0,0 +1,37 @@ +#! /usr/bin/env bash + +# file : build/cxx/generic/configure-sl +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +# $1 out file +# +# bld_root - build root +# project_name - project name +# + +source $bld_root/dialog.bash + +$echo +$echo +$echo "configuring '$project_name'" +$echo +$echo + +$echo +$echo "Please enter C++ compiler option(s) used to build position-" +$echo "independent code (e.g., -fPIC, -Kpic, etc)." +$echo + +read -e -p "[]: " pic_option + +$echo +$echo "Please enter C++ compiler option(s) used to build shared" +$echo "libraries (e.g., -shared, -G, etc)." +$echo + +read -e -p "[]: " shared_option + +echo "cxx_generic_pic_option := $pic_option" > $1 +echo "cxx_generic_shared_option := $shared_option" >> $1 diff --git a/build-0.3/cxx/generic/cxx-d.make b/build-0.3/cxx/generic/cxx-d.make new file mode 100644 index 0000000..53f44b1 --- /dev/null +++ b/build-0.3/cxx/generic/cxx-d.make @@ -0,0 +1,19 @@ +# file : build/cxx/generic/cxx-o.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include,$(bld_root)/cxx/generic/configuration.make) + +# Make will try to build dependecies (since they are ultimately included +# files) during configuartion phase without cxx_generic being discovered +# yet. This is also why dependecies should be included with -include. +# +ifdef cxx_generic + +.PHONY: $(out_base)/%.o.d.$(cxx_s_suffix).clean + +$(out_base)/%.o.d.$(cxx_s_suffix).clean: + @: + +endif diff --git a/build-0.3/cxx/generic/cxx-o.make b/build-0.3/cxx/generic/cxx-o.make new file mode 100644 index 0000000..e88f5c6 --- /dev/null +++ b/build-0.3/cxx/generic/cxx-o.make @@ -0,0 +1,40 @@ +# file : build/cxx/generic/cxx-o.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include-once,$(bld_root)/c/cpp-options.make,$(out_base)) +$(call include,$(bld_root)/cxx/generic/configuration.make) + +$(out_base)/%.o: cxx := $(cxx_generic) + +#@@ wrong prefix +# +$(out_base)/%.o: expand-cpp-options-impl = \ +$(if $1,$(shell sed -e 's%include: \(.*\)%\1%' -e t -e d $1)) + +$(out_base)/%.o: expand-cpp-options = \ +$(call expand-cpp-options-impl,$(filter %.cpp-options,$1)) + +ifeq ($(out_base),$(src_base)) +$(out_base)/%.o: $(src_base)/%.$(cxx_s_suffix) +else +$(out_base)/%.o: $(src_base)/%.$(cxx_s_suffix) | $$(dir $$@). +endif + $(call message,c++ $<,$(cxx) \ +$(cpp_options) $(call expand-cpp-options,$^) $(cxx_pp_extra_options) \ +$(cxx_options) $(cxx_pic_options) $(cxx_extra_options) -o $@ -c $<) + +ifneq ($(out_base),$(src_base)) + +$(out_base)/%.o: $(out_base)/%.$(cxx_s_suffix) | $$(dir $$@). + $(call message,c++ $<,$(cxx) \ +$(cpp_options) $(call expand-cpp-options,$^) $(cxx_pp_extra_options) \ +$(cxx_options) $(cxx_pic_options) $(cxx_extra_options) -o $@ -c $<) + +endif + +.PHONY: $(out_base)/%.o.$(cxx_s_suffix).clean + +$(out_base)/%.o.$(cxx_s_suffix).clean: + $(call message,rm $$1,rm -f $$1,$(basename $(basename $@))) diff --git a/build-0.3/cxx/generic/o-e.make b/build-0.3/cxx/generic/o-e.make new file mode 100644 index 0000000..8170da3 --- /dev/null +++ b/build-0.3/cxx/generic/o-e.make @@ -0,0 +1,28 @@ +# file : build/cxx/generic/o-e.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include,$(bld_root)/cxx/generic/configuration.make) + +ifneq ($(cxx_extra_lib_paths),) +vpath %.so $(cxx_extra_lib_paths) +vpath %.a $(cxx_extra_lib_paths) +endif + +$(out_base)/%: ld := $(cxx_generic) +$(out_base)/%: expand-l = $(shell sed -e 's%^rpath:\(.*\)%%' $1) + +ifeq ($(out_base),$(src_base)) +$(out_base)/%: $(out_base)/%.o +else +$(out_base)/%: $(out_base)/%.o | $$(dir $$@). +endif + $(call message,ld $@,$(ld) \ +$(cxx_extra_options) $(ld_options) $(cxx_ld_extra_options) -o $@ \ +$(foreach f,$^,$(if $(patsubst %.l,,$f),$f,$(call expand-l,$f))) $(cxx_extra_libs)) + +.PHONY: $(out_base)/%.o.clean + +$(out_base)/%.o.clean: + $(call message,rm $(basename $(basename $@)),rm -f $(basename $@) $(basename $(basename $@))) diff --git a/build-0.3/cxx/generic/o-l.make b/build-0.3/cxx/generic/o-l.make new file mode 100644 index 0000000..5b29855 --- /dev/null +++ b/build-0.3/cxx/generic/o-l.make @@ -0,0 +1,67 @@ +# file : build/cxx/generic/o-l.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include,$(bld_root)/cxx/generic/configuration.make) + +ifeq ($(ld_lib_type),shared) +$(call include,$(bld_root)/cxx/generic/configuration-sl.make) +endif + +ifneq ($(cxx_extra_lib_paths),) +vpath %.so $(cxx_extra_lib_paths) +vpath %.a $(cxx_extra_lib_paths) +endif + +ifdef ld_lib_type + +.PHONY: $(out_base)/%.l.o.clean + +ifeq ($(ld_lib_type),archive) + +$(out_base)/%.l: ar := $(ld_lib_ar) +$(out_base)/%.l: ar_options ?= -rc + +$(out_base)/%.l: ranlib := $(ld_lib_ranlib) +$(out_base)/%.l: ranlib_options ?= + +ifeq ($(out_base),$(src_base)) +$(out_base)/%.l: +else +$(out_base)/%.l: | $$(dir $$@). +endif + $(call message,ar $@,$(ar) $(ar_options) $(@D)/lib$(basename $(@F)).a $(filter %.o,$^)) + $(call message,,$(ranlib) $(ranlib_options) $(@D)/lib$(basename $(@F)).a) + $(call message,,echo "$(@D)/lib$(basename $(@F)).a" >$@) + $(call message,,echo "$(patsubst %.l,`cat %.l`,$(filter %.a %.so %.l,$^))" | xargs -n 1 echo >>$@) + +$(out_base)/%.l.o.clean: + $(call message,rm $$1,rm -f $$1 $(@D)/$(patsubst %.l.o.clean,lib%.a,$(@F)),$(basename $(basename $@))) + +else + +$(out_base)/%.l: ld := $(cxx_generic) +$(out_base)/%.l: c_pic_options := $(cxx_generic_pic_option) +$(out_base)/%.l: cxx_pic_options := $(cxx_generic_pic_option) +$(out_base)/%.l: comma_ := , + +$(out_base)/%.l: expand-l = $(shell sed -e 's%^rpath:\(.*\)%%' $1) + +ifeq ($(out_base),$(src_base)) +$(out_base)/%.l: +else +$(out_base)/%.l: | $$(dir $$@). +endif + $(call message,ld $@,$(ld) $(cxx_generic_shared_option) \ +$(cxx_extra_options) $(ld_options) $(cxx_ld_extra_options) -o $(@D)/lib$(basename $(@F)).so \ +$(foreach f,$^,$(if $(patsubst %.l,,$f),$f,$(call expand-l,$f))) $(cxx_extra_libs)) + $(call message,,echo "$(@D)/lib$(basename $(@F)).so" >$@) + $(call message,,echo "rpath:$(@D)" >>$@) + $(call message,,echo "$(patsubst %.l,`cat %.l`,$(filter %.a %.so %.l,$^))" | xargs -n 1 echo >>$@) + +$(out_base)/%.l.o.clean: + $(call message,rm $$1,rm -f $$1 $(@D)/$(patsubst %.l.o.clean,lib%.so,$(@F)),$(basename $(basename $@))) + +endif +endif diff --git a/build-0.3/cxx/gnu/configuration-rules.make b/build-0.3/cxx/gnu/configuration-rules.make new file mode 100644 index 0000000..7598be9 --- /dev/null +++ b/build-0.3/cxx/gnu/configuration-rules.make @@ -0,0 +1,15 @@ +# file : build/cxx/gnu/configuration-rules.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(dcf_root)/cxx/gnu/configuration-dynamic.make: | $(dcf_root)/cxx/gnu/. + $(call message,,$(bld_root)/cxx/gnu/configure $@ $(cxx_optimize)) + +ifndef %foreign% + +disfigure:: + $(call message,rm $(dcf_root)/cxx/gnu/configuration-dynamic.make,\ +rm -f $(dcf_root)/cxx/gnu/configuration-dynamic.make) + +endif diff --git a/build-0.3/cxx/gnu/configuration-static.make b/build-0.3/cxx/gnu/configuration-static.make new file mode 100644 index 0000000..9a2521a --- /dev/null +++ b/build-0.3/cxx/gnu/configuration-static.make @@ -0,0 +1,4 @@ +# file : build/cxx/gnu/configuration-static.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file diff --git a/build-0.3/cxx/gnu/configuration.make b/build-0.3/cxx/gnu/configuration.make new file mode 100644 index 0000000..57e00e9 --- /dev/null +++ b/build-0.3/cxx/gnu/configuration.make @@ -0,0 +1,34 @@ +# file : build/cxx/gnu/configuration.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include-once,$(bld_root)/cxx/gnu/configuration-rules.make,$(dcf_root)) + +# Static configuration. +# +$(call include,$(bld_root)/cxx/gnu/configuration-static.make) + +ifneq ($(bld_root),$(scf_root)) +$(call -include,$(scf_root)/cxx/gnu/configuration-static.make) +endif + +# Dynamic configuration. +# +cxx_gnu := +cxx_gnu_optimization_options := + +$(call -include,$(dcf_root)/cxx/gnu/configuration-dynamic.make) + +ifdef cxx_gnu + +cxx_gnu_debugging_options := $(if $(findstring y,$(cxx_debug)),-g) + +$(out_root)/%: cxx_gnu_debugging_options := $(cxx_gnu_debugging_options) +$(out_root)/%: cxx_gnu_optimization_options := $(cxx_gnu_optimization_options) + +else + +.NOTPARALLEL: + +endif diff --git a/build-0.3/cxx/gnu/configure b/build-0.3/cxx/gnu/configure new file mode 100755 index 0000000..b9c6ef6 --- /dev/null +++ b/build-0.3/cxx/gnu/configure @@ -0,0 +1,55 @@ +#! /usr/bin/env bash + +# file : build/cxx/gnu/configure +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +# $1 out file +# $2 optimize (y/n) +# +# bld_root - build root +# project_name - project name +# + + +source $bld_root/dialog.bash + +$echo +$echo +$echo "configuring '$project_name'" +$echo +$echo + +$echo +$echo "Please enter the g++ binary you would like to use, for example 'g++-3.4'," +$echo "'/usr/local/bin/g++' or 'distcc g++'." +$echo + +cxx_gnu=`read_path --command g++` +cxx_gnu_libraries=`$cxx_gnu -print-search-dirs | sed -e 's/libraries: =//p' -e d` + + +optimization= + +if [ "$2" == "y" ]; then + + $echo + $echo "Please select the optimization level you would like to use:" + $echo + $echo "(1) -O1 [Tries to reduce code size and execution time, without" + $echo " performing any optimizations that take a great deal of" + $echo " compilation time.]" + $echo "(2) -O2 [Performs nearly all supported optimizations that do not" + $echo " involve a space-speed tradeoff.]" + $echo "(3) -O3 [Optimize even more.]" + $echo "(4) -Os [Optimize for size.]" + $echo + + optimization=`read_option "-O1 -O2 -O3 -Os" "-O2"` + +fi + +echo "cxx_gnu := $cxx_gnu" > $1 +echo "cxx_gnu_libraries := $cxx_gnu_libraries" >> $1 +echo "cxx_gnu_optimization_options := $optimization" >> $1 diff --git a/build-0.3/cxx/gnu/cxx-d.make b/build-0.3/cxx/gnu/cxx-d.make new file mode 100644 index 0000000..642a846 --- /dev/null +++ b/build-0.3/cxx/gnu/cxx-d.make @@ -0,0 +1,59 @@ +# file : build/cxx/gnu/cxx-o.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include-once,$(bld_root)/c/cpp-options.make,$(out_base)) +$(call include,$(bld_root)/cxx/gnu/configuration.make) + +# Make will try to build dependecies (since they are ultimately included +# files) during configuartion phase without cxx_gnu being discovered yet. +# This is also why dependecies should be included with -include. +# +ifdef cxx_gnu + +$(out_base)/%.o.d: cxx := $(cxx_gnu) +$(out_base)/%.o.d: cpp_options ?= + +#@@ This needs to be shared with cxx-o. +# +#@@ wrong prefix +# +$(out_base)/%.o.d: expand-cpp-options-impl = \ +$(if $1,$(shell sed -e 's%include: \(.*\)%\1%' -e t -e d $1)) + +$(out_base)/%.o.d: expand-cpp-options = \ +$(call expand-cpp-options-impl,$(filter %.cpp-options,$1)) + +.PRECIOUS: $(out_base)/%.o.d + +ifeq ($(out_base),$(src_base)) +$(out_base)/%.o.d: $(src_base)/%.$(cxx_s_suffix) +else +$(out_base)/%.o.d: $(src_base)/%.$(cxx_s_suffix) | $$(dir $$@). +endif + $(call message,,if test -f $@; then mv $@ $@.old; fi && \ +$(cxx) $(cpp_options) $(call expand-cpp-options,$^) $(cxx_pp_extra_options) \ +$(cxx_extra_options) -M -MG -MP -MQ $@ -MQ $(basename $@) $< | \ +$(bld_root)/c/gnu/dep $(out_base) $(filter %.cpp-options,$^) >$@ && \ +if test -f $@.old; then if cmp -s $@ $@.old; then rm -f $@.old && false; \ +else rm -f $@.old && true; fi fi) + +ifneq ($(out_base),$(src_base)) + +$(out_base)/%.o.d: $(out_base)/%.$(cxx_s_suffix) | $$(dir $$@). + $(call message,,if test -f $@; then mv $@ $@.old; fi && \ +$(cxx) $(cpp_options) $(call expand-cpp-options,$^) $(cxx_pp_extra_options) \ +$(cxx_extra_options) -M -MG -MP -MQ $@ -MQ $(basename $@) $< | \ +$(bld_root)/c/gnu/dep $(out_base) $(filter %.cpp-options,$^) >$@ && \ +if test -f $@.old; then if cmp -s $@ $@.old; then rm -f $@.old && false; \ +else rm -f $@.old && true; fi fi) + +endif + +.PHONY: $(out_base)/%.o.d.$(cxx_s_suffix).clean + +$(out_base)/%.o.d.$(cxx_s_suffix).clean: + $(call message,rm $$1,rm -f $$1,$(basename $(basename $@))) + +endif diff --git a/build-0.3/cxx/gnu/cxx-o.make b/build-0.3/cxx/gnu/cxx-o.make new file mode 100644 index 0000000..0320177 --- /dev/null +++ b/build-0.3/cxx/gnu/cxx-o.make @@ -0,0 +1,41 @@ +# file : build/cxx/gnu/cxx-o.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include-once,$(bld_root)/c/cpp-options.make,$(out_base)) +$(call include,$(bld_root)/cxx/gnu/configuration.make) + +$(out_base)/%.o: cxx := $(cxx_gnu) +$(out_base)/%.o: cxx_options := $(cxx_gnu_optimization_options) $(cxx_gnu_debugging_options) + +#@@ wrong prefix +# +$(out_base)/%.o: expand-cpp-options-impl = \ +$(if $1,$(shell sed -e 's%include: \(.*\)%\1%' -e t -e d $1)) + +$(out_base)/%.o: expand-cpp-options = \ +$(call expand-cpp-options-impl,$(filter %.cpp-options,$1)) + +ifeq ($(out_base),$(src_base)) +$(out_base)/%.o: $(src_base)/%.$(cxx_s_suffix) +else +$(out_base)/%.o: $(src_base)/%.$(cxx_s_suffix) | $$(dir $$@). +endif + $(call message,c++ $<,$(cxx) \ +$(cpp_options) $(call expand-cpp-options,$^) $(cxx_pp_extra_options) \ +$(cxx_options) $(cxx_pic_options) $(cxx_extra_options) -o $@ -c $<) + +ifneq ($(out_base),$(src_base)) + +$(out_base)/%.o: $(out_base)/%.$(cxx_s_suffix) | $$(dir $$@). + $(call message,c++ $<,$(cxx) \ +$(cpp_options) $(call expand-cpp-options,$^) $(cxx_pp_extra_options) \ +$(cxx_options) $(cxx_pic_options) $(cxx_extra_options) -o $@ -c $<) + +endif + +.PHONY: $(out_base)/%.o.$(cxx_s_suffix).clean + +$(out_base)/%.o.$(cxx_s_suffix).clean: + $(call message,rm $$1,rm -f $$1,$(basename $(basename $@))) diff --git a/build-0.3/cxx/gnu/o-e.make b/build-0.3/cxx/gnu/o-e.make new file mode 100644 index 0000000..8c233bd --- /dev/null +++ b/build-0.3/cxx/gnu/o-e.make @@ -0,0 +1,39 @@ +# file : build/cxx/gnu/o-e.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include,$(bld_root)/cxx/gnu/configuration.make) + +#@@ should it be lib%.so? +# +ifneq ($(cxx_extra_lib_paths),) +vpath %.so $(cxx_extra_lib_paths) +vpath %.a $(cxx_extra_lib_paths) +endif + +ifneq ($(cxx_gnu_libraries),) +vpath %.so $(cxx_gnu_libraries) +vpath %.a $(cxx_gnu_libraries) +endif + +$(out_base)/%: ld := $(cxx_gnu) +$(out_base)/%: ld_options := $(cxx_gnu_optimization_options) $(cxx_gnu_debugging_options) $(cxx_ld_extra_options) + +$(out_base)/%: expand-l = $(if $(subst n,,$(cxx_rpath)),\ +$(shell sed -e 's%^rpath:\(.*\)%-Wl,-rpath,\1%' $1),\ +$(shell sed -e 's%^rpath:\(.*\)%%' $1)) + +ifeq ($(out_base),$(src_base)) +$(out_base)/%: $(out_base)/%.o +else +$(out_base)/%: $(out_base)/%.o | $$(dir $$@). +endif + $(call message,ld $@,$(ld) \ +$(cxx_extra_options) $(ld_options) $(cxx_ld_extra_options) -o $@ \ +$(foreach f,$^,$(if $(patsubst %.l,,$f),$f,$(call expand-l,$f))) $(cxx_extra_libs)) + +.PHONY: $(out_base)/%.o.clean + +$(out_base)/%.o.clean: + $(call message,rm $(basename $(basename $@)),rm -f $(basename $@) $(basename $(basename $@))) diff --git a/build-0.3/cxx/gnu/o-l.make b/build-0.3/cxx/gnu/o-l.make new file mode 100644 index 0000000..e378a4d --- /dev/null +++ b/build-0.3/cxx/gnu/o-l.make @@ -0,0 +1,72 @@ +# file : build/cxx/gnu/o-l.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include,$(bld_root)/cxx/gnu/configuration.make) + +ifneq ($(cxx_extra_lib_paths),) +vpath %.so $(cxx_extra_lib_paths) +vpath %.a $(cxx_extra_lib_paths) +endif + +ifneq ($(cxx_gnu_libraries),) +vpath %.so $(cxx_gnu_libraries) +vpath %.a $(cxx_gnu_libraries) +endif + +ifdef ld_lib_type + +.PHONY: $(out_base)/%.l.o.clean + +ifeq ($(ld_lib_type),archive) + +$(out_base)/%.l: ar := $(ld_lib_ar) +$(out_base)/%.l: ar_options ?= -rc + +$(out_base)/%.l: ranlib := $(ld_lib_ranlib) +$(out_base)/%.l: ranlib_options ?= + +ifeq ($(out_base),$(src_base)) +$(out_base)/%.l: +else +$(out_base)/%.l: | $$(dir $$@). +endif + $(call message,ar $@,$(ar) $(ar_options) $(@D)/lib$(basename $(@F)).a $(filter %.o,$^)) + $(call message,,$(ranlib) $(ranlib_options) $(@D)/lib$(basename $(@F)).a) + $(call message,,echo "$(@D)/lib$(basename $(@F)).a" >$@) + $(call message,,echo "$(patsubst %.l,`cat %.l`,$(filter %.a %.so %.l,$^))" | xargs -n 1 echo >>$@) + +$(out_base)/%.l.o.clean: + $(call message,rm $$1,rm -f $$1 $(@D)/$(patsubst %.l.o.clean,lib%.a,$(@F)),$(basename $(basename $@))) + +else + +$(out_base)/%.l: ld := $(cxx_gnu) +$(out_base)/%.l: ld_options := $(cxx_gnu_optimization_options) $(cxx_gnu_debugging_options) +$(out_base)/%.l: c_pic_options := -fPIC +$(out_base)/%.l: cxx_pic_options := -fPIC +$(out_base)/%.l: comma_ := , + +$(out_base)/%.l: expand-l = $(if $(subst n,,$(cxx_rpath)),\ +$(shell sed -e 's%^rpath:\(.*\)%-Wl,-rpath,\1%' $1),\ +$(shell sed -e 's%^rpath:\(.*\)%%' $1)) + +ifeq ($(out_base),$(src_base)) +$(out_base)/%.l: +else +$(out_base)/%.l: | $$(dir $$@). +endif + $(call message,ld $@,$(ld) -shared \ +$(cxx_extra_options) $(ld_options) $(cxx_ld_extra_options) \ +-o $(@D)/lib$(basename $(@F)).so -Wl$(comma_)-soname=lib$(basename $(@F)).so \ +$(foreach f,$^,$(if $(patsubst %.l,,$f),$f,$(call expand-l,$f))) $(cxx_extra_libs)) + $(call message,,echo "$(@D)/lib$(basename $(@F)).so" >$@) + $(call message,,echo "rpath:$(@D)" >>$@) + $(call message,,echo "$(patsubst %.l,`cat %.l`,$(filter %.a %.so %.l,$^))" | xargs -n 1 echo >>$@) + +$(out_base)/%.l.o.clean: + $(call message,rm $$1,rm -f $$1 $(@D)/$(patsubst %.l.o.clean,lib%.so,$(@F)),$(basename $(basename $@))) + +endif +endif diff --git a/build-0.3/cxx/intel/configuration-rules.make b/build-0.3/cxx/intel/configuration-rules.make new file mode 100644 index 0000000..577f2f7 --- /dev/null +++ b/build-0.3/cxx/intel/configuration-rules.make @@ -0,0 +1,15 @@ +# file : build/cxx/intel/configuration-rules.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(dcf_root)/cxx/intel/configuration-dynamic.make: | $(dcf_root)/cxx/intel/. + $(call message,,$(bld_root)/cxx/intel/configure $@ $(cxx_optimize)) + +ifndef %foreign% + +disfigure:: + $(call message,rm $(dcf_root)/cxx/intel/configuration-dynamic.make,\ +rm -f $(dcf_root)/cxx/intel/configuration-dynamic.make) + +endif diff --git a/build-0.3/cxx/intel/configuration-static.make b/build-0.3/cxx/intel/configuration-static.make new file mode 100644 index 0000000..e619365 --- /dev/null +++ b/build-0.3/cxx/intel/configuration-static.make @@ -0,0 +1,4 @@ +# file : build/cxx/intel/configuration-static.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file diff --git a/build-0.3/cxx/intel/configuration.make b/build-0.3/cxx/intel/configuration.make new file mode 100644 index 0000000..eade065 --- /dev/null +++ b/build-0.3/cxx/intel/configuration.make @@ -0,0 +1,34 @@ +# file : build/cxx/intel/configuration.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include-once,$(bld_root)/cxx/intel/configuration-rules.make,$(dcf_root)) + +# Static configuration. +# +$(call include,$(bld_root)/cxx/intel/configuration-static.make) + +ifneq ($(bld_root),$(scf_root)) +$(call -include,$(scf_root)/cxx/intel/configuration-static.make) +endif + +# Dynamic configuration. +# +cxx_intel := +cxx_intel_optimization_options := + +$(call -include,$(dcf_root)/cxx/intel/configuration-dynamic.make) + +ifdef cxx_intel + +cxx_intel_debugging_options := $(if $(findstring y,$(cxx_debug)),-g) + +$(out_root)/%: cxx_intel_debugging_options := $(cxx_intel_debugging_options) +$(out_root)/%: cxx_intel_optimization_options := $(cxx_intel_optimization_options) + +else + +.NOTPARALLEL: + +endif diff --git a/build-0.3/cxx/intel/configure b/build-0.3/cxx/intel/configure new file mode 100755 index 0000000..ef250cf --- /dev/null +++ b/build-0.3/cxx/intel/configure @@ -0,0 +1,52 @@ +#! /usr/bin/env bash + +# file : build/cxx/intel/configure +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +# $1 out file +# $2 optimize (y/n) +# +# bld_root - build root +# project_name - project name +# + + +source $bld_root/dialog.bash + +$echo +$echo +$echo "configuring '$project_name'" +$echo +$echo + +$echo +$echo "Please enter the icc binary you would like to use, for example " +$echo "'/opt/intel_cc_80/bin/icpc'." +$echo + +cxx_intel=`read_path --command icpc` +cxx_intel_libraries=`$cxx_intel -print-search-dirs | sed -e 's/libraries: =//p' -e d` + +# Intel optimizes by default. +# +optimization=-O0 + +if [ "$2" == "y" ]; then + + $echo + $echo "Please select the optimization level you would like to use:" + $echo + $echo "(1) -O1 [Enable optimizations.]" + $echo "(2) -O2 [Same as -O1.]" + $echo "(3) -O3 [As -O2 plus more aggressive optimizations that may not" + $echo " improve performance for all programs.]" + $echo + + optimization=`read_option "-O1 -O2 -O3" "-O2"` +fi + +echo "cxx_intel := $cxx_intel" > $1 +echo "cxx_intel_libraries := $cxx_intel_libraries" >> $1 +echo "cxx_intel_optimization_options := $optimization" >> $1 diff --git a/build-0.3/cxx/intel/cxx-d.make b/build-0.3/cxx/intel/cxx-d.make new file mode 100644 index 0000000..cd7b567 --- /dev/null +++ b/build-0.3/cxx/intel/cxx-d.make @@ -0,0 +1,59 @@ +# file : build/cxx/intel/cxx-o.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include-once,$(bld_root)/c/cpp-options.make,$(out_base)) +$(call include,$(bld_root)/cxx/intel/configuration.make) + +# Make will try to build dependecies (since they are ultimately included +# files) during configuartion phase without cxx_intel being discovered yet. +# This is also why dependecies should be included with -include. +# +ifdef cxx_intel + +$(out_base)/%.o.d: cxx := $(cxx_intel) +$(out_base)/%.o.d: cpp_options ?= + +#@@ This needs to be shared with cxx-o. +# +#@@ wrong prefix +# +$(out_base)/%.o.d: expand-cpp-options-impl = \ +$(if $1,$(shell sed -e 's%include: \(.*\)%\1%' -e t -e d $1)) + +$(out_base)/%.o.d: expand-cpp-options = \ +$(call expand-cpp-options-impl,$(filter %.cpp-options,$1)) + +.PRECIOUS: $(out_base)/%.o.d + +ifeq ($(out_base),$(src_base)) +$(out_base)/%.o.d: $(src_base)/%.$(cxx_s_suffix) +else +$(out_base)/%.o.d: $(src_base)/%.$(cxx_s_suffix) | $$(dir $$@). +endif + $(call message,,if test -f $@; then mv $@ $@.old; fi && \ +$(cxx) $(cpp_options) $(call expand-cpp-options,$^) $(cxx_pp_extra_options) \ +$(cxx_extra_options) -M -MG -MP -MQ $@ -MQ $(basename $@) $< | \ +$(bld_root)/c/intel/dep $(out_base) $(filter %.cpp-options,$^) >$@ && \ +if test -f $@.old; then if cmp -s $@ $@.old; then rm -f $@.old && false; \ +else rm -f $@.old && true; fi fi) + +ifneq ($(out_base),$(src_base)) + +$(out_base)/%.o.d: $(out_base)/%.$(cxx_s_suffix) | $$(dir $$@). + $(call message,,if test -f $@; then mv $@ $@.old; fi && \ +$(cxx) $(cpp_options) $(call expand-cpp-options,$^) $(cxx_pp_extra_options) \ +$(cxx_extra_options) -M -MG -MP -MQ $@ -MQ $(basename $@) $< | \ +$(bld_root)/c/intel/dep $(out_base) $(filter %.cpp-options,$^) >$@ && \ +if test -f $@.old; then if cmp -s $@ $@.old; then rm -f $@.old && false; \ +else rm -f $@.old && true; fi fi) + +endif + +.PHONY: $(out_base)/%.o.d.$(cxx_s_suffix).clean + +$(out_base)/%.o.d.$(cxx_s_suffix).clean: + $(call message,rm $$1,rm -f $$1,$(basename $(basename $@))) + +endif diff --git a/build-0.3/cxx/intel/cxx-o.make b/build-0.3/cxx/intel/cxx-o.make new file mode 100644 index 0000000..c64e2c8 --- /dev/null +++ b/build-0.3/cxx/intel/cxx-o.make @@ -0,0 +1,41 @@ +# file : build/cxx/intel/cxx-o.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include-once,$(bld_root)/c/cpp-options.make,$(out_base)) +$(call include,$(bld_root)/cxx/intel/configuration.make) + +$(out_base)/%.o: cxx := $(cxx_intel) +$(out_base)/%.o: cxx_options := $(cxx_intel_optimization_options) $(cxx_intel_debugging_options) + +#@@ wrong prefix +# +$(out_base)/%.o: expand-cpp-options-impl = \ +$(if $1,$(shell sed -e 's%include: \(.*\)%\1%' -e t -e d $1)) + +$(out_base)/%.o: expand-cpp-options = \ +$(call expand-cpp-options-impl,$(filter %.cpp-options,$1)) + +ifeq ($(out_base),$(src_base)) +$(out_base)/%.o: $(src_base)/%.$(cxx_s_suffix) +else +$(out_base)/%.o: $(src_base)/%.$(cxx_s_suffix) | $$(dir $$@). +endif + $(call message,c++ $<,$(cxx) \ +$(cpp_options) $(call expand-cpp-options,$^) $(cxx_pp_extra_options) \ +$(cxx_options) $(cxx_pic_options) $(cxx_extra_options) -o $@ -c $<) + +ifneq ($(out_base),$(src_base)) + +$(out_base)/%.o: $(out_base)/%.$(cxx_s_suffix) | $$(dir $$@). + $(call message,c++ $<,$(cxx) \ +$(cpp_options) $(call expand-cpp-options,$^) $(cxx_pp_extra_options) \ +$(cxx_options) $(cxx_pic_options) $(cxx_extra_options) -o $@ -c $<) + +endif + +.PHONY: $(out_base)/%.o.$(cxx_s_suffix).clean + +$(out_base)/%.o.$(cxx_s_suffix).clean: + $(call message,rm $$1,rm -f $$1,$(basename $(basename $@))) diff --git a/build-0.3/cxx/intel/o-e.make b/build-0.3/cxx/intel/o-e.make new file mode 100644 index 0000000..c92173a --- /dev/null +++ b/build-0.3/cxx/intel/o-e.make @@ -0,0 +1,39 @@ +# file : build/cxx/intel/o-e.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include,$(bld_root)/cxx/intel/configuration.make) + +#@@ should it be lib%.so? +# +ifneq ($(cxx_extra_lib_paths),) +vpath %.so $(cxx_extra_lib_paths) +vpath %.a $(cxx_extra_lib_paths) +endif + +ifneq ($(cxx_intel_libraries),) +vpath %.so $(cxx_intel_libraries) +vpath %.a $(cxx_intel_libraries) +endif + +$(out_base)/%: ld := $(cxx_intel) +$(out_base)/%: ld_options := $(cxx_intel_optimization_options) $(cxx_intel_debugging_options) $(cxx_ld_extra_options) + +$(out_base)/%: expand-l = $(if $(subst n,,$(cxx_rpath)),\ +$(shell sed -e 's%^rpath:\(.*\)%-Wl,-rpath,\1%' $1),\ +$(shell sed -e 's%^rpath:\(.*\)%%' $1)) + +ifeq ($(out_base),$(src_base)) +$(out_base)/%: $(out_base)/%.o +else +$(out_base)/%: $(out_base)/%.o | $$(dir $$@). +endif + $(call message,ld $@,$(ld) \ +$(cxx_extra_options) $(ld_options) $(cxx_ld_extra_options) -o $@ \ +$(foreach f,$^,$(if $(patsubst %.l,,$f),$f,$(call expand-l,$f))) $(cxx_extra_libs)) + +.PHONY: $(out_base)/%.o.clean + +$(out_base)/%.o.clean: + $(call message,rm $(basename $(basename $@)),rm -f $(basename $@) $(basename $(basename $@))) diff --git a/build-0.3/cxx/intel/o-l.make b/build-0.3/cxx/intel/o-l.make new file mode 100644 index 0000000..76f8cff --- /dev/null +++ b/build-0.3/cxx/intel/o-l.make @@ -0,0 +1,72 @@ +# file : build/cxx/intel/o-l.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include,$(bld_root)/cxx/intel/configuration.make) + +ifneq ($(cxx_extra_lib_paths),) +vpath %.so $(cxx_extra_lib_paths) +vpath %.a $(cxx_extra_lib_paths) +endif + +ifneq ($(cxx_intel_libraries),) +vpath %.so $(cxx_intel_libraries) +vpath %.a $(cxx_intel_libraries) +endif + +ifdef ld_lib_type + +.PHONY: $(out_base)/%.l.o.clean + +ifeq ($(ld_lib_type),archive) + +$(out_base)/%.l: ar := $(ld_lib_ar) +$(out_base)/%.l: ar_options ?= -rc + +$(out_base)/%.l: ranlib := $(ld_lib_ranlib) +$(out_base)/%.l: ranlib_options ?= + +ifeq ($(out_base),$(src_base)) +$(out_base)/%.l: +else +$(out_base)/%.l: | $$(dir $$@). +endif + $(call message,ar $@,$(ar) $(ar_options) $(@D)/lib$(basename $(@F)).a $(filter %.o,$^)) + $(call message,,$(ranlib) $(ranlib_options) $(@D)/lib$(basename $(@F)).a) + $(call message,,echo "$(@D)/lib$(basename $(@F)).a" >$@) + $(call message,,echo "$(patsubst %.l,`cat %.l`,$(filter %.a %.so %.l,$^))" | xargs -n 1 echo >>$@) + +$(out_base)/%.l.o.clean: + $(call message,rm $$1,rm -f $$1 $(@D)/$(patsubst %.l.o.clean,lib%.a,$(@F)),$(basename $(basename $@))) + +else + +$(out_base)/%.l: ld := $(cxx_intel) +$(out_base)/%.l: ld_options := $(cxx_intel_optimization_options) $(cxx_intel_debugging_options) +$(out_base)/%.l: c_pic_options := -fPIC +$(out_base)/%.l: cxx_pic_options := -fPIC +$(out_base)/%.l: comma_ := , + +$(out_base)/%.l: expand-l = $(if $(subst n,,$(cxx_rpath)),\ +$(shell sed -e 's%^rpath:\(.*\)%-Wl,-rpath,\1%' $1),\ +$(shell sed -e 's%^rpath:\(.*\)%%' $1)) + +ifeq ($(out_base),$(src_base)) +$(out_base)/%.l: +else +$(out_base)/%.l: | $$(dir $$@). +endif + $(call message,ld $@,$(ld) -shared \ +$(cxx_extra_options) $(ld_options) $(cxx_ld_extra_options) \ +-o $(@D)/lib$(basename $(@F)).so -Wl$(comma_)-soname=lib$(basename $(@F)).so \ +$(foreach f,$^,$(if $(patsubst %.l,,$f),$f,$(call expand-l,$f))) $(cxx_extra_libs)) + $(call message,,echo "$(@D)/lib$(basename $(@F)).so" >$@) + $(call message,,echo "rpath:$(@D)" >>$@) + $(call message,,echo "$(patsubst %.l,`cat %.l`,$(filter %.a %.so %.l,$^))" | xargs -n 1 echo >>$@) + +$(out_base)/%.l.o.clean: + $(call message,rm $$1,rm -f $$1 $(@D)/$(patsubst %.l.o.clean,lib%.so,$(@F)),$(basename $(basename $@))) + +endif +endif diff --git a/build-0.3/cxx/o-e.make b/build-0.3/cxx/o-e.make new file mode 100644 index 0000000..55486b3 --- /dev/null +++ b/build-0.3/cxx/o-e.make @@ -0,0 +1,10 @@ +# file : build/cxx/o-e.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include,$(bld_root)/cxx/configuration.make) + +ifdef cxx_id +$(call include-once,$(bld_root)/cxx/$(cxx_id)/o-e.make,$(out_base)) +endif diff --git a/build-0.3/cxx/o-l.make b/build-0.3/cxx/o-l.make new file mode 100644 index 0000000..5eb04d4 --- /dev/null +++ b/build-0.3/cxx/o-l.make @@ -0,0 +1,11 @@ +# file : build/cxx/o-l.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include,$(bld_root)/ld/configuration-lib.make) +$(call include,$(bld_root)/cxx/configuration.make) + +ifdef cxx_id +$(call include-once,$(bld_root)/cxx/$(cxx_id)/o-l.make,$(out_base)) +endif diff --git a/build-0.3/dialog.bash b/build-0.3/dialog.bash new file mode 100644 index 0000000..17cced0 --- /dev/null +++ b/build-0.3/dialog.bash @@ -0,0 +1,249 @@ +# file : build/dialog.bash +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +# bld_root - build root +# MAKE - GNU make executable +# + +#@@ can't I do exec 1>&2 or something? +# +function echo_error () +{ + echo "$*" 1>&2 +} + +echo=echo_error + +function abspath_old () +{ + local r=`eval echo $1` # for tilde-expansion + + if [ "`echo $r | sed -e 's%^/.*$%%'`" ]; then + + r=`pwd`/$r + fi + + # remove trailing `/' + # + r=`echo $r | sed -e 's%^\(.\+\)/$%\1%'` + + echo $r +} + +# Get rid of jobserver info. See GNU make bug #12229. +# +MAKEFLAGS=`echo $MAKEFLAGS | sed -e 's/--jobserver-fds=[^ ]* *//g'` +MAKEFLAGS=`echo $MAKEFLAGS | sed -e 's/-j *//g'` + + +function abspath () +{ + local r=`eval echo $1` # for tilde-expansion + + $MAKE --no-print-directory -f $bld_root/abspath.make $r +} + +# $1 Default answer ('y' or 'n'). [optional] +# +function read_y_n () +{ + local r + + while [ -z "$r" ]; do + + read -p "[$1]: " r + + if [ -z "$r" ]; then + r=$1 + fi + + case "$r" in + y) ;; + n) ;; + *) r= ;; + esac + done + + echo $r +} + +# $1 Default answer. [optional] +# +function read_value () +{ + local r + + read -p "[$1]: " r + + if [ -z "$r" ]; then + r=$1 + fi + + echo $r +} + +# $1 Space-separated list of options. +# $2 Default answer from the list of options. [optional] +# +function read_option () +{ + local d o r i + + if [ "$2" ]; then + + d=1 + + for o in $1; do + + if [ "$o" = "$2" ]; then break; fi + + d=$(($d + 1)) + done + fi + + while [ -z "$r" ]; do + + read -p "[$d]: " r + + if [ -z "$r" ]; then + + r=$d + fi + + i=1 + + for o in $1; do + + if [ "$i" = "$r" ]; then + + echo $o + return 0 + fi + + i=$(($i + 1)) + done + + # User must have entered some junk so let's ask her again. + # + r= + done +} + + +# $1 Default answer. [optional] +# +# --command - path to be read is a command (implies --exist) +# +# --directory - path to be read is a directory +# +# --exist - path to be read should exist +# +# +function read_path () +{ + local command=0 + local directory=0 + local exist=0 + + # Parse options + # + while [ "$1" ]; do + case $1 in + + --command) + + command=1 + exist=1 + shift + ;; + + --directory) + + directory=1 + shift + ;; + + --exist) + + exist=1 + shift + ;; + + *) + + break + ;; + + esac + done + + local r tmp + + while [ -z "$r" ]; do + + read -e -p "[$1]: " r + + if [ -z "$r" ]; then + + r=$1 + fi + + if [ -z "$r" ]; then + + continue + fi + + + if [ $command == 1 ]; then + + # Do tilde expansion. + # + r=`eval echo $r` + + # Extract first word. + # + local cmd=`echo $r | cut -d " " -f 1` + + type -p $cmd 1>/dev/null 2>&1 + + if [ $? != 0 ]; then + + $echo "$r: command not found" + r= + + fi + + continue + fi + + # abspath & checks + # + r=`abspath $r` + + if [ $exist == 1 ]; then + + if [ $directory == 1 ]; then + + if [ ! -d "$r" ]; then + + $echo "$r: no such directory" + r= + continue + fi + + else # something else + + if [ ! -e "$r" ]; then + + $echo "$r: no such file or directory" + r= + continue + fi + fi + fi + done + + echo $r +} diff --git a/build-0.3/dir.make b/build-0.3/dir.make new file mode 100644 index 0000000..32227b5 --- /dev/null +++ b/build-0.3/dir.make @@ -0,0 +1,9 @@ +# file : build/dir.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +.PRECIOUS: %/. + +%/. : + $(call message,,mkdir -p $*) diff --git a/build-0.3/frame.make b/build-0.3/frame.make new file mode 100644 index 0000000..bb1526c --- /dev/null +++ b/build-0.3/frame.make @@ -0,0 +1,104 @@ +# file : build/frame.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +%frame_exclude% += CURDIR SHELL MAKEFILE_LIST MAKEFLAGS +%frame_include% := #.DEFAULT_GOAL - for some reason it is already in the list + + +# return only vars with 'file' origin +# +%frame_exclude% += frame-vars-stage +define frame-vars-stage +$(foreach v,$1,$(if $(findstring file,$(origin $v)),$v)) +endef + + +# $1 holds exclusion list +# +%frame_exclude% += frame-vars +define frame-vars +$(call frame-vars-stage,$(filter-out \%% $(%frame_exclude%) $1,$(.VARIABLES))) \ +$(filter-out $1,$(%frame_include%)) +endef + + +%frame% := frame% + + +%frame_exclude% += frame-set-recursive +define frame-set-recursive +define $1 +$2 +endef +endef + +%frame_exclude% += frame-undefine +ifneq ($(filter undefine,$(.FEATURES)),) +define frame-undefine +$(eval undefine $$1) +endef +define frame-undefine-imm +$(eval undefine $1) +endef +else +define frame-undefine +$(eval $$1 :=) +endef +define frame-undefine-imm +$(eval $1 :=) +endef +endif + +%frame_exclude% += frame-save +define frame-save +$(eval $(if $(filter simple,$(flavor $1)),\ +%$1/$(%frame%) := $(value $1),\ +$(call frame-set-recursive,%$1/$(%frame%),$(value $1)))) +endef + +%frame_exclude% += frame-restore +define frame-restore +$(eval $(if $(filter simple,$(flavor %$1/$(%frame%))),\ +$1 := $(value %$1/$(%frame%)),\ +$(call frame-set-recursive,$1,$(value %$1/$(%frame%)))))\ +$(call frame-undefine-imm,%$1/$(%frame%)) +endef + +# Use debug messages to check for garbage being framed. +# + +#$$(warning framing $$(value %vars_$(%frame%))) + +%frame_exclude% += frame-enter-body +define frame-enter-body +%vars_$(%frame%) := $(call frame-vars,$1) +%excl_$(%frame%) := $1 +$$(foreach v,$$(value %vars_$(%frame%)),$$(call frame-save,$$v)) +%frame% := frame/$(%frame%) +endef + +%frame_exclude% += frame-enter +define frame-enter +$(eval $(call frame-enter-body,$1)) +endef + + +#$$(warning restoring $$(value %vars_$$(%frame%))) + +%frame_exclude% += frame-leave-body +define frame-leave-body +%frame% := $(patsubst frame/%,%,$(%frame%)) +$$(foreach v,$$(value %vars_$$(%frame%)),$$(call frame-restore,$$v)) +$$(foreach v,\ +$$(filter-out $$(value %vars_$$(%frame%)),$$(call frame-vars,$$(value %excl_$$(%frame%)))),\ +$$(call frame-undefine,$$v)) +$$(call frame-undefine,%vars_$$(%frame%)) +$$(call frame-undefine,%excl_$$(%frame%)) +endef + +%frame_exclude% += frame-leave +define frame-leave +$(eval $(call frame-leave-body)) +endef diff --git a/build-0.3/git/gitignore b/build-0.3/git/gitignore new file mode 100755 index 0000000..a8828d7 --- /dev/null +++ b/build-0.3/git/gitignore @@ -0,0 +1,13 @@ +#! /usr/bin/env bash + +# file : build/git/gitignore +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +echo '# Generated .gitignore file; do not edit or version control.' +echo '#' + +for f in "$@"; do +echo $f +done diff --git a/build-0.3/git/gitignore.make b/build-0.3/git/gitignore.make new file mode 100644 index 0000000..c42467a --- /dev/null +++ b/build-0.3/git/gitignore.make @@ -0,0 +1,11 @@ +# file : build/git/gitignore.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(out_base)/.gitignore: + @$(bld_root)/git/gitignore $(files) >$@ + +.PHONY: $(out_base)/.gitignore.clean +$(out_base)/.gitignore.clean: + @rm -f $(basename $@) diff --git a/build-0.3/import.make b/build-0.3/import.make new file mode 100644 index 0000000..122aee0 --- /dev/null +++ b/build-0.3/import.make @@ -0,0 +1,75 @@ +# file : build/import.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + + +# This cannot be eliminated. +# +%frame_exclude% += import-set-value +define import-set-value +$(eval $$1 := $$2) +endef + +%frame_exclude% += exported-names +define exported-names +$(foreach i,1 2 3 4 5 6 7,$(if $(value $i),$(lastword $(value $i)))) +endef + +%frame_exclude% += import-names +define import-names +$(foreach i,1 2 3 4 5 6 7,$(if $(lastword $(value $i)),\ +$(call import-set-value,$(lastword $(value $i)),$(value $(firstword $(value $i)))))) +endef + +%frame_exclude% += import-body +define import-body +$(call frame-enter,$(call exported-names,$2,$3,$4,$5,$6,$7,$8)) + +$(call include,$1) + +$(call import-names,$2,$3,$4,$5,$6,$7,$8) + +$(call frame-leave) +endef + + +# Simple case where there are no names imported. Also note that we use +# include-once here since there is no reason to do it more than once. +# We key it onto out_root to make sure we don't process the same makefile +# more than once since that's what export stubs do. +# +%frame_exclude% += import-body-simple +define import-body-simple +$(call frame-enter) + +$(call include-once,$1,$(out_root)) + +$(call frame-leave) +endef + + +# +# +%frame_exclude% += import +define import +$(eval $(if $(strip $2),\ +$(call import-body,$1,$2,$3,$4,$5,$6,$7,$8),\ +$(call import-body-simple,$1))) +endef + + +# +# export +# +%frame_exclude% += export-names +define export-names +$(foreach i,1 2 3 4 5 6 7,$(if $(value $i),\ +$(call import-set-value,$(firstword $(value $i)),$(wordlist 2,$(words $(value $i)),$(value $i))))) +endef + + +%frame_exclude% += export +define export +$(call export-names,$1,$2,$3,$4,$5,$6,$7) +endef diff --git a/build-0.3/install.make b/build-0.3/install.make new file mode 100644 index 0000000..213ad28 --- /dev/null +++ b/build-0.3/install.make @@ -0,0 +1,7 @@ +# file : build/install/install.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include,$(bld_root)/install/configuration.make) +$(call include-once,$(bld_root)/install/install-functions.make,$(out_base)) diff --git a/build-0.3/install/configuration.make b/build-0.3/install/configuration.make new file mode 100644 index 0000000..66c9dd3 --- /dev/null +++ b/build-0.3/install/configuration.make @@ -0,0 +1,46 @@ +# file : build/install/configuration.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +install_prefix := /usr/local +install_data_prefix := $(install_prefix) +install_exec_prefix := $(install_prefix) + +install_bin_dir := $(install_exec_prefix)/bin +install_sbin_dir := $(install_exec_prefix)/sbin +install_lib_dir := $(install_exec_prefix)/lib + +install_data_dir := $(install_data_prefix)/share +install_inc_dir := $(install_data_prefix)/include + +install_doc_dir := $(install_data_dir)/doc +install_man_dir := $(install_data_dir)/man +install_info_dir := $(install_data_dir)/info + +$(out_root)/%: install_bin_dir := $(install_bin_dir) +$(out_root)/%: install_sbin_dir := $(install_sbin_dir) +$(out_root)/%: install_lib_dir := $(install_lib_dir) + +$(out_root)/%: install_inc_dir := $(install_inc_dir) +$(out_root)/%: install_data_dir := $(install_data_dir) + +$(out_root)/%: install_doc_dir := $(install_doc_dir) +$(out_root)/%: install_man_dir := $(install_man_dir) +$(out_root)/%: install_info_dir := $(install_info_dir) + +install_cmd := $(bld_root)/install/install + +install_dir := $(install_cmd) -d -m 755 +install_data := $(install_cmd) -p -m 644 +install_exec := $(install_cmd) -p -m 755 + +$(out_root)/%: install_dir := $(install_dir) +$(out_root)/%: install_data := $(install_data) +$(out_root)/%: install_exec := $(install_exec) + + +#@@ Installation process is very os-dependant. For example +# on BSD there is libexec but there is no such thing on +# GNU/Linux. +# diff --git a/build-0.3/install/install b/build-0.3/install/install new file mode 100755 index 0000000..20193b6 --- /dev/null +++ b/build-0.3/install/install @@ -0,0 +1,22 @@ +#! /usr/bin/env bash + +# file : build/install/install +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +# Run native install command if available and install-sh otherwise. +# Also strip the -p argument (should be first) if calling install-sh +# which doesn't support it. +# + +type install >/dev/null 2>&1 + +if [ $? -eq 0 ]; then + exec install $* +else + if [ "$1" = "-p" ]; then + shift + fi + exec `dirname $0`/install-sh $* +fi diff --git a/build-0.3/install/install-functions.make b/build-0.3/install/install-functions.make new file mode 100644 index 0000000..4434cbe --- /dev/null +++ b/build-0.3/install/install-functions.make @@ -0,0 +1,38 @@ +# file : build/install/install-functions.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +#@@ could just call it functions.make +# + +$(out_base)/%: install-exec = \ +$(call message,,$(install_dir) $(dir $2))$(literal_newline)\ +$(literal_tab)$(call message,install $2,$(install_exec) $1 $2) + + +$(out_base)/%: install-lib = \ +$(call message,install $2,$(install_dir) $(dir $2))$(literal_newline)\ +$(literal_tab)$(call message,,$(value $(if $(patsubst %.so,,$(shell\ + sed -e '1q' <$1)),install_data,install_exec)) $(shell sed -e '1q' <$1) $2) + + +$(out_base)/%: install-data = \ +$(call message,install $2,$(install_dir) $(dir $2))$(literal_newline)\ +$(literal_tab)$(call message,,$(install_data) $1 $2) + + +$(out_base)/%: install-dir = \ +$(call message,install $2/,find -L $1 $3 -type f -print \ +| xargs -n 1 $(bld_root)/run-if-arg dirname \ +| sort -u \ +| sed -e 's%$1\(.*\)%$2/\1%' \ +| xargs -n 1 $(bld_root)/run-if-arg "$(install_dir)")$(literal_newline)\ +$(literal_tab)$(call message,,\ +find -L $1 $3 -type f ! -perm -100 -print \ +| sed -e 's%$1\(.*\)%$1/\1 $2/\1%' \ +| xargs -n 2 $(bld_root)/run-if-arg "$(install_data)")$(literal_newline)\ +$(literal_tab)$(call message,,\ +find -L $1 $3 -type f -perm -100 -print \ +| sed -e 's%$1\(.*\)%$1/\1 $2/\1%' \ +| xargs -n 2 $(bld_root)/run-if-arg "$(install_exec)") diff --git a/build-0.3/install/install-sh b/build-0.3/install/install-sh new file mode 100755 index 0000000..a5897de --- /dev/null +++ b/build-0.3/install/install-sh @@ -0,0 +1,519 @@ +#!/bin/sh +# install - install a program, script, or datafile + +scriptversion=2006-12-25.00 + +# This originates from X11R5 (mit/util/scripts/install.sh), which was +# later released in X11R6 (xc/config/util/install.sh) with the +# following copyright and license. +# +# Copyright (C) 1994 X Consortium +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- +# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# +# Except as contained in this notice, the name of the X Consortium shall not +# be used in advertising or otherwise to promote the sale, use or other deal- +# ings in this Software without prior written authorization from the X Consor- +# tium. +# +# +# FSF changes to this file are in the public domain. +# +# Calling this script install-sh is preferred over install.sh, to prevent +# `make' implicit rules from creating a file called install from it +# when there is no Makefile. +# +# This script is compatible with the BSD install script, but was written +# from scratch. + +nl=' +' +IFS=" "" $nl" + +# set DOITPROG to echo to test this script + +# Don't use :- since 4.3BSD and earlier shells don't like it. +doit=${DOITPROG-} +if test -z "$doit"; then + doit_exec=exec +else + doit_exec=$doit +fi + +# Put in absolute file names if you don't have them in your path; +# or use environment vars. + +chgrpprog=${CHGRPPROG-chgrp} +chmodprog=${CHMODPROG-chmod} +chownprog=${CHOWNPROG-chown} +cmpprog=${CMPPROG-cmp} +cpprog=${CPPROG-cp} +mkdirprog=${MKDIRPROG-mkdir} +mvprog=${MVPROG-mv} +rmprog=${RMPROG-rm} +stripprog=${STRIPPROG-strip} + +posix_glob='?' +initialize_posix_glob=' + test "$posix_glob" != "?" || { + if (set -f) 2>/dev/null; then + posix_glob= + else + posix_glob=: + fi + } +' + +posix_mkdir= + +# Desired mode of installed file. +mode=0755 + +chgrpcmd= +chmodcmd=$chmodprog +chowncmd= +mvcmd=$mvprog +rmcmd="$rmprog -f" +stripcmd= + +src= +dst= +dir_arg= +dst_arg= + +copy_on_change=false +no_target_directory= + +usage="\ +Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE + or: $0 [OPTION]... SRCFILES... DIRECTORY + or: $0 [OPTION]... -t DIRECTORY SRCFILES... + or: $0 [OPTION]... -d DIRECTORIES... + +In the 1st form, copy SRCFILE to DSTFILE. +In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. +In the 4th, create DIRECTORIES. + +Options: + --help display this help and exit. + --version display version info and exit. + + -c (ignored) + -C install only if different (preserve the last data modification time) + -d create directories instead of installing files. + -g GROUP $chgrpprog installed files to GROUP. + -m MODE $chmodprog installed files to MODE. + -o USER $chownprog installed files to USER. + -s $stripprog installed files. + -t DIRECTORY install into DIRECTORY. + -T report an error if DSTFILE is a directory. + +Environment variables override the default commands: + CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG + RMPROG STRIPPROG +" + +while test $# -ne 0; do + case $1 in + -c) ;; + + -C) copy_on_change=true;; + + -d) dir_arg=true;; + + -g) chgrpcmd="$chgrpprog $2" + shift;; + + --help) echo "$usage"; exit $?;; + + -m) mode=$2 + case $mode in + *' '* | *' '* | *' +'* | *'*'* | *'?'* | *'['*) + echo "$0: invalid mode: $mode" >&2 + exit 1;; + esac + shift;; + + -o) chowncmd="$chownprog $2" + shift;; + + -s) stripcmd=$stripprog;; + + -t) dst_arg=$2 + shift;; + + -T) no_target_directory=true;; + + --version) echo "$0 $scriptversion"; exit $?;; + + --) shift + break;; + + -*) echo "$0: invalid option: $1" >&2 + exit 1;; + + *) break;; + esac + shift +done + +if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then + # When -d is used, all remaining arguments are directories to create. + # When -t is used, the destination is already specified. + # Otherwise, the last argument is the destination. Remove it from $@. + for arg + do + if test -n "$dst_arg"; then + # $@ is not empty: it contains at least $arg. + set fnord "$@" "$dst_arg" + shift # fnord + fi + shift # arg + dst_arg=$arg + done +fi + +if test $# -eq 0; then + if test -z "$dir_arg"; then + echo "$0: no input file specified." >&2 + exit 1 + fi + # It's OK to call `install-sh -d' without argument. + # This can happen when creating conditional directories. + exit 0 +fi + +if test -z "$dir_arg"; then + trap '(exit $?); exit' 1 2 13 15 + + # Set umask so as not to create temps with too-generous modes. + # However, 'strip' requires both read and write access to temps. + case $mode in + # Optimize common cases. + *644) cp_umask=133;; + *755) cp_umask=22;; + + *[0-7]) + if test -z "$stripcmd"; then + u_plus_rw= + else + u_plus_rw='% 200' + fi + cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; + *) + if test -z "$stripcmd"; then + u_plus_rw= + else + u_plus_rw=,u+rw + fi + cp_umask=$mode$u_plus_rw;; + esac +fi + +for src +do + # Protect names starting with `-'. + case $src in + -*) src=./$src;; + esac + + if test -n "$dir_arg"; then + dst=$src + dstdir=$dst + test -d "$dstdir" + dstdir_status=$? + else + + # Waiting for this to be detected by the "$cpprog $src $dsttmp" command + # might cause directories to be created, which would be especially bad + # if $src (and thus $dsttmp) contains '*'. + if test ! -f "$src" && test ! -d "$src"; then + echo "$0: $src does not exist." >&2 + exit 1 + fi + + if test -z "$dst_arg"; then + echo "$0: no destination specified." >&2 + exit 1 + fi + + dst=$dst_arg + # Protect names starting with `-'. + case $dst in + -*) dst=./$dst;; + esac + + # If destination is a directory, append the input filename; won't work + # if double slashes aren't ignored. + if test -d "$dst"; then + if test -n "$no_target_directory"; then + echo "$0: $dst_arg: Is a directory" >&2 + exit 1 + fi + dstdir=$dst + dst=$dstdir/`basename "$src"` + dstdir_status=0 + else + # Prefer dirname, but fall back on a substitute if dirname fails. + dstdir=` + (dirname "$dst") 2>/dev/null || + expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$dst" : 'X\(//\)[^/]' \| \ + X"$dst" : 'X\(//\)$' \| \ + X"$dst" : 'X\(/\)' \| . 2>/dev/null || + echo X"$dst" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q' + ` + + test -d "$dstdir" + dstdir_status=$? + fi + fi + + obsolete_mkdir_used=false + + if test $dstdir_status != 0; then + case $posix_mkdir in + '') + # Create intermediate dirs using mode 755 as modified by the umask. + # This is like FreeBSD 'install' as of 1997-10-28. + umask=`umask` + case $stripcmd.$umask in + # Optimize common cases. + *[2367][2367]) mkdir_umask=$umask;; + .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; + + *[0-7]) + mkdir_umask=`expr $umask + 22 \ + - $umask % 100 % 40 + $umask % 20 \ + - $umask % 10 % 4 + $umask % 2 + `;; + *) mkdir_umask=$umask,go-w;; + esac + + # With -d, create the new directory with the user-specified mode. + # Otherwise, rely on $mkdir_umask. + if test -n "$dir_arg"; then + mkdir_mode=-m$mode + else + mkdir_mode= + fi + + posix_mkdir=false + case $umask in + *[123567][0-7][0-7]) + # POSIX mkdir -p sets u+wx bits regardless of umask, which + # is incompatible with FreeBSD 'install' when (umask & 300) != 0. + ;; + *) + tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ + trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 + + if (umask $mkdir_umask && + exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 + then + if test -z "$dir_arg" || { + # Check for POSIX incompatibilities with -m. + # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or + # other-writeable bit of parent directory when it shouldn't. + # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. + ls_ld_tmpdir=`ls -ld "$tmpdir"` + case $ls_ld_tmpdir in + d????-?r-*) different_mode=700;; + d????-?--*) different_mode=755;; + *) false;; + esac && + $mkdirprog -m$different_mode -p -- "$tmpdir" && { + ls_ld_tmpdir_1=`ls -ld "$tmpdir"` + test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" + } + } + then posix_mkdir=: + fi + rmdir "$tmpdir/d" "$tmpdir" + else + # Remove any dirs left behind by ancient mkdir implementations. + rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null + fi + trap '' 0;; + esac;; + esac + + if + $posix_mkdir && ( + umask $mkdir_umask && + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" + ) + then : + else + + # The umask is ridiculous, or mkdir does not conform to POSIX, + # or it failed possibly due to a race condition. Create the + # directory the slow way, step by step, checking for races as we go. + + case $dstdir in + /*) prefix='/';; + -*) prefix='./';; + *) prefix='';; + esac + + eval "$initialize_posix_glob" + + oIFS=$IFS + IFS=/ + $posix_glob set -f + set fnord $dstdir + shift + $posix_glob set +f + IFS=$oIFS + + prefixes= + + for d + do + test -z "$d" && continue + + prefix=$prefix$d + if test -d "$prefix"; then + prefixes= + else + if $posix_mkdir; then + (umask=$mkdir_umask && + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break + # Don't fail if two instances are running concurrently. + test -d "$prefix" || exit 1 + else + case $prefix in + *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; + *) qprefix=$prefix;; + esac + prefixes="$prefixes '$qprefix'" + fi + fi + prefix=$prefix/ + done + + if test -n "$prefixes"; then + # Don't fail if two instances are running concurrently. + (umask $mkdir_umask && + eval "\$doit_exec \$mkdirprog $prefixes") || + test -d "$dstdir" || exit 1 + obsolete_mkdir_used=true + fi + fi + fi + + if test -n "$dir_arg"; then + { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && + { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || + test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 + else + + # Make a couple of temp file names in the proper directory. + dsttmp=$dstdir/_inst.$$_ + rmtmp=$dstdir/_rm.$$_ + + # Trap to clean up those temp files at exit. + trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 + + # Copy the file name to the temp name. + (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && + + # and set any options; do chmod last to preserve setuid bits. + # + # If any of these fail, we abort the whole thing. If we want to + # ignore errors from any of these, just make sure not to ignore + # errors from the above "$doit $cpprog $src $dsttmp" command. + # + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && + { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && + { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && + + # If -C, don't bother to copy if it wouldn't change the file. + if $copy_on_change && + old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && + new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && + + eval "$initialize_posix_glob" && + $posix_glob set -f && + set X $old && old=:$2:$4:$5:$6 && + set X $new && new=:$2:$4:$5:$6 && + $posix_glob set +f && + + test "$old" = "$new" && + $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 + then + rm -f "$dsttmp" + else + # Rename the file to the real destination. + $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || + + # The rename failed, perhaps because mv can't rename something else + # to itself, or perhaps because mv is so ancient that it does not + # support -f. + { + # Now remove or move aside any old file at destination location. + # We try this two ways since rm can't unlink itself on some + # systems and the destination file might be busy for other + # reasons. In this case, the final cleanup might fail but the new + # file should still install successfully. + { + test ! -f "$dst" || + $doit $rmcmd -f "$dst" 2>/dev/null || + { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && + { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } + } || + { echo "$0: cannot unlink or rename $dst" >&2 + (exit 1); exit 1 + } + } && + + # Now rename the file to the real destination. + $doit $mvcmd "$dsttmp" "$dst" + } + fi || exit 1 + + trap '' 0 + fi +done + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-end: "$" +# End: diff --git a/build-0.3/ld/configuration-lib-rules.make b/build-0.3/ld/configuration-lib-rules.make new file mode 100644 index 0000000..686d975 --- /dev/null +++ b/build-0.3/ld/configuration-lib-rules.make @@ -0,0 +1,16 @@ +# file : build/ld/configuration-lib-rules.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(dcf_root)/ld/configuration-lib-dynamic.make: | $(dcf_root)/ld/. + $(call message,,$(bld_root)/ld/configure-lib $@) + + +ifndef %foreign% + +disfigure:: + $(call message,rm $(dcf_root)/ld/configuration-lib-dynamic.make,\ +rm -f $(dcf_root)/ld/configuration-lib-dynamic.make) + +endif diff --git a/build-0.3/ld/configuration-lib-static.make b/build-0.3/ld/configuration-lib-static.make new file mode 100644 index 0000000..5d26e8a --- /dev/null +++ b/build-0.3/ld/configuration-lib-static.make @@ -0,0 +1,10 @@ +# file : build/ld/configuration-lib-static.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +#@@ Need to use these variables where I hardcoded those values. +# +ld_lib_prefix := lib +ld_lib_archive_suffix := .a +ld_lib_shared_suffix := .so diff --git a/build-0.3/ld/configuration-lib.make b/build-0.3/ld/configuration-lib.make new file mode 100644 index 0000000..6b910c5 --- /dev/null +++ b/build-0.3/ld/configuration-lib.make @@ -0,0 +1,42 @@ +# file : build/ld/configuration-lib.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include-once,$(bld_root)/ld/configuration-lib-rules.make,$(dcf_root)) + +# Static configuration. +# +$(call include,$(bld_root)/ld/configuration-lib-static.make) + +ifneq ($(bld_root),$(scf_root)) +$(call -include,$(scf_root)/ld/configuration-lib-static.make) +endif + +# Dynamic configuration. +# +ld_lib_type := + +$(call -include,$(dcf_root)/ld/configuration-lib-dynamic.make) + +ifdef ld_lib_type + +ifeq ($(ld_lib_type),archive) + +ld_lib_suffix := $(ld_lib_archive_suffix) + +else + +ld_lib_suffix := $(ld_lib_shared_suffix) + +endif + +$(out_root)/%: ld_lib_type := $(ld_lib_type) +$(out_root)/%: ld_lib_prefix := $(ld_lib_prefix) +$(out_root)/%: ld_lib_suffix := $(ld_lib_suffix) + +else + +.NOTPARALLEL: + +endif diff --git a/build-0.3/ld/configure-lib b/build-0.3/ld/configure-lib new file mode 100755 index 0000000..84a2c2b --- /dev/null +++ b/build-0.3/ld/configure-lib @@ -0,0 +1,51 @@ +#! /usr/bin/env bash + +# file : build/ld/configure-lib +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +# $1 out file +# +# bld_root - build root +# project_name - project name +# + +source $bld_root/dialog.bash + +$echo +$echo +$echo "configuring '$project_name'" +$echo +$echo + +$echo +$echo "Please select the default library type:" +$echo +$echo "(1) archive" +$echo "(2) shared object" +$echo + +type=`read_option "archive shared" "shared"` + +if [ "$type" == "archive" ]; then + + $echo + $echo "Please enter the archiver (ar) binary you would like to use." + $echo + + ar=`read_path --command ar` + + $echo + $echo "Please enter the indexer (ranlib) binary you would like to use." + $echo + + ranlib=`read_path --command ranlib` +fi + +echo "ld_lib_type := $type" > $1 + +if [ "$type" == "archive" ]; then + echo "ld_lib_ar := $ar" >> $1 + echo "ld_lib_ranlib := $ranlib" >> $1 +fi diff --git a/build-0.3/literals.make b/build-0.3/literals.make new file mode 100644 index 0000000..0528793 --- /dev/null +++ b/build-0.3/literals.make @@ -0,0 +1,14 @@ +# file : build/literals.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +literal_empty := + +define literal_newline + + +endef + +literal_tab := $(literal_empty) $(literal_empty) +literal_percent := % diff --git a/build-0.3/m4/m4.make b/build-0.3/m4/m4.make new file mode 100644 index 0000000..96cd963 --- /dev/null +++ b/build-0.3/m4/m4.make @@ -0,0 +1,51 @@ +# file : build/m4/m4.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2005-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(out_base)/%: m4 := m4 +$(out_base)/%: m4_options += + +ifeq ($(out_base),$(src_base)) +$(out_base)/%: $(src_base)/%.m4 +else +$(out_base)/%: $(src_base)/%.m4 | $$(dir $$@). +endif + $(call message,m4 $<,$(m4) $(m4_options) $< >$@) + +ifneq ($(out_base),$(src_base)) + +$(out_base)/%: $(out_base)/%.m4 | $$(dir $$@). + $(call message,m4 $<,$(m4) $(m4_options) $< >$@) + +endif + + +# @@ +# This is where things start breaking. Following standard logic I should +# make a $(out_base)/%.clean rule, i.e., "will clean anything" rule. If +# this rule happened to be before some other, more specialized rule, and +# that rule happened to rm some additional stuff (like %.o tries to rm +# .d file, which is also not quite correct...). In other word there +# doesn't seem to be a way to properly match "build" and "clean" rules. +# One idea is to make the "clean" rule depend on what "build" rule +# depends (%.m4 in our case) hoping that this way the rule won't match. +# +# There are two problems with this approach: +# +# 1. It is if not iff. However, since the rules come in pairs and make +# pick the first implicit rule that matches, it is certain that if +# make picked this "clean" rule it also picked corresponding "build" +# rule. +# +# 2. The prerequisite (%.m4) can be an intermidiate file which itself +# may not exist. We don't want make to build it just to clean it +# or, even worse, to leave it laying around. I guess the only way +# to work around this is to provide special do-nothing rules during +# cleanup. +# +# +.PHONY: $(out_base)/%.m4.clean + +$(out_base)/%.m4.clean: + $(call message,rm $(@:.m4.clean=),rm -f $(@:.m4.clean=)) diff --git a/build-0.3/message.make b/build-0.3/message.make new file mode 100644 index 0000000..ff499e6 --- /dev/null +++ b/build-0.3/message.make @@ -0,0 +1,36 @@ +# file : build/message.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + + +# @@ I should not use names like message especially if it is +# just for a convinience of a subsystem. +# +# @@ maybe I can use -message (use - in front for system +# utilities). +# + +%frame_exclude% += build-message-expand +define build-message-expand +$(eval _1 = $1)$(call _1,$2,$3,$4,$5,$6,$7,$8,$9) +endef + + +%frame_exclude% += message + +ifdef verbose + +define message +$(call build-message-expand,$2,$3,$4,$5,$6,$7,$8,$9) +endef + +else + +define message +$(if $1,@echo $(call build-message-expand,$1,$3,$4,$5,$6,$7,$8,$9) && \ + $(call build-message-expand,$2,$3,$4,$5,$6,$7,$8,$9),\ + @$(call build-message-expand,$2,$3,$4,$5,$6,$7,$8,$9)) +endef + +endif diff --git a/build-0.3/run-if-arg b/build-0.3/run-if-arg new file mode 100755 index 0000000..819a3cb --- /dev/null +++ b/build-0.3/run-if-arg @@ -0,0 +1,18 @@ +#! /usr/bin/env bash + +# file : build/run-if-arg +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +# Run command if there are any non-empty arguments. +# +# $1 command to execute +# $2 argument to test + +cmd=$1 +shift + +if [ "$*" ]; then + exec $cmd $* +fi diff --git a/build-0.3/system.make b/build-0.3/system.make new file mode 100644 index 0000000..7de97db --- /dev/null +++ b/build-0.3/system.make @@ -0,0 +1,14 @@ +# file : build/system.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2006-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +$(call include-once,$(bld_root)/system/configuration-rules.make,$(dcf_root)) + +$(call -include,$(dcf_root)/system/configuration-dynamic.make) + +ifndef system_configuration + +.NOTPARALLEL: + +endif diff --git a/build-0.3/system/config.guess b/build-0.3/system/config.guess new file mode 100755 index 0000000..e792aac --- /dev/null +++ b/build-0.3/system/config.guess @@ -0,0 +1,1494 @@ +#! /bin/sh +# Attempt to guess a canonical system name. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 +# Free Software Foundation, Inc. + +timestamp='2009-09-18' + +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA +# 02110-1301, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + + +# Originally written by Per Bothner. Please send patches (context +# diff format) to and include a ChangeLog +# entry. +# +# This script attempts to guess a canonical system name similar to +# config.sub. If it succeeds, it prints the system name on stdout, and +# exits with 0. Otherwise, it exits with 1. +# +# You can get the latest version of this script from: +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD + +me=`echo "$0" | sed -e 's,.*/,,'` + +usage="\ +Usage: $0 [OPTION] + +Output the configuration name of the system \`$me' is run on. + +Operation modes: + -h, --help print this help, then exit + -t, --time-stamp print date of last modification, then exit + -v, --version print version number, then exit + +Report bugs and patches to ." + +version="\ +GNU config.guess ($timestamp) + +Originally written by Per Bothner. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. + +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." + +help=" +Try \`$me --help' for more information." + +# Parse command line +while test $# -gt 0 ; do + case $1 in + --time-stamp | --time* | -t ) + echo "$timestamp" ; exit ;; + --version | -v ) + echo "$version" ; exit ;; + --help | --h* | -h ) + echo "$usage"; exit ;; + -- ) # Stop option processing + shift; break ;; + - ) # Use stdin as input. + break ;; + -* ) + echo "$me: invalid option $1$help" >&2 + exit 1 ;; + * ) + break ;; + esac +done + +if test $# != 0; then + echo "$me: too many arguments$help" >&2 + exit 1 +fi + +trap 'exit 1' 1 2 15 + +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a +# compiler to aid in system detection is discouraged as it requires +# temporary files to be created and, as you can see below, it is a +# headache to deal with in a portable fashion. + +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still +# use `HOST_CC' if defined, but it is deprecated. + +# Portable tmp directory creation inspired by the Autoconf team. + +set_cc_for_build=' +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; +: ${TMPDIR=/tmp} ; + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; +dummy=$tmp/dummy ; +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; +case $CC_FOR_BUILD,$HOST_CC,$CC in + ,,) echo "int x;" > $dummy.c ; + for c in cc gcc c89 c99 ; do + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then + CC_FOR_BUILD="$c"; break ; + fi ; + done ; + if test x"$CC_FOR_BUILD" = x ; then + CC_FOR_BUILD=no_compiler_found ; + fi + ;; + ,,*) CC_FOR_BUILD=$CC ;; + ,*,*) CC_FOR_BUILD=$HOST_CC ;; +esac ; set_cc_for_build= ;' + +# This is needed to find uname on a Pyramid OSx when run in the BSD universe. +# (ghazi@noc.rutgers.edu 1994-08-24) +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then + PATH=$PATH:/.attbin ; export PATH +fi + +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown + +# Note: order is significant - the case branches are not exclusive. + +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in + *:NetBSD:*:*) + # NetBSD (nbsd) targets should (where applicable) match one or + # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently + # switched to ELF, *-*-netbsd* would select the old + # object file format. This provides both forward + # compatibility and a consistent mechanism for selecting the + # object file format. + # + # Note: NetBSD doesn't particularly care about the vendor + # portion of the name. We always set it to "unknown". + sysctl="sysctl -n hw.machine_arch" + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ + /usr/sbin/$sysctl 2>/dev/null || echo unknown)` + case "${UNAME_MACHINE_ARCH}" in + armeb) machine=armeb-unknown ;; + arm*) machine=arm-unknown ;; + sh3el) machine=shl-unknown ;; + sh3eb) machine=sh-unknown ;; + sh5el) machine=sh5le-unknown ;; + *) machine=${UNAME_MACHINE_ARCH}-unknown ;; + esac + # The Operating System including object format, if it has switched + # to ELF recently, or will in the future. + case "${UNAME_MACHINE_ARCH}" in + arm*|i386|m68k|ns32k|sh3*|sparc|vax) + eval $set_cc_for_build + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ELF__ + then + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). + # Return netbsd for either. FIX? + os=netbsd + else + os=netbsdelf + fi + ;; + *) + os=netbsd + ;; + esac + # The OS release + # Debian GNU/NetBSD machines have a different userland, and + # thus, need a distinct triplet. However, they do not need + # kernel version information, so it can be replaced with a + # suitable tag, in the style of linux-gnu. + case "${UNAME_VERSION}" in + Debian*) + release='-gnu' + ;; + *) + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` + ;; + esac + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: + # contains redundant information, the shorter form: + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. + echo "${machine}-${os}${release}" + exit ;; + *:OpenBSD:*:*) + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} + exit ;; + *:ekkoBSD:*:*) + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} + exit ;; + *:SolidBSD:*:*) + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} + exit ;; + macppc:MirBSD:*:*) + echo powerpc-unknown-mirbsd${UNAME_RELEASE} + exit ;; + *:MirBSD:*:*) + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} + exit ;; + alpha:OSF1:*:*) + case $UNAME_RELEASE in + *4.0) + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` + ;; + *5.*) + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` + ;; + esac + # According to Compaq, /usr/sbin/psrinfo has been available on + # OSF/1 and Tru64 systems produced since 1995. I hope that + # covers most systems running today. This code pipes the CPU + # types through head -n 1, so we only detect the type of CPU 0. + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` + case "$ALPHA_CPU_TYPE" in + "EV4 (21064)") + UNAME_MACHINE="alpha" ;; + "EV4.5 (21064)") + UNAME_MACHINE="alpha" ;; + "LCA4 (21066/21068)") + UNAME_MACHINE="alpha" ;; + "EV5 (21164)") + UNAME_MACHINE="alphaev5" ;; + "EV5.6 (21164A)") + UNAME_MACHINE="alphaev56" ;; + "EV5.6 (21164PC)") + UNAME_MACHINE="alphapca56" ;; + "EV5.7 (21164PC)") + UNAME_MACHINE="alphapca57" ;; + "EV6 (21264)") + UNAME_MACHINE="alphaev6" ;; + "EV6.7 (21264A)") + UNAME_MACHINE="alphaev67" ;; + "EV6.8CB (21264C)") + UNAME_MACHINE="alphaev68" ;; + "EV6.8AL (21264B)") + UNAME_MACHINE="alphaev68" ;; + "EV6.8CX (21264D)") + UNAME_MACHINE="alphaev68" ;; + "EV6.9A (21264/EV69A)") + UNAME_MACHINE="alphaev69" ;; + "EV7 (21364)") + UNAME_MACHINE="alphaev7" ;; + "EV7.9 (21364A)") + UNAME_MACHINE="alphaev79" ;; + esac + # A Pn.n version is a patched version. + # A Vn.n version is a released version. + # A Tn.n version is a released field test version. + # A Xn.n version is an unreleased experimental baselevel. + # 1.2 uses "1.2" for uname -r. + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` + exit ;; + Alpha\ *:Windows_NT*:*) + # How do we know it's Interix rather than the generic POSIX subsystem? + # Should we change UNAME_MACHINE based on the output of uname instead + # of the specific Alpha model? + echo alpha-pc-interix + exit ;; + 21064:Windows_NT:50:3) + echo alpha-dec-winnt3.5 + exit ;; + Amiga*:UNIX_System_V:4.0:*) + echo m68k-unknown-sysv4 + exit ;; + *:[Aa]miga[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-amigaos + exit ;; + *:[Mm]orph[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-morphos + exit ;; + *:OS/390:*:*) + echo i370-ibm-openedition + exit ;; + *:z/VM:*:*) + echo s390-ibm-zvmoe + exit ;; + *:OS400:*:*) + echo powerpc-ibm-os400 + exit ;; + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) + echo arm-acorn-riscix${UNAME_RELEASE} + exit ;; + arm:riscos:*:*|arm:RISCOS:*:*) + echo arm-unknown-riscos + exit ;; + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) + echo hppa1.1-hitachi-hiuxmpp + exit ;; + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) + # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. + if test "`(/bin/universe) 2>/dev/null`" = att ; then + echo pyramid-pyramid-sysv3 + else + echo pyramid-pyramid-bsd + fi + exit ;; + NILE*:*:*:dcosx) + echo pyramid-pyramid-svr4 + exit ;; + DRS?6000:unix:4.0:6*) + echo sparc-icl-nx6 + exit ;; + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) + case `/usr/bin/uname -p` in + sparc) echo sparc-icl-nx7; exit ;; + esac ;; + s390x:SunOS:*:*) + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4H:SunOS:5.*:*) + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) + eval $set_cc_for_build + SUN_ARCH="i386" + # If there is a compiler, see if it is configured for 64-bit objects. + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. + # This test works for both compilers. + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_64BIT_ARCH >/dev/null + then + SUN_ARCH="x86_64" + fi + fi + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:6*:*) + # According to config.sub, this is the proper way to canonicalize + # SunOS6. Hard to guess exactly what SunOS6 will be like, but + # it's likely to be more like Solaris than SunOS4. + echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:*:*) + case "`/usr/bin/arch -k`" in + Series*|S4*) + UNAME_RELEASE=`uname -v` + ;; + esac + # Japanese Language versions have a version number like `4.1.3-JL'. + echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` + exit ;; + sun3*:SunOS:*:*) + echo m68k-sun-sunos${UNAME_RELEASE} + exit ;; + sun*:*:4.2BSD:*) + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` + test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 + case "`/bin/arch`" in + sun3) + echo m68k-sun-sunos${UNAME_RELEASE} + ;; + sun4) + echo sparc-sun-sunos${UNAME_RELEASE} + ;; + esac + exit ;; + aushp:SunOS:*:*) + echo sparc-auspex-sunos${UNAME_RELEASE} + exit ;; + # The situation for MiNT is a little confusing. The machine name + # can be virtually everything (everything which is not + # "atarist" or "atariste" at least should have a processor + # > m68000). The system name ranges from "MiNT" over "FreeMiNT" + # to the lowercase version "mint" (or "freemint"). Finally + # the system name "TOS" denotes a system which is actually not + # MiNT. But MiNT is downward compatible to TOS, so this should + # be no problem. + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) + echo m68k-milan-mint${UNAME_RELEASE} + exit ;; + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) + echo m68k-hades-mint${UNAME_RELEASE} + exit ;; + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) + echo m68k-unknown-mint${UNAME_RELEASE} + exit ;; + m68k:machten:*:*) + echo m68k-apple-machten${UNAME_RELEASE} + exit ;; + powerpc:machten:*:*) + echo powerpc-apple-machten${UNAME_RELEASE} + exit ;; + RISC*:Mach:*:*) + echo mips-dec-mach_bsd4.3 + exit ;; + RISC*:ULTRIX:*:*) + echo mips-dec-ultrix${UNAME_RELEASE} + exit ;; + VAX*:ULTRIX*:*:*) + echo vax-dec-ultrix${UNAME_RELEASE} + exit ;; + 2020:CLIX:*:* | 2430:CLIX:*:*) + echo clipper-intergraph-clix${UNAME_RELEASE} + exit ;; + mips:*:*:UMIPS | mips:*:*:RISCos) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c +#ifdef __cplusplus +#include /* for printf() prototype */ + int main (int argc, char *argv[]) { +#else + int main (argc, argv) int argc; char *argv[]; { +#endif + #if defined (host_mips) && defined (MIPSEB) + #if defined (SYSTYPE_SYSV) + printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_SVR4) + printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) + printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); + #endif + #endif + exit (-1); + } +EOF + $CC_FOR_BUILD -o $dummy $dummy.c && + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && + SYSTEM_NAME=`$dummy $dummyarg` && + { echo "$SYSTEM_NAME"; exit; } + echo mips-mips-riscos${UNAME_RELEASE} + exit ;; + Motorola:PowerMAX_OS:*:*) + echo powerpc-motorola-powermax + exit ;; + Motorola:*:4.3:PL8-*) + echo powerpc-harris-powermax + exit ;; + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) + echo powerpc-harris-powermax + exit ;; + Night_Hawk:Power_UNIX:*:*) + echo powerpc-harris-powerunix + exit ;; + m88k:CX/UX:7*:*) + echo m88k-harris-cxux7 + exit ;; + m88k:*:4*:R4*) + echo m88k-motorola-sysv4 + exit ;; + m88k:*:3*:R3*) + echo m88k-motorola-sysv3 + exit ;; + AViiON:dgux:*:*) + # DG/UX returns AViiON for all architectures + UNAME_PROCESSOR=`/usr/bin/uname -p` + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] + then + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ + [ ${TARGET_BINARY_INTERFACE}x = x ] + then + echo m88k-dg-dgux${UNAME_RELEASE} + else + echo m88k-dg-dguxbcs${UNAME_RELEASE} + fi + else + echo i586-dg-dgux${UNAME_RELEASE} + fi + exit ;; + M88*:DolphinOS:*:*) # DolphinOS (SVR3) + echo m88k-dolphin-sysv3 + exit ;; + M88*:*:R3*:*) + # Delta 88k system running SVR3 + echo m88k-motorola-sysv3 + exit ;; + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) + echo m88k-tektronix-sysv3 + exit ;; + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) + echo m68k-tektronix-bsd + exit ;; + *:IRIX*:*:*) + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` + exit ;; + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' + i*86:AIX:*:*) + echo i386-ibm-aix + exit ;; + ia64:AIX:*:*) + if [ -x /usr/bin/oslevel ] ; then + IBM_REV=`/usr/bin/oslevel` + else + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + fi + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} + exit ;; + *:AIX:2:3) + if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + + main() + { + if (!__power_pc()) + exit(1); + puts("powerpc-ibm-aix3.2.5"); + exit(0); + } +EOF + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` + then + echo "$SYSTEM_NAME" + else + echo rs6000-ibm-aix3.2.5 + fi + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then + echo rs6000-ibm-aix3.2.4 + else + echo rs6000-ibm-aix3.2 + fi + exit ;; + *:AIX:*:[456]) + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then + IBM_ARCH=rs6000 + else + IBM_ARCH=powerpc + fi + if [ -x /usr/bin/oslevel ] ; then + IBM_REV=`/usr/bin/oslevel` + else + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + fi + echo ${IBM_ARCH}-ibm-aix${IBM_REV} + exit ;; + *:AIX:*:*) + echo rs6000-ibm-aix + exit ;; + ibmrt:4.4BSD:*|romp-ibm:BSD:*) + echo romp-ibm-bsd4.4 + exit ;; + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and + echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to + exit ;; # report: romp-ibm BSD 4.3 + *:BOSX:*:*) + echo rs6000-bull-bosx + exit ;; + DPX/2?00:B.O.S.:*:*) + echo m68k-bull-sysv3 + exit ;; + 9000/[34]??:4.3bsd:1.*:*) + echo m68k-hp-bsd + exit ;; + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) + echo m68k-hp-bsd4.4 + exit ;; + 9000/[34678]??:HP-UX:*:*) + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + case "${UNAME_MACHINE}" in + 9000/31? ) HP_ARCH=m68000 ;; + 9000/[34]?? ) HP_ARCH=m68k ;; + 9000/[678][0-9][0-9]) + if [ -x /usr/bin/getconf ]; then + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` + case "${sc_cpu_version}" in + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 + 532) # CPU_PA_RISC2_0 + case "${sc_kernel_bits}" in + 32) HP_ARCH="hppa2.0n" ;; + 64) HP_ARCH="hppa2.0w" ;; + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 + esac ;; + esac + fi + if [ "${HP_ARCH}" = "" ]; then + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + + #define _HPUX_SOURCE + #include + #include + + int main () + { + #if defined(_SC_KERNEL_BITS) + long bits = sysconf(_SC_KERNEL_BITS); + #endif + long cpu = sysconf (_SC_CPU_VERSION); + + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1"); break; + case CPU_PA_RISC2_0: + #if defined(_SC_KERNEL_BITS) + switch (bits) + { + case 64: puts ("hppa2.0w"); break; + case 32: puts ("hppa2.0n"); break; + default: puts ("hppa2.0"); break; + } break; + #else /* !defined(_SC_KERNEL_BITS) */ + puts ("hppa2.0"); break; + #endif + default: puts ("hppa1.0"); break; + } + exit (0); + } +EOF + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` + test -z "$HP_ARCH" && HP_ARCH=hppa + fi ;; + esac + if [ ${HP_ARCH} = "hppa2.0w" ] + then + eval $set_cc_for_build + + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler + # generating 64-bit code. GNU and HP use different nomenclature: + # + # $ CC_FOR_BUILD=cc ./config.guess + # => hppa2.0w-hp-hpux11.23 + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess + # => hppa64-hp-hpux11.23 + + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | + grep -q __LP64__ + then + HP_ARCH="hppa2.0w" + else + HP_ARCH="hppa64" + fi + fi + echo ${HP_ARCH}-hp-hpux${HPUX_REV} + exit ;; + ia64:HP-UX:*:*) + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + echo ia64-hp-hpux${HPUX_REV} + exit ;; + 3050*:HI-UX:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + int + main () + { + long cpu = sysconf (_SC_CPU_VERSION); + /* The order matters, because CPU_IS_HP_MC68K erroneously returns + true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct + results, however. */ + if (CPU_IS_PA_RISC (cpu)) + { + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; + case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; + default: puts ("hppa-hitachi-hiuxwe2"); break; + } + } + else if (CPU_IS_HP_MC68K (cpu)) + puts ("m68k-hitachi-hiuxwe2"); + else puts ("unknown-hitachi-hiuxwe2"); + exit (0); + } +EOF + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && + { echo "$SYSTEM_NAME"; exit; } + echo unknown-hitachi-hiuxwe2 + exit ;; + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) + echo hppa1.1-hp-bsd + exit ;; + 9000/8??:4.3bsd:*:*) + echo hppa1.0-hp-bsd + exit ;; + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) + echo hppa1.0-hp-mpeix + exit ;; + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) + echo hppa1.1-hp-osf + exit ;; + hp8??:OSF1:*:*) + echo hppa1.0-hp-osf + exit ;; + i*86:OSF1:*:*) + if [ -x /usr/sbin/sysversion ] ; then + echo ${UNAME_MACHINE}-unknown-osf1mk + else + echo ${UNAME_MACHINE}-unknown-osf1 + fi + exit ;; + parisc*:Lites*:*:*) + echo hppa1.1-hp-lites + exit ;; + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) + echo c1-convex-bsd + exit ;; + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit ;; + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) + echo c34-convex-bsd + exit ;; + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) + echo c38-convex-bsd + exit ;; + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) + echo c4-convex-bsd + exit ;; + CRAY*Y-MP:*:*:*) + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*[A-Z]90:*:*:*) + echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ + | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ + -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*TS:*:*:*) + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*T3E:*:*:*) + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*SV1:*:*:*) + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + *:UNICOS/mp:*:*) + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) + FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit ;; + 5000:UNIX_System_V:4.*:*) + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit ;; + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} + exit ;; + sparc*:BSD/OS:*:*) + echo sparc-unknown-bsdi${UNAME_RELEASE} + exit ;; + *:BSD/OS:*:*) + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} + exit ;; + *:FreeBSD:*:*) + case ${UNAME_MACHINE} in + pc98) + echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + amd64) + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + *) + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + esac + exit ;; + i*:CYGWIN*:*) + echo ${UNAME_MACHINE}-pc-cygwin + exit ;; + *:MINGW*:*) + echo ${UNAME_MACHINE}-pc-mingw32 + exit ;; + i*:windows32*:*) + # uname -m includes "-pc" on this system. + echo ${UNAME_MACHINE}-mingw32 + exit ;; + i*:PW*:*) + echo ${UNAME_MACHINE}-pc-pw32 + exit ;; + *:Interix*:[3456]*) + case ${UNAME_MACHINE} in + x86) + echo i586-pc-interix${UNAME_RELEASE} + exit ;; + EM64T | authenticamd | genuineintel) + echo x86_64-unknown-interix${UNAME_RELEASE} + exit ;; + IA64) + echo ia64-unknown-interix${UNAME_RELEASE} + exit ;; + esac ;; + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) + echo i${UNAME_MACHINE}-pc-mks + exit ;; + 8664:Windows_NT:*) + echo x86_64-pc-mks + exit ;; + i*:Windows_NT*:* | Pentium*:Windows_NT*:*) + # How do we know it's Interix rather than the generic POSIX subsystem? + # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we + # UNAME_MACHINE based on the output of uname instead of i386? + echo i586-pc-interix + exit ;; + i*:UWIN*:*) + echo ${UNAME_MACHINE}-pc-uwin + exit ;; + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) + echo x86_64-unknown-cygwin + exit ;; + p*:CYGWIN*:*) + echo powerpcle-unknown-cygwin + exit ;; + prep*:SunOS:5.*:*) + echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + *:GNU:*:*) + # the GNU system + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` + exit ;; + *:GNU/*:*:*) + # other systems with GNU libc and userland + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu + exit ;; + i*86:Minix:*:*) + echo ${UNAME_MACHINE}-pc-minix + exit ;; + alpha:Linux:*:*) + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in + EV5) UNAME_MACHINE=alphaev5 ;; + EV56) UNAME_MACHINE=alphaev56 ;; + PCA56) UNAME_MACHINE=alphapca56 ;; + PCA57) UNAME_MACHINE=alphapca56 ;; + EV6) UNAME_MACHINE=alphaev6 ;; + EV67) UNAME_MACHINE=alphaev67 ;; + EV68*) UNAME_MACHINE=alphaev68 ;; + esac + objdump --private-headers /bin/sh | grep -q ld.so.1 + if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} + exit ;; + arm*:Linux:*:*) + eval $set_cc_for_build + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ARM_EABI__ + then + echo ${UNAME_MACHINE}-unknown-linux-gnu + else + echo ${UNAME_MACHINE}-unknown-linux-gnueabi + fi + exit ;; + avr32*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + cris:Linux:*:*) + echo cris-axis-linux-gnu + exit ;; + crisv32:Linux:*:*) + echo crisv32-axis-linux-gnu + exit ;; + frv:Linux:*:*) + echo frv-unknown-linux-gnu + exit ;; + i*86:Linux:*:*) + echo ${UNAME_MACHINE}-pc-linux-gnu + exit ;; + ia64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + m32r*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + m68*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + mips:Linux:*:* | mips64:Linux:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #undef CPU + #undef ${UNAME_MACHINE} + #undef ${UNAME_MACHINE}el + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) + CPU=${UNAME_MACHINE}el + #else + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) + CPU=${UNAME_MACHINE} + #else + CPU= + #endif + #endif +EOF + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' + /^CPU/{ + s: ::g + p + }'`" + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } + ;; + or32:Linux:*:*) + echo or32-unknown-linux-gnu + exit ;; + padre:Linux:*:*) + echo sparc-unknown-linux-gnu + exit ;; + parisc64:Linux:*:* | hppa64:Linux:*:*) + echo hppa64-unknown-linux-gnu + exit ;; + parisc:Linux:*:* | hppa:Linux:*:*) + # Look for CPU level + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in + PA7*) echo hppa1.1-unknown-linux-gnu ;; + PA8*) echo hppa2.0-unknown-linux-gnu ;; + *) echo hppa-unknown-linux-gnu ;; + esac + exit ;; + ppc64:Linux:*:*) + echo powerpc64-unknown-linux-gnu + exit ;; + ppc:Linux:*:*) + echo powerpc-unknown-linux-gnu + exit ;; + s390:Linux:*:* | s390x:Linux:*:*) + echo ${UNAME_MACHINE}-ibm-linux + exit ;; + sh64*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + sh*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + sparc:Linux:*:* | sparc64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + vax:Linux:*:*) + echo ${UNAME_MACHINE}-dec-linux-gnu + exit ;; + x86_64:Linux:*:*) + echo x86_64-unknown-linux-gnu + exit ;; + xtensa*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + i*86:DYNIX/ptx:4*:*) + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. + # earlier versions are messed up and put the nodename in both + # sysname and nodename. + echo i386-sequent-sysv4 + exit ;; + i*86:UNIX_SV:4.2MP:2.*) + # Unixware is an offshoot of SVR4, but it has its own version + # number series starting with 2... + # I am not positive that other SVR4 systems won't match this, + # I just have to hope. -- rms. + # Use sysv4.2uw... so that sysv4* matches it. + echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} + exit ;; + i*86:OS/2:*:*) + # If we were able to find `uname', then EMX Unix compatibility + # is probably installed. + echo ${UNAME_MACHINE}-pc-os2-emx + exit ;; + i*86:XTS-300:*:STOP) + echo ${UNAME_MACHINE}-unknown-stop + exit ;; + i*86:atheos:*:*) + echo ${UNAME_MACHINE}-unknown-atheos + exit ;; + i*86:syllable:*:*) + echo ${UNAME_MACHINE}-pc-syllable + exit ;; + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) + echo i386-unknown-lynxos${UNAME_RELEASE} + exit ;; + i*86:*DOS:*:*) + echo ${UNAME_MACHINE}-pc-msdosdjgpp + exit ;; + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) + UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` + if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then + echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} + else + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} + fi + exit ;; + i*86:*:5:[678]*) + # UnixWare 7.x, OpenUNIX and OpenServer 6. + case `/bin/uname -X | grep "^Machine"` in + *486*) UNAME_MACHINE=i486 ;; + *Pentium) UNAME_MACHINE=i586 ;; + *Pent*|*Celeron) UNAME_MACHINE=i686 ;; + esac + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} + exit ;; + i*86:*:3.2:*) + if test -f /usr/options/cb.name; then + UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ + && UNAME_MACHINE=i586 + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ + && UNAME_MACHINE=i686 + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ + && UNAME_MACHINE=i686 + echo ${UNAME_MACHINE}-pc-sco$UNAME_REL + else + echo ${UNAME_MACHINE}-pc-sysv32 + fi + exit ;; + pc:*:*:*) + # Left here for compatibility: + # uname -m prints for DJGPP always 'pc', but it prints nothing about + # the processor, so we play safe by assuming i586. + # Note: whatever this is, it MUST be the same as what config.sub + # prints for the "djgpp" host, or else GDB configury will decide that + # this is a cross-build. + echo i586-pc-msdosdjgpp + exit ;; + Intel:Mach:3*:*) + echo i386-pc-mach3 + exit ;; + paragon:*:*:*) + echo i860-intel-osf1 + exit ;; + i860:*:4.*:*) # i860-SVR4 + if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then + echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 + else # Add other i860-SVR4 vendors below as they are discovered. + echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 + fi + exit ;; + mini*:CTIX:SYS*5:*) + # "miniframe" + echo m68010-convergent-sysv + exit ;; + mc68k:UNIX:SYSTEM5:3.51m) + echo m68k-convergent-sysv + exit ;; + M680?0:D-NIX:5.3:*) + echo m68k-diab-dnix + exit ;; + M68*:*:R3V[5678]*:*) + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; + 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) + OS_REL='' + test -r /etc/.relid \ + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4.3${OS_REL}; exit; } + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4; exit; } ;; + NCR*:*:4.2:* | MPRAS*:*:4.2:*) + OS_REL='.3' + test -r /etc/.relid \ + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4.3${OS_REL}; exit; } + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) + echo m68k-unknown-lynxos${UNAME_RELEASE} + exit ;; + mc68030:UNIX_System_V:4.*:*) + echo m68k-atari-sysv4 + exit ;; + TSUNAMI:LynxOS:2.*:*) + echo sparc-unknown-lynxos${UNAME_RELEASE} + exit ;; + rs6000:LynxOS:2.*:*) + echo rs6000-unknown-lynxos${UNAME_RELEASE} + exit ;; + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) + echo powerpc-unknown-lynxos${UNAME_RELEASE} + exit ;; + SM[BE]S:UNIX_SV:*:*) + echo mips-dde-sysv${UNAME_RELEASE} + exit ;; + RM*:ReliantUNIX-*:*:*) + echo mips-sni-sysv4 + exit ;; + RM*:SINIX-*:*:*) + echo mips-sni-sysv4 + exit ;; + *:SINIX-*:*:*) + if uname -p 2>/dev/null >/dev/null ; then + UNAME_MACHINE=`(uname -p) 2>/dev/null` + echo ${UNAME_MACHINE}-sni-sysv4 + else + echo ns32k-sni-sysv + fi + exit ;; + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort + # says + echo i586-unisys-sysv4 + exit ;; + *:UNIX_System_V:4*:FTX*) + # From Gerald Hewes . + # How about differentiating between stratus architectures? -djm + echo hppa1.1-stratus-sysv4 + exit ;; + *:*:*:FTX*) + # From seanf@swdc.stratus.com. + echo i860-stratus-sysv4 + exit ;; + i*86:VOS:*:*) + # From Paul.Green@stratus.com. + echo ${UNAME_MACHINE}-stratus-vos + exit ;; + *:VOS:*:*) + # From Paul.Green@stratus.com. + echo hppa1.1-stratus-vos + exit ;; + mc68*:A/UX:*:*) + echo m68k-apple-aux${UNAME_RELEASE} + exit ;; + news*:NEWS-OS:6*:*) + echo mips-sony-newsos6 + exit ;; + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) + if [ -d /usr/nec ]; then + echo mips-nec-sysv${UNAME_RELEASE} + else + echo mips-unknown-sysv${UNAME_RELEASE} + fi + exit ;; + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. + echo powerpc-be-beos + exit ;; + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. + echo powerpc-apple-beos + exit ;; + BePC:BeOS:*:*) # BeOS running on Intel PC compatible. + echo i586-pc-beos + exit ;; + BePC:Haiku:*:*) # Haiku running on Intel PC compatible. + echo i586-pc-haiku + exit ;; + SX-4:SUPER-UX:*:*) + echo sx4-nec-superux${UNAME_RELEASE} + exit ;; + SX-5:SUPER-UX:*:*) + echo sx5-nec-superux${UNAME_RELEASE} + exit ;; + SX-6:SUPER-UX:*:*) + echo sx6-nec-superux${UNAME_RELEASE} + exit ;; + SX-7:SUPER-UX:*:*) + echo sx7-nec-superux${UNAME_RELEASE} + exit ;; + SX-8:SUPER-UX:*:*) + echo sx8-nec-superux${UNAME_RELEASE} + exit ;; + SX-8R:SUPER-UX:*:*) + echo sx8r-nec-superux${UNAME_RELEASE} + exit ;; + Power*:Rhapsody:*:*) + echo powerpc-apple-rhapsody${UNAME_RELEASE} + exit ;; + *:Rhapsody:*:*) + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} + exit ;; + *:Darwin:*:*) + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown + case $UNAME_PROCESSOR in + i386) + eval $set_cc_for_build + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then + if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_64BIT_ARCH >/dev/null + then + UNAME_PROCESSOR="x86_64" + fi + fi ;; + unknown) UNAME_PROCESSOR=powerpc ;; + esac + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} + exit ;; + *:procnto*:*:* | *:QNX:[0123456789]*:*) + UNAME_PROCESSOR=`uname -p` + if test "$UNAME_PROCESSOR" = "x86"; then + UNAME_PROCESSOR=i386 + UNAME_MACHINE=pc + fi + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} + exit ;; + *:QNX:*:4*) + echo i386-pc-qnx + exit ;; + NSE-?:NONSTOP_KERNEL:*:*) + echo nse-tandem-nsk${UNAME_RELEASE} + exit ;; + NSR-?:NONSTOP_KERNEL:*:*) + echo nsr-tandem-nsk${UNAME_RELEASE} + exit ;; + *:NonStop-UX:*:*) + echo mips-compaq-nonstopux + exit ;; + BS2000:POSIX*:*:*) + echo bs2000-siemens-sysv + exit ;; + DS/*:UNIX_System_V:*:*) + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} + exit ;; + *:Plan9:*:*) + # "uname -m" is not consistent, so use $cputype instead. 386 + # is converted to i386 for consistency with other x86 + # operating systems. + if test "$cputype" = "386"; then + UNAME_MACHINE=i386 + else + UNAME_MACHINE="$cputype" + fi + echo ${UNAME_MACHINE}-unknown-plan9 + exit ;; + *:TOPS-10:*:*) + echo pdp10-unknown-tops10 + exit ;; + *:TENEX:*:*) + echo pdp10-unknown-tenex + exit ;; + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) + echo pdp10-dec-tops20 + exit ;; + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) + echo pdp10-xkl-tops20 + exit ;; + *:TOPS-20:*:*) + echo pdp10-unknown-tops20 + exit ;; + *:ITS:*:*) + echo pdp10-unknown-its + exit ;; + SEI:*:*:SEIUX) + echo mips-sei-seiux${UNAME_RELEASE} + exit ;; + *:DragonFly:*:*) + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` + exit ;; + *:*VMS:*:*) + UNAME_MACHINE=`(uname -p) 2>/dev/null` + case "${UNAME_MACHINE}" in + A*) echo alpha-dec-vms ; exit ;; + I*) echo ia64-dec-vms ; exit ;; + V*) echo vax-dec-vms ; exit ;; + esac ;; + *:XENIX:*:SysV) + echo i386-pc-xenix + exit ;; + i*86:skyos:*:*) + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' + exit ;; + i*86:rdos:*:*) + echo ${UNAME_MACHINE}-pc-rdos + exit ;; + i*86:AROS:*:*) + echo ${UNAME_MACHINE}-pc-aros + exit ;; +esac + +#echo '(No uname command or uname output not recognized.)' 1>&2 +#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 + +eval $set_cc_for_build +cat >$dummy.c < +# include +#endif +main () +{ +#if defined (sony) +#if defined (MIPSEB) + /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, + I don't know.... */ + printf ("mips-sony-bsd\n"); exit (0); +#else +#include + printf ("m68k-sony-newsos%s\n", +#ifdef NEWSOS4 + "4" +#else + "" +#endif + ); exit (0); +#endif +#endif + +#if defined (__arm) && defined (__acorn) && defined (__unix) + printf ("arm-acorn-riscix\n"); exit (0); +#endif + +#if defined (hp300) && !defined (hpux) + printf ("m68k-hp-bsd\n"); exit (0); +#endif + +#if defined (NeXT) +#if !defined (__ARCHITECTURE__) +#define __ARCHITECTURE__ "m68k" +#endif + int version; + version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; + if (version < 4) + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); + else + printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); + exit (0); +#endif + +#if defined (MULTIMAX) || defined (n16) +#if defined (UMAXV) + printf ("ns32k-encore-sysv\n"); exit (0); +#else +#if defined (CMU) + printf ("ns32k-encore-mach\n"); exit (0); +#else + printf ("ns32k-encore-bsd\n"); exit (0); +#endif +#endif +#endif + +#if defined (__386BSD__) + printf ("i386-pc-bsd\n"); exit (0); +#endif + +#if defined (sequent) +#if defined (i386) + printf ("i386-sequent-dynix\n"); exit (0); +#endif +#if defined (ns32000) + printf ("ns32k-sequent-dynix\n"); exit (0); +#endif +#endif + +#if defined (_SEQUENT_) + struct utsname un; + + uname(&un); + + if (strncmp(un.version, "V2", 2) == 0) { + printf ("i386-sequent-ptx2\n"); exit (0); + } + if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ + printf ("i386-sequent-ptx1\n"); exit (0); + } + printf ("i386-sequent-ptx\n"); exit (0); + +#endif + +#if defined (vax) +# if !defined (ultrix) +# include +# if defined (BSD) +# if BSD == 43 + printf ("vax-dec-bsd4.3\n"); exit (0); +# else +# if BSD == 199006 + printf ("vax-dec-bsd4.3reno\n"); exit (0); +# else + printf ("vax-dec-bsd\n"); exit (0); +# endif +# endif +# else + printf ("vax-dec-bsd\n"); exit (0); +# endif +# else + printf ("vax-dec-ultrix\n"); exit (0); +# endif +#endif + +#if defined (alliant) && defined (i860) + printf ("i860-alliant-bsd\n"); exit (0); +#endif + + exit (1); +} +EOF + +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && + { echo "$SYSTEM_NAME"; exit; } + +# Apollos put the system type in the environment. + +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } + +# Convex versions that predate uname can use getsysinfo(1) + +if [ -x /usr/convex/getsysinfo ] +then + case `getsysinfo -f cpu_type` in + c1*) + echo c1-convex-bsd + exit ;; + c2*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit ;; + c34*) + echo c34-convex-bsd + exit ;; + c38*) + echo c38-convex-bsd + exit ;; + c4*) + echo c4-convex-bsd + exit ;; + esac +fi + +cat >&2 < in order to provide the needed +information to handle your system. + +config.guess timestamp = $timestamp + +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null` + +hostinfo = `(hostinfo) 2>/dev/null` +/bin/universe = `(/bin/universe) 2>/dev/null` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` +/bin/arch = `(/bin/arch) 2>/dev/null` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` + +UNAME_MACHINE = ${UNAME_MACHINE} +UNAME_RELEASE = ${UNAME_RELEASE} +UNAME_SYSTEM = ${UNAME_SYSTEM} +UNAME_VERSION = ${UNAME_VERSION} +EOF + +exit 1 + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "timestamp='" +# time-stamp-format: "%:y-%02m-%02d" +# time-stamp-end: "'" +# End: diff --git a/build-0.3/system/config.sub b/build-0.3/system/config.sub new file mode 100755 index 0000000..5ecc18b --- /dev/null +++ b/build-0.3/system/config.sub @@ -0,0 +1,1700 @@ +#! /bin/sh +# Configuration validation subroutine script. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 +# Free Software Foundation, Inc. + +timestamp='2009-10-07' + +# This file is (in principle) common to ALL GNU software. +# The presence of a machine in this file suggests that SOME GNU software +# can handle that machine. It does not imply ALL GNU software can. +# +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA +# 02110-1301, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + + +# Please send patches to . Submit a context +# diff and a properly formatted GNU ChangeLog entry. +# +# Configuration subroutine to validate and canonicalize a configuration type. +# Supply the specified configuration type as an argument. +# If it is invalid, we print an error message on stderr and exit with code 1. +# Otherwise, we print the canonical config type on stdout and succeed. + +# You can get the latest version of this script from: +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD + +# This file is supposed to be the same for all GNU packages +# and recognize all the CPU types, system types and aliases +# that are meaningful with *any* GNU software. +# Each package is responsible for reporting which valid configurations +# it does not support. The user should be able to distinguish +# a failure to support a valid configuration from a meaningless +# configuration. + +# The goal of this file is to map all the various variations of a given +# machine specification into a single specification in the form: +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM +# or in some cases, the newer four-part form: +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM +# It is wrong to echo any other type of specification. + +me=`echo "$0" | sed -e 's,.*/,,'` + +usage="\ +Usage: $0 [OPTION] CPU-MFR-OPSYS + $0 [OPTION] ALIAS + +Canonicalize a configuration name. + +Operation modes: + -h, --help print this help, then exit + -t, --time-stamp print date of last modification, then exit + -v, --version print version number, then exit + +Report bugs and patches to ." + +version="\ +GNU config.sub ($timestamp) + +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. + +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." + +help=" +Try \`$me --help' for more information." + +# Parse command line +while test $# -gt 0 ; do + case $1 in + --time-stamp | --time* | -t ) + echo "$timestamp" ; exit ;; + --version | -v ) + echo "$version" ; exit ;; + --help | --h* | -h ) + echo "$usage"; exit ;; + -- ) # Stop option processing + shift; break ;; + - ) # Use stdin as input. + break ;; + -* ) + echo "$me: invalid option $1$help" + exit 1 ;; + + *local*) + # First pass through any local machine types. + echo $1 + exit ;; + + * ) + break ;; + esac +done + +case $# in + 0) echo "$me: missing argument$help" >&2 + exit 1;; + 1) ;; + *) echo "$me: too many arguments$help" >&2 + exit 1;; +esac + +# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). +# Here we must recognize all the valid KERNEL-OS combinations. +maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` +case $maybe_os in + nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ + uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ + kopensolaris*-gnu* | \ + storm-chaos* | os2-emx* | rtmk-nova*) + os=-$maybe_os + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` + ;; + *) + basic_machine=`echo $1 | sed 's/-[^-]*$//'` + if [ $basic_machine != $1 ] + then os=`echo $1 | sed 's/.*-/-/'` + else os=; fi + ;; +esac + +### Let's recognize common machines as not being operating systems so +### that things like config.sub decstation-3100 work. We also +### recognize some manufacturers as not being operating systems, so we +### can provide default operating systems below. +case $os in + -sun*os*) + # Prevent following clause from handling this invalid input. + ;; + -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ + -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ + -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ + -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ + -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ + -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ + -apple | -axis | -knuth | -cray | -microblaze) + os= + basic_machine=$1 + ;; + -bluegene*) + os=-cnk + ;; + -sim | -cisco | -oki | -wec | -winbond) + os= + basic_machine=$1 + ;; + -scout) + ;; + -wrs) + os=-vxworks + basic_machine=$1 + ;; + -chorusos*) + os=-chorusos + basic_machine=$1 + ;; + -chorusrdb) + os=-chorusrdb + basic_machine=$1 + ;; + -hiux*) + os=-hiuxwe2 + ;; + -sco6) + os=-sco5v6 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco5) + os=-sco3.2v5 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco4) + os=-sco3.2v4 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco3.2.[4-9]*) + os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco3.2v[4-9]*) + # Don't forget version if it is 3.2v4 or newer. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco5v6*) + # Don't forget version if it is 3.2v4 or newer. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco*) + os=-sco3.2v2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -udk*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -isc) + os=-isc2.2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -clix*) + basic_machine=clipper-intergraph + ;; + -isc*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -lynx*) + os=-lynxos + ;; + -ptx*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` + ;; + -windowsnt*) + os=`echo $os | sed -e 's/windowsnt/winnt/'` + ;; + -psos*) + os=-psos + ;; + -mint | -mint[0-9]*) + basic_machine=m68k-atari + os=-mint + ;; +esac + +# Decode aliases for certain CPU-COMPANY combinations. +case $basic_machine in + # Recognize the basic CPU types without company name. + # Some are omitted here because they have special meanings below. + 1750a | 580 \ + | a29k \ + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ + | am33_2.0 \ + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ + | bfin \ + | c4x | clipper \ + | d10v | d30v | dlx | dsp16xx \ + | fido | fr30 | frv \ + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ + | i370 | i860 | i960 | ia64 \ + | ip2k | iq2000 \ + | lm32 \ + | m32c | m32r | m32rle | m68000 | m68k | m88k \ + | maxq | mb | microblaze | mcore | mep | metag \ + | mips | mipsbe | mipseb | mipsel | mipsle \ + | mips16 \ + | mips64 | mips64el \ + | mips64octeon | mips64octeonel \ + | mips64orion | mips64orionel \ + | mips64r5900 | mips64r5900el \ + | mips64vr | mips64vrel \ + | mips64vr4100 | mips64vr4100el \ + | mips64vr4300 | mips64vr4300el \ + | mips64vr5000 | mips64vr5000el \ + | mips64vr5900 | mips64vr5900el \ + | mipsisa32 | mipsisa32el \ + | mipsisa32r2 | mipsisa32r2el \ + | mipsisa64 | mipsisa64el \ + | mipsisa64r2 | mipsisa64r2el \ + | mipsisa64sb1 | mipsisa64sb1el \ + | mipsisa64sr71k | mipsisa64sr71kel \ + | mipstx39 | mipstx39el \ + | mn10200 | mn10300 \ + | moxie \ + | mt \ + | msp430 \ + | nios | nios2 \ + | ns16k | ns32k \ + | or32 \ + | pdp10 | pdp11 | pj | pjl \ + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ + | pyramid \ + | rx \ + | score \ + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ + | sh64 | sh64le \ + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ + | spu | strongarm \ + | tahoe | thumb | tic4x | tic80 | tron \ + | v850 | v850e \ + | we32k \ + | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ + | z8k | z80) + basic_machine=$basic_machine-unknown + ;; + m6811 | m68hc11 | m6812 | m68hc12 | picochip) + # Motorola 68HC11/12. + basic_machine=$basic_machine-unknown + os=-none + ;; + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) + ;; + ms1) + basic_machine=mt-unknown + ;; + + # We use `pc' rather than `unknown' + # because (1) that's what they normally are, and + # (2) the word "unknown" tends to confuse beginning users. + i*86 | x86_64) + basic_machine=$basic_machine-pc + ;; + # Object if more than one company name word. + *-*-*) + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + exit 1 + ;; + # Recognize the basic CPU types with company name. + 580-* \ + | a29k-* \ + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ + | avr-* | avr32-* \ + | bfin-* | bs2000-* \ + | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ + | clipper-* | craynv-* | cydra-* \ + | d10v-* | d30v-* | dlx-* \ + | elxsi-* \ + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ + | h8300-* | h8500-* \ + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ + | i*86-* | i860-* | i960-* | ia64-* \ + | ip2k-* | iq2000-* \ + | lm32-* \ + | m32c-* | m32r-* | m32rle-* \ + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ + | mips16-* \ + | mips64-* | mips64el-* \ + | mips64octeon-* | mips64octeonel-* \ + | mips64orion-* | mips64orionel-* \ + | mips64r5900-* | mips64r5900el-* \ + | mips64vr-* | mips64vrel-* \ + | mips64vr4100-* | mips64vr4100el-* \ + | mips64vr4300-* | mips64vr4300el-* \ + | mips64vr5000-* | mips64vr5000el-* \ + | mips64vr5900-* | mips64vr5900el-* \ + | mipsisa32-* | mipsisa32el-* \ + | mipsisa32r2-* | mipsisa32r2el-* \ + | mipsisa64-* | mipsisa64el-* \ + | mipsisa64r2-* | mipsisa64r2el-* \ + | mipsisa64sb1-* | mipsisa64sb1el-* \ + | mipsisa64sr71k-* | mipsisa64sr71kel-* \ + | mipstx39-* | mipstx39el-* \ + | mmix-* \ + | mt-* \ + | msp430-* \ + | nios-* | nios2-* \ + | none-* | np1-* | ns16k-* | ns32k-* \ + | orion-* \ + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ + | pyramid-* \ + | romp-* | rs6000-* | rx-* \ + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ + | sparclite-* \ + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ + | tahoe-* | thumb-* \ + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \ + | tron-* \ + | v850-* | v850e-* | vax-* \ + | we32k-* \ + | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ + | xstormy16-* | xtensa*-* \ + | ymp-* \ + | z8k-* | z80-*) + ;; + # Recognize the basic CPU types without company name, with glob match. + xtensa*) + basic_machine=$basic_machine-unknown + ;; + # Recognize the various machine names and aliases which stand + # for a CPU type and a company and sometimes even an OS. + 386bsd) + basic_machine=i386-unknown + os=-bsd + ;; + 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) + basic_machine=m68000-att + ;; + 3b*) + basic_machine=we32k-att + ;; + a29khif) + basic_machine=a29k-amd + os=-udi + ;; + abacus) + basic_machine=abacus-unknown + ;; + adobe68k) + basic_machine=m68010-adobe + os=-scout + ;; + alliant | fx80) + basic_machine=fx80-alliant + ;; + altos | altos3068) + basic_machine=m68k-altos + ;; + am29k) + basic_machine=a29k-none + os=-bsd + ;; + amd64) + basic_machine=x86_64-pc + ;; + amd64-*) + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + amdahl) + basic_machine=580-amdahl + os=-sysv + ;; + amiga | amiga-*) + basic_machine=m68k-unknown + ;; + amigaos | amigados) + basic_machine=m68k-unknown + os=-amigaos + ;; + amigaunix | amix) + basic_machine=m68k-unknown + os=-sysv4 + ;; + apollo68) + basic_machine=m68k-apollo + os=-sysv + ;; + apollo68bsd) + basic_machine=m68k-apollo + os=-bsd + ;; + aros) + basic_machine=i386-pc + os=-aros + ;; + aux) + basic_machine=m68k-apple + os=-aux + ;; + balance) + basic_machine=ns32k-sequent + os=-dynix + ;; + blackfin) + basic_machine=bfin-unknown + os=-linux + ;; + blackfin-*) + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; + bluegene*) + basic_machine=powerpc-ibm + os=-cnk + ;; + c90) + basic_machine=c90-cray + os=-unicos + ;; + cegcc) + basic_machine=arm-unknown + os=-cegcc + ;; + convex-c1) + basic_machine=c1-convex + os=-bsd + ;; + convex-c2) + basic_machine=c2-convex + os=-bsd + ;; + convex-c32) + basic_machine=c32-convex + os=-bsd + ;; + convex-c34) + basic_machine=c34-convex + os=-bsd + ;; + convex-c38) + basic_machine=c38-convex + os=-bsd + ;; + cray | j90) + basic_machine=j90-cray + os=-unicos + ;; + craynv) + basic_machine=craynv-cray + os=-unicosmp + ;; + cr16) + basic_machine=cr16-unknown + os=-elf + ;; + crds | unos) + basic_machine=m68k-crds + ;; + crisv32 | crisv32-* | etraxfs*) + basic_machine=crisv32-axis + ;; + cris | cris-* | etrax*) + basic_machine=cris-axis + ;; + crx) + basic_machine=crx-unknown + os=-elf + ;; + da30 | da30-*) + basic_machine=m68k-da30 + ;; + decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) + basic_machine=mips-dec + ;; + decsystem10* | dec10*) + basic_machine=pdp10-dec + os=-tops10 + ;; + decsystem20* | dec20*) + basic_machine=pdp10-dec + os=-tops20 + ;; + delta | 3300 | motorola-3300 | motorola-delta \ + | 3300-motorola | delta-motorola) + basic_machine=m68k-motorola + ;; + delta88) + basic_machine=m88k-motorola + os=-sysv3 + ;; + dicos) + basic_machine=i686-pc + os=-dicos + ;; + djgpp) + basic_machine=i586-pc + os=-msdosdjgpp + ;; + dpx20 | dpx20-*) + basic_machine=rs6000-bull + os=-bosx + ;; + dpx2* | dpx2*-bull) + basic_machine=m68k-bull + os=-sysv3 + ;; + ebmon29k) + basic_machine=a29k-amd + os=-ebmon + ;; + elxsi) + basic_machine=elxsi-elxsi + os=-bsd + ;; + encore | umax | mmax) + basic_machine=ns32k-encore + ;; + es1800 | OSE68k | ose68k | ose | OSE) + basic_machine=m68k-ericsson + os=-ose + ;; + fx2800) + basic_machine=i860-alliant + ;; + genix) + basic_machine=ns32k-ns + ;; + gmicro) + basic_machine=tron-gmicro + os=-sysv + ;; + go32) + basic_machine=i386-pc + os=-go32 + ;; + h3050r* | hiux*) + basic_machine=hppa1.1-hitachi + os=-hiuxwe2 + ;; + h8300hms) + basic_machine=h8300-hitachi + os=-hms + ;; + h8300xray) + basic_machine=h8300-hitachi + os=-xray + ;; + h8500hms) + basic_machine=h8500-hitachi + os=-hms + ;; + harris) + basic_machine=m88k-harris + os=-sysv3 + ;; + hp300-*) + basic_machine=m68k-hp + ;; + hp300bsd) + basic_machine=m68k-hp + os=-bsd + ;; + hp300hpux) + basic_machine=m68k-hp + os=-hpux + ;; + hp3k9[0-9][0-9] | hp9[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hp9k2[0-9][0-9] | hp9k31[0-9]) + basic_machine=m68000-hp + ;; + hp9k3[2-9][0-9]) + basic_machine=m68k-hp + ;; + hp9k6[0-9][0-9] | hp6[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hp9k7[0-79][0-9] | hp7[0-79][0-9]) + basic_machine=hppa1.1-hp + ;; + hp9k78[0-9] | hp78[0-9]) + # FIXME: really hppa2.0-hp + basic_machine=hppa1.1-hp + ;; + hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) + # FIXME: really hppa2.0-hp + basic_machine=hppa1.1-hp + ;; + hp9k8[0-9][13679] | hp8[0-9][13679]) + basic_machine=hppa1.1-hp + ;; + hp9k8[0-9][0-9] | hp8[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hppa-next) + os=-nextstep3 + ;; + hppaosf) + basic_machine=hppa1.1-hp + os=-osf + ;; + hppro) + basic_machine=hppa1.1-hp + os=-proelf + ;; + i370-ibm* | ibm*) + basic_machine=i370-ibm + ;; +# I'm not sure what "Sysv32" means. Should this be sysv3.2? + i*86v32) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv32 + ;; + i*86v4*) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv4 + ;; + i*86v) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv + ;; + i*86sol2) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-solaris2 + ;; + i386mach) + basic_machine=i386-mach + os=-mach + ;; + i386-vsta | vsta) + basic_machine=i386-unknown + os=-vsta + ;; + iris | iris4d) + basic_machine=mips-sgi + case $os in + -irix*) + ;; + *) + os=-irix4 + ;; + esac + ;; + isi68 | isi) + basic_machine=m68k-isi + os=-sysv + ;; + m68knommu) + basic_machine=m68k-unknown + os=-linux + ;; + m68knommu-*) + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; + m88k-omron*) + basic_machine=m88k-omron + ;; + magnum | m3230) + basic_machine=mips-mips + os=-sysv + ;; + merlin) + basic_machine=ns32k-utek + os=-sysv + ;; + microblaze) + basic_machine=microblaze-xilinx + ;; + mingw32) + basic_machine=i386-pc + os=-mingw32 + ;; + mingw32ce) + basic_machine=arm-unknown + os=-mingw32ce + ;; + miniframe) + basic_machine=m68000-convergent + ;; + *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) + basic_machine=m68k-atari + os=-mint + ;; + mips3*-*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` + ;; + mips3*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown + ;; + monitor) + basic_machine=m68k-rom68k + os=-coff + ;; + morphos) + basic_machine=powerpc-unknown + os=-morphos + ;; + msdos) + basic_machine=i386-pc + os=-msdos + ;; + ms1-*) + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` + ;; + mvs) + basic_machine=i370-ibm + os=-mvs + ;; + ncr3000) + basic_machine=i486-ncr + os=-sysv4 + ;; + netbsd386) + basic_machine=i386-unknown + os=-netbsd + ;; + netwinder) + basic_machine=armv4l-rebel + os=-linux + ;; + news | news700 | news800 | news900) + basic_machine=m68k-sony + os=-newsos + ;; + news1000) + basic_machine=m68030-sony + os=-newsos + ;; + news-3600 | risc-news) + basic_machine=mips-sony + os=-newsos + ;; + necv70) + basic_machine=v70-nec + os=-sysv + ;; + next | m*-next ) + basic_machine=m68k-next + case $os in + -nextstep* ) + ;; + -ns2*) + os=-nextstep2 + ;; + *) + os=-nextstep3 + ;; + esac + ;; + nh3000) + basic_machine=m68k-harris + os=-cxux + ;; + nh[45]000) + basic_machine=m88k-harris + os=-cxux + ;; + nindy960) + basic_machine=i960-intel + os=-nindy + ;; + mon960) + basic_machine=i960-intel + os=-mon960 + ;; + nonstopux) + basic_machine=mips-compaq + os=-nonstopux + ;; + np1) + basic_machine=np1-gould + ;; + nsr-tandem) + basic_machine=nsr-tandem + ;; + op50n-* | op60c-*) + basic_machine=hppa1.1-oki + os=-proelf + ;; + openrisc | openrisc-*) + basic_machine=or32-unknown + ;; + os400) + basic_machine=powerpc-ibm + os=-os400 + ;; + OSE68000 | ose68000) + basic_machine=m68000-ericsson + os=-ose + ;; + os68k) + basic_machine=m68k-none + os=-os68k + ;; + pa-hitachi) + basic_machine=hppa1.1-hitachi + os=-hiuxwe2 + ;; + paragon) + basic_machine=i860-intel + os=-osf + ;; + parisc) + basic_machine=hppa-unknown + os=-linux + ;; + parisc-*) + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; + pbd) + basic_machine=sparc-tti + ;; + pbb) + basic_machine=m68k-tti + ;; + pc532 | pc532-*) + basic_machine=ns32k-pc532 + ;; + pc98) + basic_machine=i386-pc + ;; + pc98-*) + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentium | p5 | k5 | k6 | nexgen | viac3) + basic_machine=i586-pc + ;; + pentiumpro | p6 | 6x86 | athlon | athlon_*) + basic_machine=i686-pc + ;; + pentiumii | pentium2 | pentiumiii | pentium3) + basic_machine=i686-pc + ;; + pentium4) + basic_machine=i786-pc + ;; + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) + basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentiumpro-* | p6-* | 6x86-* | athlon-*) + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentium4-*) + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pn) + basic_machine=pn-gould + ;; + power) basic_machine=power-ibm + ;; + ppc) basic_machine=powerpc-unknown + ;; + ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppcle | powerpclittle | ppc-le | powerpc-little) + basic_machine=powerpcle-unknown + ;; + ppcle-* | powerpclittle-*) + basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppc64) basic_machine=powerpc64-unknown + ;; + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppc64le | powerpc64little | ppc64-le | powerpc64-little) + basic_machine=powerpc64le-unknown + ;; + ppc64le-* | powerpc64little-*) + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ps2) + basic_machine=i386-ibm + ;; + pw32) + basic_machine=i586-unknown + os=-pw32 + ;; + rdos) + basic_machine=i386-pc + os=-rdos + ;; + rom68k) + basic_machine=m68k-rom68k + os=-coff + ;; + rm[46]00) + basic_machine=mips-siemens + ;; + rtpc | rtpc-*) + basic_machine=romp-ibm + ;; + s390 | s390-*) + basic_machine=s390-ibm + ;; + s390x | s390x-*) + basic_machine=s390x-ibm + ;; + sa29200) + basic_machine=a29k-amd + os=-udi + ;; + sb1) + basic_machine=mipsisa64sb1-unknown + ;; + sb1el) + basic_machine=mipsisa64sb1el-unknown + ;; + sde) + basic_machine=mipsisa32-sde + os=-elf + ;; + sei) + basic_machine=mips-sei + os=-seiux + ;; + sequent) + basic_machine=i386-sequent + ;; + sh) + basic_machine=sh-hitachi + os=-hms + ;; + sh5el) + basic_machine=sh5le-unknown + ;; + sh64) + basic_machine=sh64-unknown + ;; + sparclite-wrs | simso-wrs) + basic_machine=sparclite-wrs + os=-vxworks + ;; + sps7) + basic_machine=m68k-bull + os=-sysv2 + ;; + spur) + basic_machine=spur-unknown + ;; + st2000) + basic_machine=m68k-tandem + ;; + stratus) + basic_machine=i860-stratus + os=-sysv4 + ;; + sun2) + basic_machine=m68000-sun + ;; + sun2os3) + basic_machine=m68000-sun + os=-sunos3 + ;; + sun2os4) + basic_machine=m68000-sun + os=-sunos4 + ;; + sun3os3) + basic_machine=m68k-sun + os=-sunos3 + ;; + sun3os4) + basic_machine=m68k-sun + os=-sunos4 + ;; + sun4os3) + basic_machine=sparc-sun + os=-sunos3 + ;; + sun4os4) + basic_machine=sparc-sun + os=-sunos4 + ;; + sun4sol2) + basic_machine=sparc-sun + os=-solaris2 + ;; + sun3 | sun3-*) + basic_machine=m68k-sun + ;; + sun4) + basic_machine=sparc-sun + ;; + sun386 | sun386i | roadrunner) + basic_machine=i386-sun + ;; + sv1) + basic_machine=sv1-cray + os=-unicos + ;; + symmetry) + basic_machine=i386-sequent + os=-dynix + ;; + t3e) + basic_machine=alphaev5-cray + os=-unicos + ;; + t90) + basic_machine=t90-cray + os=-unicos + ;; + tic54x | c54x*) + basic_machine=tic54x-unknown + os=-coff + ;; + tic55x | c55x*) + basic_machine=tic55x-unknown + os=-coff + ;; + tic6x | c6x*) + basic_machine=tic6x-unknown + os=-coff + ;; + tile*) + basic_machine=tile-unknown + os=-linux-gnu + ;; + tx39) + basic_machine=mipstx39-unknown + ;; + tx39el) + basic_machine=mipstx39el-unknown + ;; + toad1) + basic_machine=pdp10-xkl + os=-tops20 + ;; + tower | tower-32) + basic_machine=m68k-ncr + ;; + tpf) + basic_machine=s390x-ibm + os=-tpf + ;; + udi29k) + basic_machine=a29k-amd + os=-udi + ;; + ultra3) + basic_machine=a29k-nyu + os=-sym1 + ;; + v810 | necv810) + basic_machine=v810-nec + os=-none + ;; + vaxv) + basic_machine=vax-dec + os=-sysv + ;; + vms) + basic_machine=vax-dec + os=-vms + ;; + vpp*|vx|vx-*) + basic_machine=f301-fujitsu + ;; + vxworks960) + basic_machine=i960-wrs + os=-vxworks + ;; + vxworks68) + basic_machine=m68k-wrs + os=-vxworks + ;; + vxworks29k) + basic_machine=a29k-wrs + os=-vxworks + ;; + w65*) + basic_machine=w65-wdc + os=-none + ;; + w89k-*) + basic_machine=hppa1.1-winbond + os=-proelf + ;; + xbox) + basic_machine=i686-pc + os=-mingw32 + ;; + xps | xps100) + basic_machine=xps100-honeywell + ;; + ymp) + basic_machine=ymp-cray + os=-unicos + ;; + z8k-*-coff) + basic_machine=z8k-unknown + os=-sim + ;; + z80-*-coff) + basic_machine=z80-unknown + os=-sim + ;; + none) + basic_machine=none-none + os=-none + ;; + +# Here we handle the default manufacturer of certain CPU types. It is in +# some cases the only manufacturer, in others, it is the most popular. + w89k) + basic_machine=hppa1.1-winbond + ;; + op50n) + basic_machine=hppa1.1-oki + ;; + op60c) + basic_machine=hppa1.1-oki + ;; + romp) + basic_machine=romp-ibm + ;; + mmix) + basic_machine=mmix-knuth + ;; + rs6000) + basic_machine=rs6000-ibm + ;; + vax) + basic_machine=vax-dec + ;; + pdp10) + # there are many clones, so DEC is not a safe bet + basic_machine=pdp10-unknown + ;; + pdp11) + basic_machine=pdp11-dec + ;; + we32k) + basic_machine=we32k-att + ;; + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) + basic_machine=sh-unknown + ;; + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) + basic_machine=sparc-sun + ;; + cydra) + basic_machine=cydra-cydrome + ;; + orion) + basic_machine=orion-highlevel + ;; + orion105) + basic_machine=clipper-highlevel + ;; + mac | mpw | mac-mpw) + basic_machine=m68k-apple + ;; + pmac | pmac-mpw) + basic_machine=powerpc-apple + ;; + *-unknown) + # Make sure to match an already-canonicalized machine name. + ;; + *) + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + exit 1 + ;; +esac + +# Here we canonicalize certain aliases for manufacturers. +case $basic_machine in + *-digital*) + basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` + ;; + *-commodore*) + basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` + ;; + *) + ;; +esac + +# Decode manufacturer-specific aliases for certain operating systems. + +if [ x"$os" != x"" ] +then +case $os in + # First match some system type aliases + # that might get confused with valid system types. + # -solaris* is a basic system type, with this one exception. + -solaris1 | -solaris1.*) + os=`echo $os | sed -e 's|solaris1|sunos4|'` + ;; + -solaris) + os=-solaris2 + ;; + -svr4*) + os=-sysv4 + ;; + -unixware*) + os=-sysv4.2uw + ;; + -gnu/linux*) + os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` + ;; + # First accept the basic system types. + # The portable systems comes first. + # Each alternative MUST END IN A *, to match a version number. + # -sysv* is not here because it comes later, after sysvr4. + -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ + | -kopensolaris* \ + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ + | -aos* | -aros* \ + | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ + | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ + | -openbsd* | -solidbsd* \ + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ + | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ + | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ + | -chorusos* | -chorusrdb* | -cegcc* \ + | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ + | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ + | -uxpv* | -beos* | -mpeix* | -udk* \ + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ + | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) + # Remember, each alternative MUST END IN *, to match a version number. + ;; + -qnx*) + case $basic_machine in + x86-* | i*86-*) + ;; + *) + os=-nto$os + ;; + esac + ;; + -nto-qnx*) + ;; + -nto*) + os=`echo $os | sed -e 's|nto|nto-qnx|'` + ;; + -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) + ;; + -mac*) + os=`echo $os | sed -e 's|mac|macos|'` + ;; + -linux-dietlibc) + os=-linux-dietlibc + ;; + -linux*) + os=`echo $os | sed -e 's|linux|linux-gnu|'` + ;; + -sunos5*) + os=`echo $os | sed -e 's|sunos5|solaris2|'` + ;; + -sunos6*) + os=`echo $os | sed -e 's|sunos6|solaris3|'` + ;; + -opened*) + os=-openedition + ;; + -os400*) + os=-os400 + ;; + -wince*) + os=-wince + ;; + -osfrose*) + os=-osfrose + ;; + -osf*) + os=-osf + ;; + -utek*) + os=-bsd + ;; + -dynix*) + os=-bsd + ;; + -acis*) + os=-aos + ;; + -atheos*) + os=-atheos + ;; + -syllable*) + os=-syllable + ;; + -386bsd) + os=-bsd + ;; + -ctix* | -uts*) + os=-sysv + ;; + -nova*) + os=-rtmk-nova + ;; + -ns2 ) + os=-nextstep2 + ;; + -nsk*) + os=-nsk + ;; + # Preserve the version number of sinix5. + -sinix5.*) + os=`echo $os | sed -e 's|sinix|sysv|'` + ;; + -sinix*) + os=-sysv4 + ;; + -tpf*) + os=-tpf + ;; + -triton*) + os=-sysv3 + ;; + -oss*) + os=-sysv3 + ;; + -svr4) + os=-sysv4 + ;; + -svr3) + os=-sysv3 + ;; + -sysvr4) + os=-sysv4 + ;; + # This must come after -sysvr4. + -sysv*) + ;; + -ose*) + os=-ose + ;; + -es1800*) + os=-ose + ;; + -xenix) + os=-xenix + ;; + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) + os=-mint + ;; + -aros*) + os=-aros + ;; + -kaos*) + os=-kaos + ;; + -zvmoe) + os=-zvmoe + ;; + -dicos*) + os=-dicos + ;; + -none) + ;; + *) + # Get rid of the `-' at the beginning of $os. + os=`echo $os | sed 's/[^-]*-//'` + echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 + exit 1 + ;; +esac +else + +# Here we handle the default operating systems that come with various machines. +# The value should be what the vendor currently ships out the door with their +# machine or put another way, the most popular os provided with the machine. + +# Note that if you're going to try to match "-MANUFACTURER" here (say, +# "-sun"), then you have to tell the case statement up towards the top +# that MANUFACTURER isn't an operating system. Otherwise, code above +# will signal an error saying that MANUFACTURER isn't an operating +# system, and we'll never get to this point. + +case $basic_machine in + score-*) + os=-elf + ;; + spu-*) + os=-elf + ;; + *-acorn) + os=-riscix1.2 + ;; + arm*-rebel) + os=-linux + ;; + arm*-semi) + os=-aout + ;; + c4x-* | tic4x-*) + os=-coff + ;; + # This must come before the *-dec entry. + pdp10-*) + os=-tops20 + ;; + pdp11-*) + os=-none + ;; + *-dec | vax-*) + os=-ultrix4.2 + ;; + m68*-apollo) + os=-domain + ;; + i386-sun) + os=-sunos4.0.2 + ;; + m68000-sun) + os=-sunos3 + # This also exists in the configure program, but was not the + # default. + # os=-sunos4 + ;; + m68*-cisco) + os=-aout + ;; + mep-*) + os=-elf + ;; + mips*-cisco) + os=-elf + ;; + mips*-*) + os=-elf + ;; + or32-*) + os=-coff + ;; + *-tti) # must be before sparc entry or we get the wrong os. + os=-sysv3 + ;; + sparc-* | *-sun) + os=-sunos4.1.1 + ;; + *-be) + os=-beos + ;; + *-haiku) + os=-haiku + ;; + *-ibm) + os=-aix + ;; + *-knuth) + os=-mmixware + ;; + *-wec) + os=-proelf + ;; + *-winbond) + os=-proelf + ;; + *-oki) + os=-proelf + ;; + *-hp) + os=-hpux + ;; + *-hitachi) + os=-hiux + ;; + i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) + os=-sysv + ;; + *-cbm) + os=-amigaos + ;; + *-dg) + os=-dgux + ;; + *-dolphin) + os=-sysv3 + ;; + m68k-ccur) + os=-rtu + ;; + m88k-omron*) + os=-luna + ;; + *-next ) + os=-nextstep + ;; + *-sequent) + os=-ptx + ;; + *-crds) + os=-unos + ;; + *-ns) + os=-genix + ;; + i370-*) + os=-mvs + ;; + *-next) + os=-nextstep3 + ;; + *-gould) + os=-sysv + ;; + *-highlevel) + os=-bsd + ;; + *-encore) + os=-bsd + ;; + *-sgi) + os=-irix + ;; + *-siemens) + os=-sysv4 + ;; + *-masscomp) + os=-rtu + ;; + f30[01]-fujitsu | f700-fujitsu) + os=-uxpv + ;; + *-rom68k) + os=-coff + ;; + *-*bug) + os=-coff + ;; + *-apple) + os=-macos + ;; + *-atari*) + os=-mint + ;; + *) + os=-none + ;; +esac +fi + +# Here we handle the case where we know the os, and the CPU type, but not the +# manufacturer. We pick the logical manufacturer. +vendor=unknown +case $basic_machine in + *-unknown) + case $os in + -riscix*) + vendor=acorn + ;; + -sunos*) + vendor=sun + ;; + -cnk*|-aix*) + vendor=ibm + ;; + -beos*) + vendor=be + ;; + -hpux*) + vendor=hp + ;; + -mpeix*) + vendor=hp + ;; + -hiux*) + vendor=hitachi + ;; + -unos*) + vendor=crds + ;; + -dgux*) + vendor=dg + ;; + -luna*) + vendor=omron + ;; + -genix*) + vendor=ns + ;; + -mvs* | -opened*) + vendor=ibm + ;; + -os400*) + vendor=ibm + ;; + -ptx*) + vendor=sequent + ;; + -tpf*) + vendor=ibm + ;; + -vxsim* | -vxworks* | -windiss*) + vendor=wrs + ;; + -aux*) + vendor=apple + ;; + -hms*) + vendor=hitachi + ;; + -mpw* | -macos*) + vendor=apple + ;; + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) + vendor=atari + ;; + -vos*) + vendor=stratus + ;; + esac + basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` + ;; +esac + +echo $basic_machine$os +exit + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "timestamp='" +# time-stamp-format: "%:y-%02m-%02d" +# time-stamp-end: "'" +# End: diff --git a/build-0.3/system/configuration-rules.make b/build-0.3/system/configuration-rules.make new file mode 100644 index 0000000..b1aa605 --- /dev/null +++ b/build-0.3/system/configuration-rules.make @@ -0,0 +1,25 @@ +# file : build/system/configuration-rules.make +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + + +$(dcf_root)/system/configuration-dynamic.make: | $(dcf_root)/system/. + $(call message,,$(bld_root)/system/configure $@) + +ifeq ($(.DEFAULT_GOAL),$(dcf_root)/system/configuration-dynamic.make) +.DEFAULT_GOAL := +endif + + +ifndef %foreign% + +disfigure:: + $(call message,rm $(dcf_root)/system/configuration-dynamic.make,\ +rm -f $(dcf_root)/system/configuration-dynamic.make) + +ifeq ($(.DEFAULT_GOAL),disfigure) +.DEFAULT_GOAL := +endif + +endif diff --git a/build-0.3/system/configure b/build-0.3/system/configure new file mode 100755 index 0000000..621a12a --- /dev/null +++ b/build-0.3/system/configure @@ -0,0 +1,138 @@ +#! /usr/bin/env bash + +# file : build/system/configure +# author : Boris Kolpackov +# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC +# license : GNU GPL v2; see accompanying LICENSE file + +# $1 out file +# +# bld_root - build root +# project_name - project name +# + +source $bld_root/dialog.bash + +$echo +$echo +$echo "configuring '$project_name'" +$echo +$echo + +# Build system. +# + +build=`$bld_root/system/config.guess` + +if [ $? != 0 ]; then + + $echo "unable to determine build system type" + exit 1 +fi + +$echo "build system is $build" + +build_cpu=`echo $build | cut -f 1 -d -` +build_mf=`echo $build | cut -f 2 -d -` +build_kernel=`echo $build | cut -f 3 -d -` +build_os=`echo $build | cut -f 4 -d -` + +if [ -z "$build_os" ]; then + + # Old format: cpu-mf-os + # + build_os=$build_kernel + build_kernel= +fi + + +# Host system. +# + +if [ -n "$host_system" ]; then + + host=`$bld_root/system/config.sub "$host_system"` + + if [ $? != 0 ]; then + + $echo "unable to canonicalize host system '$host_system'" + exit 1 + fi +else + host=$build +fi + +$echo "host system is $host" + +host_cpu=`echo $host | cut -f 1 -d -` +host_mf=`echo $host | cut -f 2 -d -` +host_kernel=`echo $host | cut -f 3 -d -` +host_os=`echo $host | cut -f 4 -d -` + +if [ -z "$host_os" ]; then + + # Old format: cpu-mf-os + # + host_os=$host_kernel + host_kernel= +fi + + +# Target system. +# +if [ -n "$target_system" ]; then + + target=`$bld_root/system/config.sub "$target_system"` + + if [ $? != 0 ]; then + + $echo "unable to canonicalize target system '$target_system'" + exit 1 + fi + + $echo "target system is $target" + + target_cpu=`echo $target | cut -f 1 -d -` + target_mf=`echo $target | cut -f 2 -d -` + target_kernel=`echo $target | cut -f 3 -d -` + target_os=`echo $target | cut -f 4 -d -` + + if [ -z "$target_os" ]; then + + # Old format: cpu-mf-os + # + target_os=$target_kernel + target_kernel= + fi + +else +target= +target_cpu= +target_mf= +target_kernel= +target_os= +fi + + + +# Write the configuration out. +# +echo "system_configuration := y" >$1 +echo >>$1 +echo "build_system := $build" >>$1 +echo "build_cpu := $build_cpu" >>$1 +echo "build_manufacturer := $build_mf" >>$1 +echo "build_os := $build_os" >>$1 +echo "build_kernel := $build_kernel" >>$1 +echo >>$1 +echo "host_system := $host" >>$1 +echo "host_cpu := $host_cpu" >>$1 +echo "host_manufacturer := $host_mf" >>$1 +echo "host_os := $host_os" >>$1 +echo "host_kernel := $host_kernel" >>$1 +echo >>$1 +echo "target_system := $target" >>$1 +echo "target_cpu := $target_cpu" >>$1 +echo "target_manufacturer := $target_mf" >>$1 +echo "target_os := $target_os" >>$1 +echo "target_kernel := $target_kernel" >>$1 diff --git a/libbackend-elements/GPLv2 b/libbackend-elements/GPLv2 new file mode 100644 index 0000000..3912109 --- /dev/null +++ b/libbackend-elements/GPLv2 @@ -0,0 +1,340 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. diff --git a/libbackend-elements/INSTALL b/libbackend-elements/INSTALL new file mode 100644 index 0000000..71f9f4a --- /dev/null +++ b/libbackend-elements/INSTALL @@ -0,0 +1,26 @@ +Prerequisites + + build-time: + + - build >= 0.3.2 http://kolpackov.net/projects/build/ + - g++ >= 3.4.3 http://gcc.gnu.org + + run-time: + + - libcult >= 1.4.1 http://kolpackov.net/projects/libcult/ + - libboost_regex >= 1.33.1 http://boost.org + + +Building libbackend-elements + + To build in the source directory simply say `make'. You can also + build in a separate directory, e.g., + + $ mkdir libbackend-elements-i686-pc-linux-gnu + $ cd libbackend-elements-i686-pc-linux-gnu + $ make -f ../libbackend-elements-x.y.z/makefile + + +Installing libbackend-elements + + Not supported in this version. diff --git a/libbackend-elements/LICENSE b/libbackend-elements/LICENSE new file mode 100644 index 0000000..3204be4 --- /dev/null +++ b/libbackend-elements/LICENSE @@ -0,0 +1,25 @@ +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License version 2 as +published by the Free Software Foundation. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +In addition, as a special exception, Boris Kolpackov gives permission +to combine this library with other incompatibly-licensed modules in a +single program and to distribute such a combination provided that there +is no use of the functionality implemented by this library, directly +or indirectly, by such modules. You must obey the GNU General Public +License version 2 in all respects for all of the code used other than +such modules. In particular, the resulting program must be licensed +under a license compatible with the GNU General Public License version +2. If you modify this copy of the library, you may extend this exception +to your version of the library, but you are not obligated to do so. If +you do not wish to do so, delete this exception statement from your +version. diff --git a/libbackend-elements/NEWS b/libbackend-elements/NEWS new file mode 100644 index 0000000..6e1c5b9 --- /dev/null +++ b/libbackend-elements/NEWS @@ -0,0 +1,91 @@ +Version 1.7.2 + + * Fix a bug in C++ indenter. + + * Add support for libbackend-elements bundling. + + * New boost import stub. + +Version 1.7.1 + + * Add an exception to the licensing terms to allow combining with + incompatibly-licensed modules in a single program. See the LICENSE + file for details. + +Version 1.7.0 + + * Support for the '} foo_;' construct in the C++ indenter. + +Version 1.6.1 + + * Fixed a bug in import stubs. + + * Got rid of warnings reported by g++-4.3. + +Version 1.6.0 + + * New Regex::Pattern class that represents a regex pattern (without + substitution, unlike Regex::Expression). + + * Removed Regex::perl_s functions. Use the Regex::Expression class + which provides extended functionality and better error handling. + +Version 1.5.0 + + * New regex class. + + * Upgraded to the new boost import stub. + +Version 1.4.1 + + * Upgraded to the new boost import stub. + +Version 1.4.0 + + * Support for the do-while construct in the C++ indenter. + +Version 1.3.0 + + * Support for the C-style comments in the C++ indenter. + +Version 1.2.0 + + * Upgraded to build-0.3.0. + +Version 1.1.0 + + * Numerous improvements to the C++ indenter. In particular, it + now can properly indent single-line blocks after if, else, etc. + as well as suppress new lines between }else, }case, and }catch. + It was also optimized for speed. + + * Added a test for the C++ indenter. + + +Version 1.0.4 + + * Upgraded to the version-aware libboost import stub. + + +Version 1.0.3 + + * Upgraded to build-0.2.0. + + * C++ auto-indenter has been improved to recognize and ignore beginnings + of string literals (") and character literals (') in C++-style comments. + + +Version 1.0.2 + + * C++ auto-indenter has been improved to support function argument + indentation. Both "same-line" and "new-line" styles are supported. + + +Version 1.0.1 + + * Build system improvements. + + +Version 1.0.0 + + * First public release. diff --git a/libbackend-elements/README b/libbackend-elements/README new file mode 100644 index 0000000..42bf3d8 --- /dev/null +++ b/libbackend-elements/README @@ -0,0 +1,14 @@ +libbackend_elements is a collection of elementary building for +implementing compiler backends in c++. + +See the NEWS file for the user-visible changes from the previous release. + +See the LICENSE file for distribution conditions. + +See the INSTALL file for prerequisites and installation instructions. + +See the documentation/index.xhtml file for documentation. + +The project page is at http://kolpackov.net/projects/libfrontend_elements/. + +Send bug reports or any other feedback to boris@kolpackov.net . diff --git a/libbackend-elements/backend-elements/indentation/buffer.hxx b/libbackend-elements/backend-elements/indentation/buffer.hxx new file mode 100644 index 0000000..7058814 --- /dev/null +++ b/libbackend-elements/backend-elements/indentation/buffer.hxx @@ -0,0 +1,61 @@ +// file : backend-elements/indentation/buffer.hxx +// author : Boris Kolpackov +// copyright : Copyright (c) 2005-2010 Boris Kolpackov +// license : GNU GPL v2 + exceptions; see accompanying LICENSE file + +#ifndef BACKEND_ELEMENTS_INDENTATION_BUFFER_HXX +#define BACKEND_ELEMENTS_INDENTATION_BUFFER_HXX + +#include + +#include + +namespace BackendElements +{ + namespace Indentation + { + template + class Buffer: public NonCopyable + { + public: + struct Write {}; + + public: + virtual + ~Buffer () + { + } + + public: + typedef + std::char_traits + Traits; + + typedef + typename Traits::char_type + AsChar; + + typedef + typename Traits::int_type + AsInt; + + public: + virtual AsInt + put (AsChar c) = 0; + + // Unbuffer flushes internal formatting buffers (if any). + // Note that unbuffer is not exactly flushing since it can + // result in formatting errors and in general can not be + // called at arbitrary points. Natural use case would be + // to call unbuffer at the end of the stream when no more + // data is expected. + // + virtual Void + unbuffer () = 0; + }; + } +} + +#include + +#endif // BACKEND_ELEMENTS_INDENTATION_BUFFER_HXX diff --git a/libbackend-elements/backend-elements/indentation/buffer.txx b/libbackend-elements/backend-elements/indentation/buffer.txx new file mode 100644 index 0000000..57ba7ab --- /dev/null +++ b/libbackend-elements/backend-elements/indentation/buffer.txx @@ -0,0 +1,12 @@ +// file : backend-elements/indentation/buffer.txx +// author : Boris Kolpackov +// copyright : Copyright (c) 2005-2010 Boris Kolpackov +// license : GNU GPL v2 + exceptions; see accompanying LICENSE file + +namespace BackendElements +{ + namespace Indentation + { + } +} + diff --git a/libbackend-elements/backend-elements/indentation/clip.hxx b/libbackend-elements/backend-elements/indentation/clip.hxx new file mode 100644 index 0000000..068ed0d --- /dev/null +++ b/libbackend-elements/backend-elements/indentation/clip.hxx @@ -0,0 +1,173 @@ +// file : backend-elements/indentation/clip.hxx +// author : Boris Kolpackov +// copyright : Copyright (c) 2005-2010 Boris Kolpackov +// license : GNU GPL v2 + exceptions; see accompanying LICENSE file + +#ifndef BACKEND_ELEMENTS_INDENTATION_CLIP_HXX +#define BACKEND_ELEMENTS_INDENTATION_CLIP_HXX + +#include + +#include + +#include + +namespace BackendElements +{ + namespace Indentation + { + template + class ToStreambufAdapter: public std::basic_streambuf, + public NonCopyable + { + public: + typedef + typename std::basic_streambuf::traits_type + Traits; + + typedef + typename std::basic_streambuf::char_type + AsChar; + + typedef + typename std::basic_streambuf::int_type + AsInt; + + public: + ToStreambufAdapter (Buffer& buffer) + : buffer_ (buffer) + { + } + + virtual AsInt + overflow (AsInt ch) + { + return buffer_.put (Traits::to_char_type (ch)); + } + + virtual Int + sync () + { + return 0; + } + + private: + Buffer& buffer_; + }; + + + template + class FromStreambufAdapter: public Buffer + { + public: + typedef + typename Buffer::Traits + Traits; + + typedef + typename Buffer::AsChar + AsChar; + + typedef + typename Buffer::AsInt + AsInt; + + typedef + typename Buffer::Write + Write; + + public: + FromStreambufAdapter (std::basic_streambuf& b) + : buffer_ (b) + { + } + + virtual AsInt + put (AsChar ch) + { + return buffer_.sputc (ch); + } + + virtual Void + unbuffer () + { + try + { + if (buffer_.pubsync () == 0) return; + } + catch (std::ios_base::failure const&) + { + } + + throw Write (); + } + + private: + std::basic_streambuf& buffer_; + }; + + + template