Commit | Line | Data |
---|---|---|
5b62e993 MW |
1 | SHELL=/bin/sh |
2 | ||
3 | default: it | |
4 | ||
5 | alloc.0: \ | |
6 | alloc.3 | |
7 | nroff -man alloc.3 > alloc.0 | |
8 | ||
9 | alloc.a: \ | |
10 | makelib alloc.o alloc_re.o | |
11 | ./makelib alloc.a alloc.o alloc_re.o | |
12 | ||
13 | alloc.o: \ | |
14 | compile alloc.c alloc.h alloc.c error.h alloc.c | |
15 | ./compile alloc.c | |
16 | ||
17 | alloc_re.o: \ | |
18 | compile alloc_re.c alloc.h alloc_re.c byte.h alloc_re.c | |
19 | ./compile alloc_re.c | |
20 | ||
21 | auto-ccld.sh: \ | |
22 | conf-cc conf-ld warn-auto.sh | |
23 | ( cat warn-auto.sh; \ | |
24 | echo CC=\'`head -1 conf-cc`\'; \ | |
25 | echo LD=\'`head -1 conf-ld`\' \ | |
26 | ) > auto-ccld.sh | |
27 | ||
28 | auto-str: \ | |
29 | load auto-str.o substdio.a error.a str.a | |
30 | ./load auto-str substdio.a error.a str.a | |
31 | ||
32 | auto-str.o: \ | |
33 | compile auto-str.c substdio.h auto-str.c readwrite.h auto-str.c \ | |
34 | exit.h auto-str.c | |
35 | ./compile auto-str.c | |
36 | ||
37 | auto_bin.c: \ | |
38 | auto-str conf-bin | |
39 | ./auto-str auto_bin `head -1 conf-bin` > auto_bin.c | |
40 | ||
41 | auto_bin.o: \ | |
42 | compile auto_bin.c | |
43 | ./compile auto_bin.c | |
44 | ||
45 | auto_qmail.c: \ | |
46 | auto-str conf-qmail | |
47 | ./auto-str auto_qmail `head -1 conf-qmail` > auto_qmail.c | |
48 | ||
49 | auto_qmail.o: \ | |
50 | compile auto_qmail.c | |
51 | ./compile auto_qmail.c | |
52 | ||
53 | byte_chr.o: \ | |
54 | compile byte_chr.c byte.h byte_chr.c | |
55 | ./compile byte_chr.c | |
56 | ||
57 | byte_copy.o: \ | |
58 | compile byte_copy.c byte.h byte_copy.c | |
59 | ./compile byte_copy.c | |
60 | ||
61 | byte_cr.o: \ | |
62 | compile byte_cr.c byte.h byte_cr.c | |
63 | ./compile byte_cr.c | |
64 | ||
65 | byte_diff.o: \ | |
66 | compile byte_diff.c byte.h byte_diff.c | |
67 | ./compile byte_diff.c | |
68 | ||
69 | byte_rchr.o: \ | |
70 | compile byte_rchr.c byte.h byte_rchr.c | |
71 | ./compile byte_rchr.c | |
72 | ||
73 | byte_zero.o: \ | |
74 | compile byte_zero.c byte.h byte_zero.c | |
75 | ./compile byte_zero.c | |
76 | ||
77 | case.0: \ | |
78 | case.3 | |
79 | nroff -man case.3 > case.0 | |
80 | ||
81 | case.a: \ | |
82 | makelib case_diffb.o case_lowerb.o case_startb.o | |
83 | ./makelib case.a case_diffb.o case_lowerb.o case_startb.o | |
84 | ||
85 | case_diffb.o: \ | |
86 | compile case_diffb.c case.h case_diffb.c | |
87 | ./compile case_diffb.c | |
88 | ||
89 | case_lowerb.o: \ | |
90 | compile case_lowerb.c case.h case_lowerb.c | |
91 | ./compile case_lowerb.c | |
92 | ||
93 | case_startb.o: \ | |
94 | compile case_startb.c case.h case_startb.c | |
95 | ./compile case_startb.c | |
96 | ||
97 | compile: \ | |
98 | make-compile warn-auto.sh systype | |
99 | ( cat warn-auto.sh; ./make-compile "`cat systype`" ) > \ | |
100 | compile | |
101 | chmod 755 compile | |
102 | ||
103 | constmap.o: \ | |
104 | compile constmap.c constmap.h constmap.c alloc.h constmap.c case.h \ | |
105 | constmap.c | |
106 | ./compile constmap.c | |
107 | ||
108 | cookie.o: \ | |
109 | compile cookie.c cookie.h cookie.c str.h cookie.c uint32.h cookie.c \ | |
110 | surfpcs.h uint32.h surfpcs.h cookie.c | |
111 | ./compile cookie.c | |
112 | ||
113 | date822fmt.o: \ | |
114 | compile date822fmt.c datetime.h date822fmt.c fmt.h date822fmt.c \ | |
115 | date822fmt.h date822fmt.c | |
116 | ./compile date822fmt.c | |
117 | ||
118 | datetime.0: \ | |
119 | datetime.3 | |
120 | nroff -man datetime.3 > datetime.0 | |
121 | ||
122 | datetime.o: \ | |
123 | compile datetime.c datetime.h datetime.c | |
124 | ./compile datetime.c | |
125 | ||
126 | direntry.0: \ | |
127 | direntry.3 | |
128 | nroff -man direntry.3 > direntry.0 | |
129 | ||
130 | direntry.h: \ | |
131 | compile trydrent.c direntry.h1 direntry.h2 | |
132 | ( ./compile trydrent.c >/dev/null 2>&1 \ | |
133 | && cat direntry.h2 || cat direntry.h1 ) > direntry.h | |
134 | rm -f trydrent.o | |
135 | ||
136 | env.0: \ | |
137 | env.3 | |
138 | nroff -man env.3 > env.0 | |
139 | ||
140 | env.a: \ | |
141 | makelib envread.o | |
142 | ./makelib env.a envread.o | |
143 | ||
144 | envread.o: \ | |
145 | compile envread.c env.h envread.c str.h envread.c | |
146 | ./compile envread.c | |
147 | ||
148 | error.0: \ | |
149 | error.3 | |
150 | nroff -man error.3 > error.0 | |
151 | ||
152 | error.a: \ | |
153 | makelib error.o error_str.o | |
154 | ./makelib error.a error.o error_str.o | |
155 | ||
156 | error.o: \ | |
157 | compile error.c error.c error.h error.c | |
158 | ./compile error.c | |
159 | ||
160 | error_str.0: \ | |
161 | error_str.3 | |
162 | nroff -man error_str.3 > error_str.0 | |
163 | ||
164 | error_str.o: \ | |
165 | compile error_str.c error_str.c error.h error_str.c | |
166 | ./compile error_str.c | |
167 | ||
168 | error_temp.0: \ | |
169 | error_temp.3 | |
170 | nroff -man error_temp.3 > error_temp.0 | |
171 | ||
172 | ezmlm-list: \ | |
173 | load ezmlm-list.o strerr.a getln.a substdio.a stralloc.a alloc.a \ | |
174 | error.a open.a str.a | |
175 | ./load ezmlm-list strerr.a getln.a substdio.a stralloc.a \ | |
176 | alloc.a error.a open.a str.a | |
177 | ||
178 | ezmlm-list.0: \ | |
179 | ezmlm-list.1 | |
180 | nroff -man ezmlm-list.1 > ezmlm-list.0 | |
181 | ||
182 | ezmlm-list.o: \ | |
183 | compile ezmlm-list.c stralloc.h gen_alloc.h stralloc.h ezmlm-list.c \ | |
184 | substdio.h ezmlm-list.c getln.h ezmlm-list.c strerr.h ezmlm-list.c \ | |
185 | error.h ezmlm-list.c readwrite.h ezmlm-list.c exit.h ezmlm-list.c \ | |
186 | open.h ezmlm-list.c | |
187 | ./compile ezmlm-list.c | |
188 | ||
189 | ezmlm-make: \ | |
190 | load ezmlm-make.o auto_bin.o open.a getopt.a substdio.a strerr.a \ | |
191 | stralloc.a alloc.a error.a str.a | |
192 | ./load ezmlm-make auto_bin.o open.a getopt.a substdio.a \ | |
193 | strerr.a stralloc.a alloc.a error.a str.a | |
194 | ||
195 | ezmlm-make.0: \ | |
196 | ezmlm-make.1 | |
197 | nroff -man ezmlm-make.1 > ezmlm-make.0 | |
198 | ||
199 | ezmlm-make.o: \ | |
200 | compile ezmlm-make.c ezmlm-make.c ezmlm-make.c sgetopt.h subgetopt.h \ | |
201 | sgetopt.h ezmlm-make.c stralloc.h gen_alloc.h stralloc.h ezmlm-make.c \ | |
202 | strerr.h ezmlm-make.c exit.h ezmlm-make.c readwrite.h ezmlm-make.c \ | |
203 | open.h ezmlm-make.c substdio.h ezmlm-make.c str.h ezmlm-make.c \ | |
204 | auto_bin.h ezmlm-make.c ezmlm-make.c ezmlm-make.c ezmlm-make.c \ | |
205 | ezmlm-make.c | |
206 | ./compile ezmlm-make.c | |
207 | ||
208 | ezmlm-manage: \ | |
209 | load ezmlm-manage.o auto_qmail.o getconf.o subscribe.o log.o cookie.o \ | |
210 | now.o datetime.o date822fmt.o slurpclose.o slurp.o qmail.o quote.o \ | |
211 | surf.a getln.a env.a sig.a strerr.a substdio.a stralloc.a alloc.a \ | |
212 | error.a str.a fs.a case.a open.a seek.a wait.a lock.a fd.a | |
213 | ./load ezmlm-manage auto_qmail.o getconf.o subscribe.o \ | |
214 | log.o cookie.o now.o datetime.o date822fmt.o slurpclose.o \ | |
215 | slurp.o qmail.o quote.o surf.a getln.a env.a sig.a strerr.a \ | |
216 | substdio.a stralloc.a alloc.a error.a str.a fs.a case.a \ | |
217 | open.a seek.a wait.a lock.a fd.a | |
218 | ||
219 | ezmlm-manage.0: \ | |
220 | ezmlm-manage.1 | |
221 | nroff -man ezmlm-manage.1 > ezmlm-manage.0 | |
222 | ||
223 | ezmlm-manage.o: \ | |
224 | compile ezmlm-manage.c ezmlm-manage.c ezmlm-manage.c error.h \ | |
225 | ezmlm-manage.c stralloc.h gen_alloc.h stralloc.h ezmlm-manage.c str.h \ | |
226 | ezmlm-manage.c env.h ezmlm-manage.c sig.h ezmlm-manage.c slurp.h \ | |
227 | ezmlm-manage.c getconf.h ezmlm-manage.c strerr.h ezmlm-manage.c \ | |
228 | byte.h ezmlm-manage.c getln.h ezmlm-manage.c case.h ezmlm-manage.c \ | |
229 | qmail.h substdio.h qmail.h ezmlm-manage.c substdio.h substdio.h \ | |
230 | ezmlm-manage.c readwrite.h ezmlm-manage.c seek.h ezmlm-manage.c \ | |
231 | quote.h ezmlm-manage.c datetime.h ezmlm-manage.c now.h datetime.h \ | |
232 | datetime.h now.h ezmlm-manage.c date822fmt.h ezmlm-manage.c fmt.h \ | |
233 | ezmlm-manage.c subscribe.h strerr.h strerr.h subscribe.h \ | |
234 | ezmlm-manage.c cookie.h ezmlm-manage.c | |
235 | ./compile ezmlm-manage.c | |
236 | ||
237 | ezmlm-reject: \ | |
238 | load ezmlm-reject.o getln.a strerr.a substdio.a error.a stralloc.a \ | |
239 | alloc.a str.a getopt.a case.a | |
240 | ./load ezmlm-reject getln.a strerr.a substdio.a error.a \ | |
241 | stralloc.a alloc.a str.a getopt.a case.a | |
242 | ||
243 | ezmlm-reject.0: \ | |
244 | ezmlm-reject.1 | |
245 | nroff -man ezmlm-reject.1 > ezmlm-reject.0 | |
246 | ||
247 | ezmlm-reject.o: \ | |
248 | compile ezmlm-reject.c strerr.h ezmlm-reject.c substdio.h \ | |
249 | ezmlm-reject.c readwrite.h ezmlm-reject.c stralloc.h gen_alloc.h \ | |
250 | stralloc.h ezmlm-reject.c getln.h ezmlm-reject.c sgetopt.h \ | |
251 | subgetopt.h sgetopt.h ezmlm-reject.c | |
252 | ./compile ezmlm-reject.c | |
253 | ||
254 | ezmlm-return: \ | |
255 | load ezmlm-return.o quote.o getconf.o issub.o subscribe.o log.o \ | |
256 | slurpclose.o slurp.o now.o cookie.o surf.a lock.a env.a sig.a \ | |
257 | strerr.a getln.a substdio.a stralloc.a alloc.a error.a str.a fs.a \ | |
258 | case.a open.a | |
259 | ./load ezmlm-return quote.o getconf.o issub.o subscribe.o \ | |
260 | log.o slurpclose.o slurp.o now.o cookie.o surf.a lock.a \ | |
261 | env.a sig.a strerr.a getln.a substdio.a stralloc.a alloc.a \ | |
262 | error.a str.a fs.a case.a open.a | |
263 | ||
264 | ezmlm-return.0: \ | |
265 | ezmlm-return.1 | |
266 | nroff -man ezmlm-return.1 > ezmlm-return.0 | |
267 | ||
268 | ezmlm-return.o: \ | |
269 | compile ezmlm-return.c stralloc.h gen_alloc.h stralloc.h \ | |
270 | ezmlm-return.c str.h ezmlm-return.c env.h ezmlm-return.c sig.h \ | |
271 | ezmlm-return.c slurp.h ezmlm-return.c getconf.h ezmlm-return.c \ | |
272 | strerr.h ezmlm-return.c byte.h ezmlm-return.c case.h ezmlm-return.c \ | |
273 | getln.h ezmlm-return.c substdio.h ezmlm-return.c error.h \ | |
274 | ezmlm-return.c quote.h ezmlm-return.c readwrite.h ezmlm-return.c \ | |
275 | fmt.h ezmlm-return.c now.h datetime.h now.h ezmlm-return.c cookie.h \ | |
276 | ezmlm-return.c subscribe.h strerr.h strerr.h subscribe.h \ | |
277 | ezmlm-return.c issub.h strerr.h strerr.h issub.h ezmlm-return.c | |
278 | ./compile ezmlm-return.c | |
279 | ||
280 | ezmlm-send: \ | |
281 | load ezmlm-send.o auto_qmail.o getconf.o qmail.o constmap.o slurp.o \ | |
282 | slurpclose.o wait.a getln.a strerr.a sig.a env.a open.a lock.a \ | |
283 | substdio.a stralloc.a alloc.a error.a str.a fd.a case.a fs.a | |
284 | ./load ezmlm-send auto_qmail.o getconf.o qmail.o \ | |
285 | constmap.o slurp.o slurpclose.o wait.a getln.a strerr.a \ | |
286 | sig.a env.a open.a lock.a substdio.a stralloc.a alloc.a \ | |
287 | error.a str.a fd.a case.a fs.a | |
288 | ||
289 | ezmlm-send.0: \ | |
290 | ezmlm-send.1 | |
291 | nroff -man ezmlm-send.1 > ezmlm-send.0 | |
292 | ||
293 | ezmlm-send.o: \ | |
294 | compile ezmlm-send.c stralloc.h gen_alloc.h stralloc.h ezmlm-send.c \ | |
295 | subfd.h substdio.h subfd.h ezmlm-send.c strerr.h ezmlm-send.c error.h \ | |
296 | ezmlm-send.c qmail.h substdio.h substdio.h qmail.h ezmlm-send.c env.h \ | |
297 | ezmlm-send.c lock.h ezmlm-send.c sig.h ezmlm-send.c open.h \ | |
298 | ezmlm-send.c getln.h ezmlm-send.c case.h ezmlm-send.c scan.h \ | |
299 | ezmlm-send.c str.h ezmlm-send.c fmt.h ezmlm-send.c readwrite.h \ | |
300 | ezmlm-send.c exit.h ezmlm-send.c substdio.h substdio.h ezmlm-send.c \ | |
301 | getconf.h ezmlm-send.c constmap.h ezmlm-send.c | |
302 | ./compile ezmlm-send.c | |
303 | ||
304 | ezmlm-sub: \ | |
305 | load ezmlm-sub.o subscribe.o log.o now.o fs.a strerr.a getln.a \ | |
306 | substdio.a stralloc.a alloc.a error.a str.a case.a open.a lock.a | |
307 | ./load ezmlm-sub subscribe.o log.o now.o fs.a strerr.a \ | |
308 | getln.a substdio.a stralloc.a alloc.a error.a str.a case.a \ | |
309 | open.a lock.a | |
310 | ||
311 | ezmlm-sub.0: \ | |
312 | ezmlm-sub.1 | |
313 | nroff -man ezmlm-sub.1 > ezmlm-sub.0 | |
314 | ||
315 | ezmlm-sub.o: \ | |
316 | compile ezmlm-sub.c strerr.h ezmlm-sub.c subscribe.h strerr.h \ | |
317 | strerr.h subscribe.h ezmlm-sub.c log.h ezmlm-sub.c | |
318 | ./compile ezmlm-sub.c | |
319 | ||
320 | ezmlm-unsub: \ | |
321 | load ezmlm-unsub.o subscribe.o log.o now.o fs.a strerr.a getln.a \ | |
322 | substdio.a stralloc.a alloc.a error.a str.a case.a open.a lock.a | |
323 | ./load ezmlm-unsub subscribe.o log.o now.o fs.a strerr.a \ | |
324 | getln.a substdio.a stralloc.a alloc.a error.a str.a case.a \ | |
325 | open.a lock.a | |
326 | ||
327 | ezmlm-unsub.0: \ | |
328 | ezmlm-unsub.1 | |
329 | nroff -man ezmlm-unsub.1 > ezmlm-unsub.0 | |
330 | ||
331 | ezmlm-unsub.o: \ | |
332 | compile ezmlm-unsub.c strerr.h ezmlm-unsub.c subscribe.h strerr.h \ | |
333 | strerr.h subscribe.h ezmlm-unsub.c log.h ezmlm-unsub.c | |
334 | ./compile ezmlm-unsub.c | |
335 | ||
336 | ezmlm-warn: \ | |
337 | load ezmlm-warn.o auto_qmail.o getconf.o cookie.o issub.o now.o \ | |
338 | slurpclose.o slurp.o quote.o datetime.o date822fmt.o qmail.o surf.a \ | |
339 | case.a strerr.a sig.a getln.a substdio.a stralloc.a alloc.a error.a \ | |
340 | open.a lock.a str.a fs.a fd.a wait.a | |
341 | ./load ezmlm-warn auto_qmail.o getconf.o cookie.o issub.o \ | |
342 | now.o slurpclose.o slurp.o quote.o datetime.o date822fmt.o \ | |
343 | qmail.o surf.a case.a strerr.a sig.a getln.a substdio.a \ | |
344 | stralloc.a alloc.a error.a open.a lock.a str.a fs.a fd.a \ | |
345 | wait.a | |
346 | ||
347 | ezmlm-warn.0: \ | |
348 | ezmlm-warn.1 | |
349 | nroff -man ezmlm-warn.1 > ezmlm-warn.0 | |
350 | ||
351 | ezmlm-warn.o: \ | |
352 | compile ezmlm-warn.c ezmlm-warn.c ezmlm-warn.c direntry.h direntry.h \ | |
353 | direntry.h ezmlm-warn.c readwrite.h ezmlm-warn.c getln.h ezmlm-warn.c \ | |
354 | substdio.h ezmlm-warn.c stralloc.h gen_alloc.h stralloc.h \ | |
355 | ezmlm-warn.c slurp.h ezmlm-warn.c getconf.h ezmlm-warn.c byte.h \ | |
356 | ezmlm-warn.c error.h ezmlm-warn.c str.h ezmlm-warn.c strerr.h \ | |
357 | ezmlm-warn.c sig.h ezmlm-warn.c now.h datetime.h now.h ezmlm-warn.c \ | |
358 | datetime.h datetime.h ezmlm-warn.c date822fmt.h ezmlm-warn.c fmt.h \ | |
359 | ezmlm-warn.c cookie.h ezmlm-warn.c qmail.h substdio.h substdio.h \ | |
360 | qmail.h ezmlm-warn.c | |
361 | ./compile ezmlm-warn.c | |
362 | ||
363 | ezmlm-weed: \ | |
364 | load ezmlm-weed.o getln.a strerr.a substdio.a error.a stralloc.a \ | |
365 | alloc.a str.a | |
366 | ./load ezmlm-weed getln.a strerr.a substdio.a error.a \ | |
367 | stralloc.a alloc.a str.a | |
368 | ||
369 | ezmlm-weed.0: \ | |
370 | ezmlm-weed.1 | |
371 | nroff -man ezmlm-weed.1 > ezmlm-weed.0 | |
372 | ||
373 | ezmlm-weed.o: \ | |
374 | compile ezmlm-weed.c stralloc.h gen_alloc.h stralloc.h ezmlm-weed.c \ | |
375 | str.h ezmlm-weed.c byte.h ezmlm-weed.c readwrite.h ezmlm-weed.c \ | |
376 | substdio.h ezmlm-weed.c getln.h ezmlm-weed.c strerr.h ezmlm-weed.c | |
377 | ./compile ezmlm-weed.c | |
378 | ||
379 | ezmlm.0: \ | |
380 | ezmlm.5 | |
381 | nroff -man ezmlm.5 > ezmlm.0 | |
382 | ||
383 | fd.a: \ | |
384 | makelib fd_copy.o fd_move.o | |
385 | ./makelib fd.a fd_copy.o fd_move.o | |
386 | ||
387 | fd_copy.0: \ | |
388 | fd_copy.3 | |
389 | nroff -man fd_copy.3 > fd_copy.0 | |
390 | ||
391 | fd_copy.o: \ | |
392 | compile fd_copy.c fd_copy.c fd.h fd_copy.c | |
393 | ./compile fd_copy.c | |
394 | ||
395 | fd_move.0: \ | |
396 | fd_move.3 | |
397 | nroff -man fd_move.3 > fd_move.0 | |
398 | ||
399 | fd_move.o: \ | |
400 | compile fd_move.c fd.h fd_move.c | |
401 | ./compile fd_move.c | |
402 | ||
403 | find-systype: \ | |
404 | find-systype.sh auto-ccld.sh | |
405 | cat auto-ccld.sh find-systype.sh > find-systype | |
406 | chmod 755 find-systype | |
407 | ||
408 | fmt_str.o: \ | |
409 | compile fmt_str.c fmt.h fmt_str.c | |
410 | ./compile fmt_str.c | |
411 | ||
412 | fmt_uint.o: \ | |
413 | compile fmt_uint.c fmt.h fmt_uint.c | |
414 | ./compile fmt_uint.c | |
415 | ||
416 | fmt_uint0.o: \ | |
417 | compile fmt_uint0.c fmt.h fmt_uint0.c | |
418 | ./compile fmt_uint0.c | |
419 | ||
420 | fmt_ulong.o: \ | |
421 | compile fmt_ulong.c fmt.h fmt_ulong.c | |
422 | ./compile fmt_ulong.c | |
423 | ||
424 | fork.h: \ | |
425 | compile load tryvfork.c fork.h1 fork.h2 | |
426 | ( ( ./compile tryvfork.c && ./load tryvfork ) >/dev/null \ | |
427 | 2>&1 \ | |
428 | && cat fork.h2 || cat fork.h1 ) > fork.h | |
429 | rm -f tryvfork.o tryvfork | |
430 | ||
431 | fs.a: \ | |
432 | makelib fmt_str.o fmt_uint.o fmt_uint0.o fmt_ulong.o scan_ulong.o \ | |
433 | scan_8long.o | |
434 | ./makelib fs.a fmt_str.o fmt_uint.o fmt_uint0.o \ | |
435 | fmt_ulong.o scan_ulong.o scan_8long.o | |
436 | ||
437 | getconf.o: \ | |
438 | compile getconf.c stralloc.h gen_alloc.h stralloc.h getconf.c slurp.h \ | |
439 | getconf.c strerr.h getconf.c getconf.h getconf.c | |
440 | ./compile getconf.c | |
441 | ||
442 | getln.0: \ | |
443 | getln.3 | |
444 | nroff -man getln.3 > getln.0 | |
445 | ||
446 | getln.a: \ | |
447 | makelib getln.o getln2.o | |
448 | ./makelib getln.a getln.o getln2.o | |
449 | ||
450 | getln.o: \ | |
451 | compile getln.c substdio.h getln.c byte.h getln.c stralloc.h \ | |
452 | gen_alloc.h stralloc.h getln.c getln.h getln.c | |
453 | ./compile getln.c | |
454 | ||
455 | getln2.0: \ | |
456 | getln2.3 | |
457 | nroff -man getln2.3 > getln2.0 | |
458 | ||
459 | getln2.o: \ | |
460 | compile getln2.c substdio.h getln2.c stralloc.h gen_alloc.h \ | |
461 | stralloc.h getln2.c byte.h getln2.c getln.h getln2.c | |
462 | ./compile getln2.c | |
463 | ||
464 | getopt.0: \ | |
465 | getopt.3 | |
466 | nroff -man getopt.3 > getopt.0 | |
467 | ||
468 | getopt.a: \ | |
469 | makelib subgetopt.o sgetopt.o | |
470 | ./makelib getopt.a subgetopt.o sgetopt.o | |
471 | ||
472 | hasflock.h: \ | |
473 | tryflock.c compile load | |
474 | ( ( ./compile tryflock.c && ./load tryflock ) >/dev/null \ | |
475 | 2>&1 \ | |
476 | && echo \#define HASFLOCK 1 || exit 0 ) > hasflock.h | |
477 | rm -f tryflock.o tryflock | |
478 | ||
479 | hassgact.h: \ | |
480 | trysgact.c compile load | |
481 | ( ( ./compile trysgact.c && ./load trysgact ) >/dev/null \ | |
482 | 2>&1 \ | |
483 | && echo \#define HASSIGACTION 1 || exit 0 ) > hassgact.h | |
484 | rm -f trysgact.o trysgact | |
485 | ||
486 | install: \ | |
487 | load install.o getln.a strerr.a substdio.a stralloc.a alloc.a open.a \ | |
488 | error.a str.a fs.a | |
489 | ./load install getln.a strerr.a substdio.a stralloc.a \ | |
490 | alloc.a open.a error.a str.a fs.a | |
491 | ||
492 | install.o: \ | |
493 | compile install.c substdio.h install.c stralloc.h gen_alloc.h \ | |
494 | stralloc.h install.c getln.h install.c readwrite.h install.c exit.h \ | |
495 | install.c open.h install.c error.h install.c strerr.h install.c \ | |
496 | byte.h install.c | |
497 | ./compile install.c | |
498 | ||
499 | issub.o: \ | |
500 | compile issub.c stralloc.h gen_alloc.h stralloc.h issub.c getln.h \ | |
501 | issub.c readwrite.h issub.c substdio.h issub.c open.h issub.c byte.h \ | |
502 | issub.c case.h issub.c lock.h issub.c error.h issub.c issub.h \ | |
503 | strerr.h issub.h issub.c uint32.h issub.c | |
504 | ./compile issub.c | |
505 | ||
506 | it: \ | |
507 | ezmlm-make ezmlm-manage ezmlm-send ezmlm-reject ezmlm-return \ | |
508 | ezmlm-warn ezmlm-weed ezmlm-list ezmlm-sub ezmlm-unsub | |
509 | ||
510 | load: \ | |
511 | make-load warn-auto.sh systype | |
512 | ( cat warn-auto.sh; ./make-load "`cat systype`" ) > load | |
513 | chmod 755 load | |
514 | ||
515 | lock.a: \ | |
516 | makelib lock_ex.o | |
517 | ./makelib lock.a lock_ex.o | |
518 | ||
519 | lock_ex.o: \ | |
520 | compile lock_ex.c lock_ex.c lock_ex.c lock_ex.c hasflock.h lock_ex.c \ | |
521 | lock.h lock_ex.c | |
522 | ./compile lock_ex.c | |
523 | ||
524 | log.o: \ | |
525 | compile log.c substdio.h log.c readwrite.h log.c stralloc.h \ | |
526 | gen_alloc.h stralloc.h log.c log.h log.c now.h datetime.h now.h log.c \ | |
527 | fmt.h log.c open.h log.c | |
528 | ./compile log.c | |
529 | ||
530 | make-compile: \ | |
531 | make-compile.sh auto-ccld.sh | |
532 | cat auto-ccld.sh make-compile.sh > make-compile | |
533 | chmod 755 make-compile | |
534 | ||
535 | make-load: \ | |
536 | make-load.sh auto-ccld.sh | |
537 | cat auto-ccld.sh make-load.sh > make-load | |
538 | chmod 755 make-load | |
539 | ||
540 | make-makelib: \ | |
541 | make-makelib.sh auto-ccld.sh | |
542 | cat auto-ccld.sh make-makelib.sh > make-makelib | |
543 | chmod 755 make-makelib | |
544 | ||
545 | makelib: \ | |
546 | make-makelib warn-auto.sh systype | |
547 | ( cat warn-auto.sh; ./make-makelib "`cat systype`" ) > \ | |
548 | makelib | |
549 | chmod 755 makelib | |
550 | ||
551 | man: \ | |
552 | ezmlm.0 ezmlm-make.0 ezmlm-manage.0 ezmlm-send.0 ezmlm-reject.0 \ | |
553 | ezmlm-return.0 ezmlm-warn.0 ezmlm-weed.0 ezmlm-list.0 ezmlm-sub.0 \ | |
554 | ezmlm-unsub.0 alloc.0 case.0 datetime.0 direntry.0 env.0 error.0 \ | |
555 | error_str.0 error_temp.0 ezmlm.0 fd_copy.0 fd_move.0 getln.0 getln2.0 \ | |
556 | getopt.0 now.0 sgetopt.0 stralloc.0 subfd.0 subgetopt.0 substdio.0 \ | |
557 | substdio_copy.0 substdio_in.0 substdio_out.0 surf.0 surfpcs.0 wait.0 | |
558 | ||
559 | now.0: \ | |
560 | now.3 | |
561 | nroff -man now.3 > now.0 | |
562 | ||
563 | now.o: \ | |
564 | compile now.c now.c datetime.h now.c now.h datetime.h datetime.h \ | |
565 | now.h now.c | |
566 | ./compile now.c | |
567 | ||
568 | open.a: \ | |
569 | makelib open_append.o open_read.o open_trunc.o | |
570 | ./makelib open.a open_append.o open_read.o open_trunc.o | |
571 | ||
572 | open_append.o: \ | |
573 | compile open_append.c open_append.c open_append.c open.h \ | |
574 | open_append.c | |
575 | ./compile open_append.c | |
576 | ||
577 | open_read.o: \ | |
578 | compile open_read.c open_read.c open_read.c open.h open_read.c | |
579 | ./compile open_read.c | |
580 | ||
581 | open_trunc.o: \ | |
582 | compile open_trunc.c open_trunc.c open_trunc.c open.h open_trunc.c | |
583 | ./compile open_trunc.c | |
584 | ||
585 | qmail.o: \ | |
586 | compile qmail.c substdio.h qmail.c readwrite.h qmail.c wait.h qmail.c \ | |
587 | exit.h qmail.c fork.h qmail.c fd.h qmail.c qmail.h substdio.h \ | |
588 | substdio.h qmail.h qmail.c auto_qmail.h qmail.c | |
589 | ./compile qmail.c | |
590 | ||
591 | quote.o: \ | |
592 | compile quote.c stralloc.h gen_alloc.h stralloc.h quote.c str.h \ | |
593 | quote.c quote.h quote.c | |
594 | ./compile quote.c | |
595 | ||
596 | scan_8long.o: \ | |
597 | compile scan_8long.c scan.h scan_8long.c | |
598 | ./compile scan_8long.c | |
599 | ||
600 | scan_ulong.o: \ | |
601 | compile scan_ulong.c scan.h scan_ulong.c | |
602 | ./compile scan_ulong.c | |
603 | ||
604 | seek.a: \ | |
605 | makelib seek_set.o | |
606 | ./makelib seek.a seek_set.o | |
607 | ||
608 | seek_set.o: \ | |
609 | compile seek_set.c seek_set.c seek.h seek_set.c | |
610 | ./compile seek_set.c | |
611 | ||
612 | setup: \ | |
613 | it man install conf-bin conf-man | |
614 | ./install "`head -1 conf-bin`" < BIN | |
615 | ./install "`head -1 conf-man`" < MAN | |
616 | ||
617 | sgetopt.0: \ | |
618 | sgetopt.3 | |
619 | nroff -man sgetopt.3 > sgetopt.0 | |
620 | ||
621 | sgetopt.o: \ | |
622 | compile sgetopt.c substdio.h sgetopt.c subfd.h substdio.h substdio.h \ | |
623 | subfd.h sgetopt.c sgetopt.h sgetopt.h subgetopt.h sgetopt.h sgetopt.c \ | |
624 | subgetopt.h subgetopt.h sgetopt.c | |
625 | ./compile sgetopt.c | |
626 | ||
627 | shar: \ | |
628 | FILES BLURB README INSTALL TODO THANKS CHANGES FILES BIN MAN VERSION \ | |
629 | SYSDEPS Makefile ezmlm.5 ezmlm-make.1 ezmlm-make.c ezmlm-send.1 \ | |
630 | ezmlm-send.c ezmlm-reject.1 ezmlm-reject.c ezmlm-list.1 ezmlm-list.c \ | |
631 | ezmlm-sub.1 ezmlm-sub.c ezmlm-unsub.1 ezmlm-unsub.c ezmlm-manage.1 \ | |
632 | ezmlm-manage.c ezmlm-return.1 ezmlm-return.c ezmlm-warn.1 \ | |
633 | ezmlm-warn.c ezmlm-weed.1 ezmlm-weed.c getconf.h getconf.c log.h \ | |
634 | log.c issub.h issub.c subscribe.h subscribe.c cookie.h cookie.c \ | |
635 | auto-str.c conf-bin auto_bin.h conf-man install.c conf-cc conf-ld \ | |
636 | find-systype.sh make-compile.sh make-load.sh make-makelib.sh trycpp.c \ | |
637 | warn-auto.sh fork.h1 fork.h2 tryvfork.c wait.3 wait.h wait_pid.c \ | |
638 | trywaitp.c error.3 error_str.3 error_temp.3 error.h error.c \ | |
639 | error_str.c substdio.3 substdio_copy.3 substdio_in.3 substdio_out.3 \ | |
640 | substdio.h substdio.c substdi.c substdo.c substdio_copy.c subfd.3 \ | |
641 | subfd.h subfderr.c readwrite.h exit.h byte.h byte_chr.c byte_copy.c \ | |
642 | byte_cr.c byte_diff.c byte_rchr.c byte_zero.c str.h str_chr.c \ | |
643 | str_cpy.c str_diff.c str_diffn.c str_len.c str_rchr.c str_start.c \ | |
644 | getopt.3 sgetopt.3 subgetopt.3 sgetopt.h sgetopt.c subgetopt.h \ | |
645 | subgetopt.c strerr.h strerr.c strerr_sys.c strerr_die.c gen_alloc.h \ | |
646 | gen_allocdefs.h stralloc.3 stralloc.h stralloc_eady.c stralloc_pend.c \ | |
647 | stralloc_copy.c stralloc_opyb.c stralloc_opys.c stralloc_cat.c \ | |
648 | stralloc_catb.c stralloc_cats.c stralloc_arts.c alloc.3 alloc.h \ | |
649 | alloc.c alloc_re.c open.h open_append.c open_read.c open_trunc.c \ | |
650 | uint32.h1 uint32.h2 tryulong32.c case.3 case.h case_diffb.c \ | |
651 | case_lowerb.c case_startb.c fmt.h fmt_str.c fmt_uint.c fmt_uint0.c \ | |
652 | fmt_ulong.c scan.h scan_ulong.c scan_8long.c lock.h lock_ex.c \ | |
653 | tryflock.c env.3 env.h envread.c slurpclose.h slurpclose.c sig.h \ | |
654 | sig_catch.c sig_pipe.c trysgact.c datetime.3 datetime.h datetime.c \ | |
655 | date822fmt.h date822fmt.c now.3 now.h now.c quote.h quote.c seek.h \ | |
656 | seek_set.c conf-qmail auto_qmail.h qmail.h qmail.c direntry.3 \ | |
657 | direntry.h1 direntry.h2 trydrent.c getln.3 getln.h getln.c getln2.3 \ | |
658 | getln2.c fd.h fd_copy.3 fd_copy.c fd_move.3 fd_move.c surf.3 surf.h \ | |
659 | surf.c surfpcs.3 surfpcs.h surfpcs.c slurp.h slurp.c constmap.h \ | |
660 | constmap.c | |
661 | shar -m `cat FILES` > shar | |
662 | chmod 400 shar | |
663 | ||
664 | sig.a: \ | |
665 | makelib sig_catch.o sig_pipe.o | |
666 | ./makelib sig.a sig_catch.o sig_pipe.o | |
667 | ||
668 | sig_catch.o: \ | |
669 | compile sig_catch.c sig_catch.c sig.h sig_catch.c hassgact.h \ | |
670 | sig_catch.c | |
671 | ./compile sig_catch.c | |
672 | ||
673 | sig_pipe.o: \ | |
674 | compile sig_pipe.c sig_pipe.c sig.h sig_pipe.c | |
675 | ./compile sig_pipe.c | |
676 | ||
677 | slurp.o: \ | |
678 | compile slurp.c stralloc.h gen_alloc.h stralloc.h slurp.c slurp.h \ | |
679 | slurp.c error.h slurp.c open.h slurp.c | |
680 | ./compile slurp.c | |
681 | ||
682 | slurpclose.o: \ | |
683 | compile slurpclose.c stralloc.h gen_alloc.h stralloc.h slurpclose.c \ | |
684 | readwrite.h slurpclose.c slurpclose.h slurpclose.c error.h \ | |
685 | slurpclose.c | |
686 | ./compile slurpclose.c | |
687 | ||
688 | str.a: \ | |
689 | makelib str_len.o str_diff.o str_diffn.o str_cpy.o str_chr.o \ | |
690 | str_rchr.o str_start.o byte_chr.o byte_rchr.o byte_diff.o byte_copy.o \ | |
691 | byte_cr.o byte_zero.o | |
692 | ./makelib str.a str_len.o str_diff.o str_diffn.o str_cpy.o \ | |
693 | str_chr.o str_rchr.o str_start.o byte_chr.o byte_rchr.o \ | |
694 | byte_diff.o byte_copy.o byte_cr.o byte_zero.o | |
695 | ||
696 | str_chr.o: \ | |
697 | compile str_chr.c str.h str_chr.c | |
698 | ./compile str_chr.c | |
699 | ||
700 | str_cpy.o: \ | |
701 | compile str_cpy.c str.h str_cpy.c | |
702 | ./compile str_cpy.c | |
703 | ||
704 | str_diff.o: \ | |
705 | compile str_diff.c str.h str_diff.c | |
706 | ./compile str_diff.c | |
707 | ||
708 | str_diffn.o: \ | |
709 | compile str_diffn.c str.h str_diffn.c | |
710 | ./compile str_diffn.c | |
711 | ||
712 | str_len.o: \ | |
713 | compile str_len.c str.h str_len.c | |
714 | ./compile str_len.c | |
715 | ||
716 | str_rchr.o: \ | |
717 | compile str_rchr.c str.h str_rchr.c | |
718 | ./compile str_rchr.c | |
719 | ||
720 | str_start.o: \ | |
721 | compile str_start.c str.h str_start.c | |
722 | ./compile str_start.c | |
723 | ||
724 | stralloc.0: \ | |
725 | stralloc.3 | |
726 | nroff -man stralloc.3 > stralloc.0 | |
727 | ||
728 | stralloc.a: \ | |
729 | makelib stralloc_eady.o stralloc_pend.o stralloc_copy.o \ | |
730 | stralloc_opys.o stralloc_opyb.o stralloc_cat.o stralloc_cats.o \ | |
731 | stralloc_catb.o stralloc_arts.o | |
732 | ./makelib stralloc.a stralloc_eady.o stralloc_pend.o \ | |
733 | stralloc_copy.o stralloc_opys.o stralloc_opyb.o \ | |
734 | stralloc_cat.o stralloc_cats.o stralloc_catb.o \ | |
735 | stralloc_arts.o | |
736 | ||
737 | stralloc_arts.o: \ | |
738 | compile stralloc_arts.c byte.h stralloc_arts.c str.h stralloc_arts.c \ | |
739 | stralloc.h gen_alloc.h stralloc.h stralloc_arts.c | |
740 | ./compile stralloc_arts.c | |
741 | ||
742 | stralloc_cat.o: \ | |
743 | compile stralloc_cat.c byte.h stralloc_cat.c stralloc.h gen_alloc.h \ | |
744 | stralloc.h stralloc_cat.c | |
745 | ./compile stralloc_cat.c | |
746 | ||
747 | stralloc_catb.o: \ | |
748 | compile stralloc_catb.c stralloc.h gen_alloc.h stralloc.h \ | |
749 | stralloc_catb.c byte.h stralloc_catb.c | |
750 | ./compile stralloc_catb.c | |
751 | ||
752 | stralloc_cats.o: \ | |
753 | compile stralloc_cats.c byte.h stralloc_cats.c str.h stralloc_cats.c \ | |
754 | stralloc.h gen_alloc.h stralloc.h stralloc_cats.c | |
755 | ./compile stralloc_cats.c | |
756 | ||
757 | stralloc_copy.o: \ | |
758 | compile stralloc_copy.c byte.h stralloc_copy.c stralloc.h gen_alloc.h \ | |
759 | stralloc.h stralloc_copy.c | |
760 | ./compile stralloc_copy.c | |
761 | ||
762 | stralloc_eady.o: \ | |
763 | compile stralloc_eady.c alloc.h stralloc_eady.c stralloc.h \ | |
764 | gen_alloc.h stralloc.h stralloc_eady.c gen_allocdefs.h \ | |
765 | gen_allocdefs.h gen_allocdefs.h stralloc_eady.c | |
766 | ./compile stralloc_eady.c | |
767 | ||
768 | stralloc_opyb.o: \ | |
769 | compile stralloc_opyb.c stralloc.h gen_alloc.h stralloc.h \ | |
770 | stralloc_opyb.c byte.h stralloc_opyb.c | |
771 | ./compile stralloc_opyb.c | |
772 | ||
773 | stralloc_opys.o: \ | |
774 | compile stralloc_opys.c byte.h stralloc_opys.c str.h stralloc_opys.c \ | |
775 | stralloc.h gen_alloc.h stralloc.h stralloc_opys.c | |
776 | ./compile stralloc_opys.c | |
777 | ||
778 | stralloc_pend.o: \ | |
779 | compile stralloc_pend.c alloc.h stralloc_pend.c stralloc.h \ | |
780 | gen_alloc.h stralloc.h stralloc_pend.c gen_allocdefs.h \ | |
781 | gen_allocdefs.h gen_allocdefs.h stralloc_pend.c | |
782 | ./compile stralloc_pend.c | |
783 | ||
784 | strerr.a: \ | |
785 | makelib strerr.o strerr_sys.o strerr_die.o | |
786 | ./makelib strerr.a strerr.o strerr_sys.o strerr_die.o | |
787 | ||
788 | strerr.o: \ | |
789 | compile strerr.c stralloc.h gen_alloc.h stralloc.h strerr.c strerr.h \ | |
790 | strerr.c | |
791 | ./compile strerr.c | |
792 | ||
793 | strerr_die.o: \ | |
794 | compile strerr_die.c substdio.h strerr_die.c subfd.h substdio.h \ | |
795 | substdio.h subfd.h strerr_die.c exit.h strerr_die.c strerr.h \ | |
796 | strerr_die.c | |
797 | ./compile strerr_die.c | |
798 | ||
799 | strerr_sys.o: \ | |
800 | compile strerr_sys.c error.h strerr_sys.c strerr.h strerr_sys.c | |
801 | ./compile strerr_sys.c | |
802 | ||
803 | subfd.0: \ | |
804 | subfd.3 | |
805 | nroff -man subfd.3 > subfd.0 | |
806 | ||
807 | subfderr.o: \ | |
808 | compile subfderr.c readwrite.h subfderr.c substdio.h subfderr.c \ | |
809 | subfd.h substdio.h substdio.h subfd.h subfderr.c | |
810 | ./compile subfderr.c | |
811 | ||
812 | subgetopt.0: \ | |
813 | subgetopt.3 | |
814 | nroff -man subgetopt.3 > subgetopt.0 | |
815 | ||
816 | subgetopt.o: \ | |
817 | compile subgetopt.c subgetopt.h subgetopt.h subgetopt.c | |
818 | ./compile subgetopt.c | |
819 | ||
820 | subscribe.o: \ | |
821 | compile subscribe.c stralloc.h gen_alloc.h stralloc.h subscribe.c \ | |
822 | getln.h subscribe.c readwrite.h subscribe.c substdio.h subscribe.c \ | |
823 | strerr.h subscribe.c open.h subscribe.c byte.h subscribe.c case.h \ | |
824 | subscribe.c lock.h subscribe.c error.h subscribe.c uint32.h \ | |
825 | subscribe.c subscribe.h strerr.h strerr.h subscribe.h subscribe.c | |
826 | ./compile subscribe.c | |
827 | ||
828 | substdi.o: \ | |
829 | compile substdi.c substdio.h substdi.c byte.h substdi.c error.h \ | |
830 | substdi.c | |
831 | ./compile substdi.c | |
832 | ||
833 | substdio.0: \ | |
834 | substdio.3 | |
835 | nroff -man substdio.3 > substdio.0 | |
836 | ||
837 | substdio.a: \ | |
838 | makelib substdio.o substdi.o substdo.o subfderr.o substdio_copy.o | |
839 | ./makelib substdio.a substdio.o substdi.o substdo.o \ | |
840 | subfderr.o substdio_copy.o | |
841 | ||
842 | substdio.o: \ | |
843 | compile substdio.c substdio.h substdio.c | |
844 | ./compile substdio.c | |
845 | ||
846 | substdio_copy.0: \ | |
847 | substdio_copy.3 | |
848 | nroff -man substdio_copy.3 > substdio_copy.0 | |
849 | ||
850 | substdio_copy.o: \ | |
851 | compile substdio_copy.c substdio.h substdio_copy.c | |
852 | ./compile substdio_copy.c | |
853 | ||
854 | substdio_in.0: \ | |
855 | substdio_in.3 | |
856 | nroff -man substdio_in.3 > substdio_in.0 | |
857 | ||
858 | substdio_out.0: \ | |
859 | substdio_out.3 | |
860 | nroff -man substdio_out.3 > substdio_out.0 | |
861 | ||
862 | substdo.o: \ | |
863 | compile substdo.c substdio.h substdo.c str.h substdo.c byte.h \ | |
864 | substdo.c error.h substdo.c | |
865 | ./compile substdo.c | |
866 | ||
867 | surf.0: \ | |
868 | surf.3 | |
869 | nroff -man surf.3 > surf.0 | |
870 | ||
871 | surf.a: \ | |
872 | makelib surf.o surfpcs.o | |
873 | ./makelib surf.a surf.o surfpcs.o | |
874 | ||
875 | surf.o: \ | |
876 | compile surf.c surf.h surf.c uint32.h surf.c | |
877 | ./compile surf.c | |
878 | ||
879 | surfpcs.0: \ | |
880 | surfpcs.3 | |
881 | nroff -man surfpcs.3 > surfpcs.0 | |
882 | ||
883 | surfpcs.o: \ | |
884 | compile surfpcs.c surf.h surfpcs.c surfpcs.h uint32.h surfpcs.h \ | |
885 | surfpcs.c | |
886 | ./compile surfpcs.c | |
887 | ||
888 | systype: \ | |
889 | find-systype trycpp.c | |
890 | ./find-systype > systype | |
891 | ||
892 | uint32.h: \ | |
893 | tryulong32.c compile load uint32.h1 uint32.h2 | |
894 | ( ( ./compile tryulong32.c && ./load tryulong32 && \ | |
895 | ./tryulong32 ) >/dev/null 2>&1 \ | |
896 | && cat uint32.h2 || cat uint32.h1 ) > uint32.h | |
897 | rm -f tryulong32.o tryulong32 | |
898 | ||
899 | wait.0: \ | |
900 | wait.3 | |
901 | nroff -man wait.3 > wait.0 | |
902 | ||
903 | wait.a: \ | |
904 | makelib wait_pid.o | |
905 | ./makelib wait.a wait_pid.o | |
906 | ||
907 | wait_pid.o: \ | |
908 | compile wait_pid.c wait_pid.c wait_pid.c error.h wait_pid.c | |
909 | ./compile wait_pid.c |