-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
394 lines (351 loc) · 8.49 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
# Makefile for Unix/Xenix rz and sz programs
# Some targets may not be up to date
CC=aarch64-v01c01-linux-gnu-gcc
OFLAG=-O -DREGISTERED
nothing:
@echo
@echo "Please study the #ifdef's in crctab.c, rbsb.c, rz.c and sz.c,"
@echo "make any necessary hacks for oddball or merged SYSV/BSD systems,"
@echo "then type 'make SYSTEM' where SYSTEM is one of:"
@echo
@echo " posix POSIX compliant systems"
@echo " aix AIX systems"
@echo " next NeXtstep v3.x (POSIX)"
@echo " odt SCO Open Desktop"
@echo " everest SCO Open Desktop (elf, strict)"
@echo " sysvr4 SYSTEM 5.4 Unix"
@echo " sysvr3 SYSTEM 5.3 Unix with mkdir(2), COHERENT 4.2"
@echo " sysv SYSTEM 3/5 Unix"
@echo " sysiii SYS III/V Older Unix or Xenix compilers"
@echo " xenix Xenix"
@echo " x386 386 Xenix"
@echo " bsd Berkeley 4.x BSD, Ultrix, V7"
@echo " tandy Tandy 6000 Xenix"
@echo " dnix DIAB Dnix 5.2"
@echo " dnix5r3 DIAB Dnix 5.3"
@echo " amiga 3000UX running SVR4"
@echo " POSIX POSIX compliant systems (SCO Open Desktop, strict)"
@echo
@echo " undos Make the undos, todos, etc. program."
@echo " doc Format the man pages with nroff"
@echo
all:doc usenet unixforum sshar shar zoo
usenet:doc
shar -c -a -n rzsz -o /tmp/rzsz -l64 \
COPYING README Makefile undos.c zmodem.h zm.c rz.c rbsb.c \
crc.c crctab.c minirb.c mailer.rz zmr.c *.doc gz sz.c *.t
sshar:doc
shar -c -a -n rzsz -o /tmp/rzsz -l64 \
COPYING README Makefile undos.c zmodem.h zm.c rz.c rbsb.c \
crc.c crctab.c mailer.rz zmr.c *.doc gz sz.c
shar:doc
shar -c COPYING README Makefile zmodem.h zm.c \
undos.c zmr.c sz.c rz.c crctab.c \
mailer.rz crc.c rbsb.c minirb.c *.doc gz *.t >/tmp/rzsz.sh
cp /tmp/rzsz.sh /u/t/yam
unixforum: shar
rm -f /tmp/rzsz.sh.gz
gzip -9 /tmp/rzsz.sh
cp /tmp/rzsz.sh.gz /u/t/yam
doc:rz.doc sz.doc crc.doc minirb.doc undos.doc
clean:
rm -f *.o *.out sz sb sx zcommand zcommandi rz rb rx rc
rm -f undos tounix todos unmac tomac tocpm unparity
minirb.doc:minirb.1
nroff -man minirb.1 | col >minirb.doc
rz.doc:rz.1 servers.mi
nroff -man rz.1 | col >rz.doc
sz.doc:sz.1 servers.mi
nroff -man sz.1 | col >sz.doc
crc.doc:crc.1
nroff -man crc.1 | col >crc.doc
undos.doc:undos.1
nroff -man undos.1 | col >undos.doc
zoo: doc
-rm -f /tmp/rzsz.zoo
zoo ah /tmp/rzsz COPYING README Makefile zmodem.h zm.c sz.c rz.c \
undos.c mailer.rz crctab.c rbsb.c *.doc \
zmr.c crc.c gz *.t minirb.c
touch /tmp/rzsz.zoo
chmod og-w /tmp/rzsz.zoo
mv /tmp/rzsz.zoo /u/t/yam
-rm -f rzsz.zip
zip rzsz readme mailer.rz makefile zmodem.h zm.c sz.c rz.c
zip rzsz undos.c crctab.c rbsb.c *.doc file_id.diz
zip rzsz zmr.c crc.c gz *.t minirb.c
mv rzsz.zip /u/t/yam
tag: doc xenix
-rm -f /tmp/rzsz
tar cvf /tmp/rzsz COPYING README Makefile zmodem.h zm.c sz.c rz.c \
mailer.rz crctab.c rbsb.c *.doc \
undos.c zmr.c crc.c gz *.t minirb.c rz sz crc undos
gzip -9 /tmp/rzsz
mv /tmp/rzsz.gz /u/t/yam/rzsz.tag
tar:doc
tar cvf /tmp/rzsz.tar COPYING README Makefile zmodem.h zm.c sz.c rz.c \
undos.c mailer.rz crctab.c rbsb.c \
zmr.c crc.c *.1 gz *.t minirb.c
tags:
ctags sz.c rz.c zm.c zmr.c rbsb.c
.PRECIOUS:rz sz
xenix:
/usr/ods30/bin/cc \
-I/usr/ods30/usr/include -I/usr/ods30/usr/include/sys \
-M2 $(CFLAGS) $(RFLAGS) $(OFLAG) -s -DSMALL -DUSG -DNFGVMIN -DREADCHECK sz.c -lx -o sz
size sz; file sz
-rm -f sb sx zcommand zcommandi
ln sz sb
ln sz sx
ln sz zcommand
ln sz zcommandi
/usr/ods30/bin/cc \
-I/usr/ods30/usr/include -I/usr/ods30/usr/include/sys \
-M2 $(CFLAGS) $(RFLAGS) $(OFLAG) -s -DUSG -DMD rz.c -o rz
size rz; file rz
-rm -f rb rx rc
ln rz rb
ln rz rx
ln rz rc
/usr/ods30/bin/cc \
-I/usr/ods30/usr/include -I/usr/ods30/usr/include/sys \
-M2 $(CFLAGS) $(OFLAG) -s undos.c -o undos
size undos; file undos
-rm -f tounix todos unmac tomac tocpm unparity
ln undos tounix
ln undos todos
ln undos unmac
ln undos tomac
ln undos tocpm
ln undos unparity
x386:
$(CC) $(CFLAGS) $(RFLAGS) $(OFLAG) -DUSG -DMD rz.c -o rz
size rz
-rm -f rb rx rc
ln rz rb
ln rz rx
ln rz rc
$(CC) $(CFLAGS) $(RFLAGS) $(OFLAG) -DUSG -DNFGVMIN -DREADCHECK sz.c -lx -o sz
size sz
-rm -f sb sx zcommand zcommandi
ln sz sb
ln sz sx
ln sz zcommand
ln sz zcommandi
sysv:
$(CC) $(CFLAGS) $(RFLAGS) $(OFLAG) -DUSG -DMD -DOLD rz.c -o rz
size rz
-rm -f rb rx rc
ln rz rb
ln rz rx
ln rz rc
$(CC) $(CFLAGS) $(RFLAGS) $(OFLAG) -DUSG -DSV -DNFGVMIN -DOLD sz.c -o sz
size sz
-rm -f sb sx zcommand zcommandi
ln sz sb
ln sz sx
ln sz zcommand
ln sz zcommandi
sysiii:
$(CC) $(CFLAGS) $(RFLAGS) $(OFLAG) -DUSG -DOLD rz.c -o rz
size rz
-rm -f rb rx rc
ln rz rb
ln rz rx
ln rz rc
$(CC) $(CFLAGS) $(RFLAGS) $(OFLAG) -DSV -DUSG -DNFGVMIN -DOLD sz.c -o sz
size sz
-rm -f sb sx zcommand zcommandi
ln sz sb
ln sz sx
ln sz zcommand
ln sz zcommandi
sysvr3:
$(CC) $(CFLAGS) $(RFLAGS) $(OFLAG) -DUSG -DMD=2 rz.c -o rz
size rz
-rm -f rb rx rc
ln rz rb
ln rz rx
ln rz rc
$(CC) $(CFLAGS) $(RFLAGS) $(OFLAG) -DSV -DUSG -DNFGVMIN sz.c -o sz
size sz
-rm -f sb sx zcommand zcommandi
ln sz sb
ln sz sx
ln sz zcommand
ln sz zcommandi
sysvr4:
$(CC) $(CFLAGS) $(RFLAGS) $(OFLAG) -DUSG -DMD=2 rz.c -o rz
size rz
-rm -f rb rx rc
ln rz rb
ln rz rx
ln rz rc
$(CC) $(CFLAGS) $(RFLAGS) $(OFLAG) -DSV -DUSG sz.c -o sz
size sz
-rm -f sb sx zcommand zcommandi
ln sz sb
ln sz sx
ln sz zcommand
ln sz zcommandi
odt:
cc -O -n $(RFLAGS) -DUSG -DMD=2 rz.c -o rz
size rz
-rm -f rb rx rc
ln rz rb
ln rz rx
ln rz rc
cc -O -n $(RFLAGS) -DUSG -DREADCHECK sz.c -lx -o sz
size sz
-rm -f sb sx zcommand zcommandi
ln sz sb
ln sz sx
ln sz zcommand
ln sz zcommandi
everest:
cc -b elf -w 3 -O3 $(RFLAGS) -DUSG -DMD=2 rz.c -o rz
size rz
-rm -f rb rx rc
ln rz rb
ln rz rx
ln rz rc
cc -b elf -w 3 $(RFLAGS) -O3 -DUSG -DREADCHECK sz.c -lx -o sz
size sz
-rm -f sb sx zcommand zcommandi
ln sz sb
ln sz sx
ln sz zcommand
ln sz zcommandi
posix:
$(CC) $(CFLAGS) $(RFLAGS) $(OFLAG) -DPOSIX -DMD=2 rz.c -o rz
size rz
-rm -f rb rx rc
ln rz rb
ln rz rx
ln rz rc
$(CC) $(CFLAGS) $(RFLAGS) $(OFLAG) -DPOSIX sz.c -o sz
size sz
-rm -f sb sx zcommand zcommandi
ln sz sb
ln sz sx
ln sz zcommand
ln sz zcommandi
POSIX:
@echo "Well, stricter, as in *safer sex* ..."
$(CC) $(CFLAGS) $(RFLAGS) $(OFLAG) -DPOSIX -DMD=2 -DCOMPL rz.c -o rz
size rz
-rm -f rb rx rc
ln rz rb
ln rz rx
ln rz rc
$(CC) $(CFLAGS) $(RFLAGS) $(OFLAG) -DPOSIX -DCOMPL sz.c -o sz
size sz
-rm -f sb sx zcommand zcommandi
ln sz sb
ln sz sx
ln sz zcommand
ln sz zcommandi
bsd:
$(CC) $(CFLAGS) $(RFLAGS) $(OFLAG) -DMD=2 -Dstrchr=index -DV7 rz.c -o rz
size rz
-rm -f rb rx rc
ln rz rb
ln rz rx
ln rz rc
$(CC) $(CFLAGS) $(RFLAGS) $(OFLAG) -DV7 -DNFGVMIN sz.c -o sz
size sz
-rm -f sb sx zcommand zcommandi
ln sz sb
ln sz sx
ln sz zcommand
ln sz zcommandi
tandy:
$(CC) $(CFLAGS) $(RFLAGS) $(OFLAGS) -n -DUSG -DMD -DT6K sz.c -lx -o sz
size sz
-rm -f sb sx zcommand zcommandi
ln sz sb
ln sz sx
ln sz zcommand
ln sz zcommandi
$(CC) $(CFLAGS) $(RFLAGS) $(OFLAGS) -n -DUSG -DMD -DT6K rz.c -lx -o rz
size rz
-rm -f rb rx rc
ln rz rb
ln rz rx
ln rz rc
dnix:
$(CC) $(CFLAGS) $(RFLAGS) $(OFLAG) -DUSG -DMD rz.c -o rz
size rz
-rm -f rb rx rc
ln rz rb
ln rz rx
ln rz rc
$(CC) $(CFLAGS) $(RFLAGS) $(OFLAG) -DSV -DUSG -DNFGVMIN -DREADCHECK sz.c -o sz
size sz
-rm -f sb sx zcommand zcommandi
ln sz sb
ln sz sx
ln sz zcommand
ln sz zcommandi
dnix5r3:
$(CC) $(CFLAGS) $(RFLAGS) $(OFLAG) -DUSG -DMD=2 rz.c -o rz
size rz
-rm -f rb rx rc
ln rz rb
ln rz rx
ln rz rc
$(CC) $(CFLAGS) $(RFLAGS) $(OFLAG) -DUSG -DSV -DNFGVMIN -DREADCHECK sz.c -o sz
size sz
-rm -f sb sx zcommand zcommandi
ln sz sb
ln sz sx
ln sz zcommand
ln sz zcommandi
amiga:
$(CC) $(CFLAGS) $(OFLAG) -DUSG -DNFGVMIN -g rz.c -o rz
size rz
-rm -f rb rx rc
ln rz rb
ln rz rx
ln rz rc
$(CC) $(CFLAGS) $(OFLAG) -DUSG -DSV -DNFGVMIN -g sz.c -o sz
size sz
-rm -f sb sx zcommand zcommandi
ln sz sb
ln sz sx
ln sz zcommand
ln sz zcommandi
aix:
@echo "As of July 26 1996, ..."
@echo "IBM sez if you have the very latest PTFs, 'make posix' will work."
@echo ""
next:
LIBS=-lposix
$(CC) -g -posix $(OFLAG) -DPOSIX -DMD=2 rz.c -o rz
size rz
-rm -f rb rx rc
ln rz rb
ln rz rx
ln rz rc
$(CC) -g -posix $(OFLAG) -DPOSIX sz.c -o sz
size sz
-rm -f sb sx zcommand zcommandi
ln sz sb
ln sz sx
ln sz zcommand
ln sz zcommandi
undos: undos.c
cc -O undos.c -o undos
-rm -f tounix todos unmac tomac tocpm unparity
ln undos tounix
ln undos todos
ln undos unmac
ln undos tomac
ln undos tocpm
ln undos unparity
lint:
lint -DUSG -DSV -DOLD sz.c >/tmp/sz.fluff
lint -DUSG -DSV -DOLD rz.c >/tmp/rz.fluff
sz: nothing
sb: nothing
rz: nothing
rb: nothing