From: Guido van Rossum Date: Mon, 29 Aug 1994 08:58:39 +0000 (+0000) Subject: README, Makfiles and `buildall' script to build Python under MPW 3.2. X-Git-Tag: v1.1~156 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8ce65b4cde000e8648fdccf5371509c5953551d1;p=thirdparty%2FPython%2Fcpython.git README, Makfiles and `buildall' script to build Python under MPW 3.2. --- diff --git a/Mac/MPW/README b/Mac/MPW/README new file mode 100644 index 000000000000..004ea431a8f1 --- /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 + +To rebuild: +Type: buildall clean +Type: buildall + +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 000000000000..5b1794ae7239 --- /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 +