home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / archives / ckc190.zip / ck9ker.gcc < prev    next >
Text File  |  1993-06-30  |  5KB  |  151 lines

  1. # CK9KER.MAK, version 1, 07/25/91 Christian Hemsing
  2. #             version 2, 10/01/92 Christian Hemsing, added MYCURSES
  3. # based on ckuker.mak
  4. #
  5. # -- Makefile to build C-Kermit for os9/68k with gcc compiler
  6. #
  7. # Before proceeding, read the instructions below, and also do read the file
  8. # ck9ker.bwr (the "beware file"), and then rename this file to "makefile"
  9. # or "Makefile", and then:
  10. #
  11. # for os9/68k: make
  12. #
  13. # or don't rename it and type: make -f=ck9ker.gcc
  14. #
  15. #
  16. #############################################################################
  17. #
  18. # Notes:
  19. #
  20. #   You should remove the -T/r0 option if you don't have a
  21. #   ramdisk named /r0.
  22. #
  23. #   Change ODIR to where you want the executable (give a full path).
  24. #   Change RDIR to where you want the rels (can be a relative path).
  25. #
  26. ODIR= /r1/gccexe
  27. RDIR = ./gccrels
  28. #
  29. #   Edit the PROGRAM macro to the name you want kermit to have
  30. #
  31. #   If Kermit is to large for your machine you can add some
  32. #   defines to make it smaller.
  33. #   -DNODEBUG   don't include debugging information
  34. #   -DNOHELP    no on-line help
  35. #   -DNOTLOG    no transaction logging
  36. #   -DNOSCRIPT  no UUCP-style script command
  37. #   -DNOCSETS   no character set translation
  38. #   -DNOMSEND   no msend command
  39. #   -DNOICP     no interactive command parser
  40. #   -DNODIAL    no modem support
  41. #   -DNOXMIT    no tranmit command
  42. #   -DNOSPL     no script programming language
  43. #
  44. #   If you have problems changing the line speed do read ck9ker.bwr and
  45. #   add -DXMODE option to the CPPFLAGS if neccessary and wanted
  46. #   (see ck9ker.bwr)
  47. #   for futher information see ckuins.doc (installation manual)
  48. ###########################################################################
  49. #
  50. #  Compile and Link variables:
  51. #
  52. CC = gcc
  53. #minimum size:
  54. #CPPFLAG = -DVOID=void -DSIG_V -DDYNAMIC -DNODEBUG \
  55. #   -DNOHELP -DNOTLOG -DNOSCRIPT -DNOCSETS -DNOMSEND -DNODIAL -DNOICP
  56. #maximum size:
  57. CPPFLAG = -DSIG_V -DDYNAMIC -DPARSENSE -DKANJI -DMYCURSES
  58. SDIR = .
  59. PROGRAM= wermit
  60. GCCLFLAGS= -cio
  61. GCCFLAGS = -O -T/r0 -o68
  62. COMPILE =   gcc -DOSK -W -c -ansi $(CPPFLAG) $(GCCFLAGS)
  63. #
  64. ###########################################################################
  65. #
  66. # Dependencies Section:
  67. #
  68. RFILES = ckcmai.r ckucmd.r ckuusr.r ckuus2.r ckuus3.r ckuus4.r ckuus5.r \
  69.    ckuus6.r ckuus7.r ckuusx.r ckuusy.r ckcpro.r ckcfns.r ckcfn2.r ckcfn3.r \
  70.    ckuxla.r ck9con.r ck9tio.r ck9fio.r ck9asm.r ckudia.r ckuscr.r
  71.  
  72. $(PROGRAM): $(RFILES)
  73.  chd $(RDIR);$(CC) $(GCCLFLAGS) -o $(ODIR)/$@ $(RFILES)
  74.  
  75. ckcmai.r: ckcmai.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcnet.h
  76.     $(COMPILE) $*.c -o $(RDIR)/$*.r
  77.  
  78. ckcpro.r: ckcpro.c ckcker.h ckcdeb.h ckcasc.h
  79.     $(COMPILE) $*.c -o $(RDIR)/$*.r
  80.  
  81. ckcpro.c: ckcpro.w wart ckcdeb.h ckcasc.h ckcker.h
  82.  $(ODIR)/wart ckcpro.w ckcpro.c
  83.  
  84. wart: ckwart.r
  85.  chd $(RDIR);$(CC) $(GCCLFLAGS) -o $(ODIR)/$@ ckwart.r
  86.  
  87. ckwart.r: ckwart.c
  88.     $(COMPILE) $*.c -o $(RDIR)/$*.r
  89.  
  90. ckcfns.r: ckcfns.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h ckuxla.h
  91.     $(COMPILE) $*.c -o $(RDIR)/$*.r
  92.  
  93. ckcfn2.r: ckcfn2.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h ckuxla.h
  94.     $(COMPILE) $*.c -o $(RDIR)/$*.r
  95.  
  96. ckcfn3.r: ckcfn3.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h ckuxla.h
  97.     $(COMPILE) $*.c -o $(RDIR)/$*.r
  98.  
  99. ckuxla.r: ckuxla.c ckcker.h ckcdeb.h ckcxla.h ckuxla.h
  100.     $(COMPILE) $*.c -o $(RDIR)/$*.r
  101.  
  102. ckuusr.r: ckuusr.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  103.         ckcasc.h ckcnet.h
  104.     $(COMPILE) $*.c -o $(RDIR)/$*.r
  105.  
  106. ckuus2.r: ckuus2.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  107.         ckcasc.h
  108.     $(COMPILE) $*.c -o $(RDIR)/$*.r
  109.  
  110. ckuus3.r: ckuus3.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  111.         ckcasc.h ckcnet.h
  112.     $(COMPILE) $*.c -o $(RDIR)/$*.r
  113.  
  114. ckuus4.r: ckuus4.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  115.         ckcasc.h ckcnet.h ckuver.h
  116.     $(COMPILE) $*.c -o $(RDIR)/$*.r
  117.  
  118. ckuus5.r: ckuus5.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcasc.h
  119.     $(COMPILE) $*.c -o $(RDIR)/$*.r
  120.  
  121. ckuus6.r: ckuus6.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcasc.h
  122.     $(COMPILE) $*.c -o $(RDIR)/$*.r
  123.  
  124. ckuus7.r: ckuus7.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  125.         ckcasc.h ckcnet.h
  126.     $(COMPILE) $*.c -o $(RDIR)/$*.r
  127.  
  128. ckuusx.r: ckuusx.c  ckcker.h ckuusr.h ckcdeb.h ckcasc.h
  129.     $(COMPILE) $*.c -o $(RDIR)/$*.r
  130.  
  131. ckuusy.r: ckuusy.c  ckcker.h ckcdeb.h ckcasc.h
  132.     $(COMPILE) $*.c -o $(RDIR)/$*.r
  133.  
  134. ckucmd.r: ckucmd.c ckcasc.h ckucmd.h ckcdeb.h
  135.     $(COMPILE) $*.c -o $(RDIR)/$*.r
  136.  
  137. ck9fio.r: ck9fio.c ckcker.h ckcdeb.h
  138.     $(COMPILE) $*.c -o $(RDIR)/$*.r
  139.  
  140. ck9tio.r: ck9tio.c ckcdeb.h
  141.     $(COMPILE) $*.c -o $(RDIR)/$*.r
  142.  
  143. ck9con.r: ck9con.c ckcker.h ckcdeb.h
  144.     $(COMPILE) $*.c -o $(RDIR)/$*.r
  145.  
  146. ckudia.r: ckudia.c ckcker.h ckcdeb.h ckucmd.h ckcasc.h
  147.     $(COMPILE) $*.c -o $(RDIR)/$*.r
  148.  
  149. ckuscr.r: ckuscr.c ckcker.h ckcdeb.h ckcasc.h
  150.     $(COMPILE) $*.c -o $(RDIR)/$*.r
  151.