Debian Codegraph @

cmsmvs/cczip.exec

raw
1 /* CCZIP EXEC Compile zip 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
10 /* Allow longnames, compile re-entrant code.
11 globals.c and cmsmvs.c require EXTENDED features */
12 CCopts = 'LONGNAME RENT LANGLVL(EXTENDED) NOEXECOPS'
13
14 /* ZIP options -- VM_CMS, REENTRANT */
15 CCopts = CCopts 'DEFINE(VM_CMS,REENTRANT)'
16
17 /* Link the load module to run in more or less than 16MB memory */
18 LINKopts = 'AMODE ANY RMODE ANY RLDSAVE'
19
20 /* resources needed to build */
21 'GLOBAL TXTLIB SCEELKED CMSLIB'
22 'GLOBAL LOADLIB SCEERUN'
23
24 /* produce the TEXT (object) files */
25 linklist=''
26 modname='ZIP'
27 Say 'Building' modname 'MODULE...'
28 Call Compile 'ZIP'
29 Call Compile 'CRC32'
30 Call Compile 'CRYPT'
31 Call Compile 'DEFLATE'
32 Call Compile 'FILEIO'
33 Call Compile 'GLOBALS'
34 Call Compile 'TREES'
35 Call Compile 'TTYIO'
36 Call Compile 'UTIL'
37 Call Compile 'ZIPUP'
38 Call Compile 'ZIPFILE'
39 Call Compile 'CMSMVS'
40 Call Compile 'CMS'
41
42 Say 'Linking...'
43 'EXEC CMOD' linklist '(MODNAME' modname LINKopts
44 Say modname 'built successfully.'
45
46
47 /*---------------------------------------------------------------------*/
48 /* Build utility programs */
49 /*---------------------------------------------------------------------*/
50 CCopts = CCopts 'DEFINE(UTIL)'
51
52
53 linklist=''
54 modname='ZIPNOTE'
55 Say
56 Say 'Building' modname 'MODULE...'
57 Call Compile 'ZIPNOTE'
58 Call Compile 'ZIPFILE'
59 Call Compile 'FILEIO'
60 Call Compile 'UTIL'
61 Call Compile 'GLOBALS'
62 Call Compile 'CMSMVS'
63
64 Say 'Linking...'
65 'EXEC CMOD' linklist '(MODNAME' modname LINKopts
66 Say modname 'built successfully.'
67
68
69 linklist=''
70 modname='ZIPSPLIT'
71 Say
72 Say 'Building' modname 'MODULE...'
73 Call Compile 'ZIPSPLIT'
74 Call Compile 'ZIPFILE'
75 Call Compile 'FILEIO'
76 Call Compile 'UTIL'
77 Call Compile 'GLOBALS'
78 Call Compile 'CMSMVS'
79
80 Say 'Linking...'
81 'EXEC CMOD' linklist '(MODNAME' modname LINKopts
82 Say modname 'built successfully.'
83
84
85 linklist=''
86 modname='ZIPCLOAK'
87 Say
88 Say 'Building' modname 'MODULE...'
89 Call Compile 'ZIPCLOAK'
90 Call Compile 'ZIPFILE'
91 Call Compile 'FILEIO'
92 Call Compile 'UTIL'
93 Call Compile 'GLOBALS'
94 Call Compile 'CRC32'
95 Call Compile 'CRYPT'
96 Call Compile 'TTYIO'
97 Call Compile 'CMSMVS'
98
99 Say 'Linking...'
100 'EXEC CMOD' linklist '(MODNAME' modname LINKopts
101 Say modname 'built successfully.'
102 Say 'Done.'
103
104 Exit rc
105
106
107
108 error:
109 Say 'Error' rc 'during compilation!'
110 Say 'Error in line' sigl':'
111 Say ' 'Sourceline(sigl)
112 Exit rc
113
114
115
116 Compile: Procedure Expose CCopts LINKopts linklist
117 Parse arg filename filetype filemode .
118 If filetype='' Then filetype='C'
119 linklist = linklist filename
120
121 Say 'Compiling' filename filetype filemode '...'
122 'EXEC CC' filename filetype filemode '('CCopts
123 Return rc