home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / minix1 / mxtker.mak < prev    next >
Makefile  |  2020-01-01  |  3KB  |  117 lines

  1. # CKTKER.MAK, Version 1.0, 4 Feb 88
  2. #
  3. # -- Makefile to build C-Kermit for Minix, 
  4. #                      -- using Lattice 3.10 compiler under MS-DOS.
  5. #                      -- using Lattice make utility "lmk"
  6. #
  7. # Before proceeding, rename this file to "lmkfile", chop cktker.inp off the
  8. # bottom, and set the include path variable so Lattice can find <.h> and 
  9. # <sys/.h> files. e.g.
  10. # 'set INCLUDE=\minix\usr\include\'
  11. # for minix /usr/include files in the DOS directory \minix\usr\include.
  12. # Perhaps there's a way to do this SET from the makefile ???
  13. #
  14. ##############################################################################
  15. #
  16. # Notes:
  17. #    Since wart is run on DOS to generate ckcpro.c, some fiddling 
  18. #    has to be done to avoid getting MINIX stdio.h and ctype.h
  19. #    compiled into wart.exe.
  20. #
  21. #
  22. ###########################################################################
  23. #
  24. #  Compile and Link variables:
  25. #
  26. LIB=a:\\        # where DOS library is
  27. MXLIB=a:\\        # where MINIX library is
  28. CC=lc
  29. TMP=c:            # where compiler temporary files go
  30. #
  31. # Use this macro if debug and transaction logging is required.
  32. #
  33. CFLAGS=-ms -n -cw -v -q$(TMP) -u -i./ -dV7 -dDEBUG -dTLOG -dMINIX 
  34. #
  35. # Disabling debugging appears (surprisingly) to offer very little
  36. # improvement (other than a 10K size decrease).
  37. #
  38. # CFLAGS=-ms -n -cw -v -q$(TMP) -u -i./ -dV7 -dMINIX
  39. #
  40. ###########################################################################
  41. #
  42. # Dependencies Section:
  43. #
  44.  
  45. c:wermit.out: c:wermit.exe
  46.     dos2out -p c:wermit
  47.  
  48. c:wermit.exe: ckcmai.obj ckucmd.obj ckuusr.obj ckuus2.obj ckuus3.obj \
  49.         ckcpro.obj ckcfns.obj ckcfn2.obj ckucon.obj ckutio.obj \
  50.         ckufio.obj ckudia.obj ckuscr.obj
  51.     link $(MXLIB)crtso.obj emlib.obj setjmp.obj @cktker.inp, \
  52.         c:wermit,c:wermit/map,$(MXLIB)libc.lib
  53.  
  54. ckcmai.obj: ckcmai.c ckcker.h ckcdeb.h
  55.     $(CC) $(CFLAGS) $*
  56.  
  57. ckuusr.obj: ckuusr.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h
  58.     $(CC) $(CFLAGS) $*
  59.  
  60. ckuus2.obj: ckuus2.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h
  61.     $(CC) $(CFLAGS) $*
  62.  
  63. ckuus3.obj: ckuus3.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h
  64.     $(CC) $(CFLAGS) $*
  65.  
  66. ckucmd.obj: ckucmd.c ckucmd.h ckcdeb.h
  67.     $(CC) $(CFLAGS) $*
  68.  
  69. ckcpro.obj: ckcpro.c ckcker.h ckcdeb.h
  70.     $(CC) $(CFLAGS) $*
  71.  
  72. ckcfns.obj: ckcfns.c ckcker.h ckcdeb.h
  73.     $(CC) $(CFLAGS) $*
  74.  
  75. ckcfn2.obj: ckcfn2.c ckcker.h ckcdeb.h
  76.     $(CC) $(CFLAGS) $*
  77.  
  78. ckufio.obj: ckufio.c ckcker.h ckcdeb.h
  79.     $(CC) $(CFLAGS) $*
  80.  
  81. ckutio.obj: ckutio.c ckcdeb.h
  82.     $(CC) $(CFLAGS) $*
  83.  
  84. ckucon.obj: ckucon.c ckcker.h ckcdeb.h
  85.     $(CC) $(CFLAGS) $*
  86.  
  87. ckudia.obj: ckudia.c ckcker.h ckcdeb.h
  88.     $(CC) $(CFLAGS) $*
  89.  
  90. ckuscr.obj: ckuscr.c ckcker.h ckcdeb.h
  91.     $(CC) $(CFLAGS) $*
  92.  
  93. #
  94. # Be careful building wart - it must use Lattice (i.e DOS) include files, 
  95. # not MINIX ones. Hence not part of the main target.
  96. #
  97. # ckcpro.c: ckcpro.w wart.exe
  98. #    wart ckcpro.w ckcpro.c
  99. #
  100. # wart: ckwart.o
  101. #    $(CC) $(LNKFLAGS) -o wart ckwart.o
  102. #
  103. # ckwart.o: ckwart.c
  104. #
  105.  
  106. # ***********************************************************************
  107. # The following text is the input file cktker.inp, for the MS-DOS linker.
  108. # It is included as part of this file to keep the fragments of the build
  109. # files in one place. Remove it from this file before attempting to use
  110. # lmk.
  111. # ***********************************************************************
  112.  
  113. ckcmai.obj ckucmd.obj ckuusr.obj ckuus2.obj ckuus3.obj +
  114. ckcpro.obj ckcfns.obj ckcfn2.obj ckucon.obj ckutio.obj +
  115. ckufio.obj ckudia.obj ckuscr.obj
  116.  
  117.