Go to the first, previous, next, last section, table of contents.
The following are some of the commands that may be used in an
m3makefile. They declare their arguments as private: visible
only within the current package. To declare an interface or module as
public, use the capitalized version (e.g., Interface(), Implementation(),
etc.).
- interface(X) / generic_interface(X)
- Declares that the file X.i3 (or X.ig for generics) contains an
interface. All interface files that you create must appear in interface
commands. Leave the .i3/.ig extension off.
- implementation(X) / generic_implementation(X)
- Declares that the file X.m3 (or X.mg for generics) contains a module.
All module files that you create must appear in implementation commands.
Leave the .m3/.mg extension off.
- module("X") / generic_module("X")
- Declares X.i3 and X.m3 with one command (X.ig and X.mg for generics).
- program(<name>)
- An m3makefile generally has one program command. This specifies what to
name the program executable.
- library(<name>)
- If the m3makefile describes a collection of interfaces and modules that
are designed to be a library instead of a program, use this command
instead of program().
- import(<lib>)
- This command specifies packages to be imported. The
libm3
package must be included in all Modula-3 programs with the import
command.
Go to the first, previous, next, last section, table of contents.