ccunzip.exec 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /* CCUNZIP EXEC Compile unzip 5.4 for VM/CMS */
  2. /* Author: George Petrov, 11 Apr 1995 (VMCOMPIL EXEC) */
  3. /* Modified for IBM C V3R1 by Ian E. Gorman, 2 Nov 1998
  4. Facilities for compiling and testing were provided by
  5. OmniMark Technologies Corporation, Ottawa, Canada
  6. */
  7. Address Command
  8. Signal On Error
  9. /* Allow longnames, compile re-entrant code.
  10. global.c and vmmvs.c require EXTENDED features */
  11. CCopts = 'LONGNAME RENT LANGLVL(EXTENDED) NOEXECOPS'
  12. /* UNZIP options -- VM_CMS, REENTRANT */
  13. CCopts = CCopts 'DEFINE(VM_CMS,REENTRANT)'
  14. /* Link the load module to run in more or less than 16MB memory */
  15. LINKopts = 'AMODE ANY RMODE ANY RLDSAVE'
  16. 'GLOBAL TXTLIB SCEELKED CMSLIB'
  17. 'GLOBAL LOADLIB SCEERUN'
  18. /* produce the TEXT (object) files */
  19. linklist=''
  20. modname='UNZIP'
  21. Say 'Building' modname 'MODULE...'
  22. Call Compile 'UNZIP'
  23. Call Compile 'CRC32'
  24. Call Compile 'CRYPT'
  25. Call Compile 'ENVARGS'
  26. Call Compile 'EXPLODE'
  27. Call Compile 'EXTRACT'
  28. Call Compile 'FILEIO'
  29. Call Compile 'GLOBALS'
  30. Call Compile 'INFLATE'
  31. Call Compile 'PROCESS'
  32. Call Compile 'LIST'
  33. Call Compile 'MATCH'
  34. Call Compile 'TTYIO'
  35. Call Compile 'UNREDUCE'
  36. Call Compile 'UNSHRINK'
  37. Call Compile 'ZIPINFO'
  38. Call Compile 'VMMVS'
  39. Say 'Linking...'
  40. 'EXEC CMOD' linklist '(MODNAME' modname LINKopts
  41. Say modname 'built successfully.'
  42. /* Make ZIPINFO from UNZIP */
  43. modname = 'ZIPINFO'
  44. 'COPYFILE UNZIP MODULE A ZIPINFO MODULE A (OLDDATE REPLACE'
  45. Say modname 'built successfully.'
  46. Say 'Done.'
  47. Exit rc
  48. error:
  49. Say 'Error' rc 'during compilation!'
  50. Say 'Error in line' sigl':'
  51. Say ' 'Sourceline(sigl)
  52. Exit rc
  53. Compile: Procedure Expose CCopts LINKopts linklist
  54. Parse arg filename filetype filemode .
  55. If filetype='' Then filetype='C'
  56. linklist = linklist filename
  57. Say 'Compiling' filename filetype filemode '...'
  58. 'EXEC CC' filename filetype filemode '('CCopts
  59. Return rc