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

  1. #    SCCS Id: @(#)Maketcc.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 = -m$(MODEL)
  12. MODEL = h
  13. LIBS = c:\c\lib\emu.lib c:\c\lib\math$(MODEL).lib c:\c\lib\c$(MODEL).lib
  14. BIN =
  15. LFLAGS =
  16.  
  17. # A universally useful target.
  18. #clean:
  19. #    +-erase *.bak
  20. #    +-erase *.map
  21.  
  22. # .BEFORE and .AFTER can be used to turn DPATH off and on.
  23. #.BEFORE:; @+echo For help with ndmake, use the command `make -h'
  24. #.AFTER:; @+echo All done.
  25.  
  26.  
  27. # DEFAULT RULES
  28. # To produce a `.obj' file from a `.asm' file using MASM.
  29. .asm.obj:
  30.     masm $*.asm;
  31.  
  32. # To produce a `.obj' file from a `.c' file using Microsoft C.
  33. .c.obj:
  34.     tcc -c $(CFLAGS) $*.c
  35.  
  36. # To produce a `.obj' file from a `.for' file using Microsoft Fortran.
  37. .for.obj:
  38.     for1 $*.for;
  39.     pas2
  40.  
  41. # To produce a `.exe' file from an `.obj' file.  Note that there is a
  42. # problem because LIBS may be different for linking `.obj' files
  43. # produced by different compilers (C, FORTRAN, PASCAL, etc).  To avoid
  44. # this problem you may want to have the C compiler produce `.cbj' files,
  45. # the FORTRAN compiler produce `.fbj' files, etc.  Then you could write
  46. # specific rules for `.cbj.exe' and `.fbj.exe' which would use the correct
  47. # libraries.
  48. .obj.exe:
  49.     tlink c:\c\lib\c0$(MODEL).obj $*.obj,$@,,$(LIBS) $(LFLAGS);
  50.  
  51. # To produce a `.exe' file from a `.asm' file.
  52. .asm.exe:
  53.     masm $*.asm;
  54.     tlink $*.obj, $@,, $(LIBS)
  55.     erase $*.obj
  56.  
  57. # To produce a `.exe' file from a `.c' file.
  58. .c.exe:
  59.     tcc $(CFLAGS) $*.c
  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.