home *** CD-ROM | disk | FTP | other *** search
/ Phoenix CD 2.0 / Phoenix_CD.cdr / 15a / ndmake30.zip / MAKE.INI < prev   
Text File  |  1986-03-17  |  1KB  |  54 lines

  1. # This is a sample `make.ini' file for NDMAKE v3.0.  You will probably want
  2. # to customize it for your system.
  3.  
  4. # Print the `make -h' message
  5. .HELP
  6.  
  7. # The order to search for rules and files is specified by .SUFFIXES
  8. .SUFFIXES : .exe .obj .c .for .asm
  9.  
  10. # A few macros.
  11. CFLAGS = -A$(MODEL)
  12. MODEL = S
  13. LIBS =            # none yet
  14.  
  15. # DEFAULT RULES
  16. # To produce a `.obj' file from a `.asm' file.
  17. .asm.obj:; masm $*.asm;
  18.  
  19. # To produce a `.obj' file from a `.c' file.
  20. .c.obj:; cl $(CFLAGS) -c $*.c
  21.  
  22. # To produce a `.obj' file from a `.for' file.
  23. .for.obj:
  24.     for1 $*.for;
  25.     pas2
  26.  
  27. # To produce a `.exe' file from an `.obj' file.  Note that there is a
  28. # problem because LIBS may be different for linking `.obj' files
  29. # produced by different compilers (C, FORTRAN, PASCAL, etc).  To avoid
  30. # this problem you may want to have the C compiler produce `.cbj' files,
  31. # the FORTRAN compiler produce `.fbj' files, etc.  Then you could write
  32. # specific rules for `.cbj.exe' and `.fbj.exe' which would use the correct
  33. # libraries.
  34. .obj.exe:; link $*.obj, $@, nul, $(LIBS)
  35.  
  36. # To produce a `.exe' file from a `.asm' file.
  37. .asm.exe:
  38.     masm $*.asm;
  39.     link $*.obj, $@, nul, $(LIBS)
  40.     erase $*.obj
  41.  
  42. # To produce a `.exe' file from a `.c' file.
  43. .c.exe:
  44.     cl $(CFLAGS) -c $*.c
  45.     link $*.obj, $@;
  46.     erase $*.obj
  47.  
  48. # To produce a `.exe' file from a `.for' file.
  49. .for.exe:
  50.     for1 $*.for;
  51.     pas2
  52.     link $*.obj, $@, nul, $(LIB)\FORTRAN.LIB
  53.     erase $*.obj
  54.