home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / archives / ckc190.zip / ck9ker.mak < prev    next >
Makefile  |  1994-07-15  |  5KB  |  138 lines

  1. # CK9KER.MAK, version 1, 04/30/87 Robert Larson
  2. #             version 2, 04/12/91 Christian Hemsing for kermit 5a
  3. #             version 3, 03/04/92 kermit 5a,beta; explicit 680x0 distinction
  4. #             version 4, 10/01/92 kermit 5a,beta; added MYCURSES
  5. # based on ckuker.mak
  6. #
  7. # -- Makefile to build C-Kermit for os9/68k
  8. #
  9. # Before proceeding, read the instructions below, and also do read the file
  10. # ck9ker.bwr (the "beware file"), and then rename this file to "makefile"
  11. # or "Makefile", and then:
  12. #
  13. # for os9/68k: make
  14. #
  15. # or don't rename it and type: make -f=ck9ker.mak
  16. #
  17. #
  18. #############################################################################
  19. #
  20. # Notes:
  21. #
  22. #   You should remove the -t=/r0 option if you don't have a
  23. #   ramdisk named /r0.
  24. #
  25. #   Change ODIR to where you want the executable (give a full path).
  26. #   Change RDIR to where you want the rels (can be a relative path).
  27. #
  28. ODIR= /r1/exe
  29. RDIR = ./rels
  30. #
  31. #   Edit the PROGRAM macro to the name you want kermit to have
  32. #   Use the apropriate TYPE macro depending on your processor
  33. #
  34. #   If Kermit is too large for your machine you can add some
  35. #   defines to make it smaller:
  36. #   -dNODEBUG   don't include debugging information
  37. #   -dNOHELP    no on-line help
  38. #   -dNOTLOG    no transaction logging
  39. #   -dNOSCRIPT  no UUCP-style script command
  40. #   -dNOCSETS   no character set translation
  41. #   -dNOMSEND   no msend command
  42. #   -dNOICP     no interactive command parser
  43. #   -dNODIAL    no modem support
  44. #   -dNOXMIT    no tranmit command
  45. #   -dNOSPL     no script programming language
  46. #   Edit the TYPE macro according to your machine.
  47. #
  48. #   If you have problems changing the line speed do read ck9ker.bwr and
  49. #   add -dXMODE option to the CFLAGS if neccessary and wanted (see ck9ker.bwr)
  50. #
  51. #   for futher information see ckuins.doc (installation manual)
  52. ###########################################################################
  53. #
  54. #  Compile and Link variables:
  55. #
  56. CC = cc
  57. TYPE=0        #use this if you compile for 68000,68008,68010 or 68070
  58. #TYPE=2        #use this if you compile for 68020,68030
  59. #TYPE=2cw    #use this if you compile for 68020,68030, smaller but slower
  60. #minimum size:
  61. #CFLAGS= -ixt=/r0 -k=$(TYPE)w -dVOID=void -dSIG_V -dDYNAMIC -dNODEBUG \
  62. #   -dNOHELP -dNOTLOG -dNOSCRIPT -dNOCSETS -dNOMSEND -dNODIAL -dNOICP
  63. #maximum size:
  64. CFLAGS= -ixt=/r0 -k=$(TYPE)w -dVOID=void -dSIG_V -dDYNAMIC -dPARSENSE \
  65.         -dKANJI -dMYCURSES
  66. LFLAGS= -ixt=/r0 -k=$(TYPE)w
  67. SDIR = .
  68. PROGRAM= wermit
  69. #
  70. ###########################################################################
  71. #
  72. # Dependencies Section:
  73. #
  74. RFILES = ckcmai.r ckucmd.r ckuusr.r ckuus2.r ckuus3.r ckuus4.r ckuus5.r \
  75.    ckuus6.r ckuus7.r ckuusx.r ckuusy.r ckcpro.r ckcfns.r ckcfn2.r ckcfn3.r \
  76.    ckuxla.r ck9con.r ck9tio.r ck9fio.r ck9asm.r ckudia.r ckuscr.r
  77.  
  78. $(PROGRAM): $(RFILES)
  79.  chd $(RDIR);$(CC) $(LFLAGS) -f=$(ODIR)/$@ $(RFILES)
  80.  
  81. ckcmai.r: ckcmai.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcnet.h
  82.  
  83. ckcpro.r: ckcpro.c ckcker.h ckcdeb.h ckcasc.h
  84.  
  85. ckcpro.c: ckcpro.w wart ckcdeb.h ckcasc.h ckcker.h
  86.  $(ODIR)/wart ckcpro.w ckcpro.c
  87.  
  88. wart: ckwart.r
  89.  chd $(RDIR);$(CC) $(LFLAGS) -f=$(ODIR)/$@ ckwart.r
  90.  
  91. ckwart.r: ckwart.c
  92.  
  93. ckcfns.r: ckcfns.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h ckuxla.h
  94.  
  95. ckcfn2.r: ckcfn2.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h ckuxla.h
  96.  
  97. ckcfn3.r: ckcfn3.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h ckuxla.h
  98.  
  99. ckuxla.r: ckuxla.c ckcker.h ckcdeb.h ckcxla.h ckuxla.h
  100.  
  101. ckuusr.r: ckuusr.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  102.         ckcasc.h ckcnet.h
  103.  
  104. #in case compiled with -k=0w or -k=2cw: explicit -k=0cl 
  105. #(long pc rel. offsets) necessary because too many constants in ckuus2.c
  106. ckuus2.r: ckuus2.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  107.         ckcasc.h
  108.     cc $(CFLAGS) -r=$(RDIR) -k=$(TYPE)cl $*.c
  109.  
  110. ckuus3.r: ckuus3.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  111.         ckcasc.h ckcnet.h
  112.  
  113. ckuus4.r: ckuus4.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  114.         ckcasc.h ckcnet.h ckuver.h
  115.  
  116. ckuus5.r: ckuus5.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcasc.h
  117.  
  118. ckuus6.r: ckuus6.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcasc.h
  119.  
  120. ckuus7.r: ckuus7.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  121.         ckcasc.h ckcnet.h
  122.  
  123. ckuusx.r: ckuusx.c  ckcker.h ckuusr.h ckcdeb.h ckcasc.h
  124.  
  125. ckuusy.r: ckuusy.c  ckcker.h ckcdeb.h ckcasc.h
  126.  
  127. ckucmd.r: ckucmd.c ckcasc.h ckucmd.h ckcdeb.h
  128.  
  129. ck9fio.r: ck9fio.c ckcker.h ckcdeb.h
  130.  
  131. ck9tio.r: ck9tio.c ckcdeb.h
  132.  
  133. ck9con.r: ck9con.c ckcker.h ckcdeb.h
  134.  
  135. ckudia.r: ckudia.c ckcker.h ckcdeb.h ckucmd.h ckcasc.h
  136.  
  137. ckuscr.r: ckuscr.c ckcker.h ckcdeb.h ckcasc.h
  138.