diff options
author | Guido van Rossum <guido@python.org> | 1994-08-29 08:58:39 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1994-08-29 08:58:39 (GMT) |
commit | 8ce65b4cde000e8648fdccf5371509c5953551d1 (patch) | |
tree | bfd665f065bbc88fc35e47ce0a409680f36fd516 /Mac | |
parent | 739267b7c34c0bdf934059804fde3f027e84bd0b (diff) | |
download | cpython-8ce65b4cde000e8648fdccf5371509c5953551d1.zip cpython-8ce65b4cde000e8648fdccf5371509c5953551d1.tar.gz cpython-8ce65b4cde000e8648fdccf5371509c5953551d1.tar.bz2 |
README, Makfiles and `buildall' script to build Python under MPW 3.2.
Diffstat (limited to 'Mac')
-rw-r--r-- | Mac/MPW/README | 49 | ||||
-rw-r--r-- | Mac/MPW/buildall | 29 |
2 files changed, 78 insertions, 0 deletions
diff --git a/Mac/MPW/README b/Mac/MPW/README new file mode 100644 index 0000000..004ea43 --- /dev/null +++ b/Mac/MPW/README @@ -0,0 +1,49 @@ +From: walker@island.com (Richard Walker) +Date: Wed, 1 Jun 94 15:28:40 PDT + +Compiling Python Under MPW C +============================ + +This directory contains the Makefiles, source files and scripts +required to compile Python under MPW C. + +Compiling: +---------- +the "buildall" file at the top level is an MPW script +which rebuilds the entire Python source. + +To build, start the MPW Shell and select the Worksheet window. +Go to top level directory of the Python source tree. +Type: buildall<ENTER> + +To rebuild: +Type: buildall clean<ENTER> +Type: buildall<ENTER> + +Configuration: +-------------- +The files "Makefile", "config.h", "Modules:config.c" and +"Modules:Makefile" are normally configured and/or generated +automagically under Unix. + +Macintosh programmers will have to be content with editing +these files manually to reflect their desired configuration. +The files provided here are examples only; Modules which +made it into this version are those which required little or +no modification. + +Running: +-------- +The top-level Makefile compiles Python as an MPW Tool. +You can then run Python interactively from within +the MPW Worksheet. + +Diagnostics: +------------ +If Python fails to run by aborting in file "Parser:grammar1.c", +at the end of the function "finddfa", line 46, +try defining the preprocessor symbol "MPW_881_BUG" in +file "Parser:acceler.c", function "fixstate", line 107. + +XXX Note that you have to edit test_grammar.py because of a bug +in int overflow det that I haven't found yet. diff --git a/Mac/MPW/buildall b/Mac/MPW/buildall new file mode 100644 index 0000000..5b1794a --- /dev/null +++ b/Mac/MPW/buildall @@ -0,0 +1,29 @@ +Set Defines "-d MPW -d HAVE_CONFIG_H" +Set Includes "-i :: -i ::Include -i ::Mac" +Set SymOptions "-sym off" +Set ModelOptions "-model far" +Set OtherOptions "-warnings off" +Set LinkOptions "{SymOptions} {ModelOptions}" +Set COptions "{OtherOptions} {SymOptions} {ModelOptions} {Defines} {Includes}" +# For compiling code resources; Restrictions apply +Set ResCOptions "{SymOptions} -model near -b {Defines} {Includes} " + +Export ResCOptions +Export COptions +Export LinkOptions + +# modules with the source in a single sub directory +Date +Directory {Python} +for MODULE in Parser Mac Modules Objects Python + Directory :{MODULE}: + Echo "### `Directory`: make {1}" + make {1} > makefile.out + makefile.out + Directory :: +end + +Echo "### `Directory`: make {1}" +make {1} > makefile.out +makefile.out + |