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