45 lines
1.4 KiB
Groff
45 lines
1.4 KiB
Groff
.TH M2MM 1ACK
|
|
.ad
|
|
.SH NAME
|
|
m2mm \- Modula-2 makefile generator
|
|
.SH SYNOPSIS
|
|
\fBm2mm\fP [ \fB-I\fPdir \fB-M\fPflags \fB-C\fPcompiler \fB-S\fPsuffix ] file ...
|
|
.SH DESCRIPTION
|
|
.I M2mm
|
|
is a makefile generator and fast syntax checker for Modula-2 programs.
|
|
The makefile is produced on standard output.
|
|
.I M2mm
|
|
will generate rules to produce an object file
|
|
for every module used in the argument files.
|
|
In addition, it will generate a rule to make a program, for each of the
|
|
program modules given as argument.
|
|
Using
|
|
.IR make (1)
|
|
without an argument will make all these programs.
|
|
.PP
|
|
In the makefile, the variables \fBMOD\fP, \fBM2FLAGS\fP, \fBIFLAGS\fP, and
|
|
\fBSUFFIX\fP will be defined.
|
|
The generated rules have the following form:
|
|
.DS
|
|
\fIname\fP.$(SUFFIX): ...
|
|
$(MOD) -c $(M2FLAGS) $(IFLAGS) \fIname\fP.mod
|
|
.DE
|
|
.I M2mm
|
|
recognizes the following options:
|
|
.IP \fB-I\fP\fIdir\fP
|
|
Add \fIdir\fP to the list of directories where definition modules are
|
|
looked for. Also add the flag to \fBIFLAGS\fP.
|
|
The default value for \fBIFLAGS\fP is empty.
|
|
.IP \fB-M\fP\fIflags\fP
|
|
Set \fBM2FLAGS\fP to \fIflags\fP.
|
|
.IP \fB-C\fP\fIcompiler\fP
|
|
Set \fBMOD\fP to \fIcompiler\fP.
|
|
The default value for \fBMOD\fP is "ack" (for the time being).
|
|
.IP \fB-S\fPsuffix
|
|
Set \fBSUFFIX\fP to \fIsuffix\fP.
|
|
The default suffix is "o".
|
|
.SH SEE ALSO
|
|
.IR make "(1), " modula-2 (1)
|
|
.SH DIAGNOSTICS
|
|
Are intended to be self-explanatory.
|