summaryrefslogtreecommitdiffstats
path: root/INSTALL.MPW
blob: ce65b945f5aa0120f6bb95ed2297fb2b0eda769a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# $Id$


        ### Installing Objective Caml on a Macintosh with MPW ###



# This file describes how to install and recompile Objective Caml
# in the MPW environment under MacOS 7, 8, 9.  For MacOS X, see
# the instructions for Unix machines in the file INSTALL.


# PREREQUISITES

# You need MPW 3.5 (with MrC) and Universal Interfaces version 3.3.2
# You need WASTE version 1.3
#
# MPW is available from Apple's FTP site at:
# <ftp://ftp.apple.com/devworld/Tool_Chest/Core_Mac_OS_Tools/MPW_etc./>
#
# WASTE 1.3 is available from:
# <ftp://ftp.inria.fr/INRIA/caml-light/WASTE-1.3.sit.bin>


# INSTALLATION INSTRUCTIONS
#
# To install Objective Caml in your MPW environment, follow this script.
# Read the comments and execute the commands.  If you run the commands
# without changing anything, you'll get a reasonable default configuration.

# Before you start, you must put the WASTE 1.3 distribution folder
# into the :maccaml:WASTE: folder.


# Go to the directory where you found this file.

Directory "`echo "{active}" | streamedit -e '1 replace /[�:]*�/ ""'`"

# Set the O'Caml configuration files.

Duplicate -y :config:s-MacOS.h :config:s.h
Duplicate -y :config:m-MacOS.h :config:m.h

# Copy some useful scripts to your Commands directory.
#   DoMake is absolutely needed for installation
#   Characters is only needed by the executable error messages

Duplicate :tools:DoMake :tools:Characters "{MPW}User Commands:"

# NOTE: if you have MakeDepend from a previous version of O'Caml, you
# must remove it from "{MPW}User Commands:".  It is not needed any more
# since MPW 3.5 has a MakeDepend command.


# Build the WASTE libraries:

Directory ":maccaml:WASTE:WASTE 1.3 Distribution:"
DoMake -f ::Makefile WASTELib.x �� "{worksheet}"
Directory ::::

# Edit ":config:config.Mac" to change the configuration.
#   (mostly, the destination folders for installation)

Open :config:config.Mac

# Set the configuration variables.

Execute :config:config.Mac

# O'Caml needs an environment variable to find its library files.
# (the value is taken from the configuration variables)

Set -e CAMLLIB "{LIBDIR}"

# Make it persistent.

Set CAMLLIB > "{MPW}Startup Items:OCaml"

# Now you're all set.  Build the files and install everything.
# For more explanations on these steps, see the file INSTALL.

begin
  DoMake world
  DoMake bootstrap
  DoMake install
end �� "{worksheet}"

# If you want syntax coloring in MPW Shell, use ResEdit to copy the
# resources from :tools:keywords into the shell.