1# Don't edit Makefile! Use conf-* for configuration.
2
3SHELL=/bin/sh
4
5default: it
6
7addresses.0: \
8addresses.5
9	nroff -man addresses.5 > addresses.0
10
11alloc.a: \
12makelib alloc.o alloc_re.o
13	./makelib alloc.a alloc.o alloc_re.o
14
15alloc.o: \
16compile alloc.c alloc.h error.h
17	./compile alloc.c
18
19alloc_re.o: \
20compile alloc_re.c alloc.h byte.h
21	./compile alloc_re.c
22
23auto-ccld.sh: \
24conf-cc conf-ld warn-auto.sh
25	( cat warn-auto.sh; \
26	echo CC=\'`head -1 conf-cc`\'; \
27	echo LD=\'`head -1 conf-ld`\' \
28	) > auto-ccld.sh
29
30auto-gid: \
31load auto-gid.o substdio.a error.a str.a fs.a
32	./load auto-gid substdio.a error.a str.a fs.a
33
34auto-gid.o: \
35compile auto-gid.c subfd.h substdio.h substdio.h readwrite.h exit.h \
36scan.h fmt.h
37	./compile auto-gid.c
38
39auto-int: \
40load auto-int.o substdio.a error.a str.a fs.a
41	./load auto-int substdio.a error.a str.a fs.a
42
43auto-int.o: \
44compile auto-int.c substdio.h readwrite.h exit.h scan.h fmt.h
45	./compile auto-int.c
46
47auto-int8: \
48load auto-int8.o substdio.a error.a str.a fs.a
49	./load auto-int8 substdio.a error.a str.a fs.a
50
51auto-int8.o: \
52compile auto-int8.c substdio.h readwrite.h exit.h scan.h fmt.h
53	./compile auto-int8.c
54
55auto-str: \
56load auto-str.o substdio.a error.a str.a
57	./load auto-str substdio.a error.a str.a
58
59auto-str.o: \
60compile auto-str.c substdio.h readwrite.h exit.h
61	./compile auto-str.c
62
63auto-uid: \
64load auto-uid.o substdio.a error.a str.a fs.a
65	./load auto-uid substdio.a error.a str.a fs.a
66
67auto-uid.o: \
68compile auto-uid.c subfd.h substdio.h substdio.h readwrite.h exit.h \
69scan.h fmt.h
70	./compile auto-uid.c
71
72auto_break.c: \
73auto-str conf-break
74	./auto-str auto_break \
75	"`head -1 conf-break`" > auto_break.c
76
77auto_break.o: \
78compile auto_break.c
79	./compile auto_break.c
80
81auto_patrn.c: \
82auto-int8 conf-patrn
83	./auto-int8 auto_patrn `head -1 conf-patrn` > auto_patrn.c
84
85auto_patrn.o: \
86compile auto_patrn.c
87	./compile auto_patrn.c
88
89auto_qmail.c: \
90auto-str conf-qmail
91	./auto-str auto_qmail `head -1 conf-qmail` > auto_qmail.c
92
93auto_qmail.o: \
94compile auto_qmail.c
95	./compile auto_qmail.c
96
97auto_spawn.c: \
98auto-int conf-spawn
99	./auto-int auto_spawn `head -1 conf-spawn` > auto_spawn.c
100
101auto_spawn.o: \
102compile auto_spawn.c
103	./compile auto_spawn.c
104
105auto_split.c: \
106auto-int conf-split
107	./auto-int auto_split `head -1 conf-split` > auto_split.c
108
109auto_split.o: \
110compile auto_split.c
111	./compile auto_split.c
112
113auto_uids.c:
114	mv auto_uids.c.dist auto_uids.c
115
116auto_uids.o: \
117compile auto_uids.c
118	./compile auto_uids.c
119
120auto_usera.c: \
121auto-str conf-users
122	./auto-str auto_usera `head -1 conf-users` > auto_usera.c
123
124auto_usera.o: \
125compile auto_usera.c
126	./compile auto_usera.c
127
128binm1: \
129binm1.sh conf-qmail
130	cat binm1.sh \
131	| sed s}QMAIL}"`head -1 conf-qmail`"}g \
132	> binm1
133	chmod 755 binm1
134
135binm1+df: \
136binm1+df.sh conf-qmail
137	cat binm1+df.sh \
138	| sed s}QMAIL}"`head -1 conf-qmail`"}g \
139	> binm1+df
140	chmod 755 binm1+df
141
142binm2: \
143binm2.sh conf-qmail
144	cat binm2.sh \
145	| sed s}QMAIL}"`head -1 conf-qmail`"}g \
146	> binm2
147	chmod 755 binm2
148
149binm2+df: \
150binm2+df.sh conf-qmail
151	cat binm2+df.sh \
152	| sed s}QMAIL}"`head -1 conf-qmail`"}g \
153	> binm2+df
154	chmod 755 binm2+df
155
156binm3: \
157binm3.sh conf-qmail
158	cat binm3.sh \
159	| sed s}QMAIL}"`head -1 conf-qmail`"}g \
160	> binm3
161	chmod 755 binm3
162
163binm3+df: \
164binm3+df.sh conf-qmail
165	cat binm3+df.sh \
166	| sed s}QMAIL}"`head -1 conf-qmail`"}g \
167	> binm3+df
168	chmod 755 binm3+df
169
170bouncesaying: \
171load bouncesaying.o strerr.a error.a substdio.a str.a wait.a
172	./load bouncesaying strerr.a error.a substdio.a str.a \
173	wait.a
174
175bouncesaying.0: \
176bouncesaying.1
177	nroff -man bouncesaying.1 > bouncesaying.0
178
179bouncesaying.o: \
180compile bouncesaying.c fork.h strerr.h error.h wait.h sig.h exit.h
181	./compile bouncesaying.c
182
183byte_chr.o: \
184compile byte_chr.c byte.h
185	./compile byte_chr.c
186
187byte_copy.o: \
188compile byte_copy.c byte.h
189	./compile byte_copy.c
190
191byte_cr.o: \
192compile byte_cr.c byte.h
193	./compile byte_cr.c
194
195byte_diff.o: \
196compile byte_diff.c byte.h
197	./compile byte_diff.c
198
199byte_rchr.o: \
200compile byte_rchr.c byte.h
201	./compile byte_rchr.c
202
203byte_zero.o: \
204compile byte_zero.c byte.h
205	./compile byte_zero.c
206
207case.a: \
208makelib case_diffb.o case_diffs.o case_lowerb.o case_lowers.o \
209case_starts.o
210	./makelib case.a case_diffb.o case_diffs.o case_lowerb.o \
211	case_lowers.o case_starts.o
212
213case_diffb.o: \
214compile case_diffb.c case.h
215	./compile case_diffb.c
216
217case_diffs.o: \
218compile case_diffs.c case.h
219	./compile case_diffs.c
220
221case_lowerb.o: \
222compile case_lowerb.c case.h
223	./compile case_lowerb.c
224
225case_lowers.o: \
226compile case_lowers.c case.h
227	./compile case_lowers.c
228
229case_starts.o: \
230compile case_starts.c case.h
231	./compile case_starts.c
232
233cdb.a: \
234makelib cdb_hash.o cdb_unpack.o cdb_seek.o
235	./makelib cdb.a cdb_hash.o cdb_unpack.o cdb_seek.o
236
237cdb_hash.o: \
238compile cdb_hash.c cdb.h uint32.h
239	./compile cdb_hash.c
240
241cdb_seek.o: \
242compile cdb_seek.c cdb.h uint32.h
243	./compile cdb_seek.c
244
245cdb_unpack.o: \
246compile cdb_unpack.c cdb.h uint32.h
247	./compile cdb_unpack.c
248
249cdbmake.a: \
250makelib cdbmake_pack.o cdbmake_hash.o cdbmake_add.o
251	./makelib cdbmake.a cdbmake_pack.o cdbmake_hash.o \
252	cdbmake_add.o
253
254cdbmake_add.o: \
255compile cdbmake_add.c cdbmake.h alloc.h uint32.h
256	./compile cdbmake_add.c
257
258cdbmake_hash.o: \
259compile cdbmake_hash.c cdbmake.h uint32.h
260	./compile cdbmake_hash.c
261
262cdbmake_pack.o: \
263compile cdbmake_pack.c cdbmake.h uint32.h
264	./compile cdbmake_pack.c
265
266cdbmss.o: \
267compile cdbmss.c readwrite.h seek.h alloc.h cdbmss.h cdbmake.h \
268uint32.h substdio.h
269	./compile cdbmss.c
270
271check: \
272it man
273	./instcheck
274
275chkshsgr: \
276load chkshsgr.o
277	./load chkshsgr
278
279chkshsgr.o: \
280compile chkshsgr.c exit.h
281	./compile chkshsgr.c
282
283chkspawn: \
284load chkspawn.o substdio.a error.a str.a fs.a auto_spawn.o
285	./load chkspawn substdio.a error.a str.a fs.a auto_spawn.o
286
287chkspawn.o: \
288compile chkspawn.c substdio.h subfd.h substdio.h fmt.h select.h \
289exit.h auto_spawn.h
290	./compile chkspawn.c
291
292clean: \
293TARGETS
294	rm -f `cat TARGETS`
295
296coe.o: \
297compile coe.c coe.h
298	./compile coe.c
299
300commands.o: \
301compile commands.c commands.h substdio.h stralloc.h gen_alloc.h str.h \
302case.h
303	./compile commands.c
304
305compile: \
306make-compile warn-auto.sh systype
307	( cat warn-auto.sh; ./make-compile "`cat systype`" ) > \
308	compile
309	chmod 755 compile
310
311condredirect: \
312load condredirect.o qmail.o strerr.a fd.a sig.a wait.a seek.a env.a \
313substdio.a error.a str.a fs.a auto_qmail.o
314	./load condredirect qmail.o strerr.a fd.a sig.a wait.a \
315	seek.a env.a substdio.a error.a str.a fs.a auto_qmail.o
316
317condredirect.0: \
318condredirect.1
319	nroff -man condredirect.1 > condredirect.0
320
321condredirect.o: \
322compile condredirect.c sig.h readwrite.h exit.h env.h error.h fork.h \
323wait.h seek.h qmail.h substdio.h strerr.h substdio.h fmt.h
324	./compile condredirect.c
325
326config: \
327warn-auto.sh config.sh conf-qmail conf-break conf-split
328	cat warn-auto.sh config.sh \
329	| sed s}QMAIL}"`head -1 conf-qmail`"}g \
330	| sed s}BREAK}"`head -1 conf-break`"}g \
331	| sed s}SPLIT}"`head -1 conf-split`"}g \
332	> config
333	chmod 755 config
334
335config-fast: \
336warn-auto.sh config-fast.sh conf-qmail conf-break conf-split
337	cat warn-auto.sh config-fast.sh \
338	| sed s}QMAIL}"`head -1 conf-qmail`"}g \
339	| sed s}BREAK}"`head -1 conf-break`"}g \
340	| sed s}SPLIT}"`head -1 conf-split`"}g \
341	> config-fast
342	chmod 755 config-fast
343
344constmap.o: \
345compile constmap.c constmap.h alloc.h case.h
346	./compile constmap.c
347
348control.o: \
349compile control.c readwrite.h open.h getln.h stralloc.h gen_alloc.h \
350substdio.h error.h control.h alloc.h scan.h
351	./compile control.c
352
353date822fmt.o: \
354compile date822fmt.c datetime.h fmt.h date822fmt.h
355	./compile date822fmt.c
356
357datemail: \
358warn-auto.sh datemail.sh conf-qmail conf-break conf-split
359	cat warn-auto.sh datemail.sh \
360	| sed s}QMAIL}"`head -1 conf-qmail`"}g \
361	| sed s}BREAK}"`head -1 conf-break`"}g \
362	| sed s}SPLIT}"`head -1 conf-split`"}g \
363	> datemail
364	chmod 755 datemail
365
366datetime.a: \
367makelib datetime.o datetime_un.o
368	./makelib datetime.a datetime.o datetime_un.o
369
370datetime.o: \
371compile datetime.c datetime.h
372	./compile datetime.c
373
374datetime_un.o: \
375compile datetime_un.c datetime.h
376	./compile datetime_un.c
377
378direntry.h: \
379compile trydrent.c direntry.h1 direntry.h2
380	( ./compile trydrent.c >/dev/null 2>&1 \
381	&& cat direntry.h2 || cat direntry.h1 ) > direntry.h
382	rm -f trydrent.o
383
384dns.lib: \
385tryrsolv.c compile load socket.lib dns.o ipalloc.o ip.o stralloc.a \
386alloc.a error.a fs.a str.a
387	( ( ./compile tryrsolv.c && ./load tryrsolv dns.o \
388	ipalloc.o ip.o stralloc.a alloc.a error.a fs.a str.a \
389	-lresolv `cat socket.lib` ) >/dev/null 2>&1 \
390	&& echo -lresolv || exit 0 ) > dns.lib
391	rm -f tryrsolv.o tryrsolv
392
393dns.o: \
394compile dns.c ip.h ipalloc.h ip.h gen_alloc.h fmt.h alloc.h str.h \
395stralloc.h gen_alloc.h dns.h case.h
396	./compile dns.c
397
398dnscname: \
399load dnscname.o dns.o dnsdoe.o ip.o ipalloc.o stralloc.a alloc.a \
400substdio.a error.a str.a fs.a dns.lib socket.lib
401	./load dnscname dns.o dnsdoe.o ip.o ipalloc.o stralloc.a \
402	alloc.a substdio.a error.a str.a fs.a  `cat dns.lib` `cat \
403	socket.lib`
404
405dnscname.o: \
406compile dnscname.c substdio.h subfd.h substdio.h stralloc.h \
407gen_alloc.h dns.h dnsdoe.h readwrite.h exit.h
408	./compile dnscname.c
409
410dnsdoe.o: \
411compile dnsdoe.c substdio.h subfd.h substdio.h exit.h dns.h dnsdoe.h
412	./compile dnsdoe.c
413
414dnsfq: \
415load dnsfq.o dns.o dnsdoe.o ip.o ipalloc.o stralloc.a alloc.a \
416substdio.a error.a str.a fs.a dns.lib socket.lib
417	./load dnsfq dns.o dnsdoe.o ip.o ipalloc.o stralloc.a \
418	alloc.a substdio.a error.a str.a fs.a  `cat dns.lib` `cat \
419	socket.lib`
420
421dnsfq.o: \
422compile dnsfq.c substdio.h subfd.h substdio.h stralloc.h gen_alloc.h \
423dns.h dnsdoe.h ip.h ipalloc.h ip.h gen_alloc.h exit.h
424	./compile dnsfq.c
425
426dnsip: \
427load dnsip.o dns.o dnsdoe.o ip.o ipalloc.o stralloc.a alloc.a \
428substdio.a error.a str.a fs.a dns.lib socket.lib
429	./load dnsip dns.o dnsdoe.o ip.o ipalloc.o stralloc.a \
430	alloc.a substdio.a error.a str.a fs.a  `cat dns.lib` `cat \
431	socket.lib`
432
433dnsip.o: \
434compile dnsip.c substdio.h subfd.h substdio.h stralloc.h gen_alloc.h \
435dns.h dnsdoe.h ip.h ipalloc.h ip.h gen_alloc.h exit.h
436	./compile dnsip.c
437
438dnsmxip: \
439load dnsmxip.o dns.o dnsdoe.o ip.o ipalloc.o now.o stralloc.a alloc.a \
440substdio.a error.a str.a fs.a dns.lib socket.lib
441	./load dnsmxip dns.o dnsdoe.o ip.o ipalloc.o now.o \
442	stralloc.a alloc.a substdio.a error.a str.a fs.a  `cat \
443	dns.lib` `cat socket.lib`
444
445dnsmxip.o: \
446compile dnsmxip.c substdio.h subfd.h substdio.h stralloc.h \
447gen_alloc.h fmt.h dns.h dnsdoe.h ip.h ipalloc.h ip.h gen_alloc.h \
448now.h datetime.h exit.h
449	./compile dnsmxip.c
450
451dnsptr: \
452load dnsptr.o dns.o dnsdoe.o ip.o ipalloc.o stralloc.a alloc.a \
453substdio.a error.a str.a fs.a dns.lib socket.lib
454	./load dnsptr dns.o dnsdoe.o ip.o ipalloc.o stralloc.a \
455	alloc.a substdio.a error.a str.a fs.a  `cat dns.lib` `cat \
456	socket.lib`
457
458dnsptr.o: \
459compile dnsptr.c substdio.h subfd.h substdio.h stralloc.h gen_alloc.h \
460str.h scan.h dns.h dnsdoe.h ip.h exit.h
461	./compile dnsptr.c
462
463dot-qmail.0: \
464dot-qmail.5
465	nroff -man dot-qmail.5 > dot-qmail.0
466
467dot-qmail.5: \
468dot-qmail.9 conf-break conf-spawn
469	cat dot-qmail.9 \
470	| sed s}QMAILHOME}"`head -1 conf-qmail`"}g \
471	| sed s}BREAK}"`head -1 conf-break`"}g \
472	| sed s}SPAWN}"`head -1 conf-spawn`"}g \
473	> dot-qmail.5
474
475elq: \
476warn-auto.sh elq.sh conf-qmail conf-break conf-split
477	cat warn-auto.sh elq.sh \
478	| sed s}QMAIL}"`head -1 conf-qmail`"}g \
479	| sed s}BREAK}"`head -1 conf-break`"}g \
480	| sed s}SPLIT}"`head -1 conf-split`"}g \
481	> elq
482	chmod 755 elq
483
484env.a: \
485makelib env.o envread.o
486	./makelib env.a env.o envread.o
487
488env.o: \
489compile env.c str.h alloc.h env.h
490	./compile env.c
491
492envelopes.0: \
493envelopes.5
494	nroff -man envelopes.5 > envelopes.0
495
496envread.o: \
497compile envread.c env.h str.h
498	./compile envread.c
499
500error.a: \
501makelib error.o error_str.o error_temp.o
502	./makelib error.a error.o error_str.o error_temp.o
503
504error.o: \
505compile error.c error.h
506	./compile error.c
507
508error_str.o: \
509compile error_str.c error.h
510	./compile error_str.c
511
512error_temp.o: \
513compile error_temp.c error.h
514	./compile error_temp.c
515
516except: \
517load except.o strerr.a error.a substdio.a str.a wait.a
518	./load except strerr.a error.a substdio.a str.a wait.a
519
520except.0: \
521except.1
522	nroff -man except.1 > except.0
523
524except.o: \
525compile except.c fork.h strerr.h wait.h error.h exit.h
526	./compile except.c
527
528fd.a: \
529makelib fd_copy.o fd_move.o
530	./makelib fd.a fd_copy.o fd_move.o
531
532fd_copy.o: \
533compile fd_copy.c fd.h
534	./compile fd_copy.c
535
536fd_move.o: \
537compile fd_move.c fd.h
538	./compile fd_move.c
539
540fifo.o: \
541compile fifo.c hasmkffo.h fifo.h
542	./compile fifo.c
543
544find-systype: \
545find-systype.sh auto-ccld.sh
546	cat auto-ccld.sh find-systype.sh > find-systype
547	chmod 755 find-systype
548
549fmt_str.o: \
550compile fmt_str.c fmt.h
551	./compile fmt_str.c
552
553fmt_strn.o: \
554compile fmt_strn.c fmt.h
555	./compile fmt_strn.c
556
557fmt_uint.o: \
558compile fmt_uint.c fmt.h
559	./compile fmt_uint.c
560
561fmt_uint0.o: \
562compile fmt_uint0.c fmt.h
563	./compile fmt_uint0.c
564
565fmt_ulong.o: \
566compile fmt_ulong.c fmt.h
567	./compile fmt_ulong.c
568
569fmtqfn.o: \
570compile fmtqfn.c fmtqfn.h fmt.h auto_split.h
571	./compile fmtqfn.c
572
573forgeries.0: \
574forgeries.7
575	nroff -man forgeries.7 > forgeries.0
576
577fork.h: \
578compile load tryvfork.c fork.h1 fork.h2
579	( ( ./compile tryvfork.c && ./load tryvfork ) >/dev/null \
580	2>&1 \
581	&& cat fork.h2 || cat fork.h1 ) > fork.h
582	rm -f tryvfork.o tryvfork
583
584forward: \
585load forward.o qmail.o strerr.a alloc.a fd.a wait.a sig.a env.a \
586substdio.a error.a str.a fs.a auto_qmail.o
587	./load forward qmail.o strerr.a alloc.a fd.a wait.a sig.a \
588	env.a substdio.a error.a str.a fs.a auto_qmail.o
589
590forward.0: \
591forward.1
592	nroff -man forward.1 > forward.0
593
594forward.o: \
595compile forward.c sig.h readwrite.h exit.h env.h qmail.h substdio.h \
596strerr.h substdio.h fmt.h
597	./compile forward.c
598
599fs.a: \
600makelib fmt_str.o fmt_strn.o fmt_uint.o fmt_uint0.o fmt_ulong.o \
601scan_ulong.o scan_8long.o
602	./makelib fs.a fmt_str.o fmt_strn.o fmt_uint.o fmt_uint0.o \
603	fmt_ulong.o scan_ulong.o scan_8long.o
604
605getln.a: \
606makelib getln.o getln2.o
607	./makelib getln.a getln.o getln2.o
608
609getln.o: \
610compile getln.c substdio.h byte.h stralloc.h gen_alloc.h getln.h
611	./compile getln.c
612
613getln2.o: \
614compile getln2.c substdio.h stralloc.h gen_alloc.h byte.h getln.h
615	./compile getln2.c
616
617getopt.a: \
618makelib subgetopt.o sgetopt.o
619	./makelib getopt.a subgetopt.o sgetopt.o
620
621gfrom.o: \
622compile gfrom.c str.h gfrom.h
623	./compile gfrom.c
624
625hasflock.h: \
626tryflock.c compile load
627	( ( ./compile tryflock.c && ./load tryflock ) >/dev/null \
628	2>&1 \
629	&& echo \#define HASFLOCK 1 || exit 0 ) > hasflock.h
630	rm -f tryflock.o tryflock
631
632hasmkffo.h: \
633trymkffo.c compile load
634	( ( ./compile trymkffo.c && ./load trymkffo ) >/dev/null \
635	2>&1 \
636	&& echo \#define HASMKFIFO 1 || exit 0 ) > hasmkffo.h
637	rm -f trymkffo.o trymkffo
638
639hasnpbg1.h: \
640trynpbg1.c compile load open.h open.a fifo.h fifo.o select.h
641	( ( ./compile trynpbg1.c \
642	&& ./load trynpbg1 fifo.o open.a && ./trynpbg1 ) \
643	>/dev/null 2>&1 \
644	&& echo \#define HASNAMEDPIPEBUG1 1 || exit 0 ) > \
645	hasnpbg1.h
646	rm -f trynpbg1.o trynpbg1
647
648hassalen.h: \
649trysalen.c compile
650	( ./compile trysalen.c >/dev/null 2>&1 \
651	&& echo \#define HASSALEN 1 || exit 0 ) > hassalen.h
652	rm -f trysalen.o
653
654hassgact.h: \
655trysgact.c compile load
656	( ( ./compile trysgact.c && ./load trysgact ) >/dev/null \
657	2>&1 \
658	&& echo \#define HASSIGACTION 1 || exit 0 ) > hassgact.h
659	rm -f trysgact.o trysgact
660
661hassgprm.h: \
662trysgprm.c compile load
663	( ( ./compile trysgprm.c && ./load trysgprm ) >/dev/null \
664	2>&1 \
665	&& echo \#define HASSIGPROCMASK 1 || exit 0 ) > hassgprm.h
666	rm -f trysgprm.o trysgprm
667
668hasshsgr.h: \
669chkshsgr warn-shsgr tryshsgr.c compile load
670	./chkshsgr || ( cat warn-shsgr; exit 1 )
671	( ( ./compile tryshsgr.c \
672	&& ./load tryshsgr && ./tryshsgr ) >/dev/null 2>&1 \
673	&& echo \#define HASSHORTSETGROUPS 1 || exit 0 ) > \
674	hasshsgr.h
675	rm -f tryshsgr.o tryshsgr
676
677haswaitp.h: \
678trywaitp.c compile load
679	( ( ./compile trywaitp.c && ./load trywaitp ) >/dev/null \
680	2>&1 \
681	&& echo \#define HASWAITPID 1 || exit 0 ) > haswaitp.h
682	rm -f trywaitp.o trywaitp
683
684headerbody.o: \
685compile headerbody.c stralloc.h gen_alloc.h substdio.h getln.h \
686hfield.h headerbody.h
687	./compile headerbody.c
688
689hfield.o: \
690compile hfield.c hfield.h
691	./compile hfield.c
692
693hier.o: \
694compile hier.c auto_qmail.h auto_split.h auto_uids.h fmt.h fifo.h
695	./compile hier.c
696
697home: \
698home.sh conf-qmail
699	cat home.sh \
700	| sed s}QMAIL}"`head -1 conf-qmail`"}g \
701	> home
702	chmod 755 home
703
704home+df: \
705home+df.sh conf-qmail
706	cat home+df.sh \
707	| sed s}QMAIL}"`head -1 conf-qmail`"}g \
708	> home+df
709	chmod 755 home+df
710
711hostname: \
712load hostname.o substdio.a error.a str.a dns.lib socket.lib
713	./load hostname substdio.a error.a str.a  `cat dns.lib` \
714	`cat socket.lib`
715
716hostname.o: \
717compile hostname.c substdio.h subfd.h substdio.h readwrite.h exit.h
718	./compile hostname.c
719
720idedit: \
721load idedit.o strerr.a substdio.a error.a str.a fs.a wait.a open.a \
722seek.a
723	./load idedit strerr.a substdio.a error.a str.a fs.a \
724	wait.a open.a seek.a
725
726idedit.o: \
727compile idedit.c readwrite.h exit.h scan.h fmt.h strerr.h open.h \
728seek.h fork.h
729	./compile idedit.c
730
731install: \
732load install.o fifo.o hier.o auto_qmail.o auto_split.o auto_uids.o \
733strerr.a substdio.a open.a error.a str.a fs.a
734	./load install fifo.o hier.o auto_qmail.o auto_split.o \
735	auto_uids.o strerr.a substdio.a open.a error.a str.a fs.a
736
737install-big: \
738load install-big.o fifo.o install.o auto_qmail.o auto_split.o \
739auto_uids.o strerr.a substdio.a open.a error.a str.a fs.a
740	./load install-big fifo.o install.o auto_qmail.o \
741	auto_split.o auto_uids.o strerr.a substdio.a open.a error.a \
742	str.a fs.a
743
744install-big.o: \
745compile install-big.c auto_qmail.h auto_split.h auto_uids.h fmt.h \
746fifo.h
747	./compile install-big.c
748
749install.o: \
750compile install.c substdio.h strerr.h error.h open.h readwrite.h \
751exit.h
752	./compile install.c
753
754instcheck: \
755load instcheck.o fifo.o hier.o auto_qmail.o auto_split.o auto_uids.o \
756strerr.a substdio.a error.a str.a fs.a
757	./load instcheck fifo.o hier.o auto_qmail.o auto_split.o \
758	auto_uids.o strerr.a substdio.a error.a str.a fs.a
759
760instcheck.o: \
761compile instcheck.c strerr.h error.h readwrite.h exit.h
762	./compile instcheck.c
763
764ip.o: \
765compile ip.c fmt.h scan.h ip.h
766	./compile ip.c
767
768ipalloc.o: \
769compile ipalloc.c alloc.h gen_allocdefs.h ip.h ipalloc.h ip.h \
770gen_alloc.h
771	./compile ipalloc.c
772
773ipme.o: \
774compile ipme.c hassalen.h byte.h ip.h ipalloc.h ip.h gen_alloc.h \
775stralloc.h gen_alloc.h ipme.h ip.h ipalloc.h
776	./compile ipme.c
777
778ipmeprint: \
779load ipmeprint.o ipme.o ip.o ipalloc.o stralloc.a alloc.a substdio.a \
780error.a str.a fs.a socket.lib
781	./load ipmeprint ipme.o ip.o ipalloc.o stralloc.a alloc.a \
782	substdio.a error.a str.a fs.a  `cat socket.lib`
783
784ipmeprint.o: \
785compile ipmeprint.c subfd.h substdio.h substdio.h ip.h ipme.h ip.h \
786ipalloc.h ip.h gen_alloc.h exit.h
787	./compile ipmeprint.c
788
789it: \
790qmail-local qmail-lspawn qmail-getpw qmail-remote qmail-rspawn \
791qmail-clean qmail-send qmail-start splogger qmail-queue qmail-inject \
792predate datemail mailsubj qmail-upq qmail-showctl qmail-newu \
793qmail-pw2u qmail-qread qmail-qstat qmail-tcpto qmail-tcpok \
794qmail-pop3d qmail-popup qmail-qmqpc qmail-qmqpd qmail-qmtpd \
795qmail-smtpd sendmail tcp-env qmail-newmrh config config-fast dnscname \
796dnsptr dnsip dnsmxip dnsfq hostname ipmeprint qreceipt qsmhook qbiff \
797forward preline condredirect bouncesaying except maildirmake \
798maildir2mbox maildirwatch qail elq pinq idedit install-big install \
799instcheck home home+df proc proc+df binm1 binm1+df binm2 binm2+df \
800binm3 binm3+df update_tmprsadh
801
802load: \
803make-load warn-auto.sh systype
804	( cat warn-auto.sh; ./make-load "`cat systype`" ) > load
805	chmod 755 load
806
807lock.a: \
808makelib lock_ex.o lock_exnb.o lock_un.o
809	./makelib lock.a lock_ex.o lock_exnb.o lock_un.o
810
811lock_ex.o: \
812compile lock_ex.c hasflock.h lock.h
813	./compile lock_ex.c
814
815lock_exnb.o: \
816compile lock_exnb.c hasflock.h lock.h
817	./compile lock_exnb.c
818
819lock_un.o: \
820compile lock_un.c hasflock.h lock.h
821	./compile lock_un.c
822
823maildir.0: \
824maildir.5
825	nroff -man maildir.5 > maildir.0
826
827maildir.o: \
828compile maildir.c prioq.h datetime.h gen_alloc.h env.h stralloc.h \
829gen_alloc.h direntry.h datetime.h now.h datetime.h str.h maildir.h \
830strerr.h
831	./compile maildir.c
832
833maildir2mbox: \
834load maildir2mbox.o maildir.o prioq.o now.o myctime.o gfrom.o lock.a \
835getln.a env.a open.a strerr.a stralloc.a alloc.a substdio.a error.a \
836str.a fs.a datetime.a
837	./load maildir2mbox maildir.o prioq.o now.o myctime.o \
838	gfrom.o lock.a getln.a env.a open.a strerr.a stralloc.a \
839	alloc.a substdio.a error.a str.a fs.a datetime.a
840
841maildir2mbox.0: \
842maildir2mbox.1
843	nroff -man maildir2mbox.1 > maildir2mbox.0
844
845maildir2mbox.o: \
846compile maildir2mbox.c readwrite.h prioq.h datetime.h gen_alloc.h \
847env.h stralloc.h gen_alloc.h subfd.h substdio.h substdio.h getln.h \
848error.h open.h lock.h gfrom.h str.h exit.h myctime.h maildir.h \
849strerr.h
850	./compile maildir2mbox.c
851
852maildirmake: \
853load maildirmake.o strerr.a substdio.a error.a str.a
854	./load maildirmake strerr.a substdio.a error.a str.a
855
856maildirmake.0: \
857maildirmake.1
858	nroff -man maildirmake.1 > maildirmake.0
859
860maildirmake.o: \
861compile maildirmake.c strerr.h exit.h
862	./compile maildirmake.c
863
864maildirwatch: \
865load maildirwatch.o hfield.o headerbody.o maildir.o prioq.o now.o \
866getln.a env.a open.a strerr.a stralloc.a alloc.a substdio.a error.a \
867str.a
868	./load maildirwatch hfield.o headerbody.o maildir.o \
869	prioq.o now.o getln.a env.a open.a strerr.a stralloc.a \
870	alloc.a substdio.a error.a str.a
871
872maildirwatch.0: \
873maildirwatch.1
874	nroff -man maildirwatch.1 > maildirwatch.0
875
876maildirwatch.o: \
877compile maildirwatch.c getln.h substdio.h subfd.h substdio.h prioq.h \
878datetime.h gen_alloc.h stralloc.h gen_alloc.h str.h exit.h hfield.h \
879readwrite.h open.h headerbody.h maildir.h strerr.h
880	./compile maildirwatch.c
881
882mailsubj: \
883warn-auto.sh mailsubj.sh conf-qmail conf-break conf-split
884	cat warn-auto.sh mailsubj.sh \
885	| sed s}QMAIL}"`head -1 conf-qmail`"}g \
886	| sed s}BREAK}"`head -1 conf-break`"}g \
887	| sed s}SPLIT}"`head -1 conf-split`"}g \
888	> mailsubj
889	chmod 755 mailsubj
890
891mailsubj.0: \
892mailsubj.1
893	nroff -man mailsubj.1 > mailsubj.0
894
895make-compile: \
896make-compile.sh auto-ccld.sh
897	cat auto-ccld.sh make-compile.sh > make-compile
898	chmod 755 make-compile
899
900make-load: \
901make-load.sh auto-ccld.sh
902	cat auto-ccld.sh make-load.sh > make-load
903	chmod 755 make-load
904
905make-makelib: \
906make-makelib.sh auto-ccld.sh
907	cat auto-ccld.sh make-makelib.sh > make-makelib
908	chmod 755 make-makelib
909
910makelib: \
911make-makelib warn-auto.sh systype
912	( cat warn-auto.sh; ./make-makelib "`cat systype`" ) > \
913	makelib
914	chmod 755 makelib
915
916man: \
917qmail-local.0 qmail-lspawn.0 qmail-getpw.0 qmail-remote.0 \
918qmail-rspawn.0 qmail-clean.0 qmail-send.0 qmail-start.0 splogger.0 \
919qmail-queue.0 qmail-inject.0 mailsubj.0 qmail-showctl.0 qmail-newu.0 \
920qmail-pw2u.0 qmail-qread.0 qmail-qstat.0 qmail-tcpto.0 qmail-tcpok.0 \
921qmail-pop3d.0 qmail-popup.0 qmail-qmqpc.0 qmail-qmqpd.0 qmail-qmtpd.0 \
922qmail-smtpd.0 tcp-env.0 qmail-newmrh.0 qreceipt.0 qbiff.0 forward.0 \
923preline.0 condredirect.0 bouncesaying.0 except.0 maildirmake.0 \
924maildir2mbox.0 maildirwatch.0 qmail.0 qmail-limits.0 qmail-log.0 \
925qmail-control.0 qmail-header.0 qmail-users.0 dot-qmail.0 \
926qmail-command.0 tcp-environ.0 maildir.0 mbox.0 addresses.0 \
927envelopes.0 forgeries.0
928
929mbox.0: \
930mbox.5
931	nroff -man mbox.5 > mbox.0
932
933myctime.o: \
934compile myctime.c datetime.h fmt.h myctime.h
935	./compile myctime.c
936
937ndelay.a: \
938makelib ndelay.o ndelay_off.o
939	./makelib ndelay.a ndelay.o ndelay_off.o
940
941ndelay.o: \
942compile ndelay.c ndelay.h
943	./compile ndelay.c
944
945ndelay_off.o: \
946compile ndelay_off.c ndelay.h
947	./compile ndelay_off.c
948
949newfield.o: \
950compile newfield.c fmt.h datetime.h stralloc.h gen_alloc.h \
951date822fmt.h newfield.h stralloc.h
952	./compile newfield.c
953
954now.o: \
955compile now.c datetime.h now.h datetime.h
956	./compile now.c
957
958open.a: \
959makelib open_append.o open_excl.o open_read.o open_trunc.o \
960open_write.o
961	./makelib open.a open_append.o open_excl.o open_read.o \
962	open_trunc.o open_write.o
963
964open_append.o: \
965compile open_append.c open.h
966	./compile open_append.c
967
968open_excl.o: \
969compile open_excl.c open.h
970	./compile open_excl.c
971
972open_read.o: \
973compile open_read.c open.h
974	./compile open_read.c
975
976open_trunc.o: \
977compile open_trunc.c open.h
978	./compile open_trunc.c
979
980open_write.o: \
981compile open_write.c open.h
982	./compile open_write.c
983
984pinq: \
985warn-auto.sh pinq.sh conf-qmail conf-break conf-split
986	cat warn-auto.sh pinq.sh \
987	| sed s}QMAIL}"`head -1 conf-qmail`"}g \
988	| sed s}BREAK}"`head -1 conf-break`"}g \
989	| sed s}SPLIT}"`head -1 conf-split`"}g \
990	> pinq
991	chmod 755 pinq
992
993predate: \
994load predate.o datetime.a strerr.a sig.a fd.a wait.a substdio.a \
995error.a str.a fs.a
996	./load predate datetime.a strerr.a sig.a fd.a wait.a \
997	substdio.a error.a str.a fs.a
998
999predate.o: \
1000compile predate.c datetime.h fork.h wait.h fd.h fmt.h strerr.h \
1001substdio.h subfd.h substdio.h readwrite.h exit.h
1002	./compile predate.c
1003
1004preline: \
1005load preline.o strerr.a fd.a wait.a sig.a env.a getopt.a substdio.a \
1006error.a str.a
1007	./load preline strerr.a fd.a wait.a sig.a env.a getopt.a \
1008	substdio.a error.a str.a
1009
1010preline.0: \
1011preline.1
1012	nroff -man preline.1 > preline.0
1013
1014preline.o: \
1015compile preline.c fd.h sgetopt.h subgetopt.h readwrite.h strerr.h \
1016substdio.h exit.h fork.h wait.h env.h sig.h error.h
1017	./compile preline.c
1018
1019prioq.o: \
1020compile prioq.c alloc.h gen_allocdefs.h prioq.h datetime.h \
1021gen_alloc.h
1022	./compile prioq.c
1023
1024proc: \
1025proc.sh conf-qmail
1026	cat proc.sh \
1027	| sed s}QMAIL}"`head -1 conf-qmail`"}g \
1028	> proc
1029	chmod 755 proc
1030
1031proc+df: \
1032proc+df.sh conf-qmail
1033	cat proc+df.sh \
1034	| sed s}QMAIL}"`head -1 conf-qmail`"}g \
1035	> proc+df
1036	chmod 755 proc+df
1037
1038prot.o: \
1039compile prot.c hasshsgr.h prot.h
1040	./compile prot.c
1041
1042qail: \
1043warn-auto.sh qail.sh conf-qmail conf-break conf-split
1044	cat warn-auto.sh qail.sh \
1045	| sed s}QMAIL}"`head -1 conf-qmail`"}g \
1046	| sed s}BREAK}"`head -1 conf-break`"}g \
1047	| sed s}SPLIT}"`head -1 conf-split`"}g \
1048	> qail
1049	chmod 755 qail
1050
1051qbiff: \
1052load qbiff.o headerbody.o hfield.o getln.a env.a open.a stralloc.a \
1053alloc.a substdio.a error.a str.a
1054	./load qbiff headerbody.o hfield.o getln.a env.a open.a \
1055	stralloc.a alloc.a substdio.a error.a str.a
1056
1057qbiff.0: \
1058qbiff.1
1059	nroff -man qbiff.1 > qbiff.0
1060
1061qbiff.o: \
1062compile qbiff.c readwrite.h stralloc.h gen_alloc.h substdio.h subfd.h \
1063substdio.h open.h byte.h str.h headerbody.h hfield.h env.h exit.h
1064	./compile qbiff.c
1065
1066qmail-clean: \
1067load qmail-clean.o fmtqfn.o now.o getln.a sig.a stralloc.a alloc.a \
1068substdio.a error.a str.a fs.a auto_qmail.o auto_split.o
1069	./load qmail-clean fmtqfn.o now.o getln.a sig.a stralloc.a \
1070	alloc.a substdio.a error.a str.a fs.a auto_qmail.o \
1071	auto_split.o
1072
1073qmail-clean.0: \
1074qmail-clean.8
1075	nroff -man qmail-clean.8 > qmail-clean.0
1076
1077qmail-clean.o: \
1078compile qmail-clean.c readwrite.h sig.h now.h datetime.h str.h \
1079direntry.h getln.h stralloc.h gen_alloc.h substdio.h subfd.h \
1080substdio.h byte.h scan.h fmt.h error.h exit.h fmtqfn.h auto_qmail.h
1081	./compile qmail-clean.c
1082
1083qmail-command.0: \
1084qmail-command.8
1085	nroff -man qmail-command.8 > qmail-command.0
1086
1087qmail-control.0: \
1088qmail-control.5
1089	nroff -man qmail-control.5 > qmail-control.0
1090
1091qmail-control.5: \
1092qmail-control.9 conf-break conf-spawn
1093	cat qmail-control.9 \
1094	| sed s}QMAILHOME}"`head -1 conf-qmail`"}g \
1095	| sed s}BREAK}"`head -1 conf-break`"}g \
1096	| sed s}SPAWN}"`head -1 conf-spawn`"}g \
1097	> qmail-control.5
1098
1099qmail-getpw: \
1100load qmail-getpw.o case.a substdio.a error.a str.a fs.a auto_break.o \
1101auto_usera.o
1102	./load qmail-getpw case.a substdio.a error.a str.a fs.a \
1103	auto_break.o auto_usera.o
1104
1105qmail-getpw.0: \
1106qmail-getpw.8
1107	nroff -man qmail-getpw.8 > qmail-getpw.0
1108
1109qmail-getpw.8: \
1110qmail-getpw.9 conf-break conf-spawn
1111	cat qmail-getpw.9 \
1112	| sed s}QMAILHOME}"`head -1 conf-qmail`"}g \
1113	| sed s}BREAK}"`head -1 conf-break`"}g \
1114	| sed s}SPAWN}"`head -1 conf-spawn`"}g \
1115	> qmail-getpw.8
1116
1117qmail-getpw.o: \
1118compile qmail-getpw.c readwrite.h substdio.h subfd.h substdio.h \
1119error.h exit.h byte.h str.h case.h fmt.h auto_usera.h auto_break.h \
1120qlx.h
1121	./compile qmail-getpw.c
1122
1123qmail-header.0: \
1124qmail-header.5
1125	nroff -man qmail-header.5 > qmail-header.0
1126
1127qmail-inject: \
1128load qmail-inject.o headerbody.o hfield.o newfield.o quote.o now.o \
1129control.o date822fmt.o constmap.o qmail.o case.a fd.a wait.a open.a \
1130getln.a sig.a getopt.a datetime.a token822.o env.a stralloc.a alloc.a \
1131substdio.a error.a str.a fs.a auto_qmail.o
1132	./load qmail-inject headerbody.o hfield.o newfield.o \
1133	quote.o now.o control.o date822fmt.o constmap.o qmail.o \
1134	case.a fd.a wait.a open.a getln.a sig.a getopt.a datetime.a \
1135	token822.o env.a stralloc.a alloc.a substdio.a error.a \
1136	str.a fs.a auto_qmail.o
1137
1138qmail-inject.0: \
1139qmail-inject.8
1140	nroff -man qmail-inject.8 > qmail-inject.0
1141
1142qmail-inject.o: \
1143compile qmail-inject.c sig.h substdio.h stralloc.h gen_alloc.h \
1144subfd.h substdio.h sgetopt.h subgetopt.h getln.h alloc.h str.h fmt.h \
1145hfield.h token822.h gen_alloc.h control.h env.h gen_alloc.h \
1146gen_allocdefs.h error.h qmail.h substdio.h now.h datetime.h exit.h \
1147quote.h headerbody.h auto_qmail.h newfield.h stralloc.h constmap.h
1148	./compile qmail-inject.c
1149
1150qmail-limits.0: \
1151qmail-limits.7
1152	nroff -man qmail-limits.7 > qmail-limits.0
1153
1154qmail-limits.7: \
1155qmail-limits.9 conf-break conf-spawn
1156	cat qmail-limits.9 \
1157	| sed s}QMAILHOME}"`head -1 conf-qmail`"}g \
1158	| sed s}BREAK}"`head -1 conf-break`"}g \
1159	| sed s}SPAWN}"`head -1 conf-spawn`"}g \
1160	> qmail-limits.7
1161
1162qmail-local: \
1163load qmail-local.o qmail.o quote.o now.o gfrom.o myctime.o \
1164slurpclose.o case.a getln.a getopt.a sig.a open.a seek.a lock.a fd.a \
1165wait.a env.a stralloc.a alloc.a strerr.a substdio.a error.a str.a \
1166fs.a datetime.a auto_qmail.o auto_patrn.o socket.lib
1167	./load qmail-local qmail.o quote.o now.o gfrom.o myctime.o \
1168	slurpclose.o case.a getln.a getopt.a sig.a open.a seek.a \
1169	lock.a fd.a wait.a env.a stralloc.a alloc.a strerr.a \
1170	substdio.a error.a str.a fs.a datetime.a auto_qmail.o \
1171	auto_patrn.o  `cat socket.lib`
1172
1173qmail-local.0: \
1174qmail-local.8
1175	nroff -man qmail-local.8 > qmail-local.0
1176
1177qmail-local.o: \
1178compile qmail-local.c readwrite.h sig.h env.h byte.h exit.h fork.h \
1179open.h wait.h lock.h seek.h substdio.h getln.h strerr.h subfd.h \
1180substdio.h sgetopt.h subgetopt.h alloc.h error.h stralloc.h \
1181gen_alloc.h fmt.h str.h now.h datetime.h case.h quote.h qmail.h \
1182substdio.h slurpclose.h myctime.h gfrom.h auto_patrn.h
1183	./compile qmail-local.c
1184
1185qmail-log.0: \
1186qmail-log.5
1187	nroff -man qmail-log.5 > qmail-log.0
1188
1189qmail-lspawn: \
1190load qmail-lspawn.o spawn.o prot.o slurpclose.o coe.o sig.a wait.a \
1191case.a cdb.a fd.a open.a stralloc.a alloc.a substdio.a error.a str.a \
1192fs.a auto_qmail.o auto_uids.o auto_spawn.o
1193	./load qmail-lspawn spawn.o prot.o slurpclose.o coe.o \
1194	sig.a wait.a case.a cdb.a fd.a open.a stralloc.a alloc.a \
1195	substdio.a error.a str.a fs.a auto_qmail.o auto_uids.o \
1196	auto_spawn.o
1197
1198qmail-lspawn.0: \
1199qmail-lspawn.8
1200	nroff -man qmail-lspawn.8 > qmail-lspawn.0
1201
1202qmail-lspawn.o: \
1203compile qmail-lspawn.c fd.h wait.h prot.h substdio.h stralloc.h \
1204gen_alloc.h scan.h exit.h fork.h error.h cdb.h uint32.h case.h \
1205slurpclose.h auto_qmail.h auto_uids.h qlx.h
1206	./compile qmail-lspawn.c
1207
1208qmail-newmrh: \
1209load qmail-newmrh.o cdbmss.o getln.a open.a cdbmake.a seek.a case.a \
1210stralloc.a alloc.a strerr.a substdio.a error.a str.a auto_qmail.o
1211	./load qmail-newmrh cdbmss.o getln.a open.a cdbmake.a \
1212	seek.a case.a stralloc.a alloc.a strerr.a substdio.a \
1213	error.a str.a auto_qmail.o
1214
1215qmail-newmrh.0: \
1216qmail-newmrh.8
1217	nroff -man qmail-newmrh.8 > qmail-newmrh.0
1218
1219qmail-newmrh.8: \
1220qmail-newmrh.9 conf-break conf-spawn
1221	cat qmail-newmrh.9 \
1222	| sed s}QMAILHOME}"`head -1 conf-qmail`"}g \
1223	| sed s}BREAK}"`head -1 conf-break`"}g \
1224	| sed s}SPAWN}"`head -1 conf-spawn`"}g \
1225	> qmail-newmrh.8
1226
1227qmail-newmrh.o: \
1228compile qmail-newmrh.c strerr.h stralloc.h gen_alloc.h substdio.h \
1229getln.h exit.h readwrite.h open.h auto_qmail.h cdbmss.h cdbmake.h \
1230uint32.h substdio.h
1231	./compile qmail-newmrh.c
1232
1233qmail-newu: \
1234load qmail-newu.o cdbmss.o getln.a open.a seek.a cdbmake.a case.a \
1235stralloc.a alloc.a substdio.a error.a str.a auto_qmail.o
1236	./load qmail-newu cdbmss.o getln.a open.a seek.a cdbmake.a \
1237	case.a stralloc.a alloc.a substdio.a error.a str.a \
1238	auto_qmail.o
1239
1240qmail-newu.0: \
1241qmail-newu.8
1242	nroff -man qmail-newu.8 > qmail-newu.0
1243
1244qmail-newu.8: \
1245qmail-newu.9 conf-break conf-spawn
1246	cat qmail-newu.9 \
1247	| sed s}QMAILHOME}"`head -1 conf-qmail`"}g \
1248	| sed s}BREAK}"`head -1 conf-break`"}g \
1249	| sed s}SPAWN}"`head -1 conf-spawn`"}g \
1250	> qmail-newu.8
1251
1252qmail-newu.o: \
1253compile qmail-newu.c stralloc.h gen_alloc.h subfd.h substdio.h \
1254getln.h substdio.h cdbmss.h cdbmake.h uint32.h substdio.h exit.h \
1255readwrite.h open.h error.h case.h auto_qmail.h
1256	./compile qmail-newu.c
1257
1258qmail-pop3d: \
1259load qmail-pop3d.o commands.o case.a timeoutread.o timeoutwrite.o \
1260maildir.o prioq.o now.o env.a strerr.a sig.a open.a getln.a \
1261stralloc.a alloc.a substdio.a error.a str.a fs.a socket.lib
1262	./load qmail-pop3d commands.o case.a timeoutread.o \
1263	timeoutwrite.o maildir.o prioq.o now.o env.a strerr.a sig.a \
1264	open.a getln.a stralloc.a alloc.a substdio.a error.a str.a \
1265	fs.a  `cat socket.lib`
1266
1267qmail-pop3d.0: \
1268qmail-pop3d.8
1269	nroff -man qmail-pop3d.8 > qmail-pop3d.0
1270
1271qmail-pop3d.o: \
1272compile qmail-pop3d.c commands.h sig.h getln.h stralloc.h gen_alloc.h \
1273substdio.h alloc.h open.h prioq.h datetime.h gen_alloc.h scan.h fmt.h \
1274str.h exit.h maildir.h strerr.h readwrite.h timeoutread.h \
1275timeoutwrite.h
1276	./compile qmail-pop3d.c
1277
1278qmail-popup: \
1279load qmail-popup.o commands.o timeoutread.o timeoutwrite.o now.o \
1280case.a fd.a sig.a wait.a stralloc.a alloc.a substdio.a error.a str.a \
1281fs.a socket.lib
1282	./load qmail-popup commands.o timeoutread.o timeoutwrite.o \
1283	now.o case.a fd.a sig.a wait.a stralloc.a alloc.a \
1284	substdio.a error.a str.a fs.a  `cat socket.lib`
1285
1286qmail-popup.0: \
1287qmail-popup.8
1288	nroff -man qmail-popup.8 > qmail-popup.0
1289
1290qmail-popup.o: \
1291compile qmail-popup.c commands.h fd.h sig.h stralloc.h gen_alloc.h \
1292substdio.h alloc.h wait.h str.h byte.h now.h datetime.h fmt.h exit.h \
1293readwrite.h timeoutread.h timeoutwrite.h
1294	./compile qmail-popup.c
1295
1296qmail-pw2u: \
1297load qmail-pw2u.o constmap.o control.o open.a getln.a case.a getopt.a \
1298stralloc.a alloc.a substdio.a error.a str.a fs.a auto_usera.o \
1299auto_break.o auto_qmail.o
1300	./load qmail-pw2u constmap.o control.o open.a getln.a \
1301	case.a getopt.a stralloc.a alloc.a substdio.a error.a str.a \
1302	fs.a auto_usera.o auto_break.o auto_qmail.o
1303
1304qmail-pw2u.0: \
1305qmail-pw2u.8
1306	nroff -man qmail-pw2u.8 > qmail-pw2u.0
1307
1308qmail-pw2u.8: \
1309qmail-pw2u.9 conf-break conf-spawn
1310	cat qmail-pw2u.9 \
1311	| sed s}QMAILHOME}"`head -1 conf-qmail`"}g \
1312	| sed s}BREAK}"`head -1 conf-break`"}g \
1313	| sed s}SPAWN}"`head -1 conf-spawn`"}g \
1314	> qmail-pw2u.8
1315
1316qmail-pw2u.o: \
1317compile qmail-pw2u.c substdio.h readwrite.h subfd.h substdio.h \
1318sgetopt.h subgetopt.h control.h constmap.h stralloc.h gen_alloc.h \
1319fmt.h str.h scan.h open.h error.h getln.h auto_break.h auto_qmail.h \
1320auto_usera.h
1321	./compile qmail-pw2u.c
1322
1323qmail-qmqpc: \
1324load qmail-qmqpc.o slurpclose.o timeoutread.o timeoutwrite.o \
1325timeoutconn.o ip.o control.o auto_qmail.o sig.a ndelay.a open.a \
1326getln.a substdio.a stralloc.a alloc.a error.a str.a fs.a socket.lib
1327	./load qmail-qmqpc slurpclose.o timeoutread.o \
1328	timeoutwrite.o timeoutconn.o ip.o control.o auto_qmail.o \
1329	sig.a ndelay.a open.a getln.a substdio.a stralloc.a alloc.a \
1330	error.a str.a fs.a  `cat socket.lib`
1331
1332qmail-qmqpc.0: \
1333qmail-qmqpc.8
1334	nroff -man qmail-qmqpc.8 > qmail-qmqpc.0
1335
1336qmail-qmqpc.o: \
1337compile qmail-qmqpc.c substdio.h getln.h readwrite.h exit.h \
1338stralloc.h gen_alloc.h slurpclose.h error.h sig.h ip.h timeoutconn.h \
1339timeoutread.h timeoutwrite.h auto_qmail.h control.h fmt.h
1340	./compile qmail-qmqpc.c
1341
1342qmail-qmqpd: \
1343load qmail-qmqpd.o received.o now.o date822fmt.o qmail.o auto_qmail.o \
1344env.a substdio.a sig.a error.a wait.a fd.a str.a datetime.a fs.a
1345	./load qmail-qmqpd received.o now.o date822fmt.o qmail.o \
1346	auto_qmail.o env.a substdio.a sig.a error.a wait.a fd.a \
1347	str.a datetime.a fs.a
1348
1349qmail-qmqpd.0: \
1350qmail-qmqpd.8
1351	nroff -man qmail-qmqpd.8 > qmail-qmqpd.0
1352
1353qmail-qmqpd.o: \
1354compile qmail-qmqpd.c auto_qmail.h qmail.h substdio.h received.h \
1355sig.h substdio.h readwrite.h exit.h now.h datetime.h fmt.h env.h
1356	./compile qmail-qmqpd.c
1357
1358qmail-qmtpd: \
1359load qmail-qmtpd.o rcpthosts.o control.o constmap.o received.o \
1360date822fmt.o now.o qmail.o cdb.a fd.a wait.a datetime.a open.a \
1361getln.a sig.a case.a env.a stralloc.a alloc.a substdio.a error.a \
1362str.a fs.a auto_qmail.o
1363	./load qmail-qmtpd rcpthosts.o control.o constmap.o \
1364	received.o date822fmt.o now.o qmail.o cdb.a fd.a wait.a \
1365	datetime.a open.a getln.a sig.a case.a env.a stralloc.a \
1366	alloc.a substdio.a error.a str.a fs.a auto_qmail.o
1367
1368qmail-qmtpd.0: \
1369qmail-qmtpd.8
1370	nroff -man qmail-qmtpd.8 > qmail-qmtpd.0
1371
1372qmail-qmtpd.o: \
1373compile qmail-qmtpd.c stralloc.h gen_alloc.h substdio.h qmail.h \
1374substdio.h now.h datetime.h str.h fmt.h env.h sig.h rcpthosts.h \
1375auto_qmail.h readwrite.h control.h received.h
1376	./compile qmail-qmtpd.c
1377
1378qmail-qread: \
1379load qmail-qread.o fmtqfn.o readsubdir.o date822fmt.o datetime.a \
1380open.a getln.a stralloc.a alloc.a substdio.a error.a str.a fs.a \
1381auto_qmail.o auto_split.o
1382	./load qmail-qread fmtqfn.o readsubdir.o date822fmt.o \
1383	datetime.a open.a getln.a stralloc.a alloc.a substdio.a \
1384	error.a str.a fs.a auto_qmail.o auto_split.o
1385
1386qmail-qread.0: \
1387qmail-qread.8
1388	nroff -man qmail-qread.8 > qmail-qread.0
1389
1390qmail-qread.o: \
1391compile qmail-qread.c stralloc.h gen_alloc.h substdio.h subfd.h \
1392substdio.h fmt.h str.h getln.h fmtqfn.h readsubdir.h direntry.h \
1393auto_qmail.h open.h datetime.h date822fmt.h readwrite.h error.h \
1394exit.h
1395	./compile qmail-qread.c
1396
1397qmail-qstat: \
1398warn-auto.sh qmail-qstat.sh conf-qmail conf-break conf-split
1399	cat warn-auto.sh qmail-qstat.sh \
1400	| sed s}QMAIL}"`head -1 conf-qmail`"}g \
1401	| sed s}BREAK}"`head -1 conf-break`"}g \
1402	| sed s}SPLIT}"`head -1 conf-split`"}g \
1403	> qmail-qstat
1404	chmod 755 qmail-qstat
1405
1406qmail-qstat.0: \
1407qmail-qstat.8
1408	nroff -man qmail-qstat.8 > qmail-qstat.0
1409
1410qmail-queue: \
1411load qmail-queue.o triggerpull.o fmtqfn.o now.o date822fmt.o \
1412datetime.a seek.a ndelay.a open.a sig.a alloc.a substdio.a error.a \
1413str.a fs.a auto_qmail.o auto_split.o auto_uids.o
1414	./load qmail-queue triggerpull.o fmtqfn.o now.o \
1415	date822fmt.o datetime.a seek.a ndelay.a open.a sig.a \
1416	alloc.a substdio.a error.a str.a fs.a auto_qmail.o \
1417	auto_split.o auto_uids.o
1418
1419qmail-queue.0: \
1420qmail-queue.8
1421	nroff -man qmail-queue.8 > qmail-queue.0
1422
1423qmail-queue.o: \
1424compile qmail-queue.c readwrite.h sig.h exit.h open.h seek.h fmt.h \
1425alloc.h substdio.h datetime.h now.h datetime.h triggerpull.h extra.h \
1426auto_qmail.h auto_uids.h date822fmt.h fmtqfn.h
1427	./compile qmail-queue.c
1428
1429qmail-remote: \
1430load qmail-remote.o control.o constmap.o timeoutread.o timeoutwrite.o \
1431timeoutconn.o tcpto.o now.o dns.o ip.o ipalloc.o ipme.o quote.o \
1432ndelay.a case.a sig.a open.a lock.a seek.a getln.a stralloc.a alloc.a \
1433substdio.a error.a str.a fs.a auto_qmail.o dns.lib socket.lib
1434	./load qmail-remote control.o constmap.o timeoutread.o \
1435	timeoutwrite.o timeoutconn.o tcpto.o now.o dns.o ip.o \
1436	tls.o ssl_timeoutio.o -L/usr/local/lib -lssl -lcrypto \
1437	ipalloc.o ipme.o quote.o ndelay.a case.a sig.a open.a \
1438	lock.a seek.a getln.a stralloc.a alloc.a substdio.a error.a \
1439	str.a fs.a auto_qmail.o  `cat dns.lib` `cat socket.lib`
1440
1441qmail-remote.0: \
1442qmail-remote.8
1443	nroff -man qmail-remote.8 > qmail-remote.0
1444
1445qmail-remote.o: \
1446compile qmail-remote.c sig.h stralloc.h gen_alloc.h substdio.h \
1447subfd.h substdio.h scan.h case.h error.h auto_qmail.h control.h dns.h \
1448alloc.h quote.h ip.h ipalloc.h ip.h gen_alloc.h ipme.h ip.h ipalloc.h \
1449gen_alloc.h gen_allocdefs.h str.h now.h datetime.h exit.h constmap.h \
1450tcpto.h readwrite.h timeoutconn.h timeoutread.h timeoutwrite.h
1451	./compile qmail-remote.c
1452
1453qmail-rspawn: \
1454load qmail-rspawn.o spawn.o tcpto_clean.o now.o coe.o sig.a open.a \
1455seek.a lock.a wait.a fd.a stralloc.a alloc.a substdio.a error.a str.a \
1456auto_qmail.o auto_uids.o auto_spawn.o
1457	./load qmail-rspawn spawn.o tcpto_clean.o now.o coe.o \
1458	sig.a open.a seek.a lock.a wait.a fd.a stralloc.a alloc.a \
1459	substdio.a error.a str.a auto_qmail.o auto_uids.o \
1460	auto_spawn.o
1461
1462qmail-rspawn.0: \
1463qmail-rspawn.8
1464	nroff -man qmail-rspawn.8 > qmail-rspawn.0
1465
1466qmail-rspawn.o: \
1467compile qmail-rspawn.c fd.h wait.h substdio.h exit.h fork.h error.h \
1468tcpto.h
1469	./compile qmail-rspawn.c
1470
1471qmail-send: \
1472load qmail-send.o qsutil.o control.o constmap.o newfield.o prioq.o \
1473trigger.o fmtqfn.o quote.o now.o readsubdir.o qmail.o date822fmt.o \
1474datetime.a case.a ndelay.a getln.a wait.a seek.a fd.a sig.a open.a \
1475lock.a stralloc.a alloc.a substdio.a error.a str.a fs.a auto_qmail.o \
1476auto_split.o env.a
1477	./load qmail-send qsutil.o control.o constmap.o newfield.o \
1478	prioq.o trigger.o fmtqfn.o quote.o now.o readsubdir.o \
1479	qmail.o date822fmt.o datetime.a case.a ndelay.a getln.a \
1480	wait.a seek.a fd.a sig.a open.a lock.a stralloc.a alloc.a \
1481	substdio.a error.a str.a fs.a auto_qmail.o auto_split.o env.a
1482
1483qmail-send.0: \
1484qmail-send.8
1485	nroff -man qmail-send.8 > qmail-send.0
1486
1487qmail-send.8: \
1488qmail-send.9 conf-break conf-spawn
1489	cat qmail-send.9 \
1490	| sed s}QMAILHOME}"`head -1 conf-qmail`"}g \
1491	| sed s}BREAK}"`head -1 conf-break`"}g \
1492	| sed s}SPAWN}"`head -1 conf-spawn`"}g \
1493	> qmail-send.8
1494
1495qmail-send.o: \
1496compile qmail-send.c readwrite.h sig.h direntry.h control.h select.h \
1497open.h seek.h exit.h lock.h ndelay.h now.h datetime.h getln.h \
1498substdio.h alloc.h error.h stralloc.h gen_alloc.h str.h byte.h fmt.h \
1499scan.h case.h auto_qmail.h trigger.h newfield.h stralloc.h quote.h \
1500qmail.h substdio.h qsutil.h prioq.h datetime.h gen_alloc.h constmap.h \
1501fmtqfn.h readsubdir.h direntry.h
1502	./compile qmail-send.c
1503
1504qmail-showctl: \
1505load qmail-showctl.o auto_uids.o control.o open.a getln.a stralloc.a \
1506alloc.a substdio.a error.a str.a fs.a auto_qmail.o auto_break.o \
1507auto_patrn.o auto_spawn.o auto_split.o
1508	./load qmail-showctl auto_uids.o control.o open.a getln.a \
1509	stralloc.a alloc.a substdio.a error.a str.a fs.a \
1510	auto_qmail.o auto_break.o auto_patrn.o auto_spawn.o \
1511	auto_split.o
1512
1513qmail-showctl.0: \
1514qmail-showctl.8
1515	nroff -man qmail-showctl.8 > qmail-showctl.0
1516
1517qmail-showctl.o: \
1518compile qmail-showctl.c substdio.h subfd.h substdio.h exit.h fmt.h \
1519str.h control.h constmap.h stralloc.h gen_alloc.h direntry.h \
1520auto_uids.h auto_qmail.h auto_break.h auto_patrn.h auto_spawn.h \
1521auto_split.h
1522	./compile qmail-showctl.c
1523
1524qmail-smtpd: \
1525load qmail-smtpd.o rcpthosts.o commands.o timeoutread.o \
1526timeoutwrite.o ip.o ipme.o ipalloc.o control.o constmap.o received.o \
1527date822fmt.o now.o qmail.o cdb.a fd.a wait.a datetime.a getln.a \
1528open.a sig.a case.a env.a stralloc.a alloc.a substdio.a error.a str.a \
1529fs.a auto_qmail.o socket.lib
1530	./load qmail-smtpd rcpthosts.o commands.o timeoutread.o \
1531	timeoutwrite.o ip.o ipme.o ipalloc.o control.o constmap.o \
1532	tls.o ssl_timeoutio.o ndelay.a -L/usr/local/lib -lssl -lcrypto \
1533	received.o date822fmt.o now.o qmail.o cdb.a fd.a wait.a \
1534	datetime.a getln.a open.a sig.a case.a env.a stralloc.a \
1535	alloc.a substdio.a error.a str.a fs.a auto_qmail.o  `cat \
1536	socket.lib`
1537
1538qmail-smtpd.0: \
1539qmail-smtpd.8
1540	nroff -man qmail-smtpd.8 > qmail-smtpd.0
1541
1542qmail-smtpd.o: \
1543compile qmail-smtpd.c sig.h readwrite.h stralloc.h gen_alloc.h \
1544substdio.h alloc.h auto_qmail.h control.h received.h constmap.h \
1545error.h ipme.h ip.h ipalloc.h ip.h gen_alloc.h ip.h qmail.h \
1546substdio.h str.h fmt.h scan.h byte.h case.h env.h now.h datetime.h \
1547exit.h rcpthosts.h timeoutread.h timeoutwrite.h commands.h
1548	./compile qmail-smtpd.c
1549
1550qmail-start: \
1551load qmail-start.o prot.o fd.a auto_uids.o
1552	./load qmail-start prot.o fd.a auto_uids.o
1553
1554qmail-start.0: \
1555qmail-start.8
1556	nroff -man qmail-start.8 > qmail-start.0
1557
1558qmail-start.8: \
1559qmail-start.9 conf-break conf-spawn
1560	cat qmail-start.9 \
1561	| sed s}QMAILHOME}"`head -1 conf-qmail`"}g \
1562	| sed s}BREAK}"`head -1 conf-break`"}g \
1563	| sed s}SPAWN}"`head -1 conf-spawn`"}g \
1564	> qmail-start.8
1565
1566qmail-start.o: \
1567compile qmail-start.c fd.h prot.h exit.h fork.h auto_uids.h
1568	./compile qmail-start.c
1569
1570qmail-tcpok: \
1571load qmail-tcpok.o open.a lock.a strerr.a substdio.a error.a str.a \
1572auto_qmail.o
1573	./load qmail-tcpok open.a lock.a strerr.a substdio.a \
1574	error.a str.a auto_qmail.o
1575
1576qmail-tcpok.0: \
1577qmail-tcpok.8
1578	nroff -man qmail-tcpok.8 > qmail-tcpok.0
1579
1580qmail-tcpok.o: \
1581compile qmail-tcpok.c strerr.h substdio.h lock.h open.h readwrite.h \
1582auto_qmail.h exit.h
1583	./compile qmail-tcpok.c
1584
1585qmail-tcpto: \
1586load qmail-tcpto.o ip.o now.o open.a lock.a substdio.a error.a str.a \
1587fs.a auto_qmail.o
1588	./load qmail-tcpto ip.o now.o open.a lock.a substdio.a \
1589	error.a str.a fs.a auto_qmail.o
1590
1591qmail-tcpto.0: \
1592qmail-tcpto.8
1593	nroff -man qmail-tcpto.8 > qmail-tcpto.0
1594
1595qmail-tcpto.o: \
1596compile qmail-tcpto.c substdio.h subfd.h substdio.h auto_qmail.h \
1597fmt.h ip.h lock.h error.h exit.h datetime.h now.h datetime.h
1598	./compile qmail-tcpto.c
1599
1600qmail-upq: \
1601warn-auto.sh qmail-upq.sh conf-qmail conf-break conf-split
1602	cat warn-auto.sh qmail-upq.sh \
1603	| sed s}QMAIL}"`head -1 conf-qmail`"}g \
1604	| sed s}BREAK}"`head -1 conf-break`"}g \
1605	| sed s}SPLIT}"`head -1 conf-split`"}g \
1606	> qmail-upq
1607	chmod 755 qmail-upq
1608
1609qmail-users.0: \
1610qmail-users.5
1611	nroff -man qmail-users.5 > qmail-users.0
1612
1613qmail-users.5: \
1614qmail-users.9 conf-break conf-spawn
1615	cat qmail-users.9 \
1616	| sed s}QMAILHOME}"`head -1 conf-qmail`"}g \
1617	| sed s}BREAK}"`head -1 conf-break`"}g \
1618	| sed s}SPAWN}"`head -1 conf-spawn`"}g \
1619	> qmail-users.5
1620
1621qmail.0: \
1622qmail.7
1623	nroff -man qmail.7 > qmail.0
1624
1625qmail.o: \
1626compile qmail.c substdio.h readwrite.h wait.h exit.h fork.h fd.h \
1627qmail.h substdio.h auto_qmail.h
1628	./compile qmail.c
1629
1630qreceipt: \
1631load qreceipt.o headerbody.o hfield.o quote.o token822.o qmail.o \
1632getln.a fd.a wait.a sig.a env.a stralloc.a alloc.a substdio.a error.a \
1633str.a auto_qmail.o
1634	./load qreceipt headerbody.o hfield.o quote.o token822.o \
1635	qmail.o getln.a fd.a wait.a sig.a env.a stralloc.a alloc.a \
1636	substdio.a error.a str.a auto_qmail.o
1637
1638qreceipt.0: \
1639qreceipt.1
1640	nroff -man qreceipt.1 > qreceipt.0
1641
1642qreceipt.o: \
1643compile qreceipt.c sig.h env.h substdio.h stralloc.h gen_alloc.h \
1644subfd.h substdio.h getln.h alloc.h str.h hfield.h token822.h \
1645gen_alloc.h error.h gen_alloc.h gen_allocdefs.h headerbody.h exit.h \
1646open.h quote.h qmail.h substdio.h
1647	./compile qreceipt.c
1648
1649qsmhook: \
1650load qsmhook.o sig.a case.a fd.a wait.a getopt.a env.a stralloc.a \
1651alloc.a substdio.a error.a str.a
1652	./load qsmhook sig.a case.a fd.a wait.a getopt.a env.a \
1653	stralloc.a alloc.a substdio.a error.a str.a
1654
1655qsmhook.o: \
1656compile qsmhook.c fd.h stralloc.h gen_alloc.h readwrite.h sgetopt.h \
1657subgetopt.h wait.h env.h byte.h str.h alloc.h exit.h fork.h case.h \
1658subfd.h substdio.h error.h substdio.h sig.h
1659	./compile qsmhook.c
1660
1661qsutil.o: \
1662compile qsutil.c stralloc.h gen_alloc.h readwrite.h substdio.h \
1663qsutil.h
1664	./compile qsutil.c
1665
1666quote.o: \
1667compile quote.c stralloc.h gen_alloc.h str.h quote.h
1668	./compile quote.c
1669
1670rcpthosts.o: \
1671compile rcpthosts.c cdb.h uint32.h byte.h open.h error.h control.h \
1672constmap.h stralloc.h gen_alloc.h rcpthosts.h
1673	./compile rcpthosts.c
1674
1675readsubdir.o: \
1676compile readsubdir.c readsubdir.h direntry.h fmt.h scan.h str.h \
1677auto_split.h
1678	./compile readsubdir.c
1679
1680received.o: \
1681compile received.c fmt.h qmail.h substdio.h now.h datetime.h \
1682datetime.h date822fmt.h received.h
1683	./compile received.c
1684
1685remoteinfo.o: \
1686compile remoteinfo.c byte.h substdio.h ip.h fmt.h timeoutconn.h \
1687timeoutread.h timeoutwrite.h remoteinfo.h
1688	./compile remoteinfo.c
1689
1690scan_8long.o: \
1691compile scan_8long.c scan.h
1692	./compile scan_8long.c
1693
1694scan_ulong.o: \
1695compile scan_ulong.c scan.h
1696	./compile scan_ulong.c
1697
1698seek.a: \
1699makelib seek_cur.o seek_end.o seek_set.o seek_trunc.o
1700	./makelib seek.a seek_cur.o seek_end.o seek_set.o \
1701	seek_trunc.o
1702
1703seek_cur.o: \
1704compile seek_cur.c seek.h
1705	./compile seek_cur.c
1706
1707seek_end.o: \
1708compile seek_end.c seek.h
1709	./compile seek_end.c
1710
1711seek_set.o: \
1712compile seek_set.c seek.h
1713	./compile seek_set.c
1714
1715seek_trunc.o: \
1716compile seek_trunc.c seek.h
1717	./compile seek_trunc.c
1718
1719select.h: \
1720compile trysysel.c select.h1 select.h2
1721	( ./compile trysysel.c >/dev/null 2>&1 \
1722	&& cat select.h2 || cat select.h1 ) > select.h
1723	rm -f trysysel.o trysysel
1724
1725sendmail: \
1726load sendmail.o env.a getopt.a alloc.a substdio.a error.a str.a \
1727auto_qmail.o
1728	./load sendmail env.a getopt.a alloc.a substdio.a error.a \
1729	str.a auto_qmail.o
1730
1731sendmail.o: \
1732compile sendmail.c sgetopt.h subgetopt.h substdio.h subfd.h \
1733substdio.h alloc.h auto_qmail.h exit.h env.h str.h
1734	./compile sendmail.c
1735
1736setup: \
1737it man
1738	./install
1739
1740sgetopt.o: \
1741compile sgetopt.c substdio.h subfd.h substdio.h sgetopt.h subgetopt.h \
1742subgetopt.h
1743	./compile sgetopt.c
1744
1745shar: \
1746FILES BLURB BLURB2 BLURB3 BLURB4 README FAQ INSTALL INSTALL.alias \
1747INSTALL.ctl INSTALL.ids INSTALL.maildir INSTALL.mbox INSTALL.vsm \
1748REMOVE.sendmail REMOVE.binmail TEST.deliver TEST.receive UPGRADE \
1749THOUGHTS TODO THANKS CHANGES SECURITY INTERNALS SENDMAIL \
1750PIC.local2alias PIC.local2ext PIC.local2local PIC.local2rem \
1751PIC.local2virt PIC.nullclient PIC.relaybad PIC.relaygood \
1752PIC.rem2local FILES VERSION SYSDEPS TARGETS Makefile BIN.README \
1753BIN.Makefile BIN.setup idedit.c conf-break auto_break.h conf-spawn \
1754auto_spawn.h chkspawn.c conf-split auto_split.h conf-patrn \
1755auto_patrn.h conf-users conf-groups auto_uids.h auto_usera.h extra.h \
1756addresses.5 except.1 bouncesaying.1 condredirect.1 dot-qmail.9 \
1757envelopes.5 forgeries.7 forward.1 maildir2mbox.1 maildirmake.1 \
1758maildirwatch.1 mailsubj.1 mbox.5 preline.1 qbiff.1 qmail-clean.8 \
1759qmail-command.8 qmail-control.9 qmail-getpw.9 qmail-header.5 \
1760qmail-inject.8 qmail-limits.9 qmail-local.8 qmail-log.5 \
1761qmail-lspawn.8 qmail-newmrh.9 qmail-newu.9 qmail-pop3d.8 \
1762qmail-popup.8 qmail-pw2u.9 qmail-qmqpc.8 qmail-qmqpd.8 qmail-qmtpd.8 \
1763qmail-qread.8 qmail-qstat.8 qmail-queue.8 qmail-remote.8 \
1764qmail-rspawn.8 qmail-send.9 qmail-showctl.8 qmail-smtpd.8 \
1765qmail-start.9 qmail-tcpok.8 qmail-tcpto.8 qmail-users.9 qmail.7 \
1766qreceipt.1 splogger.8 tcp-env.1 config.sh config-fast.sh \
1767qmail-clean.c qmail-getpw.c qmail-inject.c qmail-local.c \
1768qmail-lspawn.c qmail-newmrh.c qmail-newu.c qmail-pop3d.c \
1769qmail-popup.c qmail-pw2u.c qmail-qmqpc.c qmail-qmqpd.c qmail-qmtpd.c \
1770qmail-qread.c qmail-qstat.sh qmail-queue.c qmail-remote.c \
1771qmail-rspawn.c qmail-send.c qmail-showctl.c qmail-smtpd.c \
1772qmail-start.c qmail-tcpok.c qmail-tcpto.c spawn.c dnscname.c dnsfq.c \
1773dnsip.c dnsmxip.c dnsptr.c hostname.c ipmeprint.c tcp-env.c \
1774sendmail.c qreceipt.c qsmhook.c qbiff.c forward.c preline.c predate.c \
1775except.c bouncesaying.c condredirect.c maildirmake.c maildir2mbox.c \
1776maildirwatch.c splogger.c qail.sh elq.sh pinq.sh qmail-upq.sh \
1777datemail.sh mailsubj.sh qlx.h rcpthosts.h rcpthosts.c commands.h \
1778commands.c dnsdoe.h dnsdoe.c fmtqfn.h fmtqfn.c gfrom.h gfrom.c \
1779myctime.h myctime.c newfield.h newfield.c qsutil.h qsutil.c \
1780readsubdir.h readsubdir.c received.h received.c tcpto.h tcpto.c \
1781tcpto_clean.c trigger.h trigger.c triggerpull.h triggerpull.c \
1782trynpbg1.c trysyslog.c conf-cc conf-ld home.sh home+df.sh proc.sh \
1783proc+df.sh binm1.sh binm2.sh binm3.sh binm1+df.sh binm2+df.sh \
1784binm3+df.sh find-systype.sh make-compile.sh make-load.sh \
1785make-makelib.sh trycpp.c warn-auto.sh auto-str.c auto-int.c \
1786auto-int8.c auto-gid.c auto-uid.c hier.c install.c instcheck.c \
1787install-big.c alloc.3 alloc.h alloc.c alloc_re.c case.3 case.h \
1788case_diffb.c case_diffs.c case_lowerb.c case_lowers.c case_starts.c \
1789cdb.3 cdb.h cdb_hash.c cdb_seek.c cdb_unpack.c cdbmake.h \
1790cdbmake_add.c cdbmake_hash.c cdbmake_pack.c cdbmss.h cdbmss.c coe.3 \
1791coe.h coe.c fd.h fd_copy.3 fd_copy.c fd_move.3 fd_move.c fifo_make.3 \
1792fifo.h fifo.c trymkffo.c fork.h1 fork.h2 tryvfork.c now.3 now.h now.c \
1793open.h open_append.c open_excl.c open_read.c open_trunc.c \
1794open_write.c seek.h seek_cur.c seek_end.c seek_set.c seek_trunc.c \
1795conf-qmail auto_qmail.h qmail.h qmail.c gen_alloc.h gen_allocdefs.h \
1796stralloc.3 stralloc.h stralloc_eady.c stralloc_pend.c stralloc_copy.c \
1797stralloc_opyb.c stralloc_opys.c stralloc_cat.c stralloc_catb.c \
1798stralloc_cats.c stralloc_arts.c strerr.h strerr_sys.c strerr_die.c \
1799substdio.h substdio.c substdi.c substdo.c substdio_copy.c subfd.h \
1800subfderr.c subfdouts.c subfdout.c subfdins.c subfdin.c readwrite.h \
1801exit.h timeoutconn.h timeoutconn.c timeoutread.h timeoutread.c \
1802timeoutwrite.h timeoutwrite.c remoteinfo.h remoteinfo.c uint32.h1 \
1803uint32.h2 tryulong32.c wait.3 wait.h wait_pid.c wait_nohang.c \
1804trywaitp.c sig.h sig_alarm.c sig_block.c sig_catch.c sig_pause.c \
1805sig_pipe.c sig_child.c sig_term.c sig_hup.c sig_misc.c sig_bug.c \
1806trysgact.c trysgprm.c env.3 env.h env.c envread.c byte.h byte_chr.c \
1807byte_copy.c byte_cr.c byte_diff.c byte_rchr.c byte_zero.c str.h \
1808str_chr.c str_cpy.c str_diff.c str_diffn.c str_len.c str_rchr.c \
1809str_start.c lock.h lock_ex.c lock_exnb.c lock_un.c tryflock.c getln.3 \
1810getln.h getln.c getln2.3 getln2.c sgetopt.3 sgetopt.h sgetopt.c \
1811subgetopt.3 subgetopt.h subgetopt.c error.3 error_str.3 error_temp.3 \
1812error.h error.c error_str.c error_temp.c fmt.h fmt_str.c fmt_strn.c \
1813fmt_uint.c fmt_uint0.c fmt_ulong.c scan.h scan_ulong.c scan_8long.c \
1814slurpclose.h slurpclose.c quote.h quote.c hfield.h hfield.c \
1815headerbody.h headerbody.c token822.h token822.c control.h control.c \
1816datetime.3 datetime.h datetime.c datetime_un.c prioq.h prioq.c \
1817date822fmt.h date822fmt.c dns.h dns.c trylsock.c tryrsolv.c ip.h ip.c \
1818ipalloc.h ipalloc.c select.h1 select.h2 trysysel.c ndelay.h ndelay.c \
1819ndelay_off.c direntry.3 direntry.h1 direntry.h2 trydrent.c prot.h \
1820prot.c chkshsgr.c warn-shsgr tryshsgr.c ipme.h ipme.c trysalen.c \
1821maildir.5 maildir.h maildir.c tcp-environ.5 constmap.h constmap.c \
1822update_tmprsadh
1823	shar -m `cat FILES` > shar
1824	chmod 400 shar
1825
1826sig.a: \
1827makelib sig_alarm.o sig_block.o sig_catch.o sig_pause.o sig_pipe.o \
1828sig_child.o sig_hup.o sig_term.o sig_bug.o sig_misc.o
1829	./makelib sig.a sig_alarm.o sig_block.o sig_catch.o \
1830	sig_pause.o sig_pipe.o sig_child.o sig_hup.o sig_term.o \
1831	sig_bug.o sig_misc.o
1832
1833sig_alarm.o: \
1834compile sig_alarm.c sig.h
1835	./compile sig_alarm.c
1836
1837sig_block.o: \
1838compile sig_block.c sig.h hassgprm.h
1839	./compile sig_block.c
1840
1841sig_bug.o: \
1842compile sig_bug.c sig.h
1843	./compile sig_bug.c
1844
1845sig_catch.o: \
1846compile sig_catch.c sig.h hassgact.h
1847	./compile sig_catch.c
1848
1849sig_child.o: \
1850compile sig_child.c sig.h
1851	./compile sig_child.c
1852
1853sig_hup.o: \
1854compile sig_hup.c sig.h
1855	./compile sig_hup.c
1856
1857sig_misc.o: \
1858compile sig_misc.c sig.h
1859	./compile sig_misc.c
1860
1861sig_pause.o: \
1862compile sig_pause.c sig.h hassgprm.h
1863	./compile sig_pause.c
1864
1865sig_pipe.o: \
1866compile sig_pipe.c sig.h
1867	./compile sig_pipe.c
1868
1869sig_term.o: \
1870compile sig_term.c sig.h
1871	./compile sig_term.c
1872
1873slurpclose.o: \
1874compile slurpclose.c stralloc.h gen_alloc.h readwrite.h slurpclose.h \
1875error.h
1876	./compile slurpclose.c
1877
1878socket.lib: \
1879trylsock.c compile load
1880	( ( ./compile trylsock.c && \
1881	./load trylsock -lsocket -lnsl ) >/dev/null 2>&1 \
1882	&& echo -lsocket -lnsl || exit 0 ) > socket.lib
1883	rm -f trylsock.o trylsock
1884
1885spawn.o: \
1886compile chkspawn spawn.c sig.h wait.h substdio.h byte.h str.h \
1887stralloc.h gen_alloc.h select.h exit.h alloc.h coe.h open.h error.h \
1888auto_qmail.h auto_uids.h auto_spawn.h
1889	./chkspawn
1890	./compile spawn.c
1891
1892splogger: \
1893load splogger.o substdio.a error.a str.a fs.a syslog.lib socket.lib
1894	./load splogger substdio.a error.a str.a fs.a  `cat \
1895	syslog.lib` `cat socket.lib`
1896
1897splogger.0: \
1898splogger.8
1899	nroff -man splogger.8 > splogger.0
1900
1901splogger.o: \
1902compile splogger.c error.h substdio.h subfd.h substdio.h exit.h str.h \
1903scan.h fmt.h
1904	./compile splogger.c
1905
1906str.a: \
1907makelib str_len.o str_diff.o str_diffn.o str_cpy.o str_chr.o \
1908str_rchr.o str_start.o byte_chr.o byte_rchr.o byte_diff.o byte_copy.o \
1909byte_cr.o byte_zero.o
1910	./makelib str.a str_len.o str_diff.o str_diffn.o str_cpy.o \
1911	str_chr.o str_rchr.o str_start.o byte_chr.o byte_rchr.o \
1912	byte_diff.o byte_copy.o byte_cr.o byte_zero.o
1913
1914str_chr.o: \
1915compile str_chr.c str.h
1916	./compile str_chr.c
1917
1918str_cpy.o: \
1919compile str_cpy.c str.h
1920	./compile str_cpy.c
1921
1922str_diff.o: \
1923compile str_diff.c str.h
1924	./compile str_diff.c
1925
1926str_diffn.o: \
1927compile str_diffn.c str.h
1928	./compile str_diffn.c
1929
1930str_len.o: \
1931compile str_len.c str.h
1932	./compile str_len.c
1933
1934str_rchr.o: \
1935compile str_rchr.c str.h
1936	./compile str_rchr.c
1937
1938str_start.o: \
1939compile str_start.c str.h
1940	./compile str_start.c
1941
1942stralloc.a: \
1943makelib stralloc_eady.o stralloc_pend.o stralloc_copy.o \
1944stralloc_opys.o stralloc_opyb.o stralloc_cat.o stralloc_cats.o \
1945stralloc_catb.o stralloc_arts.o
1946	./makelib stralloc.a stralloc_eady.o stralloc_pend.o \
1947	stralloc_copy.o stralloc_opys.o stralloc_opyb.o \
1948	stralloc_cat.o stralloc_cats.o stralloc_catb.o \
1949	stralloc_arts.o
1950
1951stralloc_arts.o: \
1952compile stralloc_arts.c byte.h str.h stralloc.h gen_alloc.h
1953	./compile stralloc_arts.c
1954
1955stralloc_cat.o: \
1956compile stralloc_cat.c byte.h stralloc.h gen_alloc.h
1957	./compile stralloc_cat.c
1958
1959stralloc_catb.o: \
1960compile stralloc_catb.c stralloc.h gen_alloc.h byte.h
1961	./compile stralloc_catb.c
1962
1963stralloc_cats.o: \
1964compile stralloc_cats.c byte.h str.h stralloc.h gen_alloc.h
1965	./compile stralloc_cats.c
1966
1967stralloc_copy.o: \
1968compile stralloc_copy.c byte.h stralloc.h gen_alloc.h
1969	./compile stralloc_copy.c
1970
1971stralloc_eady.o: \
1972compile stralloc_eady.c alloc.h stralloc.h gen_alloc.h \
1973gen_allocdefs.h
1974	./compile stralloc_eady.c
1975
1976stralloc_opyb.o: \
1977compile stralloc_opyb.c stralloc.h gen_alloc.h byte.h
1978	./compile stralloc_opyb.c
1979
1980stralloc_opys.o: \
1981compile stralloc_opys.c byte.h str.h stralloc.h gen_alloc.h
1982	./compile stralloc_opys.c
1983
1984stralloc_pend.o: \
1985compile stralloc_pend.c alloc.h stralloc.h gen_alloc.h \
1986gen_allocdefs.h
1987	./compile stralloc_pend.c
1988
1989strerr.a: \
1990makelib strerr_sys.o strerr_die.o
1991	./makelib strerr.a strerr_sys.o strerr_die.o
1992
1993strerr_die.o: \
1994compile strerr_die.c substdio.h subfd.h substdio.h exit.h strerr.h
1995	./compile strerr_die.c
1996
1997strerr_sys.o: \
1998compile strerr_sys.c error.h strerr.h
1999	./compile strerr_sys.c
2000
2001subfderr.o: \
2002compile subfderr.c readwrite.h substdio.h subfd.h substdio.h
2003	./compile subfderr.c
2004
2005subfdin.o: \
2006compile subfdin.c readwrite.h substdio.h subfd.h substdio.h
2007	./compile subfdin.c
2008
2009subfdins.o: \
2010compile subfdins.c readwrite.h substdio.h subfd.h substdio.h
2011	./compile subfdins.c
2012
2013subfdout.o: \
2014compile subfdout.c readwrite.h substdio.h subfd.h substdio.h
2015	./compile subfdout.c
2016
2017subfdouts.o: \
2018compile subfdouts.c readwrite.h substdio.h subfd.h substdio.h
2019	./compile subfdouts.c
2020
2021subgetopt.o: \
2022compile subgetopt.c subgetopt.h
2023	./compile subgetopt.c
2024
2025substdi.o: \
2026compile substdi.c substdio.h byte.h error.h
2027	./compile substdi.c
2028
2029substdio.a: \
2030makelib substdio.o substdi.o substdo.o subfderr.o subfdout.o \
2031subfdouts.o subfdin.o subfdins.o substdio_copy.o
2032	./makelib substdio.a substdio.o substdi.o substdo.o \
2033	subfderr.o subfdout.o subfdouts.o subfdin.o subfdins.o \
2034	substdio_copy.o
2035
2036substdio.o: \
2037compile substdio.c substdio.h
2038	./compile substdio.c
2039
2040substdio_copy.o: \
2041compile substdio_copy.c substdio.h
2042	./compile substdio_copy.c
2043
2044substdo.o: \
2045compile substdo.c substdio.h str.h byte.h error.h
2046	./compile substdo.c
2047
2048syslog.lib: \
2049trysyslog.c compile load
2050	( ( ./compile trysyslog.c && \
2051	./load trysyslog -lgen ) >/dev/null 2>&1 \
2052	&& echo -lgen || exit 0 ) > syslog.lib
2053	rm -f trysyslog.o trysyslog
2054
2055systype: \
2056find-systype trycpp.c
2057	./find-systype > systype
2058
2059tcp-env: \
2060load tcp-env.o dns.o remoteinfo.o timeoutread.o timeoutwrite.o \
2061timeoutconn.o ip.o ipalloc.o case.a ndelay.a sig.a env.a getopt.a \
2062stralloc.a alloc.a substdio.a error.a str.a fs.a dns.lib socket.lib
2063	./load tcp-env dns.o remoteinfo.o timeoutread.o \
2064	timeoutwrite.o timeoutconn.o ip.o ipalloc.o case.a ndelay.a \
2065	sig.a env.a getopt.a stralloc.a alloc.a substdio.a error.a \
2066	str.a fs.a  `cat dns.lib` `cat socket.lib`
2067
2068tcp-env.0: \
2069tcp-env.1
2070	nroff -man tcp-env.1 > tcp-env.0
2071
2072tcp-env.o: \
2073compile tcp-env.c sig.h stralloc.h gen_alloc.h str.h env.h fmt.h \
2074scan.h subgetopt.h ip.h dns.h byte.h remoteinfo.h exit.h case.h
2075	./compile tcp-env.c
2076
2077tcp-environ.0: \
2078tcp-environ.5
2079	nroff -man tcp-environ.5 > tcp-environ.0
2080
2081tcpto.o: \
2082compile tcpto.c tcpto.h open.h lock.h seek.h now.h datetime.h ip.h \
2083byte.h datetime.h readwrite.h
2084	./compile tcpto.c
2085
2086tcpto_clean.o: \
2087compile tcpto_clean.c tcpto.h open.h substdio.h readwrite.h
2088	./compile tcpto_clean.c
2089
2090timeoutconn.o: \
2091compile timeoutconn.c ndelay.h select.h error.h readwrite.h ip.h \
2092byte.h timeoutconn.h
2093	./compile timeoutconn.c
2094
2095timeoutread.o: \
2096compile timeoutread.c timeoutread.h select.h error.h readwrite.h
2097	./compile timeoutread.c
2098
2099timeoutwrite.o: \
2100compile timeoutwrite.c timeoutwrite.h select.h error.h readwrite.h
2101	./compile timeoutwrite.c
2102
2103qmail-smtpd: tls.o ssl_timeoutio.o ndelay.a
2104qmail-remote: tls.o ssl_timeoutio.o
2105qmail-smtpd.o: tls.h ssl_timeoutio.h
2106qmail-remote.o: tls.h ssl_timeoutio.h
2107
2108tls.o: \
2109compile tls.c exit.h error.h
2110	./compile tls.c
2111
2112ssl_timeoutio.o: \
2113compile ssl_timeoutio.c ssl_timeoutio.h select.h error.h ndelay.h
2114	./compile ssl_timeoutio.c
2115
2116token822.o: \
2117compile token822.c stralloc.h gen_alloc.h alloc.h str.h token822.h \
2118gen_alloc.h gen_allocdefs.h
2119	./compile token822.c
2120
2121trigger.o: \
2122compile trigger.c select.h open.h trigger.h hasnpbg1.h
2123	./compile trigger.c
2124
2125triggerpull.o: \
2126compile triggerpull.c ndelay.h open.h triggerpull.h
2127	./compile triggerpull.c
2128
2129uint32.h: \
2130tryulong32.c compile load uint32.h1 uint32.h2
2131	( ( ./compile tryulong32.c && ./load tryulong32 && \
2132	./tryulong32 ) >/dev/null 2>&1 \
2133	&& cat uint32.h2 || cat uint32.h1 ) > uint32.h
2134	rm -f tryulong32.o tryulong32
2135
2136wait.a: \
2137makelib wait_pid.o wait_nohang.o
2138	./makelib wait.a wait_pid.o wait_nohang.o
2139
2140wait_nohang.o: \
2141compile wait_nohang.c haswaitp.h
2142	./compile wait_nohang.c
2143
2144wait_pid.o: \
2145compile wait_pid.c error.h haswaitp.h
2146	./compile wait_pid.c
2147
2148cert cert-req: \
2149Makefile-cert
2150	@$(MAKE) -sf $< $@
2151
2152Makefile-cert: \
2153conf-qmail conf-users conf-groups Makefile-cert.mk
2154	@cat Makefile-cert.mk \
2155	| sed s}QMAIL}"`head -1 conf-qmail`"}g \
2156	> $@
2157
2158update_tmprsadh: \
2159conf-qmail conf-users conf-groups update_tmprsadh.sh
2160	@cat update_tmprsadh.sh\
2161	| sed s}UGQMAILD}"`head -2 conf-users|tail -1`:`head -1 conf-groups`"}g \
2162	| sed s}QMAIL}"`head -1 conf-qmail`"}g \
2163	> $@
2164	chmod 755 update_tmprsadh
2165
2166tmprsadh: \
2167update_tmprsadh
2168	echo "Creating new temporary RSA and DH parameters"
2169	./update_tmprsadh
2170