home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / old / ckermit5a190 / ckvker.mak < prev    next >
Text File  |  2020-01-01  |  18KB  |  569 lines

  1. ! MAKEFILE for VMS C-Kermit 5A (WERMIT) and labeled file decoder (CKVCVT)
  2. !
  3. ! Original by Terry Kennedy (tmk), TERRY@SPCVXA.SPC.EDU,
  4. ! Saint Peters College, Jersey City, NJ, USA,
  5. ! 13-Apr-1991
  6. !
  7. ! To be used with the "make" program for VAX/VMS written by Todd Aven, the
  8. ! Software Sweatshop, 564 Laurelton Blvd, Long Beach, NY 11561, and upgraded
  9. ! to version 3.4 by Ned Freed.  NOTE: Version 3.4 Required!
  10. !
  11. ! Put this file in the same directory as the C-Kermit source files, make that
  12. ! directory your default directory, rename this file to "MAKEFILE." and then
  13. ! type "make" to build C-Kermit.  The result will be a file, WERMIT.EXE, which
  14. ! you can run by typing "run wermit", and which you can rename to KERMIT.EXE
  15. ! or CKERMIT.EXE and install on your system according to the instructions in
  16. ! the file CKVINS.DOC.
  17. !
  18. ! This makefile generates a DCL .COM file which will be shipped to many sites
  19. ! using many different combinations of software. Currently it supports 2 arch-
  20. ! itectures (VAX, AXP), 3 compilers (VAX C, DEC C/AXP, GCC) and 6 TCP/IP pack-
  21. ! ages (none, TGV, UCX, WIN, CMU, TCP) so it's considered to be *really* bad
  22. ! form to decide anything about the user's environment when the makefile is
  23. ! processed. All such choices should be done in the generated .COM file so that
  24. ! the user's actual environment can be used to make these decisions.
  25. !
  26. ! Currently this is broken - the output .COM file will only work on the same
  27. ! architecture the make was done on. All of the __ALPHA tests being done in
  28. ! the makefile parse phase need to be deferred to DCL execution phase. The
  29. ! appropriate test is: 
  30. !    alpha = 0
  31. !    if f$getsyi("hw_model") .ge. 1024 then alpha = 1
  32. !    if alpha then ...
  33. ! but I don't have an Alpha to verify this on, so I didn't change the makefile.
  34. !
  35. ! Cast of characters:
  36. !
  37. ! tmk = Terry Kennedy, Saint Peters College, Jersey City, NJ
  38. ! fdc = Frank da Cruz, Columbia University, New York City
  39. ! jrs = James Sturdevant, CAP GEMINI AMERICA, Minneapolis, MN
  40. ! ttj = Tarjei T. Jensen, Norwegian Hydrographic Service
  41. ! mvb = Mark Berryman, Science Applications Int'l. Corp., San Diego, CA
  42. ! mlo = Mike O'Malley, Digital Equipment Corporation
  43. !
  44. ! Revision history:
  45. !
  46. ! 13-Apr-1991 - tmk - Original version
  47. ! 21-Jun-1991 - tmk - Make sure executables are properly accessible
  48. ! 05-Nov-1991 - fdc - Add ckuus7.c source module
  49. ! 19-Jun-1992 - jrs - Add WIN/TCP support
  50. ! 29-Jun-1992 - fdc - Add CURSES (SMG) support
  51. ! 02-Jul-1992 - jrs - Fix WIN/TCP support
  52. ! 04-Jul-1992 - tmk - Don't need VAXCCURSE library any more.
  53. ! 12-Jul-1992 - tmk - Add localopts.
  54. ! 23-Aug-1992 - fdc - Add KANJI support.
  55. ! 13-Oct-1992 - jrs - Add changes from Lee Tibbert for Alpha AXP and DEC TCP/IP
  56. ! 13-Oct-1992 - fdc - Add ckvioc.[ch] to DEC TCP/IP build
  57. ! 07-Dec-1992 - fdc - Remove /list compiler switch
  58. ! 26-May-1993 - jrs - Add GCC and TCPware support
  59. ! 20-Jul-1993 - ttj - Make sure GCC is used when selected.  NOTES:
  60. !                     1. Because this makefile calls itself, it now MUST
  61. !                        be called "MAKEFILE.".
  62. !                     2. As of this edit, Version 3.4 of MAKE/VMS is required.
  63. ! 19-Aug-1993 - jrs - Minor cleanups to previous edit
  64. ! 31-Aug-1993 - mvb - Clean up VMS AXP code and allow AXP version to also
  65. !                     build with network support
  66. ! 07-Oct-1993 - mlo - Add CMU_TCPIP support
  67. ! 28-Nov-1993 - mlo - Use logical name and default location to locate
  68. !              LIBCMU object library
  69. ! 14-MAR-1994 - mlo - Replaced all reverences to "wermit.olb" with "$(K_LIB)"
  70. ! 15-MAR-1994 - mlo - added MAKE_CLEAN to modify siteopts on compiles
  71. ! 20-Jun-1994 - tmk - Added comments to generated .COM file, test for DEC
  72. !              fortran V6 and use old libraries if present.
  73. ! 24-Aug-1994 - fdc - Fixed compilersub to avoid prefixing of sockets
  74. !                     routines on non-UCX Alpha AXP TCP/IP builds, suggested
  75. !                     by Steve Smail of Wollongong.
  76. !
  77. ! Read CKVINS.DOC for instructions.
  78. !
  79. ! SITE DEPENDENCIES -
  80. !
  81. ! Some site options you might want to add:
  82. !  NOPUSH    - Disallow access to DCL from within Kermit.
  83. !  NODEBUG   - Remove all debugging code to make C-Kermit smaller and faster.
  84. !
  85. ! The following site options are used in this file as distributed:
  86. !  DYNAMIC   - Allocate packet and other buffers dynamically.
  87. !  NOJC      - Omit Job-Control related code.
  88. !  NOSETBUF  - Don't make console i/o unbuffered.
  89. !  CK_CURSES - Include fullscreen file transfer display.
  90. !  KANJI     - Include Kanji file transfer translation.
  91. !  IFDEBUG   - Avoid calls to debug() if debugging not on: faster execution
  92. !              but bigger .EXE file.  If you don't need debugging at all,
  93. !              replace this by NODEBUG.
  94. !
  95.  
  96. %IFNDEF MAKE
  97. MAKE=make
  98. %ENDIF
  99.  
  100. %IFNDEF PROGRAM
  101. PROGRAM=wermit
  102. %ENDIF
  103.  
  104. %IFNDEF CC
  105. CC=cc
  106. %ENDIF
  107.  
  108. %IFNDEF K_LIB
  109. K_LIB=wermit.olb
  110. %ENDIF
  111.  
  112. %IFNDEF K_SYSLIB
  113. %IFNDEF __ALPHA
  114. K_SYSLIB=sys$share:vaxcrtl.olb/lib
  115. !K_SYSLIB=sys$share:vaxcrtl/share
  116. %ELSE
  117. K_SYSLIB=
  118. %ENDIF
  119. %ENDIF
  120.  
  121. %IFNDEF GCC_FLAGS
  122. GCC_FLAGS=
  123. %ENDIF
  124.  
  125. %IFNDEF CFLAGS
  126. %IFNDEF __ALPHA
  127.  
  128. CFLAGS=/debug/noopt $(GCC_FLAGS)
  129.  
  130. %ELSE
  131.  
  132. CFLAGS=/nolist/debug /optimize=level=4 /standard=vaxc $(GCC_FLAGS)
  133.  
  134. %ENDIF
  135. %ENDIF
  136.  
  137. %IFNDEF LNFLAGS
  138. %IFNDEF __ALPHA
  139.  
  140. LNFLAGS=/nomap
  141.  
  142. %ELSE
  143.  
  144. LNFLAGS=/nodebug
  145.  
  146. %ENDIF
  147. %ENDIF
  148.  
  149. $(K_LIB)(*):    *.c
  150.     call do_cc $*
  151.  
  152. germit.olb(*):    *.c
  153.     call do_cc $*
  154.  
  155. %IFDEF MAKE_CLEAN
  156. siteopts = /define=("DYNAMIC", "NOJC", "NOSETBUF", "CK_CURSES", \
  157.       "NODEBUG", "''net_option'", "''vms_ver'")
  158. %ELSE
  159. siteopts = /define=("DYNAMIC", "NOJC", "NOSETBUF", "CK_CURSES", "KANJI", \
  160.     "IFDEBUG", "''net_option'", "''vms_ver'")
  161. %ENDIF
  162. !
  163. ! Compiler and linker options
  164. !
  165. !link_switches = /map/full/sym
  166. link_switches = $(LNFLAGS)
  167.  
  168. library_switches = /replace
  169. ckcnet_switches = "/prefix=ansi"
  170. !
  171. unconditional_relink = makefile.
  172. !
  173. ! Uncomment the next line to force unconditional relinking
  174. !
  175. ! unconditional_relink = dummy_target
  176. !
  177. ! Define the master target list - these can be rebuilt on any system that
  178. ! has C.
  179. !
  180. all :        wermit \
  181.         ckvcvt
  182.  
  183. gcc_com:
  184.     $(MAKE)/force/noexecute/keep/output=gcc_kermit.com \
  185.         /macro=("K_LIB=germit.olb", "CC=gcc", "PROGRAM=gkermit", -
  186.         "K_SYSLIB=gnu_cc:[000000]gcclib/lib,sys$share:vaxcrtl.olb/lib",-
  187.                 "CFLAGS=/nolist/optimze=4") wermit
  188.  
  189. !
  190. gkermit:
  191.     $(MAKE)/macro=("K_LIB=germit.olb", "CC=gcc", "PROGRAM=gkermit", -
  192.         "K_SYSLIB=gnu_cc:[000000]gcclib/lib,sys$share:vaxcrtl.olb/lib",-
  193.                 "CFLAGS=/nolist/optimze=4") wermit
  194.  
  195. !
  196.  
  197. wermit :    checking \
  198.         wermit_start \
  199.         $(PROGRAM).exe
  200.       write sys$output "Done rebuilding $(PROGRAM)"
  201. !
  202. ckvcvt :    checking \
  203.         ckvcvt_start \
  204.         ckvcvt.exe
  205.       write sys$output "Done rebuilding CKVCVT"
  206.  
  207. !
  208. ! And here are the individual targets
  209. !
  210.  
  211. checking: header vms_version fort_check networking vaxc_check compilersub
  212.  
  213. header:
  214. ! This is a really screwey way to do this - but MAKE won't put comments in
  215. ! the output, so we'll do it the hard way...
  216.   goto skipit
  217.   type sys$input
  218.   $
  219.   $
  220.   $
  221.   WARNING: This is an automatically generated file - do *NOT* make changes $
  222.   here and expect them to survive into the next C-Kermit release. The only $
  223.   supported method is to edit the parent makefile (CKVKER.MAK) and rebuild $
  224.   this file with "MAKE/KEEP/NOEXECUTE/OUT=CKVKER.COM". $
  225.   $
  226.   $
  227.   $
  228.   skipit:
  229.  
  230. vms_version:
  231.   xxalpha = f$getsyi("cpu") .gt. 127
  232.   sys_ver = f$edit(f$getsyi("version"),"compress")
  233.   if f$extract(0,1,sys_ver) .nes. "V"
  234.   then
  235.     type sys$input
  236.     You appear to be running a Field Test version of VMS. This script will $
  237.     assume that the operating system version is at least V5.0. $
  238.     $
  239.     sys_ver = "V5.0"
  240.   endif
  241.   sys_maj = 0+f$extract(1,1,sys_ver)
  242.   sys_min = 0+f$extract(3,1,sys_ver)
  243. %IFNDEF __ALPHA
  244.   if sys_maj .lt. 5 then if (sys_min/2)*2 .ne. sys_min then \
  245.     sys_min = sys_min - 1
  246.   if sys_maj .lt. 5
  247.   then
  248.     write sys$output "You are running VMS V''sys_ver'."
  249.     type sys$input
  250.     VMS C-Kermit has not been verified to build properly under this version, $
  251.     although pre-built versions will run properly. Please exercise caution $
  252.     until you have verified proper operation. $
  253.     $
  254.   endif
  255. %ENDIF
  256.  
  257.   vms_ver = "VMS_V''sys_maj'''sys_min'"
  258.  
  259. fort_check:
  260.   funky_fortran = 0
  261.   if f$search("SYS$SHARE:FORTRAN$MTHRTL-VMS.EXE") .nes. ""
  262.   then
  263.     type sys$input
  264.     You have DEC Fortran V6.0 or later installed. We will link C-Kermit with $
  265.     the older, pre-Fortran V6 libraries so that it will run on systems which $
  266.     don't have Fortran V6 installed. (C-Kermit does not use any features of $
  267.     the new libraries). $
  268.     $
  269.     define mthrtl fortran$mthrtl-vms
  270.     define vmthrtl fortran$vmthrtl-vms
  271.     funky_fortran = 1
  272.   endif
  273.  
  274. networking:
  275.   if ("''net_option'" .eqs. "")
  276.   then
  277.     net_option = "NONET"
  278.     library_dir = "SYS$LIBRARY"
  279.     if f$search(f$parse(f$trnlnm("LIBCMU"),\
  280.             "CMUIP_ROOT:[SYSLIB]LIBCMU.OLB")) .nes. ""
  281.     then
  282.       net_option = "CMU_TCPIP"
  283.     endif
  284.     if f$search("SYS$LIBRARY:UCX$ACCESS_SHR.EXE") .nes. ""
  285.     then
  286.       net_option = "DEC_TCPIP"
  287.       ckcnet_switches = ""
  288.     endif
  289.     if f$search("TCPWARE:UCX$IPC.OLB") .nes. ""
  290.     then
  291.       net_option = "TCPWARE"
  292.       ckcnet_switches = ""
  293.       library_dir = "TCPWARE"
  294.     endif
  295.     if f$search("TWG$COMMON:[NETDIST.LIB]TWGLIB.OLB") .nes. ""
  296.     then
  297.       net_option = "WINTCP"
  298.       define /nolog vaxc$include twg$tcp:[netdist.include],sys$library
  299.       define /nolog sys twg$tcp:[netdist.include.sys]
  300.     endif
  301.     if f$search("multinet:multinet_socket_library.exe") .nes. "" then \
  302.       net_option = "MULTINET"
  303.   else
  304.     library_dir = "SYS$LIBRARY"
  305.     net_option = f$edit(net_option,"UPCASE")
  306.   endif  !net_option
  307.   if net_option .eqs. "NONET" then net_name = "no"
  308.   if net_option .eqs. "MULTINET" then net_name = "MultiNet"
  309.   if net_option .eqs. "WINTCP" then net_name = "WIN/TCP"
  310.   if net_option .eqs. "CMU_TCPIP"
  311.   then
  312.     net_name = "CMU-OpenVMS/IP"
  313.     libcmu = f$search(f$parse(f$trnlnm("LIBCMU"),\
  314.             "CMUIP_ROOT:[SYSLIB]LIBCMU.OLB"))
  315.   endif
  316.   if net_option .eqs. "DEC_TCPIP" then \
  317.     net_name = "DEC TCP/IP Services for OpenVMS(tm)"
  318.   if net_option .eqs. "TCPWARE"
  319.   then
  320.     net_name = "Process Software TCPware"
  321.     net_option = "DEC_TCPIP"
  322.   endif
  323.  
  324. vaxc_check:
  325.   if f$search("sys$library:xabrudef.h") .eqs. "" .and. -
  326.     f$search("sys$library:sys$starlet_c.tlb") .eqs. ""
  327.   then
  328.     type sys$input
  329.     Your system has an older version of the C compiler.  VMS C-Kermit was $
  330.     designed to be compiled under VAX C V3.1 or newer or DEC C V1.3 or $
  331.     newer.  It has not been verified to build properly under this version, $
  332.     although pre-built versions will run properly.  Please exercise caution $
  333.     until you have verified proper operation. $
  334.     $
  335.   endif
  336.  
  337. compilersub:
  338.   DO_CC: Subroutine
  339.    On Control_Y Then $exit %x10000004
  340.    On Warning Then   $exit $status
  341.    write sys$output "  $(CC) Compiling ''P1' at ''f$time()"
  342.    if xxalpha
  343.    then
  344.      if net_option .eqs. "MULTINET" .or. net_option .eqs. "WINTCP"
  345.      then
  346.        $(CC) $(CFLAGS) $(siteopts)/obj='P1'.obj 'localopts' 'P2' 'P1'.c -
  347.        /PREFIX_LIBRARY_ENTRIES=(ALL_ENTRIES, EXCEPT=( -
  348.        accept, bind, connect, listen, select, shutdown, socket, -
  349.        recv, send, recvfrom, recvmsg, sendto, sendmsg, readv, -
  350.        writev, gethostname, sethostname, getpeername, getsockname, -
  351.        getsockopt, setsockopt, getnetbyname, getnetent, -
  352.        setnetent, endnetent, getprotobyname, getprotobynumber, -
  353.        getprotoent, setprotoent, endprotoent, getservbyname, -
  354.        getservbyport, getservent, setservent, endservent, -
  355.        gethostbyname, gethostbyaddr, gethostent, sethostent,    -
  356.        endhostent, inet_addr, inet_lnaof, inet_makeaddr, inet_netof, -
  357.        inet_ntoa, inet_network, htonl, htons, ntohl, ntohs ) )
  358.      else
  359.        $(CC) $(CFLAGS) $(siteopts)/obj='P1'.obj 'localopts' 'P2' 'P1'.c
  360.      endif
  361.    else
  362.      $(CC) $(CFLAGS) $(siteopts)/obj='P1'.obj 'localopts' 'P2' 'P1'.c
  363.    endif
  364.    library $(library_switches) $(K_LIB) 'P1'.obj
  365.    delete/NoLog 'P1'.obj.*
  366.    exit
  367.   EndSubroutine !DO_CC
  368.  
  369. !
  370. wermit_start : $(K_LIB)
  371.   write sys$output "Rebuilding $(PROGRAM) with ''net_name' network support"
  372.   if f$type(localopts) .eqs. "" then localopts = ""
  373. !
  374. ckvcvt_start :
  375.   write sys$output "Rebuilding CKVCVT"
  376. !
  377. dummy_target :
  378.   write sys$output ""
  379. !
  380. $(K_LIB) :
  381.   if f$search("$(K_LIB)") .eqs. "" ! creating the library
  382.   then
  383.     library/create/object $(K_LIB)
  384.     write sys$output "$(K_LIB) created"
  385.   endif
  386. !
  387.  
  388. germit.olb :
  389.   if f$search("germit.olb") .eqs. "" ! creating the library
  390.   then
  391.     library/create/object germit.olb
  392.     write sys$output "GERMIT.OLB created"
  393.   endif
  394. !
  395. $(PROGRAM).exe : $(K_LIB)(ckvioc) $(K_LIB)(ckcfn2) \
  396.         $(K_LIB)(ckcfn3) $(K_LIB)(ckcfns) $(K_LIB)(ckcmai) \
  397.         $(K_LIB)(ckcpro) $(K_LIB)(ckucmd) $(K_LIB)(ckudia) \
  398.         $(K_LIB)(ckuscr) $(K_LIB)(ckuus2) $(K_LIB)(ckuus3) \
  399.         $(K_LIB)(ckuus4) $(K_LIB)(ckuus5) $(K_LIB)(ckuus6) \
  400.         $(K_LIB)(ckuus7) $(K_LIB)(ckuusr) $(K_LIB)(ckuusx) \
  401.         $(K_LIB)(ckuusy) $(K_LIB)(ckcnet) $(K_LIB)(ckvfio) \
  402.         $(K_LIB)(ckvtio) $(K_LIB)(ckuxla) $(K_LIB)(ckvcon) \
  403.         $(unconditional_relink)
  404.   write sys$output "  Linking $(PROGRAM) at ''f$time()"
  405.   if funky_fortran then write sys$output \
  406.     "  Please ignore the following %LINK-I-IDMISMCH error" $
  407.   if net_option .eqs. "MULTINET"
  408.   then
  409.     link $(link_switches) /exec=$(PROGRAM).exe \
  410.     $(K_LIB)/library/include=ckcmai, sys$input:/options
  411.     $(K_SYSLIB) $
  412.     multinet:multinet_socket_library.exe/share $
  413.   else
  414.   if net_option .eqs. "WINTCP"
  415.   then
  416.     link $(link_switches) /exec=$(PROGRAM).exe \
  417.     $(K_LIB)/library/include=(ckcfn2, ckcfn3, ckcfns, \
  418.     ckcmai, ckcpro, ckucmd, ckudia, ckuscr, ckuus2, ckuus3, ckuus4, ckuus5, \
  419.     ckuus6, ckuus7, ckuusr, ckuxla, ckvcon, ckcnet, ckvfio, ckvtio), \
  420.     twg$common:[netdist.lib]twglib.olb/library, \
  421.     sys$input:/options
  422.     $(K_SYSLIB) $
  423.   else
  424.   if net_option .eqs. "CMU_TCPIP"
  425.   then
  426.     link $(link_switches) /exec=$(PROGRAM).exe \
  427.     $(K_LIB)/library/include=(ckcfn2, ckcfn3, ckcfns, \
  428.     ckcmai, ckcpro, ckucmd, ckudia, ckuscr, ckuus2, ckuus3, ckuus4, ckuus5, \
  429.     ckuus6, ckuus7, ckuusr, ckuxla, ckvcon, ckcnet, ckvfio, ckvtio), \
  430.     'libcmu'/library, \
  431.     sys$input:/options
  432.     $(K_SYSLIB) $
  433.   else
  434.   if net_option .eqs. "DEC_TCPIP"
  435.   then
  436.   ! No symbol table     -lt.  1992-08-14
  437.     link $(link_switches) /exec=$(PROGRAM).exe \
  438.     $(K_LIB)/library/include=(ckcfn2, ckcfn3, ckcfns, \
  439.     ckcmai, ckcpro, ckucmd, ckudia, ckuscr, ckuus2, ckuus3, ckuus4, ckuus5, \
  440.     ckuus6, ckuus7, ckuusr, ckuxla, ckvcon, ckcnet, ckvfio, ckvtio, ckvioc), \
  441.     'library_dir':ucx$ipc.olb/library, \
  442.     sys$input:/options
  443.     $(K_SYSLIB) $
  444.   else
  445.     link $(link_switches) /exec=$(PROGRAM).exe \
  446.     $(K_LIB)/library/include=(ckcfn2, ckcfn3, ckcfns, \
  447.     ckcmai, ckcpro, ckucmd, ckudia, ckuscr, ckuus2, ckuus3, ckuus4, ckuus5, \
  448.     ckuus6, ckuus7, ckuusr, ckuxla, ckvcon, ckcnet, ckvfio, ckvtio), \
  449.     sys$input:/options
  450.     $(K_SYSLIB) $
  451.   endif !DEC TCP or none
  452.   endif !CMU-OpenVMS/IP
  453.   endif !WIN/TCP
  454.   endif !MultiNet
  455.   set file/protection=(g:re,w:re) $(PROGRAM).exe
  456. !
  457. !
  458. ! First, make sure we have a current CKWART
  459. !
  460. ckwart.exe :        ckwart.c
  461.   write sys$output "  $(CC) Compiling CKWART at ''f$time()"
  462.   $(CC) /nolist $(CFLAGS)$(siteopts)/obj=ckwart.obj 'localopts' ckwart.c
  463.   write sys$output "  Linking CKWART at ''f$time()"
  464.   if funky_fortran then write sys$output \
  465.     "  Please ignore the following %LINK-I-IDMISMCH error" $
  466.   link /nomap $(link_switches)/exec=ckwart ckwart.obj, sys$input:/opt
  467.   $(K_SYSLIB) $
  468.   purge/nolog ckwart.obj
  469. !
  470. ! Next, see if CKCPRO.C is current
  471. !
  472. ckcpro.c :        ckcpro.w \
  473.             ckwart.exe ckcdeb.h ckcasc.h ckcker.h
  474.   write sys$output "Running CKWART at ''f$time()"
  475.   ckwart = "$" +f$parse("CKWART.EXE",,,"DEVICE") + \
  476.     f$parse("CKWART.EXE",,,"DIRECTORY") + "CKWART"
  477.   ckwart ckcpro.w ckcpro.c
  478.   purge ckcpro.c
  479.  
  480. $(K_LIB)(ckvioc) :    ckvioc.c ckvioc.h ckcdeb.h
  481.  
  482. $(K_LIB)(ckcfn2) :    ckcfn2.c \
  483.             ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h ckuxla.h
  484.  
  485. $(K_LIB)(ckcfn3) :    ckcfn3.c \
  486.             ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h ckuxla.h
  487.  
  488. $(K_LIB)(ckcfns) :    ckcfns.c \
  489.             ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h ckuxla.h
  490.  
  491. $(K_LIB)(ckcmai) :    ckcmai.c \
  492.             ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcnet.h
  493.  
  494. $(K_LIB)(ckcpro) :    ckcpro.c \
  495.             ckcker.h ckcdeb.h ckcasc.h
  496.  
  497. $(K_LIB)(ckucmd) :    ckucmd.c \
  498.             ckcasc.h ckucmd.h ckcdeb.h
  499.  
  500. $(K_LIB)(ckudia) :    ckudia.c \
  501.             ckcker.h ckcdeb.h ckucmd.h ckcasc.h
  502.  
  503. $(K_LIB)(ckuscr) :    ckuscr.c \
  504.             ckcker.h ckcdeb.h ckcasc.h
  505.  
  506. $(K_LIB)(ckuus2) :    ckuus2.c \
  507.             ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  508.             ckcasc.h
  509.  
  510. $(K_LIB)(ckuus3) :    ckuus3.c \
  511.             ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  512.             ckcasc.h ckcnet.h
  513.  
  514. $(K_LIB)(ckuus4) :    ckuus4.c \
  515.             ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  516.             ckcasc.h ckcnet.h
  517.  
  518. $(K_LIB)(ckuus5) :    ckuus5.c \
  519.             ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcasc.h
  520.  
  521. $(K_LIB)(ckuus6) :    ckuus6.c \
  522.             ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcasc.h
  523.  
  524. $(K_LIB)(ckuus7) :    ckuus7.c \
  525.             ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  526.             ckcasc.h ckcnet.h
  527.  
  528. $(K_LIB)(ckuusr) :    ckuusr.c \
  529.             ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  530.             ckcasc.h ckcnet.h
  531.  
  532. $(K_LIB)(ckuusx) :    ckuusx.c \
  533.             ckcker.h ckuusr.h ckcdeb.h ckcasc.h
  534.  
  535. $(K_LIB)(ckuusy) :    ckuusy.c \
  536.             ckcker.h ckcdeb.h ckcasc.h
  537.  
  538. $(K_LIB)(ckuxla) :    ckuxla.c \
  539.             ckcker.h ckcdeb.h ckcxla.h ckuxla.h
  540.  
  541. $(K_LIB)(ckvcon) :    ckvcon.c \
  542.             ckcdeb.h ckcasc.h ckcker.h ckcnet.h ckvvms.h ckcxla.h
  543.  
  544. $(K_LIB)(ckcnet) :    ckcnet.c \
  545.             ckcdeb.h ckcker.h ckcnet.h
  546. %IFDEF __ALPHA
  547.             call do_cc ckcnet "''ckcnet_switches'"
  548. %ENDIF
  549.  
  550. $(K_LIB)(ckvfio) :    ckvfio.c \
  551.             ckcdeb.h ckcasc.h ckcker.h ckvvms.h
  552.  
  553. $(K_LIB)(ckvtio) :    ckvtio.c \
  554.             ckcdeb.h ckcasc.h ckcker.h ckvvms.h
  555.  
  556. ckvcvt.exe :        ckvcvt.c
  557.   write sys$output "  Compiling CKVCVT at ''f$time()"
  558.   $(CC) $(CFLAGS)$(siteopts)/obj=ckvcvt.obj 'localopts' ckvcvt.c
  559.   write sys$output "  Linking CKVCVT at ''f$time()"
  560.   if funky_fortran then write sys$output \
  561.     "  Please ignore the following %LINK-I-IDMISMCH error" $
  562.   link /nomap $(link_switches)/exec=ckvcvt ckvcvt.obj, sys$input:/opt
  563.   $(K_SYSLIB) $
  564.   set file/protection=(g:re,w:re) ckvcvt.exe
  565.   purge ckvcvt.obj
  566. !
  567. ! All done...
  568. !
  569.