home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / archives / ck9192.tar.Z / ck9192.tar / ck9ker.mak < prev    next >
Text File  |  1996-12-14  |  6KB  |  176 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. #             version 5, 01/05/95 kermit 5A(190); add CK_APC, CK_REDIR, RENAME
  6. #             version 6, 06/18/96 C-Kermit 6.0.192, fdc, add ck[cu]sig.[ch]
  7. #             version 7, 07/05/96 James Jones, corrected ckcsig.h, ckwart.c
  8. #                                 dependencies
  9. #             version 8, 12/11/96 Add -ltermlib.l to LFLAGS macro
  10. #
  11. # based on ckuker.mak
  12. #
  13. # -- Makefile to build C-Kermit for os9/68k
  14. #
  15. # Before proceeding, read the instructions below, and also do read the file
  16. # ck9ker.bwr (the "beware file"), and then rename this file to "makefile"
  17. # or "Makefile", and then:
  18. #
  19. # for os9/68k: make
  20. #
  21. # or don't rename it and type: make -f=ck9ker.mak
  22. #
  23. # for C-Kermit with network support type:
  24. #
  25. # make -b wermit_net [-f=ck9ker.mak]
  26. #
  27. #
  28. #############################################################################
  29. #
  30. # Notes:
  31. #
  32. #   You should remove the -t=/r0 option if you don't have a
  33. #   ramdisk named /r0.
  34. #
  35. #   Change ODIR to where you want the executable (give a full path).
  36. #   Change RDIR to where you want the rels (can be a relative path).
  37. #
  38. ODIR= /r1/exe
  39. RDIR = ./rels
  40. #
  41. #   Edit the PROGRAM macro to the name you want kermit to have
  42. #   Use the apropriate TYPE macro depending on your processor
  43. #
  44. #   If Kermit is too large for your machine you can add some
  45. #   defines to make it smaller:
  46. #   -dNODEBUG   don't include debugging information
  47. #   -dNOHELP    no on-line help
  48. #   -dNOTLOG    no transaction logging
  49. #   -dNOSCRIPT  no UUCP-style script command
  50. #   -dNOCSETS   no character set translation
  51. #   -dNOMSEND   no msend command
  52. #   -dNOICP     no interactive command parser
  53. #   -dNODIAL    no modem support
  54. #   -dNOXMIT    no tranmit command
  55. #   -dNOSPL     no script programming language
  56. #   Edit the TYPE macro according to your machine.
  57. #
  58. #   If you have problems changing the line speed do read ck9ker.bwr and
  59. #   add -dXMODE option to the CFLAGS if neccessary and wanted (see ck9ker.bwr)
  60. #
  61. #   for futher information see ckuins.doc (installation manual)
  62. ###########################################################################
  63. #
  64. #  Compile and Link variables:
  65. #
  66. CC = cc
  67. KFLAGS =
  68. KLFLAGS =
  69. TYPE=0        #use this if you compile for 68000,68008,68010 or 68070
  70. #TYPE=2        #use this if you compile for 68020,68030
  71. #TYPE=2cw    #use this if you compile for 68020,68030, smaller but slower
  72. #
  73. # minimum size:
  74. #
  75. #CPPFLAGS= -dVOID=void -dSIG_V -dDYNAMIC -dNODEBUG -dNOHELP -dNOTLOG \
  76. # -dNOSCRIPT -dNOCSETS -dNOMSEND -dNODIAL -dNOICP $(KFLAGS)
  77.  
  78. #
  79. # maximum size:
  80. #
  81. CPPFLAGS= -dVOID=void -dSIG_V -dDYNAMIC -dPARSENSE -dKANJI -dMYCURSES -dZFCDAT\
  82.  -dCK_APC -dCK_REDIR -dRENAME -dCK_TTYFD -DNOOLDMODEMS $(KFLAGS)
  83.  
  84. CFLAGS= -ixt=/r0 -k=$(TYPE)w $(CPPFLAGS)
  85. LFLAGS= $(KLFLAGS) -ixt=/r0 -k=$(TYPE)w -l=termlib.l
  86. SDIR = .
  87. PROGRAM= wermit
  88. #
  89. ###########################################################################
  90. #
  91. # Dependencies Section:
  92. #
  93. RFILES = ckcmai.r ckucmd.r ckuusr.r ckuus2.r ckuus3.r ckuus4.r ckuus5.r \
  94.    ckuus6.r ckuus7.r ckuusx.r ckuusy.r ckcpro.r ckcfns.r ckcfn2.r ckcfn3.r \
  95.    ckuxla.r ck9con.r ck9tio.r ck9fio.r ck9ren.r ck9asm.r ckudia.r ckuscr.r \
  96.    ckusig.r
  97.  
  98. $(PROGRAM): $(RFILES)
  99.  chd $(RDIR);$(CC) $(LFLAGS) -m=17 -f=$(ODIR)/$@ $(RFILES)
  100.  
  101. $(PROGRAM)_net:
  102.     make -f=ck9ker.mak ckcnet.r $(PROGRAM) "KFLAGS=-DTCPSOCKET" \
  103.     "KLFLAGS=-l=ckcnet.r -l=/dd/lib/netdb.l -l=/dd/lib/socklib.l"
  104.  
  105. ckcmai.r: ckcmai.c ckcsym.h ckcasc.h ckcdeb.h ckcker.h ckcnet.h ckuusr.h \
  106.   ckcsig.h 
  107.  
  108. ckcpro.r: ckcpro.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h 
  109.  
  110. ckcpro.c: ckcpro.w wart # ckcsym.h ckcdeb.h ckcasc.h ckcker.h
  111.  $(ODIR)/wart ckcpro.w ckcpro.c
  112.  
  113. wart: ckwart.r
  114.  chd $(RDIR);$(CC) $(LFLAGS) -f=$(ODIR)/$@ ckwart.r
  115.  
  116. ckwart.r: ckwart.c ckcsym.h ckcdeb.h 
  117.  
  118. ckcfns.r: ckcfns.c ckcsym.h ckcasc.h ckcdeb.h ckcker.h ckcxla.h ckuxla.h 
  119.  
  120. ckcfn2.r: ckcfn2.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckcxla.h ckuxla.h 
  121.  
  122. ckcfn3.r: ckcfn3.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckcxla.h ckuxla.h 
  123.  
  124. ckuxla.r: ckuxla.c ckcsym.h ckcdeb.h ckcker.h ckucmd.h ckcxla.h ckuxla.h 
  125.  
  126. ckuusr.r: ckuusr.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckuusr.h ckucmd.h \
  127.   ckcxla.h ckuxla.h ckcnet.h 
  128.  
  129. #in case compiled with -k=0w or -k=2cw: explicit -k=0cl 
  130. #(long pc rel. offsets) necessary because too many constants in ckuus2.c
  131. ckuus2.r: ckuus2.c ckcsym.h ckcdeb.h ckcnet.h ckcasc.h ckcker.h ckuusr.h \
  132.   ckucmd.h ckcxla.h ckuxla.h 
  133.     cc $(CFLAGS) -r=$(RDIR) -k=$(TYPE)cl $*.c
  134.  
  135. ckuus3.r: ckuus3.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckcxla.h ckuxla.h \
  136.   ckcnet.h ckuusr.h ckucmd.h 
  137.  
  138. ckuus4.r: ckuus4.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckuusr.h ckucmd.h \
  139.   ckuver.h ckcnet.h ckcxla.h ckuxla.h 
  140.  
  141. ckuus5.r: ckuus5.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckuusr.h ckucmd.h \
  142.   ckcnet.h ckcxla.h ckuxla.h 
  143.  
  144. ckuus6.r: ckuus6.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckuusr.h ckucmd.h \
  145.   ckcxla.h ckuxla.h ckcnet.h 
  146.  
  147. ckuus7.r: ckuus7.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckcxla.h ckuxla.h \
  148.   ckcnet.h ckuusr.h ckucmd.h 
  149.  
  150. ckuusx.r: ckuusx.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckuusr.h ckucmd.h \
  151.   ckcxla.h ckuxla.h ckcsig.h
  152.  
  153. ckuusy.r: ckuusy.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckucmd.h ckcnet.h 
  154.  
  155. ckucmd.r: ckucmd.c ckcsym.h ckcdeb.h ckucmd.h ckcker.h ckcasc.h 
  156.  
  157. ck9fio.r: ck9fio.c ckcsym.h ckcdeb.h ckcker.h ckcasc.h 
  158.  
  159. ck9ren.r: ck9ren.c ckcsym.h ckcdeb.h 
  160.  
  161. ck9tio.r: ck9tio.c ckcsym.h ckcdeb.h ckcnet.h 
  162.   $(CC) $(CFLAGS) -dO_GOODDRIVER -r=$(RDIR) $*.c
  163.  
  164. ck9con.r: ck9con.c ckcsym.h ckcdeb.h ckucmd.h ckcker.h ckcasc.h ckcxla.h \
  165.   ckuxla.h ckcnet.h 
  166.  
  167. ckudia.r: ckudia.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckucmd.h ckcnet.h \
  168.   ckuusr.h ckcsig.h
  169.  
  170. ckuscr.r: ckuscr.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckuusr.h ckucmd.h \
  171.   ckcnet.h ckcsig.h
  172.  
  173. ckcnet.r: ckcnet.c ckcsym.h ckcdeb.h ckcker.h ckcnet.h ckcsig.h
  174.  
  175. ckusig.r: ckusig.c ckcasc.h ckcdeb.h ckcker.h ckcnet.h ckuusr.h ckcsig.h
  176.