home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / c-kermit / ck9ker.ucc < prev    next >
Text File  |  2020-01-01  |  6KB  |  180 lines

  1. # CK9KER.UCC, 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, 06/28/96 C-Kermit 6.0.192, James Jones, modified for
  8. #                                 Microware Ultra C compiler
  9. # based on ckuker.mak
  10. #
  11. # -- Makefile to build C-Kermit for os9/68k
  12. #
  13. # Before proceeding, read the instructions below, and also do read the file
  14. # ck9ker.bwr (the "beware file"), and then rename this file to "makefile"
  15. # or "Makefile", and then:
  16. #
  17. # for os9/68k: make
  18. #
  19. # or don't rename it and type: make -f=ck9ker.ucc
  20. #
  21. # for C-Kermit with network support type:
  22. #
  23. # make -b wermit_net [-f=ck9ker.ucc]
  24. #
  25. #
  26. #############################################################################
  27. #
  28. # Notes:
  29. #
  30. #   You should remove the -td=/r0 option if you don't have a
  31. #   ramdisk named /r0 or if it's too small to hold temporary files.
  32. #
  33. #   Change ODIR to where you want the executable (give a full path).
  34. #   Change RDIR to where you want the rels (can be a relative path).
  35. #
  36. ODIR= /dd/cmds
  37. RDIR = ./rels
  38. #
  39. #   Edit the PROGRAM macro to the name you want kermit to have
  40. #   Use the apropriate TYPE macro depending on your processor
  41. #
  42. #   If Kermit is too large for your machine you can add some
  43. #   defines to make it smaller:
  44. #   -dNODEBUG   don't include debugging information
  45. #   -dNOHELP    no on-line help
  46. #   -dNOTLOG    no transaction logging
  47. #   -dNOSCRIPT  no UUCP-style script command
  48. #   -dNOCSETS   no character set translation
  49. #   -dNOMSEND   no msend command
  50. #   -dNOICP     no interactive command parser
  51. #   -dNODIAL    no modem support
  52. #   -dNOXMIT    no transmit command
  53. #   -dNOSPL     no script programming language
  54. #   Edit the TYPE macro according to your machine.
  55. #
  56. #   If you have problems changing the line speed do read ck9ker.bwr and
  57. #   add -dXMODE option to the CFLAGS if neccessary and wanted (see ck9ker.bwr)
  58. #
  59. #   for futher information see ckuins.doc (installation manual)
  60. ###########################################################################
  61. #
  62. #  Compile and Link variables:
  63. #
  64. CC = cc
  65. KFLAGS =
  66. KLFLAGS =
  67. TYPE=68000c        #use this if you compile for 68000,68008,68010 or 68070
  68. #TYPE=68020c    #use this if you compile for 68020,68030
  69. #TYPE=cpu32c    #use this if you compile for CPU32
  70. #
  71. # minimum size:
  72. #
  73. #CPPFLAGS= -dVOID=void -dSIG_V -dDYNAMIC -dNODEBUG -dNOHELP -dNOTLOG \
  74. # -dNOSCRIPT -dNOCSETS -dNOMSEND -dNODIAL -dNOICP -dCK_ANSIC $(KFLAGS)
  75.  
  76. #
  77. # maximum size:
  78. #
  79. #CPPFLAGS= -dVOID=void -dSIG_V -dDYNAMIC -dPARSENSE -dKANJI -dMYCURSES -dZFCDAT\
  80. # -dCK_APC -dCK_REDIR -dRENAME -dCK_TTYFD -DNOOLDMODEMS -dCK_ANSIC $(KFLAGS)
  81.  
  82. # chosen size:
  83. CPPFLAGS= -dVOID=void -dSIG_V -dDYNAMIC -dPARSENSE -dKANJI -dMYCURSES -dZFCDAT\
  84.  -dCK_APC -dCK_REDIR -dRENAME -dCK_TTYFD -DNOOLDMODEMS -dCK_ANSIC $(KFLAGS)
  85.  
  86. # CFLAGS are set for small code; we will override w/explicit commands
  87. # for files that are commented as being time-critical
  88.  
  89. CFLAGS= -i -tp=$(TYPE) $(CPPFLAGS) -dOSK -s=2 # -td=/r0
  90. LFLAGS= $(KLFLAGS) -i -tp=$(TYPE) # -td=/r0
  91. SDIR = .
  92. PROGRAM= wermit
  93. #
  94. ###########################################################################
  95. #
  96. # Dependencies Section:
  97. #
  98. RFILES = ckcmai.r ckucmd.r ckuusr.r ckuus2.r ckuus3.r ckuus4.r ckuus5.r \
  99.    ckuus6.r ckuus7.r ckuusx.r ckuusy.r ckcpro.r ckcfns.r ckcfn2.r ckcfn3.r \
  100.    ckuxla.r ck9con.r ck9tio.r ck9fio.r ck9asm.r ckudia.r ckuscr.r \
  101.    ckusig.r
  102.  
  103. $(PROGRAM): $(RFILES)
  104.  chd $(RDIR);$(CC) $(LFLAGS) -olM=24K -l=sys_clib.l -f=$(ODIR)/$@ $(RFILES)
  105.  
  106. $(PROGRAM)_net:
  107.     make -f=ck9ker.ucc ckcnet.r $(PROGRAM) "KFLAGS=-DTCPSOCKET" \
  108.     "KLFLAGS=-l=ckcnet.r -l=netdb.l -l=socklib.l"
  109.  
  110. ckcmai.r: ckcmai.c ckcsym.h ckcasc.h ckcdeb.h ckcker.h ckcnet.h ckuusr.h \
  111.   ckcsig.h 
  112.  
  113. ckcpro.r: ckcpro.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h 
  114.  
  115. ckcpro.c: ckcpro.w wart # ckcsym.h ckcdeb.h ckcasc.h ckcker.h
  116.  $(ODIR)/wart ckcpro.w ckcpro.c
  117.  
  118. wart: ckwart.r
  119.  chd $(RDIR);$(CC) $(LFLAGS) -f=$(ODIR)/$@ ckwart.r
  120.  
  121. ckwart.r: ckwart.c ckcsym.h ckcdeb.h 
  122.  
  123. ckcfns.r: ckcfns.c ckcsym.h ckcasc.h ckcdeb.h ckcker.h ckcxla.h
  124.   $(CC) $(CFLAGS) -t=5 -eas=$(RDIR) $*.c
  125.  
  126. ckcfn2.r: ckcfn2.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckcxla.h ckuxla.h
  127.  
  128. ckcfn3.r: ckcfn3.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckcxla.h ckuxla.h
  129.  
  130. ckuxla.r: ckuxla.c ckcsym.h ckcdeb.h ckcker.h ckucmd.h ckcxla.h ckuxla.h
  131.  
  132. ckuusr.r: ckuusr.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckuusr.h ckucmd.h \
  133.   ckcxla.h ckuxla.h ckcnet.h 
  134.  
  135. ckuus2.r: ckuus2.c ckcsym.h ckcdeb.h ckcnet.h ckcasc.h ckcker.h ckuusr.h \
  136.   ckucmd.h ckcxla.h ckuxla.h 
  137.  
  138. ckuus3.r: ckuus3.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckcxla.h ckuxla.h \
  139.   ckcnet.h ckuusr.h ckucmd.h 
  140.  
  141. ckuus4.r: ckuus4.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckuusr.h ckucmd.h \
  142.   ckuver.h ckcnet.h ckcxla.h ckuxla.h 
  143.  
  144. ckuus5.r: ckuus5.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckuusr.h ckucmd.h \
  145.   ckcnet.h ckcxla.h ckuxla.h 
  146.  
  147. # compiling for 68xxx: explicit long data to avoid excess non-remote data
  148. ckuus6.r: ckuus6.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckuusr.h ckucmd.h \
  149.   ckcxla.h ckuxla.h ckcnet.h 
  150.     cc $(CFLAGS) -eas=$(RDIR) -tp=$(TYPE)d $*.c
  151.  
  152. ckuus7.r: ckuus7.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckcxla.h ckuxla.h \
  153.   ckcnet.h ckuusr.h ckucmd.h 
  154.     cc $(CFLAGS) -eas=$(RDIR) -tp=$(TYPE)d $*.c
  155.  
  156. ckuusx.r: ckuusx.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckuusr.h ckucmd.h \
  157.   ckcxla.h ckuxla.h ckcsig.h
  158.  
  159. ckuusy.r: ckuusy.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckucmd.h ckcnet.h 
  160.  
  161. ckucmd.r: ckucmd.c ckcsym.h ckcdeb.h ckucmd.h ckcker.h ckcasc.h 
  162.  
  163. ck9fio.r: ck9fio.c ckcsym.h ckcdeb.h ckcker.h ckcasc.h 
  164.  
  165. ck9tio.r: ck9tio.c ckcsym.h ckcdeb.h ckcnet.h 
  166.   $(CC) $(CFLAGS) -dO_GOODDRIVER -t=5 -eas=$(RDIR) $*.c
  167.  
  168. ck9con.r: ck9con.c ckcsym.h ckcdeb.h ckucmd.h ckcker.h ckcasc.h ckcxla.h \
  169.   ckuxla.h ckcnet.h 
  170.  
  171. ckudia.r: ckudia.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckucmd.h ckcnet.h \
  172.   ckuusr.h ckcsig.h
  173.  
  174. ckuscr.r: ckuscr.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckuusr.h ckucmd.h \
  175.   ckcnet.h ckcsig.h
  176.  
  177. ckcnet.r: ckcnet.c ckcsym.h ckcdeb.h ckcker.h ckcnet.h ckcsig.h
  178.  
  179. ckusig.r: ckusig.c ckcasc.h ckcdeb.h ckcker.h ckcnet.h ckuusr.h ckcsig.h
  180.