home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
375.lha
/
m2make_v1.02
/
m2make.doc
< prev
next >
Wrap
Text File
|
1990-05-02
|
8KB
|
167 lines
M2Make - Modula-2 make utility. Version 1.02
Bugs Fixed:
o User size and Library size calculated correctly internally.
o Linkage now performed even if no compiles were necessary, but one or more
object files were out of sync with the target binary file.
o Verbose level indentation corrected.
Revisions:
o Update flag 'c' removed. It had little use, and caused problems.
o Immediate mode compiles now cause the binary output from the compile to
be time re-stamped internally to reflect their new creation time.
o Changed a few message formats.
Description:
M2Make will scan your M2 source code, checking for date synchronization of
all files that your program IMPORT's. M2Make will then report which files
need to be re-compiled, and can optionally re-compile them for you.
USAGE:
Parameters in '<>' pairs are required.
Parameters in '{} are optional.
Parameters separated by '|' mean any combination is valid.
Parameters separated by '\' mean only one can be chosen.
Parameters in '<>' pairs within '{}' pairs are considered required
only if the parameter in the '{}' pair is specified.
Any words after a '*' are comments.
Note: You need not actually type '{}' or '<>' when you run M2make.
They are used only in describing the M2Make parameters.
M2Make <Filename> *The main file for M2Make to scan.
*This is considered the 'target' file.
{ -q | -t | -v | -z } *Message level. Default = -t
* -q = Quiet. No messages.
* -t = Terse.
* -v = Verbose.
* -z = Debug. Internal use only.
{ -u a|d|l|m|n } *Update flags. Default = -u cdm
* a = Update all file, regardless of
* datestamp.
* d = Update DEFINITION modules only.
* l = Perform a re-linkage if any
* modules are re-compiled.
* m = Update IMPLEMENTATION or MODULE
* modules only.
* n = Update no modules.
{ -b <batchname> | *Run type. Default = -s.
-x <executename> | * -b = Create a batch file of just the
-i | * program names being compiled.
-s *
} * -x = Create a file that can be used
* with the DOS execute command.
* -cn parameter also required
* if -x is specified.
* -i = Compile immediately.
* -cn parameter also required
* if -x is specified.
* -s = Show only what needs to be
* re-compiled. Equivalent to
* 'n' Update flag.
{ -cn <compilername> } *Compiler name. Default = -cn m2
* Name of compiler to use with -x and
* -i Run types.
{ -cf <compilerflags> } *Compiler flags. Default = blank.
* Compiler specific flags for use with
* -b, -x, -i Run types. Surround with
* single quotes if there are any
* spaces or '-' in the compiler flags.
{ -ln <linkername> } *Linker name. Default = m2lk
* Name of linker to use if 'l' flag
* specified in the Update flags.
{ -lf <linkerflags> } *Linker flags. Default = blank.
* Linker specific flags for use with
* 'l' Update flag.
{ -us <number> } *User file size. Default = 25.
* number = Max number of user files
* for internal buffer.
{ -ls <number> } *Library file size. Default = 25.
* number = Max number of library files
* for internal buffer.
{ -m <modextension> } *Mod file extension. Default = 'mod'.
* File extension that IMPLEMENTATION
* or MODULE modules use.
{ -d <defextension> } *Def file extension. Default = 'def'.
* File extension that DEFINITION
* modules use.
{ -l <lnkextension> } *Lnk file extension. Default = 'obm'.
* File extension that compiled
* IMPLEMENTATION or MODULE modules
* use.
{ -s <symextension> } *Sym file extension. Default = 'sbm'.
* File extension that compiled
* DEFINITION modules use.
Examples:
m2make File1 -t -b xxx.bat -cf '-g -h 1000'
Check File1.mod IMPORT list and place compiler command
in file 'xxx.bat'.
Minimal messages are displayed.
m2make File2 -v -e xxx -u cml -lf '-d -a'
Check File2.mod IMPORT list, compiling only changed .mod
files. Place compiler command in file 'xxx', which can later be
sent to DOS command 'execute'. If File2.mod needs a re-compile,
the command 'm2lk File2 -d -a' will be placed as the last line
in file 'xxx'.
Verbose messages are displayed.
m2make File3 -q -i -u al -cn modula -ln m2link
Check File3.mod, forcing a re-compile of it and every module
it IMPORT's. The compile will happen immediately for each
file, using compiler name 'modula'. After all files are re-compiled,
File3 will be re-linked using linker name 'm2link'
No messages will be displayed.
TDI example:
Here is what you need to specify for TDI Modula-2 usage.
m2make FileName -cn modula -cf REF -ln link -ln 'OPT DTABLE'
-s sym -l lnk
Questions, comments - contact tcoffey on BIX.
Tim Coffey
( 614 ) 848-9724