home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / c-kermit / ck9crs.mak < prev    next >
Text File  |  2020-01-01  |  12KB  |  332 lines

  1. # CK9CRS.MAK, version 1, 10/13/93, Lieven Tomme <ltom@lvd.be>
  2. # based on CK9KER.MAK
  3. #
  4. #   ###################################################
  5. #   # Makefile to build C-Kermit 5A (189) for os9/68k #
  6. #   # using the HP-UX C cross compiler 'cc68'         #
  7. #   ###################################################
  8. #
  9. #
  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. # to clean up things : "make clean"
  17. #
  18. # or don't rename it and type : "make -f=ck9crs.mak"
  19. # amd to clean up things :      "make clean"
  20. #
  21. ###########################################################################
  22. #
  23. # Notes :
  24. #
  25. #   Change KERMIT_OPTIONS according to the version you want to build
  26. #   Change SOURCE_DIR     to the directory where the sources can be found
  27. #   Change RELS_DIR       to the directory where the relocatble files have
  28. #                         to be put
  29. #   Change CC_OPTIONS     according to your target system
  30. #   Change TARGET         to the name of the resulting module (wermit, kermit)
  31. #   Change the fixmod command options according to your whishes.
  32.  
  33.  
  34.  
  35. ##
  36. ## Kermit options :
  37. ##
  38.  
  39. #   If Kermit is too large for your machine you can add some
  40. #   defines to make it smaller:
  41. #   -dNODEBUG   don't include debugging information
  42. #   -dNOHELP    no on-line help
  43. #   -dNOTLOG    no transaction logging
  44. #   -dNOSCRIPT  no UUCP-style script command
  45. #   -dNOCSETS   no character set translation
  46. #   -dNOMSEND   no msend command
  47. #   -dNOICP     no interactive command parser
  48. #   -dNODIAL    no modem support
  49. #   -dNOXMIT    no tranmit command
  50. #   -dNOSPL     no script programming language
  51. #   Edit the TYPE macro according to your machine.
  52. #
  53. #   If you have problems changing the line speed do read ck9ker.bwr and
  54. #   add -dXMODE option to the CFLAGS if neccessary and wanted (see ck9ker.bwr)
  55. #
  56. #   for futher information see ckuins.doc (installation manual)
  57. ###########################################################################
  58. #  minimum size KERMIT_OPTIONS :
  59. #       -dVOID=void -dSIG_V -dDYNAMIC -dNODEBUG \
  60. #       -dNOHELP -dNOTLOG -dNOSCRIPT -dNOCSETS -dNOMSEND -dNODIAL -dNOICP
  61. #  maximum size KERMIT_OPTIONS :
  62. #       -dVOID=void -dSIG_V -dDYNAMIC -dPARSENSE -dKANJI -dMYCURSES
  63. KERMIT_OPTIONS  = -dVOID=void -dSIG_V -dDYNAMIC -dPARSENSE -dKANJI -dMYCURSES
  64.  
  65.  
  66.  
  67. ##
  68. ## sources directory
  69. ##
  70. SOURCE_DIR      = ./
  71.  
  72.  
  73. ##
  74. ## relocatables directory
  75. ##
  76. RELS_DIR  = ./rels/
  77.  
  78.  
  79. ##
  80. ## compiler options
  81. ##
  82.  
  83. #    
  84. #   -k=<n>[W|L][CW|CL][F]
  85. #               Target machine - 0=68000, 2=68020
  86. #               Data offsets - W=word, L=long word
  87. #               Code offsets - CW=word, CL=long word
  88. #               Floating Point - F=68881 (68020 only)
  89. #
  90. CC_OPTIONS  = $(KERMIT_OPTIONS) -R=$(RELS_DIR) -k=2CL -t=/tmp -r -x -i -s -q
  91. LNKFLAGS    = -a
  92. CC          = cc68
  93. ASM         = r68
  94. ASM_OPTIONS =
  95.  
  96. TARGET      = rels/wermit
  97.  
  98.  
  99.  
  100.  
  101. ############################
  102. ## relocatable files       #
  103. ############################
  104. KERMIT_FILES =    $(RELS_DIR)ckcmai.r \
  105.                   $(RELS_DIR)ckucmd.r \
  106.                   $(RELS_DIR)ckuusr.r \
  107.                   $(RELS_DIR)ckuus2.r \
  108.                   $(RELS_DIR)ckuus3.r \
  109.                   $(RELS_DIR)ckuus4.r \
  110.                   $(RELS_DIR)ckuus5.r \
  111.                   $(RELS_DIR)ckuus6.r \
  112.                   $(RELS_DIR)ckuus7.r \
  113.                   $(RELS_DIR)ckuusx.r \
  114.                   $(RELS_DIR)ckuusy.r \
  115.                   $(RELS_DIR)ckcpro.r \
  116.                   $(RELS_DIR)ckcfns.r \
  117.                   $(RELS_DIR)ckcfn2.r \
  118.                   $(RELS_DIR)ckcfn3.r \
  119.                   $(RELS_DIR)ckuxla.r \
  120.                   $(RELS_DIR)ck9con.r \
  121.                   $(RELS_DIR)ck9tio.r \
  122.                   $(RELS_DIR)ck9fio.r \
  123.                   $(RELS_DIR)ck9asm.r \
  124.                   $(RELS_DIR)ckudia.r \
  125.                   $(RELS_DIR)ckuscr.r
  126.  
  127.  
  128.  
  129.  
  130. $(TARGET): $(KERMIT_FILES) \
  131.         makefile
  132.         @rm -f *.stb *.dbg
  133.         @l68 $(LNKFLAGS) /usr/local/os9/lib/cstart.r \
  134.         -l=/usr/local/os9/lib/clibn.l \
  135.         -l=/usr/local/os9/lib/math.l \
  136.         -l=/usr/local/os9/lib/sys.l \
  137.         -o=$(TARGET) \
  138.         $(KERMIT_FILES)
  139.         @fixmod -uo0.0 -ua8000 $(TARGET)
  140.         @ll $(TARGET)
  141.  
  142. clean:
  143.         rm -f $(RELS_DIR)ck*.r $(TARGET)
  144.  
  145.  
  146.  
  147.  
  148.  
  149. ######################
  150. ## relocatable files #
  151. ######################
  152.  
  153. $(RELS_DIR)ckcmai.r: $(SOURCE_DIR)ckcmai.c \
  154.                      $(SOURCE_DIR)ckcker.h \
  155.                      $(SOURCE_DIR)ckcdeb.h \
  156.                      $(SOURCE_DIR)ckcsym.h \
  157.                      $(SOURCE_DIR)ckcasc.h \
  158.                      $(SOURCE_DIR)ckcnet.h
  159.         $(CC)  $(CC_OPTIONS) $(SOURCE_DIR)ckcmai.c
  160.  
  161. $(RELS_DIR)ckucmd.r: $(SOURCE_DIR)ckucmd.c \
  162.                      $(SOURCE_DIR)ckcasc.h \
  163.                      $(SOURCE_DIR)ckucmd.h \
  164.                      $(SOURCE_DIR)ckcdeb.h
  165.         $(CC)  $(CC_OPTIONS) $(SOURCE_DIR)ckucmd.c
  166.  
  167. $(RELS_DIR)ckuusr.r: $(SOURCE_DIR)ckuusr.c \
  168.                      $(SOURCE_DIR)ckucmd.h \
  169.                      $(SOURCE_DIR)ckcker.h \
  170.                      $(SOURCE_DIR)ckuusr.h \
  171.                      $(SOURCE_DIR)ckcdeb.h \
  172.                      $(SOURCE_DIR)ckcxla.h \
  173.                      $(SOURCE_DIR)ckuxla.h \
  174.                      $(SOURCE_DIR)ckcasc.h \
  175.                      $(SOURCE_DIR)ckcnet.h
  176.         $(CC)  $(CC_OPTIONS) $(SOURCE_DIR)ckuusr.c
  177.  
  178. $(RELS_DIR)ckuus2.r: $(SOURCE_DIR)ckuus2.c \
  179.                      $(SOURCE_DIR)ckucmd.h \
  180.                      $(SOURCE_DIR)ckcker.h \
  181.                      $(SOURCE_DIR)ckuusr.h \
  182.                      $(SOURCE_DIR)ckcdeb.h \
  183.                      $(SOURCE_DIR)ckcxla.h \
  184.                      $(SOURCE_DIR)ckuxla.h \
  185.                      $(SOURCE_DIR)ckcasc.h
  186.         $(CC)  $(CC_OPTIONS) $(SOURCE_DIR)ckuus2.c
  187.  
  188. $(RELS_DIR)ckuus3.r: $(SOURCE_DIR)ckuus3.c \
  189.                      $(SOURCE_DIR)ckucmd.h \
  190.                      $(SOURCE_DIR)ckcker.h \
  191.                      $(SOURCE_DIR)ckuusr.h \
  192.                      $(SOURCE_DIR)ckcdeb.h \
  193.                      $(SOURCE_DIR)ckcxla.h \
  194.                      $(SOURCE_DIR)ckuxla.h \
  195.                      $(SOURCE_DIR)ckcasc.h \
  196.                      $(SOURCE_DIR)ckcnet.h
  197.         $(CC)  $(CC_OPTIONS) $(SOURCE_DIR)ckuus3.c
  198.  
  199. $(RELS_DIR)ckuus4.r: $(SOURCE_DIR)ckuus4.c \
  200.                      $(SOURCE_DIR)ckucmd.h \
  201.                      $(SOURCE_DIR)ckcker.h \
  202.                      $(SOURCE_DIR)ckuusr.h \
  203.                      $(SOURCE_DIR)ckcdeb.h \
  204.                      $(SOURCE_DIR)ckcxla.h \
  205.                      $(SOURCE_DIR)ckuxla.h \
  206.                      $(SOURCE_DIR)ckcasc.h \
  207.                      $(SOURCE_DIR)ckcnet.h \
  208.                      $(SOURCE_DIR)ckuver.h
  209.         $(CC)  $(CC_OPTIONS) $(SOURCE_DIR)ckuus4.c
  210.  
  211. $(RELS_DIR)ckuus5.r: $(SOURCE_DIR)ckuus5.c \
  212.                      $(SOURCE_DIR)ckucmd.h \
  213.                      $(SOURCE_DIR)ckcker.h \
  214.                      $(SOURCE_DIR)ckuusr.h \
  215.                      $(SOURCE_DIR)ckcdeb.h \
  216.                      $(SOURCE_DIR)ckcasc.h
  217.         $(CC)  $(CC_OPTIONS) $(SOURCE_DIR)ckuus5.c
  218.  
  219. $(RELS_DIR)ckuus6.r: $(SOURCE_DIR)ckuus6.c \
  220.                      $(SOURCE_DIR)ckucmd.h \
  221.                      $(SOURCE_DIR)ckcker.h \
  222.                      $(SOURCE_DIR)ckuusr.h \
  223.                      $(SOURCE_DIR)ckcdeb.h \
  224.                      $(SOURCE_DIR)ckcasc.h
  225.         $(CC)  $(CC_OPTIONS) $(SOURCE_DIR)ckuus6.c
  226.  
  227. $(RELS_DIR)ckuus7.r: $(SOURCE_DIR)ckuus7.c \
  228.                      $(SOURCE_DIR)ckucmd.h \
  229.                      $(SOURCE_DIR)ckcker.h \
  230.                      $(SOURCE_DIR)ckuusr.h \
  231.                      $(SOURCE_DIR)ckcdeb.h \
  232.                      $(SOURCE_DIR)ckcxla.h \
  233.                      $(SOURCE_DIR)ckuxla.h \
  234.                      $(SOURCE_DIR)ckcasc.h \
  235.                      $(SOURCE_DIR)ckcnet.h
  236.         $(CC)  $(CC_OPTIONS) $(SOURCE_DIR)ckuus7.c
  237.  
  238. $(RELS_DIR)ckuusx.r: $(SOURCE_DIR)ckuusx.c \
  239.                      $(SOURCE_DIR)ckcker.h \
  240.                      $(SOURCE_DIR)ckuusr.h \
  241.                      $(SOURCE_DIR)ckcdeb.h \
  242.                      $(SOURCE_DIR)ckcasc.h
  243.         $(CC)  $(CC_OPTIONS) $(SOURCE_DIR)ckuusx.c
  244.  
  245. $(RELS_DIR)ckuusy.r: $(SOURCE_DIR)ckuusy.c \
  246.                      $(SOURCE_DIR)ckcker.h \
  247.                      $(SOURCE_DIR)ckcdeb.h \
  248.                      $(SOURCE_DIR)ckcasc.h
  249.         $(CC)  $(CC_OPTIONS) $(SOURCE_DIR)ckuusy.c
  250.  
  251. $(RELS_DIR)wart: $(SOURCE_DIR)ckwart.c 
  252.         cc -o $(RELS_DIR)wart $(SOURCE_DIR)ckwart.c
  253.  
  254. $(SOURCE_DIR)ckcpro.c: $(SOURCE_DIR)ckcpro.w \
  255.                        $(RELS_DIR)wart \
  256.                        $(SOURCE_DIR)ckcdeb.h \
  257.                        $(SOURCE_DIR)ckcasc.h \
  258.                        $(SOURCE_DIR)ckcker.h
  259.         $(RELS_DIR)wart $(SOURCE_DIR)ckcpro.w $(SOURCE_DIR)ckcpro.c
  260.  
  261. $(RELS_DIR)ckcpro.r: $(SOURCE_DIR)ckcpro.c \
  262.                      $(SOURCE_DIR)ckcker.h \
  263.                      $(SOURCE_DIR)ckcdeb.h \
  264.                      $(SOURCE_DIR)ckcasc.h
  265.         $(CC)  $(CC_OPTIONS) $(SOURCE_DIR)ckcpro.c
  266.  
  267. $(RELS_DIR)ckcfns.r: $(SOURCE_DIR)ckcfns.c \
  268.                      $(SOURCE_DIR)ckcker.h \
  269.                      $(SOURCE_DIR)ckcdeb.h \
  270.                      $(SOURCE_DIR)ckcsym.h \
  271.                      $(SOURCE_DIR)ckcasc.h \
  272.                      $(SOURCE_DIR)ckcxla.h \
  273.                      $(SOURCE_DIR)ckuxla.h
  274.         $(CC) $(CC_OPTIONS) $(SOURCE_DIR)ckcfns.c
  275.  
  276. $(RELS_DIR)ckcfn2.r: $(SOURCE_DIR)ckcfn2.c \
  277.                      $(SOURCE_DIR)ckcker.h \
  278.                      $(SOURCE_DIR)ckcdeb.h \
  279.                      $(SOURCE_DIR)ckcsym.h \
  280.                      $(SOURCE_DIR)ckcasc.h \
  281.                      $(SOURCE_DIR)ckcxla.h \
  282.                      $(SOURCE_DIR)ckuxla.h
  283.         $(CC)  $(CC_OPTIONS) $(SOURCE_DIR)ckcfn2.c
  284.  
  285. $(RELS_DIR)ckcfn3.r: $(SOURCE_DIR)ckcfn3.c \
  286.                      $(SOURCE_DIR)ckcker.h \
  287.                      $(SOURCE_DIR)ckcdeb.h \
  288.                      $(SOURCE_DIR)ckcsym.h \
  289.                      $(SOURCE_DIR)ckcasc.h \
  290.                      $(SOURCE_DIR)ckcxla.h \
  291.                      $(SOURCE_DIR)ckuxla.h
  292.         $(CC)  $(CC_OPTIONS) $(SOURCE_DIR)ckcfn3.c
  293.  
  294. $(RELS_DIR)ckuxla.r: $(SOURCE_DIR)ckuxla.c \
  295.                      $(SOURCE_DIR)ckcker.h \
  296.                      $(SOURCE_DIR)ckcdeb.h \
  297.                      $(SOURCE_DIR)ckcxla.h \
  298.                      $(SOURCE_DIR)ckuxla.h
  299.         $(CC)  $(CC_OPTIONS) $(SOURCE_DIR)ckuxla.c
  300.  
  301. $(RELS_DIR)ck9con.r: $(SOURCE_DIR)ck9con.c \
  302.                      $(SOURCE_DIR)ckcker.h \
  303.                      $(SOURCE_DIR)ckcdeb.h
  304.         $(CC)  $(CC_OPTIONS) $(SOURCE_DIR)ck9con.c
  305.  
  306. $(RELS_DIR)ck9tio.r: $(SOURCE_DIR)ck9tio.c \
  307.                      $(SOURCE_DIR)ckcdeb.h
  308.         $(CC)  $(CC_OPTIONS) $(SOURCE_DIR)ck9tio.c
  309.  
  310. $(RELS_DIR)ck9fio.r: $(SOURCE_DIR)ck9fio.c \
  311.                      $(SOURCE_DIR)ckcker.h \
  312.                      $(SOURCE_DIR)ckcdeb.h
  313.         $(CC)  $(CC_OPTIONS) $(SOURCE_DIR)ck9fio.c
  314.  
  315. $(RELS_DIR)ck9asm.r: $(SOURCE_DIR)ck9asm.a
  316.         $(ASM)  $(ASM_OPTIONS) -o=$(RELS_DIR)ck9asm.r $(SOURCE_DIR)ck9asm.a 
  317.  
  318. $(RELS_DIR)ckudia.r: $(SOURCE_DIR)ckudia.c \
  319.                      $(SOURCE_DIR)ckcker.h \
  320.                      $(SOURCE_DIR)ckcdeb.h \
  321.                      $(SOURCE_DIR)ckucmd.h \
  322.                      $(SOURCE_DIR)ckcasc.h
  323.         $(CC)  $(CC_OPTIONS) $(SOURCE_DIR)ckudia.c
  324.  
  325. $(RELS_DIR)ckuscr.r: $(SOURCE_DIR)ckuscr.c \
  326.                      $(SOURCE_DIR)ckcker.h \
  327.                      $(SOURCE_DIR)ckcdeb.h \
  328.                      $(SOURCE_DIR)ckcasc.h
  329.         $(CC)  $(CC_OPTIONS) $(SOURCE_DIR)ckuscr.c
  330.  
  331.