home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume3 / mmake / README < prev   
Encoding:
Text File  |  1989-02-03  |  2.1 KB  |  63 lines

  1. Wed May 18 14:32:38 PDT 1988
  2.  
  3. Mmake - Support for Makefiles on multiple operating systems and environments.
  4.  
  5. usage:
  6.     Create a file called "MMakefile", or "mmakefil" on MS-DOS.  This file
  7.     can contain C preprocessor directives such as "#ifdef MSDOS" in order
  8.     to control the make process.  The mmake program is invoked by simply
  9.     typing "mmake <args>".  The arguments to mmake are passed to the C
  10.     preprocessor, or the make program as appropriate.
  11.  
  12. description:
  13.     This program grew out of the need to support simultaneous development
  14.     on the Un*x operating system and MS-D*S.  Because of the nature of the
  15.     C compilers on each system, it was necessary to maintain two seperate
  16.     Makefiles.  This program allows a single makefile to exist which then
  17.     will expand differently depending on the OS in which it is run.  For
  18.     example the following MMakefile might be used to compile with debug
  19.     enabled.
  20.  
  21.         /* Makefile w/ Debug */
  22.  
  23.         #if MSDOS
  24.         DEBUG=-Zi -Od
  25.         PROG=main.exe
  26.         #else
  27.         DEBUG=-g
  28.         PROG=main
  29.         #endif
  30.  
  31.         CFLAGS= $(DEBUG)
  32.  
  33.         $(PROG): main.o
  34.             $(CC) -o $(PROG) $(DEBUG) prog.o
  35.  
  36.     In the msdos environment, the program main.exe will be compiled to
  37.     include symbol table information for the CodeView(r) debugger, and
  38.     in the Unix environment, the standard system debug information will
  39.     be present.
  40.  
  41.  
  42.     To build mmake, just compile the mmake.c file and name the output
  43.     mmake, or mmake.exe if in MS-DOS.  No makefile is provided since
  44.     this is a case where a MMakefile would be nice and you can't mmake
  45.     mmake if mmake doesn't exist!
  46.  
  47.     This program was developed on an HP 9000/840 running HP-UX 1.2.  It
  48.     has also been tested on an IBM AT compatible running PC-DOS 3.3, and
  49.     the MicroSoft C 5.0 compiler.  The make program used on the PC was
  50.     NdMake 4.3.  In addition this program will compile and run under the
  51.     BSD 4.2 or 4.3 operating system.
  52.  
  53.     If there are any questions, or you have any bugs to report or
  54.     enhancements to suggest, don't hesitate to contact me.
  55.  
  56.  
  57.             Eric Schneider, System Manager
  58.             Computer Science Department
  59.             Washington State University
  60.             Pullman, WA  99164-1210
  61.  
  62.             eric@cs1.wsu.edu (CSNET)
  63.