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

  1. # CK9KER.MAK, version 1, 07/25/91 Christian Hemsing
  2. #             version 2, 10/01/92 Christian Hemsing, added MYCURSES
  3. #             version 3, 01/05/95 Ulli Schlueter for 5A(190); added CK_APC,
  4. #                                 CK_REDIR, and RENAME
  5. #             version 4, 07/05/96 James Jones, for 6.0.192; added ckcsig.h
  6. #                                 dependencies
  7. # based on ckuker.mak
  8. #
  9. # -- Makefile to build C-Kermit for os9/68k with gcc compiler
  10. #
  11. # Before proceeding, read the instructions below, and also do read the file
  12. # ck9ker.bwr (the "beware file"), and then rename this file to "makefile"
  13. # or "Makefile", and then:
  14. #
  15. # for os9/68k: make
  16. #
  17. # or don't rename it and type: make -f=ck9ker.gcc
  18. #
  19. #
  20. # for C-Kermit with network support type:
  21. #
  22. # make -b wermit_net [-f=ck9ker.gcc]
  23. #
  24. #
  25. #############################################################################
  26. #
  27. # Notes:
  28. #
  29. #   You should remove the -T/r0 option if you don't have a
  30. #   ramdisk named /r0.
  31. #
  32. #   Change ODIR to where you want the executable (give a full path).
  33. #   Change RDIR to where you want the rels (can be a relative path).
  34. #
  35. ODIR= /r1/gccexe
  36. RDIR = ./gccrels
  37. #
  38. #   Edit the PROGRAM macro to the name you want kermit to have
  39. #
  40. #   If Kermit is too large for your machine you can add some
  41. #   defines to make it smaller.
  42. #   -DNODEBUG   don't include debugging information
  43. #   -DNOHELP    no on-line help
  44. #   -DNOTLOG    no transaction logging
  45. #   -DNOSCRIPT  no UUCP-style script command
  46. #   -DNOCSETS   no character set translation
  47. #   -DNOMSEND   no msend command
  48. #   -DNOICP     no interactive command parser
  49. #   -DNODIAL    no modem support
  50. #   -DNOXMIT    no tranmit command
  51. #   -DNOSPL     no script programming language
  52. #
  53. #   If you have problems changing the line speed do read ck9ker.bwr and
  54. #   add -DXMODE option to the CPPFLAGS if neccessary and wanted
  55. #   (see ck9ker.bwr)
  56. #   for futher information see ckuins.doc (installation manual)
  57. ###########################################################################
  58. #
  59. #  Compile and Link variables:
  60. #
  61. CC = gcc
  62. KFLAGS =
  63. KLFLAGS =
  64. #
  65. # minimum size:
  66. #
  67. #CPPFLAG = -DCK_ANSIC -DSIG_V -DDYNAMIC -DNODEBUG -DNOHELP -DNOTLOG \
  68. # -DNOSCRIPT -DNOCSETS -DNOMSEND -DNODIAL -DNOICP $(KFLAGS)
  69.  
  70. #
  71. # maximum size:
  72. #
  73. CPPFLAG = -DCK_ANSIC -DSIG_V -DDYNAMIC -DPARSENSE -DKANJI -DMYCURSES -DZFCDAT\
  74.  -DCK_APC -DCK_REDIR -DRENAME -DCK_TTYFD -DNOOLDMODEMS $(KFLAGS)
  75.  
  76. SDIR = .
  77. PROGRAM= wermit
  78. GCCLFLAGS= $(KLFLAGS) #-cio
  79. GCCFLAGS_WO = -O -T/r0 -ob
  80. GCCFLAGS = $(GCCFLAGS_WO) -o68
  81. COMPILE_WO = gcc -DOSK -W -c -ansi $(CPPFLAG) $(GCCFLAGS_WO)
  82. COMPILE = gcc -DOSK -W -c -ansi $(CPPFLAG) $(GCCFLAGS)
  83. #
  84. ###########################################################################
  85. #
  86. # Dependencies Section:
  87. #
  88. RFILES = ckcmai.r ckucmd.r ckuusr.r ckuus2.r ckuus3.r ckuus4.r ckuus5.r \
  89.    ckuus6.r ckuus7.r ckuusx.r ckuusy.r ckcpro.r ckcfns.r ckcfn2.r ckcfn3.r \
  90.    ckuxla.r ck9con.r ck9tio.r ck9fio.r ck9ren.r ck9asm.r ckudia.r ckuscr.r \
  91.    ckusig.r
  92.  
  93. $(PROGRAM): $(RFILES)
  94.  chd $(RDIR);$(CC) $(GCCLFLAGS) -o $(ODIR)/$@ $(RFILES) -g -s 17
  95.  
  96. $(PROGRAM)_net:
  97.     make -f=ck9ker.gcc ckcnet.r $(PROGRAM) "KFLAGS=-DTCPSOCKET"\
  98.     "KLFLAGS=-lckcnet.r -l/dd/lib/netdb.l -l/dd/lib/socklib.l"
  99.  
  100. ckcmai.r: ckcmai.c ckcsym.h ckcasc.h ckcdeb.h ckcker.h ckcnet.h ckuusr.h \
  101.   ckusig.h
  102.     $(COMPILE) $*.c -o $(RDIR)/$*.r
  103.  
  104. ckcpro.r: ckcpro.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h 
  105.     $(COMPILE) $*.c -o $(RDIR)/$*.r
  106.  
  107. ckcpro.c: ckcpro.w wart # ckcsym.h ckcdeb.h ckcasc.h ckcker.h
  108.  $(ODIR)/wart ckcpro.w ckcpro.c
  109.  
  110. wart: ckwart.r
  111.  chd $(RDIR);$(CC) $(GCCLFLAGS) -cio -o $(ODIR)/$@ ckwart.r
  112.  
  113. ckwart.r: ckwart.c ckcsym.h ckcdeb.h 
  114.     $(COMPILE) $*.c -o $(RDIR)/$*.r
  115.  
  116. ckcfns.r: ckcfns.c ckcsym.h ckcasc.h ckcdeb.h ckcker.h ckcxla.h ckuxla.h 
  117.     $(COMPILE) $*.c -o $(RDIR)/$*.r
  118.  
  119. ckcfn2.r: ckcfn2.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckcxla.h ckuxla.h 
  120.     $(COMPILE) $*.c -o $(RDIR)/$*.r
  121.  
  122. ckcfn3.r: ckcfn3.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckcxla.h ckuxla.h
  123.     $(COMPILE) $*.c -o $(RDIR)/$*.r
  124.  
  125. ckuxla.r: ckuxla.c ckcsym.h ckcdeb.h ckcker.h ckucmd.h ckcxla.h ckuxla.h 
  126.     $(COMPILE) $*.c -o $(RDIR)/$*.r
  127.  
  128. ckuusr.r: ckuusr.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckuusr.h ckucmd.h \
  129.   ckcxla.h ckuxla.h ckcnet.h 
  130.     $(COMPILE) $*.c -o $(RDIR)/$*.r
  131.  
  132. ckuus2.r: ckuus2.c ckcsym.h ckcdeb.h ckcnet.h ckcasc.h ckcker.h ckuusr.h \
  133.   ckucmd.h ckcxla.h ckuxla.h 
  134.     $(COMPILE_WO) -mlong-calls $*.c -o $(RDIR)/$*.r
  135.  
  136. ckuus3.r: ckuus3.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckcxla.h ckuxla.h \
  137.   ckcnet.h ckuusr.h ckucmd.h 
  138.     $(COMPILE) $*.c -o $(RDIR)/$*.r
  139.  
  140. ckuus4.r: ckuus4.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckuusr.h ckucmd.h \
  141.   ckuver.h ckcnet.h ckcxla.h ckuxla.h 
  142.     $(COMPILE) $*.c -o $(RDIR)/$*.r
  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.     $(COMPILE) $*.c -o $(RDIR)/$*.r
  147.  
  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.     $(COMPILE) $*.c -o $(RDIR)/$*.r
  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.     $(COMPILE) $*.c -o $(RDIR)/$*.r
  155.  
  156. ckuusx.r: ckuusx.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckuusr.h ckucmd.h \
  157.   ckcxla.h ckuxla.h 
  158.     $(COMPILE) $*.c -o $(RDIR)/$*.r
  159.  
  160. ckuusy.r: ckuusy.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckucmd.h ckcnet.h 
  161.     $(COMPILE) $*.c -o $(RDIR)/$*.r
  162.  
  163. ckucmd.r: ckucmd.c ckcsym.h ckcdeb.h ckucmd.h ckcker.h ckcasc.h 
  164.     $(COMPILE) $*.c -o $(RDIR)/$*.r
  165.  
  166. ck9fio.r: ck9fio.c ckcsym.h ckcdeb.h ckcker.h ckcasc.h 
  167.     $(COMPILE) $*.c -o $(RDIR)/$*.r
  168.  
  169. ck9ren.r: ck9ren.c ckcsym.h ckcdeb.h 
  170.     $(COMPILE) $*.c -o $(RDIR)/$*.r
  171.  
  172. ck9tio.r: ck9tio.c ckcsym.h ckcdeb.h ckcnet.h 
  173.     $(COMPILE) -DO_GOODDRIVER $*.c -o $(RDIR)/$*.r
  174.  
  175. ck9con.r: ck9con.c ckcsym.h ckcdeb.h ckucmd.h ckcker.h ckcasc.h ckcxla.h \
  176.   ckuxla.h ckcnet.h 
  177.     $(COMPILE) $*.c -o $(RDIR)/$*.r
  178.  
  179. ckudia.r: ckudia.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckucmd.h ckcnet.h \
  180.   ckuusr.h 
  181.     $(COMPILE) $*.c -o $(RDIR)/$*.r
  182.  
  183. ckuscr.r: ckuscr.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckuusr.h ckucmd.h \
  184.   ckcnet.h ckcsig.h
  185.     $(COMPILE) $*.c -o $(RDIR)/$*.r
  186.  
  187. ckcnet.r: ckcnet.c ckcsym.h ckcdeb.h ckcker.h ckcnet.h ckcsig.h
  188.     $(COMPILE) $*.c -o $(RDIR)/$*.r
  189.