home *** CD-ROM | disk | FTP | other *** search
- Wed May 18 14:32:38 PDT 1988
-
- Mmake - Support for Makefiles on multiple operating systems and environments.
-
- usage:
- Create a file called "MMakefile", or "mmakefil" on MS-DOS. This file
- can contain C preprocessor directives such as "#ifdef MSDOS" in order
- to control the make process. The mmake program is invoked by simply
- typing "mmake <args>". The arguments to mmake are passed to the C
- preprocessor, or the make program as appropriate.
-
- description:
- This program grew out of the need to support simultaneous development
- on the Un*x operating system and MS-D*S. Because of the nature of the
- C compilers on each system, it was necessary to maintain two seperate
- Makefiles. This program allows a single makefile to exist which then
- will expand differently depending on the OS in which it is run. For
- example the following MMakefile might be used to compile with debug
- enabled.
-
- /* Makefile w/ Debug */
-
- #if MSDOS
- DEBUG=-Zi -Od
- PROG=main.exe
- #else
- DEBUG=-g
- PROG=main
- #endif
-
- CFLAGS= $(DEBUG)
-
- $(PROG): main.o
- $(CC) -o $(PROG) $(DEBUG) prog.o
-
- In the msdos environment, the program main.exe will be compiled to
- include symbol table information for the CodeView(r) debugger, and
- in the Unix environment, the standard system debug information will
- be present.
-
-
- To build mmake, just compile the mmake.c file and name the output
- mmake, or mmake.exe if in MS-DOS. No makefile is provided since
- this is a case where a MMakefile would be nice and you can't mmake
- mmake if mmake doesn't exist!
-
- This program was developed on an HP 9000/840 running HP-UX 1.2. It
- has also been tested on an IBM AT compatible running PC-DOS 3.3, and
- the MicroSoft C 5.0 compiler. The make program used on the PC was
- NdMake 4.3. In addition this program will compile and run under the
- BSD 4.2 or 4.3 operating system.
-
- If there are any questions, or you have any bugs to report or
- enhancements to suggest, don't hesitate to contact me.
-
-
- Eric Schneider, System Manager
- Computer Science Department
- Washington State University
- Pullman, WA 99164-1210
-
- eric@cs1.wsu.edu (CSNET)
-