home *** CD-ROM | disk | FTP | other *** search
-
- Documentation for Compiling
- Copyright © 1991 by Ben Eng
-
-
- HOW TO MAKE
-
- The source code for this program was written for the DICE C compiler,
- version 2.06.22, by Matthew Dillon. The tab size is set to 4. You will
- require the 2.0 Amiga include files from CATS of Commodore-Amiga to compile
- this program. The source code should compile under any ANSI C compiler for
- the Amiga, but I wouldn't bet on it.
-
- If the executable, `bmake', needs to be recompiled then the following
- procedure should be used.
-
- First, rename one of the binary executables (either `bigmake' or
- `minimake') to the name `make' and move it to a directory in your shell's
- execution path. The Makefile supplied with the program is probably
- incompatible with more primitive versions of Make.
-
- The `include/scdir.h' header file should be copied to a directory in the
- include path for your compiler. The compiler should be set up to compile
- using the Amiga OS 2.0 (or later) include files.
-
- The link library `ben.lib' needs to be made first. Change your directory
- to the `ben' directory and type `make'. If all goes well, then the
- `ben.lib' library will be created; it should be moved to the library search
- path for your compiler, so that the linker will be able to find it.
-
- Change your directory to the main source directory for the make utility and
- type `make' to create the binary executable file `bmake'. This file can be
- renamed to the standard `make', and placed in the command search path for
- convenience.
-
-
- PARAMETERS
-
- DEBUG = (1 default) non-zero if debug calls are activated
-
- Defining DEBUG to 0 will disable code generation for the debugging
- option. The -d command line option will be disabled if DEBUG is 0.
- DEBUG enabled by default (in make.h). Enabling DEBUG adds about 2400
- bytes to the size of the final executable.
-
- FNCALLS = (1 default) non-zero if function calls are activated
-
- If function calls are recognized, this parameter should be defined
- to be non-zero. Disabling function calls will make the executable
- somewhat smaller, and memory requirements will be lower. Enabling
- FNCALLS adds about 4600 bytes to the size of the final executable.
-
- MAXLINE = (1024 default) the maximum number of characters allowed per line
-
- This parameter limits the maximum size of a line that can be read from
- a Makefile, the maximum size of a line that can be assigned to a
- variable, and the maximum size of a macro expansion. Effectively,
- MAXLINE is the upper limit on anything manipulated by the Make program.
- Lines of this size are declared in static storage (input.c) and
- dynamically (macro.c, etc.).
-
- MAXSUFFIX = (16 default) the maximum number of characters in a suffix
-
- This parameter limits the maximum size of filename extensions
- recognized by the Make program. This affects suffix rules and other
- operations that operating on suffixes. Suffixes are allocated on
- the stack and dynamically in this fixed size.
-
- MAX_MACRONAME = (256 default) the maximum number of characters in a name
-
- This parameter limits the size of a macro name.
-
- MAXPATHNAME = (108 default) the maximum number of characters in a pathname
-
- This parameter limits the size of a pathname that can be used to
- resolve suffix rules. Dynamically allocated.
-
-
- OPTIONS
-
- In the Makefile, the -gs option can added to CFLAGS to enable DICE's
- dynamic stack code. It makes the program grow in size by a couple of
- kilobytes, and it slows down execution by a few milliseconds, but it does
- make it safe to run the Make program on a huge Makefile that makes
- extensive use of recursive macros and rules, without having to worry about
- overflowing the stack.
-
-