home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d1xx / d189 / nethack.lha / NetHack / eenaux.zoo / aux / make.ini < prev    next >
Text File  |  1988-07-01  |  2KB  |  68 lines

  1. #    SCCS Id: @(#)Make.ini    1.4    87/08/08
  2. # This is a sample `make.ini' file for NDMAKE v3.7.  You will probably want
  3. # to customize it for your system.
  4.  
  5.  
  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. SETARGV = $(LIB)\$(MODEL)SETARGV
  14. LIBS =
  15. BIN =
  16. LFLAGS =
  17.  
  18. # A universally useful target.
  19. clean:
  20.     +-erase *.bak
  21.     +-erase *.map
  22.  
  23. # .BEFORE and .AFTER can be used to turn DPATH off and on.
  24. .BEFORE:; @+echo For help with ndmake, use the command `make -h'
  25. .AFTER:; @+echo All done.
  26.  
  27.  
  28. # DEFAULT RULES
  29. # To produce a `.obj' file from a `.asm' file using MASM.
  30. .asm.obj:; masm $*.asm;
  31.  
  32. # To produce a `.obj' file from a `.c' file using Microsoft C.
  33. .c.obj:; msc $(CFLAGS) -I\c $*.c
  34.  
  35. # To produce a `.obj' file from a `.for' file using Microsoft Fortran.
  36. .for.obj:
  37.     for1 $*.for;
  38.     pas2
  39.  
  40. # To produce a `.exe' file from an `.obj' file.  Note that there is a
  41. # problem because LIBS may be different for linking `.obj' files
  42. # produced by different compilers (C, FORTRAN, PASCAL, etc).  To avoid
  43. # this problem you may want to have the C compiler produce `.cbj' files,
  44. # the FORTRAN compiler produce `.fbj' files, etc.  Then you could write
  45. # specific rules for `.cbj.exe' and `.fbj.exe' which would use the correct
  46. # libraries.
  47. .obj.exe:
  48.     link $*.obj $(SETARGV), $@,, $(LIBS) $(LFLAGS);
  49.  
  50. # To produce a `.exe' file from a `.asm' file.
  51. .asm.exe:
  52.     masm $*.asm;
  53.     link $*.obj, $@,, $(LIBS)
  54.     erase $*.obj
  55.  
  56. # To produce a `.exe' file from a `.c' file.
  57. .c.exe:
  58.     msc $(CFLAGS) -I\c $*.c
  59.     link $*.obj $(SETARGV), $@,, $(LIBS) $(LFLAGS)
  60.     erase $*.obj
  61.  
  62. # To produce a `.exe' file from a `.for' file.
  63. .for.exe:
  64.     for1 $*.for;
  65.     pas2
  66.     link $*.obj, $@,, $(LIB)\FORTRAN.LIB
  67.     erase $*.obj
  68.