Contents | < Browse | Browse >

Aglet M2 Installation
_________________________________________________________________________


To Install:

Unpack the distribution file into a temporary location.

Run the installation script, "AgletM2.installer".




The above should do the complete install, but since this is my first installer script, in case it gives problems, here are the steps that it takes:

Pick a base directory for the Modula-2 package

For example, "Work:AgletM2". This directory holds the executables and thus should be on your default Shell (and Workbench) path. eg, put "path Work:AgletM2 add" into your S:user-startup file.


Unpack the executables into your chosen directory using the file "agletM2Exec.lha"

These executables are M2, M2LK, M2Err for the Compiler/Linker,
M2IDE, M2IDELogger, EdtFront, GedFront, CedFront for the IDE.


Copy some Miscellaneous Files

Also unpack the file "agletM2Miscs.lha" into this directory provides this .guide file, some GoldEd files that might be useful for Modula-2, and a few "Name List" files for M2IDE.


Set up the directory tree for the default library modules search, "M2L:".


"M2L:" is actually a multi-assign of five subdirectories of the package base directory, one for each of the support module groups: System, Amiga, ISO, Reaction, and Sysmod.

These will be used by the various programs as a location in which to look for symbol and object files during a translation. You will need to do a multi-Assign to make it available to the executables. eg,

ASSIGN m2l: Work:M2L/System Work:M2L/Amiga Work:M2L/ISO Work:M2L/Reaction Work:M2L/Sysmod


Populate the Support Module Library Directory Tree, ie the module groups mentioned above.

Some pre-compiled object files can be extracted from the file "agletM2Objs.lha", the sources for the Definition modules from "agletM2Defs.lha", and the Implementation modules from "agletM2Mods.lha".


Build the rest of the Object Files

Run, in order, the following Amiga OS scripts:

Execute MakeSystem.s "<basedir>/System"
AmigaPrj.s "<basedir>/Amiga"
IsoPrj.s "<basedir>/ISO"
ReactionPrj.s "<basedir>/Reaction"
SysmodPrj.s "<basedir>/Sysmod"


Choose the editor for M2IDE to use

Simply copy the file GedFront or CedFront into a file named "EdtFront", which the IDE starts up for communication with your selected editor.


-