-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
2757 lines (2274 loc) · 84.5 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# Edit this few lines to configure your ldap stuff
# to enable some additional for qmail-ldap stuff put it on the LDAPFLAGS line
#
# -DALTQUEUE to use a diffrent qmail-queue programm on runtime
# -DBIGBROTHER to use the control/bigbrother file to forward all mails comming
# from a specified account to another (swiss bigbrother law)
# -DBIGTODO to enable the big todo patch (this can be used together with
# EXTERNAL_TODO). Useful for servers with very many non-preprocessed mails
# -DBIND_8_COMPAT need if the compile fails building dns.c because of
# undeclared defines. This is necessary on MacOS X 10.3.
# -DCLEARTEXTPASSWD to use cleartext passwords (bad idea on production systems)
# -DDASH_EXT to enable the dash_ext patch for extended mail addresses
# -DDATA_COMPRESS to use the smtp on the fly DATA compression
# -DEXTERNAL_TODO to use the external high-performance todo processing (this
# avoids the silly qmail syndrome with high injection rates)
# -DIGNOREVERISIGN to disallow dns wildchar matches on gtlds, thanks verisign.
# -DQLDAP_CLUSTER for enabling cluster support
# -DQMQP_COMPRESS to use the QMQP on the fly compression (for clusters)
# -DQUOTATRASH to include the Trash in the quota calculation (normaly it is not)
# -DSMTPEXECCHECK to enable smtp DOS/Windows executable detection
# -DDOMAIN_ALIAS to enable domain aliasing support
#LDAPFLAGS=-DQLDAP_CLUSTER -DEXTERNAL_TODO -DDASH_EXT -DDATA_COMPRESS -DQMQP_COMPRESS -DSMTPEXECCHECK -DDOMAIN_ALIAS
# Perhaps you have different ldap libraries, change them here
LDAPLIBS=-L/usr/local/lib -lldap -llber
# and change the location of the include files here
LDAPINCLUDES=-I/usr/local/include
# on Slowaris you need -lresolv and probably a LD_RUN_PATH added like this:
#LDAPLIBS=-L/opt/OpenLDAP/lib -lldap -llber -lresolv -R/opt/OpenLDAP/lib
# for example on my Linux box I use:
#LDAPLIBS=-L/opt/OpenLDAP/lib -lldap -llber
# if you need a special include-directory for ldap headers enable this
#LDAPINCLUDES=-I/opt/OpenLDAP/include
# ZLIB needed for -DDATA_COMPRESS and -DQMQP_COMPRESS
#ZLIB=-lz
# or you installed zlib in a different path you can use something like this
#ZLIB=-L/opt/zlib/lib -lz
#ZINCLUDES=-I/opt/zlib/include
# TLS (SMTP encryption) in qmail-smtpd and qmail-remote, see TLS.readme
# You need OpenSSL for this
# use -DTLS_REMOTE to enable tls support in qmail-remote
# use -DTLS_SMTPD to enable tls support in qmail-smtpd
# use -DTLSDEBUG to enable additional tls debug information in qmail-remote
#TLS=-DTLS_REMOTE -DTLS_SMTPD
# Path to OpenSSL includes
#TLSINCLUDES=-I/usr/local/include
# Path to OpenSSL libraries
#TLSLIBS=-L/usr/local/lib -lssl -lcrypto
# Path to OpenSSL binary
#OPENSSLBIN=/usr/local/bin/openssl
#OPENSSLBIN=openssl
# to make the Netscape download progress bar work with qmail-pop3d
# uncomment the next line (allready done)
MNW=-DMAKE_NETSCAPE_WORK
# to enable the auto-maildir-make feature uncomment the next line
#MDIRMAKE=-DAUTOMAILDIRMAKE
# to enable the auto-homedir-make feature uncomment the next line
#HDIRMAKE=-DAUTOHOMEDIRMAKE
# on most systems we need this to make auth_pop and auth_imap
#SHADOWLIBS=-lcrypt
# OpenBSD and other Systems do not have libcrypt, so comment the line out
# if you get linking problems.
# To use shadow passwords under some Linux OS, uncomment the next two lines.
#SHADOWLIBS=-lcrypt -lshadow
#SHADOWOPTS=-DPW_SHADOW
# To use shadow passwords under Solaris, uncomment the SHADOWOPTS line.
# to enable the possibility to log and debug imap and pop uncoment the
# next line
#DEBUG=-DDEBUG
# WARNING: you need a NONE DEBUG auth_* to run with inetd
# for profiling ...
#INCTAI=../libtai-0.60
#LIBTAI=../libtai-0.60
# Just for me, make from time to time a backup
BACKUPPATH=/backup/qmail-backup/qmail-ldap.`date "+%Y%m%d-%H%M"`.tar
# STOP editing HERE !!!
# Don't edit Makefile! Use conf-* for configuration.
SHELL=/bin/sh
default: it ldap
ldap: qmail-quotawarn qmail-reply auth_pop auth_imap auth_smtp digest \
qmail-ldaplookup pbsadd pbscheck pbsdbd qmail-todo qmail-forward \
qmail-secretary qmail-group qmail-verify condwrite qmail-cdb \
qmail-imapd.run qmail-pbsdbd.run qmail-pop3d.run qmail-qmqpd.run \
qmail-smtpd.run qmail.run qmail-imapd-ssl.run qmail-pop3d-ssl.run \
Makefile.cdb-p
addresses.0: \
addresses.5
nroff -man addresses.5 > addresses.0
alloc.a: \
makelib alloc.o alloc_re.o
./makelib alloc.a alloc.o alloc_re.o
alloc.o: \
compile alloc.c alloc.h error.h
./compile alloc.c
alloc_re.o: \
compile alloc_re.c alloc.h byte.h
./compile alloc_re.c
auth_imap: \
load auth_imap.o auth_mod.o checkpassword.o passwd.o digest_md4.o \
digest_md5.o digest_rmd160.o digest_sha1.o base64.o read-ctrl.o getopt.a \
control.o dirmaker.o mailmaker.o qldap.a localdelivery.o locallookup.o \
pbsexec.o getln.a strerr.a substdio.a stralloc.a env.a wait.a \
dns.o ip.o ipalloc.o ipme.o alloc.a str.a case.a fs.a error.a timeoutconn.o \
timeoutread.o ndelay.a open.a sig.a prot.o auto_uids.o auto_qmail.o \
dns.lib socket.lib
./load auth_imap auth_mod.o checkpassword.o passwd.o digest_md4.o \
digest_md5.o digest_rmd160.o digest_sha1.o base64.o read-ctrl.o \
getopt.a control.o dirmaker.o mailmaker.o qldap.a localdelivery.o \
locallookup.o pbsexec.o getln.a strerr.a substdio.a \
stralloc.a env.a wait.a dns.o ip.o ipalloc.o ipme.o alloc.a str.a \
case.a fs.a error.a timeoutconn.o timeoutread.o ndelay.a open.a \
sig.a prot.o auto_uids.o auto_qmail.o $(LDAPLIBS) $(SHADOWLIBS) \
`cat dns.lib` `cat socket.lib`
auth_imap.o: \
compile auth_imap.c alloc.h byte.h env.h error.h exit.h fmt.h pbsexec.h \
qldap-debug.h qldap-errno.h qmail-ldap.h readwrite.h scan.h sgetopt.h \
sig.h str.h stralloc.h substdio.h timeoutread.h auth_mod.h
./compile $(LDAPFLAGS) $(DEBUG) auth_imap.c
auth_mod.o: \
compile auth_mod.c auth_mod.h checkpassword.h byte.h localdelivery.h \
locallookup.h output.h qldap.h qldap-debug.h qldap-errno.h stralloc.h \
read-ctrl.h dirmaker.h qldap-cluster.h select.h alloc.h
./compile $(LDAPFLAGS) $(DEBUG) $(HDIRMAKE) $(MDIRMAKE) auth_mod.c
auth_pop: \
load auth_pop.o auth_mod.o checkpassword.o passwd.o digest_md4.o \
digest_md5.o digest_rmd160.o digest_sha1.o base64.o read-ctrl.o getopt.a \
control.o dirmaker.o mailmaker.o qldap.a localdelivery.o locallookup.o \
pbsexec.o getln.a strerr.a substdio.a stralloc.a env.a wait.a \
dns.o ip.o ipalloc.o ipme.o alloc.a str.a case.a fs.a error.a timeoutconn.o \
timeoutread.o ndelay.a open.a prot.o auto_uids.o auto_qmail.o \
dns.lib socket.lib
./load auth_pop auth_mod.o checkpassword.o passwd.o digest_md4.o \
digest_md5.o digest_rmd160.o digest_sha1.o base64.o read-ctrl.o \
getopt.a control.o qldap.a dirmaker.o mailmaker.o localdelivery.o \
locallookup.o pbsexec.o getln.a strerr.a substdio.a \
stralloc.a env.a wait.a dns.o ip.o ipalloc.o ipme.o alloc.a str.a \
case.a fs.a error.a timeoutconn.o timeoutread.o ndelay.a open.a \
prot.o auto_uids.o auto_qmail.o $(LDAPLIBS) $(SHADOWLIBS) \
`cat dns.lib` `cat socket.lib`
auth_pop.o: \
compile auth_pop.c byte.h env.h error.h exit.h pbsexec.h qldap-debug.h \
qldap-errno.h qmail-ldap.h readwrite.h sgetopt.h str.h stralloc.h substdio.h \
timeoutread.h auth_mod.h
./compile $(LDAPFLAGS) $(DEBUG) auth_pop.c
auth_smtp: \
load auth_smtp.o checkpassword.o passwd.o digest_md4.o digest_md5.o \
digest_rmd160.o digest_sha1.o base64.o read-ctrl.o control.o qldap.a \
getln.a strerr.a substdio.a stralloc.a env.a alloc.a str.a \
case.a fs.a error.a open.a prot.o auto_uids.o auto_qmail.o
./load auth_smtp checkpassword.o passwd.o digest_md4.o \
digest_md5.o digest_rmd160.o digest_sha1.o base64.o read-ctrl.o \
control.o qldap.a getln.a strerr.a substdio.a stralloc.a \
env.a alloc.a str.a case.a fs.a error.a open.a prot.o auto_uids.o \
auto_qmail.o $(LDAPLIBS) $(SHADOWLIBS)
auth_smtp.o: \
compile auth_smtp.c byte.h env.h error.h exit.h output.h qldap.h \
qldap-debug.h qldap-errno.h qmail-ldap.h read-ctrl.h str.h stralloc.h \
substdio.h checkpassword.h auth_mod.h
./compile $(LDAPFLAGS) $(DEBUG) auth_smtp.c
auto-ccld.sh: \
conf-cc conf-ld warn-auto.sh
( cat warn-auto.sh; \
echo CC=\'`head -1 conf-cc`\'; \
echo LD=\'`head -1 conf-ld`\' \
) > auto-ccld.sh
auto-gid: \
load auto-gid.o substdio.a error.a str.a fs.a
./load auto-gid substdio.a error.a str.a fs.a
auto-gid.o: \
compile auto-gid.c subfd.h substdio.h substdio.h readwrite.h exit.h \
scan.h fmt.h
./compile auto-gid.c
auto-int: \
load auto-int.o substdio.a error.a str.a fs.a
./load auto-int substdio.a error.a str.a fs.a
auto-int.o: \
compile auto-int.c substdio.h readwrite.h exit.h scan.h fmt.h
./compile auto-int.c
auto-int8: \
load auto-int8.o substdio.a error.a str.a fs.a
./load auto-int8 substdio.a error.a str.a fs.a
auto-int8.o: \
compile auto-int8.c substdio.h readwrite.h exit.h scan.h fmt.h
./compile auto-int8.c
auto-str: \
load auto-str.o substdio.a error.a str.a
./load auto-str substdio.a error.a str.a
auto-str.o: \
compile auto-str.c substdio.h readwrite.h exit.h
./compile auto-str.c
auto-uid: \
load auto-uid.o substdio.a error.a str.a fs.a
./load auto-uid substdio.a error.a str.a fs.a
auto-uid.o: \
compile auto-uid.c subfd.h substdio.h substdio.h readwrite.h exit.h \
scan.h fmt.h
./compile auto-uid.c
auto_break.c: \
auto-str conf-break
./auto-str auto_break \
"`head -1 conf-break`" > auto_break.c
auto_break.o: \
compile auto_break.c
./compile auto_break.c
auto_patrn.c: \
auto-int8 conf-patrn
./auto-int8 auto_patrn `head -1 conf-patrn` > auto_patrn.c
auto_patrn.o: \
compile auto_patrn.c
./compile auto_patrn.c
auto_qmail.c: \
auto-str conf-qmail
./auto-str auto_qmail `head -1 conf-qmail` > auto_qmail.c
auto_qmail.o: \
compile auto_qmail.c
./compile auto_qmail.c
auto_spawn.c: \
auto-int conf-spawn
./auto-int auto_spawn `head -1 conf-spawn` > auto_spawn.c
auto_spawn.o: \
compile auto_spawn.c
./compile auto_spawn.c
auto_split.c: \
auto-int conf-split
./auto-int auto_split `head -1 conf-split` > auto_split.c
auto_split.o: \
compile auto_split.c
./compile auto_split.c
auto_uids.c: \
auto-uid auto-gid conf-users conf-groups
( ./auto-uid auto_uida `head -1 conf-users` \
&&./auto-uid auto_uidd `head -2 conf-users | tail -1` \
&&./auto-uid auto_uidl `head -3 conf-users | tail -1` \
&&./auto-uid auto_uido `head -4 conf-users | tail -1` \
&&./auto-uid auto_uidp `head -5 conf-users | tail -1` \
&&./auto-uid auto_uidq `head -6 conf-users | tail -1` \
&&./auto-uid auto_uidr `head -7 conf-users | tail -1` \
&&./auto-uid auto_uids `head -8 conf-users | tail -1` \
&&./auto-gid auto_gidq `head -1 conf-groups` \
&&./auto-gid auto_gidn `head -2 conf-groups | tail -1` \
) > auto_uids.c.tmp && mv auto_uids.c.tmp auto_uids.c
auto_uids.o: \
compile auto_uids.c
./compile auto_uids.c
auto_usera.c: \
auto-str conf-users
./auto-str auto_usera `head -1 conf-users` > auto_usera.c
auto_usera.o: \
compile auto_usera.c
./compile auto_usera.c
auto_userl.c: \
auto-str conf-users
./auto-str auto_userl `head -3 conf-users | tail -1` > auto_userl.c
auto_userl.o: \
compile auto_userl.c
./compile auto_userl.c
base64.o: \
compile base64.c base64.h str.h
./compile $(LDAPFLAGS) base64.c
binm1: \
binm1.sh conf-qmail
cat binm1.sh \
| sed s}QMAIL}"`head -1 conf-qmail`"}g \
> binm1
chmod 755 binm1
binm1+df: \
binm1+df.sh conf-qmail
cat binm1+df.sh \
| sed s}QMAIL}"`head -1 conf-qmail`"}g \
> binm1+df
chmod 755 binm1+df
binm2: \
binm2.sh conf-qmail
cat binm2.sh \
| sed s}QMAIL}"`head -1 conf-qmail`"}g \
> binm2
chmod 755 binm2
binm2+df: \
binm2+df.sh conf-qmail
cat binm2+df.sh \
| sed s}QMAIL}"`head -1 conf-qmail`"}g \
> binm2+df
chmod 755 binm2+df
binm3: \
binm3.sh conf-qmail
cat binm3.sh \
| sed s}QMAIL}"`head -1 conf-qmail`"}g \
> binm3
chmod 755 binm3
binm3+df: \
binm3+df.sh conf-qmail
cat binm3+df.sh \
| sed s}QMAIL}"`head -1 conf-qmail`"}g \
> binm3+df
chmod 755 binm3+df
bouncesaying: \
load bouncesaying.o strerr.a error.a substdio.a str.a wait.a
./load bouncesaying strerr.a error.a substdio.a str.a \
wait.a
bouncesaying.0: \
bouncesaying.1
nroff -man bouncesaying.1 > bouncesaying.0
bouncesaying.o: \
compile bouncesaying.c fork.h strerr.h error.h wait.h sig.h exit.h
./compile bouncesaying.c
byte_chr.o: \
compile byte_chr.c byte.h
./compile byte_chr.c
byte_copy.o: \
compile byte_copy.c byte.h
./compile byte_copy.c
byte_cr.o: \
compile byte_cr.c byte.h
./compile byte_cr.c
byte_diff.o: \
compile byte_diff.c byte.h
./compile byte_diff.c
byte_rchr.o: \
compile byte_rchr.c byte.h
./compile byte_rchr.c
byte_repl.o: \
compile byte_repl.c byte.h
./compile byte_repl.c
byte_zero.o: \
compile byte_zero.c byte.h
./compile byte_zero.c
case.a: \
makelib case_diffb.o case_diffs.o case_lowerb.o case_lowers.o \
case_startb.o case_starts.o
./makelib case.a case_diffb.o case_diffs.o case_lowerb.o \
case_lowers.o case_startb.o case_starts.o
case_diffb.o: \
compile case_diffb.c case.h
./compile case_diffb.c
case_diffs.o: \
compile case_diffs.c case.h
./compile case_diffs.c
case_lowerb.o: \
compile case_lowerb.c case.h
./compile case_lowerb.c
case_lowers.o: \
compile case_lowers.c case.h
./compile case_lowers.c
case_startb.o: \
compile case_startb.c case.h
./compile case_startb.c
case_starts.o: \
compile case_starts.c case.h
./compile case_starts.c
cdb.a: \
makelib cdb_hash.o cdb.o
./makelib cdb.a cdb_hash.o cdb.o
cdb.o: \
compile cdb.c cdb.h byte.h error.h seek.h uint32.h
./compile cdb.c
cdb_hash.o: \
compile cdb_hash.c cdb.h uint32.h
./compile cdb_hash.c
cdb_make.o: \
compile cdb_make.c cdb.h readwrite.h seek.h error.h alloc.h uint32.h
./compile cdb_make.c
cdbmake.a: \
makelib cdb_make.o cdb_hash.o
./makelib cdbmake.a cdb_make.o cdb_hash.o
check: \
it man ldap
./instcheck
check.o: \
compile check.c check.h str.h str_len.c
./compile $(LDAPFLAGS) check.c
checkpassword.o: \
compile checkpassword.c auth_mod.h auto_uids.h byte.h check.h env.h \
error.h fmt.h localdelivery.h passwd.h pbsexec.h prot.h \
qldap.h qldap-debug.h qldap-errno.h qmail-ldap.h scan.h str.h stralloc.h \
dns.h ipalloc.h ipme.h ndelay.h qldap-cluster.h readwrite.h select.h \
timeoutconn.h dirmaker.h mailmaker.h
./compile $(LDAPFLAGS) $(LDAPINCLUDES) $(DEBUG) checkpassword.c
chkshsgr: \
load chkshsgr.o
./load chkshsgr
chkshsgr.o: \
compile chkshsgr.c exit.h
./compile chkshsgr.c
chkspawn: \
load chkspawn.o substdio.a error.a str.a fs.a auto_spawn.o
./load chkspawn substdio.a error.a str.a fs.a auto_spawn.o
chkspawn.o: \
compile chkspawn.c substdio.h subfd.h substdio.h fmt.h select.h \
exit.h auto_spawn.h
./compile chkspawn.c
clean: \
TARGETS
rm -f `cat TARGETS`
coe.o: \
compile coe.c coe.h
./compile coe.c
commands.o: \
compile commands.c commands.h substdio.h stralloc.h gen_alloc.h str.h \
case.h
./compile commands.c
compile: \
make-compile warn-auto.sh systype
( cat warn-auto.sh; ./make-compile "`cat systype`" ) > \
compile
chmod 755 compile
condredirect: \
load condredirect.o qmail.o strerr.a fd.a sig.a wait.a seek.a env.a \
substdio.a error.a str.a fs.a auto_qmail.o
./load condredirect qmail.o strerr.a fd.a sig.a wait.a \
seek.a env.a substdio.a error.a str.a fs.a auto_qmail.o
condredirect.0: \
condredirect.1
nroff -man condredirect.1 > condredirect.0
condredirect.o: \
compile condredirect.c sig.h readwrite.h exit.h env.h error.h fork.h \
wait.h seek.h qmail.h substdio.h strerr.h substdio.h fmt.h
./compile condredirect.c
condwrite: \
load condwrite.o maildir++.o getln.a stralloc.a alloc.a env.a wait.a \
seek.a strerr.a substdio.a error.a gfrom.o str.a now.o fs.a mailmaker.o \
open.a sig.a lock.a auto_qmail.o
./load condwrite maildir++.o getln.a stralloc.a alloc.a env.a \
wait.a seek.a strerr.a substdio.a error.a gfrom.o str.a now.o \
fs.a mailmaker.o open.a sig.a lock.a auto_qmail.o
condwrite.o: \
compile condwrite.c auto_qmail.h byte.h env.h error.h fmt.h getln.h gfrom.h \
lock.h maildir++.h now.h open.h qmail-ldap.h seek.h sig.h str.h stralloc.h \
strerr.h subfd.h substdio.h wait.h mailmaker.h qldap-errno.h
./compile $(MDIRMAKE) condwrite.c
config: \
warn-auto.sh config.sh conf-qmail conf-break conf-split
cat warn-auto.sh config.sh \
| sed s}QMAIL}"`head -1 conf-qmail`"}g \
| sed s}BREAK}"`head -1 conf-break`"}g \
| sed s}SPLIT}"`head -1 conf-split`"}g \
> config
chmod 755 config
config-fast: \
warn-auto.sh config-fast.sh conf-qmail conf-break conf-split
cat warn-auto.sh config-fast.sh \
| sed s}QMAIL}"`head -1 conf-qmail`"}g \
| sed s}BREAK}"`head -1 conf-break`"}g \
| sed s}SPLIT}"`head -1 conf-split`"}g \
> config-fast
chmod 755 config-fast
constmap.o: \
compile constmap.c constmap.h alloc.h case.h
./compile constmap.c
control.o: \
compile control.c readwrite.h open.h getln.h stralloc.h gen_alloc.h \
substdio.h error.h control.h alloc.h scan.h
./compile control.c
date822fmt.o: \
compile date822fmt.c datetime.h fmt.h date822fmt.h
./compile date822fmt.c
datemail: \
warn-auto.sh datemail.sh conf-qmail conf-break conf-split
cat warn-auto.sh datemail.sh \
| sed s}QMAIL}"`head -1 conf-qmail`"}g \
| sed s}BREAK}"`head -1 conf-break`"}g \
| sed s}SPLIT}"`head -1 conf-split`"}g \
> datemail
chmod 755 datemail
datetime.a: \
makelib datetime.o datetime_un.o
./makelib datetime.a datetime.o datetime_un.o
datetime.o: \
compile datetime.c datetime.h
./compile datetime.c
datetime_un.o: \
compile datetime_un.c datetime.h
./compile datetime_un.c
digest: \
load digest.o passwd.o digest_md4.o digest_md5.o digest_rmd160.o \
digest_sha1.o base64.o qldap-debug.o output.o getopt.a strerr.a \
substdio.a case.a env.a stralloc.a str.a fs.a alloc.a error.a
./load digest passwd.o digest_md4.o digest_md5.o digest_rmd160.o \
digest_sha1.o base64.o qldap-debug.o output.o getopt.a strerr.a \
substdio.a case.a env.a stralloc.a str.a fs.a alloc.a error.a \
$(SHADOWLIBS)
digest.o: \
compile digest.c base64.h error.h passwd.h qldap-errno.h \
sgetopt.h stralloc.h
./compile $(LDAPFLAGS) digest.c
digest_md4.o: \
compile endian digest_md4.c byte.h digest_md4.h uint32.h
./compile $(LDAPFLAGS) `./endian` digest_md4.c
digest_md5.o: \
compile endian digest_md5.c byte.h digest_md5.h uint32.h
./compile $(LDAPFLAGS) `./endian` digest_md5.c
digest_rmd160.o: \
compile endian digest_rmd160.c byte.h digest_rmd160.h uint32.h
./compile $(LDAPFLAGS) `./endian` digest_rmd160.c
digest_sha1.o: \
compile endian digest_sha1.c byte.h digest_sha1.h uint32.h
./compile $(LDAPFLAGS) `./endian` digest_sha1.c
direntry.h: \
compile trydrent.c direntry.h1 direntry.h2
( ./compile trydrent.c >/dev/null 2>&1 \
&& cat direntry.h2 || cat direntry.h1 ) > direntry.h
rm -f trydrent.o
dirmaker.o: \
compile dirmaker.c dirmaker.h control.h qldap-debug.h qldap-errno.h \
stralloc.h wait.h
./compile $(HDIRMAKE) $(DEBUG) dirmaker.c
dns.lib: \
tryrsolv.c compile load socket.lib dns.o ipalloc.o ip.o stralloc.a \
alloc.a error.a fs.a str.a
( ( ./compile tryrsolv.c && ./load tryrsolv dns.o \
ipalloc.o ip.o stralloc.a alloc.a error.a fs.a str.a \
-lresolv `cat socket.lib` ) >/dev/null 2>&1 \
&& echo -lresolv || exit 0 ) > dns.lib
rm -f tryrsolv.o tryrsolv
dns.o: \
compile dns.c ip.h ipalloc.h ip.h gen_alloc.h fmt.h alloc.h str.h \
stralloc.h gen_alloc.h dns.h case.h
./compile $(LDAPFLAGS) dns.c
dnscname: \
load dnscname.o dns.o dnsdoe.o ip.o ipalloc.o stralloc.a alloc.a \
substdio.a error.a str.a fs.a dns.lib socket.lib
./load dnscname dns.o dnsdoe.o ip.o ipalloc.o stralloc.a \
alloc.a substdio.a error.a str.a fs.a `cat dns.lib` `cat \
socket.lib`
dnscname.o: \
compile dnscname.c substdio.h subfd.h substdio.h stralloc.h \
gen_alloc.h dns.h dnsdoe.h readwrite.h exit.h
./compile dnscname.c
dnsdoe.o: \
compile dnsdoe.c substdio.h subfd.h substdio.h exit.h dns.h dnsdoe.h
./compile dnsdoe.c
dnsfq: \
load dnsfq.o dns.o dnsdoe.o ip.o ipalloc.o stralloc.a alloc.a \
substdio.a error.a str.a fs.a dns.lib socket.lib
./load dnsfq dns.o dnsdoe.o ip.o ipalloc.o stralloc.a \
alloc.a substdio.a error.a str.a fs.a `cat dns.lib` `cat \
socket.lib`
dnsfq.o: \
compile dnsfq.c substdio.h subfd.h substdio.h stralloc.h gen_alloc.h \
dns.h dnsdoe.h ip.h ipalloc.h ip.h gen_alloc.h exit.h
./compile dnsfq.c
dnsip: \
load dnsip.o dns.o dnsdoe.o ip.o ipalloc.o stralloc.a alloc.a \
substdio.a error.a str.a fs.a dns.lib socket.lib
./load dnsip dns.o dnsdoe.o ip.o ipalloc.o stralloc.a \
alloc.a substdio.a error.a str.a fs.a `cat dns.lib` `cat \
socket.lib`
dnsip.o: \
compile dnsip.c substdio.h subfd.h substdio.h stralloc.h gen_alloc.h \
dns.h dnsdoe.h ip.h ipalloc.h ip.h gen_alloc.h exit.h
./compile dnsip.c
dnsmxip: \
load dnsmxip.o dns.o dnsdoe.o ip.o ipalloc.o now.o stralloc.a alloc.a \
substdio.a error.a str.a fs.a dns.lib socket.lib
./load dnsmxip dns.o dnsdoe.o ip.o ipalloc.o now.o \
stralloc.a alloc.a substdio.a error.a str.a fs.a `cat \
dns.lib` `cat socket.lib`
dnsmxip.o: \
compile dnsmxip.c substdio.h subfd.h substdio.h stralloc.h \
gen_alloc.h fmt.h dns.h dnsdoe.h ip.h ipalloc.h ip.h gen_alloc.h \
now.h datetime.h exit.h
./compile dnsmxip.c
dnsptr: \
load dnsptr.o dns.o dnsdoe.o ip.o ipalloc.o stralloc.a alloc.a \
substdio.a error.a str.a fs.a dns.lib socket.lib
./load dnsptr dns.o dnsdoe.o ip.o ipalloc.o stralloc.a \
alloc.a substdio.a error.a str.a fs.a `cat dns.lib` `cat \
socket.lib`
dnsptr.o: \
compile dnsptr.c substdio.h subfd.h substdio.h stralloc.h gen_alloc.h \
str.h scan.h dns.h dnsdoe.h ip.h exit.h
./compile dnsptr.c
dot-qmail.0: \
dot-qmail.5
nroff -man dot-qmail.5 > dot-qmail.0
dot-qmail.5: \
dot-qmail.9 conf-break conf-spawn
cat dot-qmail.9 \
| sed s}QMAILHOME}"`head -1 conf-qmail`"}g \
| sed s}BREAK}"`head -1 conf-break`"}g \
| sed s}SPAWN}"`head -1 conf-spawn`"}g \
> dot-qmail.5
elq: \
warn-auto.sh elq.sh conf-qmail conf-break conf-split
cat warn-auto.sh elq.sh \
| sed s}QMAIL}"`head -1 conf-qmail`"}g \
| sed s}BREAK}"`head -1 conf-break`"}g \
| sed s}SPLIT}"`head -1 conf-split`"}g \
> elq
chmod 755 elq
endian: \
load endian.o
./load endian
endian.o: \
compile endian.c
./compile $(LDAPFLAGS) endian.c
env.a: \
makelib env.o envread.o
./makelib env.a env.o envread.o
env.o: \
compile env.c str.h alloc.h env.h
./compile env.c
envelopes.0: \
envelopes.5
nroff -man envelopes.5 > envelopes.0
envread.o: \
compile envread.c env.h str.h
./compile envread.c
error.a: \
makelib error.o error_str.o error_temp.o
./makelib error.a error.o error_str.o error_temp.o
error.o: \
compile error.c error.h
./compile error.c
error_str.o: \
compile error_str.c error.h
./compile error_str.c
error_temp.o: \
compile error_temp.c error.h
./compile error_temp.c
except: \
load except.o strerr.a error.a substdio.a str.a wait.a
./load except strerr.a error.a substdio.a str.a wait.a
except.0: \
except.1
nroff -man except.1 > except.0
except.o: \
compile except.c fork.h strerr.h wait.h error.h exit.h
./compile except.c
execcheck.o: \
compile execcheck.c execcheck.h case.h env.h qmail.h str.h stralloc.h
./compile $(LDAPFLAGS) execcheck.c
fd.a: \
makelib fd_copy.o fd_move.o
./makelib fd.a fd_copy.o fd_move.o
fd_copy.o: \
compile fd_copy.c fd.h
./compile fd_copy.c
fd_move.o: \
compile fd_move.c fd.h
./compile fd_move.c
fifo.o: \
compile fifo.c hasmkffo.h fifo.h
./compile fifo.c
find-systype: \
find-systype.sh auto-ccld.sh
cat auto-ccld.sh find-systype.sh > find-systype
chmod 755 find-systype
fmt_str.o: \
compile fmt_str.c fmt.h
./compile fmt_str.c
fmt_strn.o: \
compile fmt_strn.c fmt.h
./compile fmt_strn.c
fmt_uint.o: \
compile fmt_uint.c fmt.h
./compile fmt_uint.c
fmt_uint0.o: \
compile fmt_uint0.c fmt.h
./compile fmt_uint0.c
fmt_ulong.o: \
compile fmt_ulong.c fmt.h
./compile fmt_ulong.c
fmtqfn.o: \
compile fmtqfn.c fmtqfn.h fmt.h auto_split.h
./compile fmtqfn.c
forgeries.0: \
forgeries.7
nroff -man forgeries.7 > forgeries.0
fork.h: \
compile load tryvfork.c fork.h1 fork.h2
( ( ./compile tryvfork.c && ./load tryvfork ) >/dev/null \
2>&1 \
&& cat fork.h2 || cat fork.h1 ) > fork.h
rm -f tryvfork.o tryvfork
forward: \
load forward.o qmail.o strerr.a alloc.a fd.a wait.a sig.a env.a \
substdio.a error.a str.a fs.a auto_qmail.o
./load forward qmail.o strerr.a alloc.a fd.a wait.a sig.a \
env.a substdio.a error.a str.a fs.a auto_qmail.o
forward.0: \
forward.1
nroff -man forward.1 > forward.0
forward.o: \
compile forward.c sig.h readwrite.h exit.h env.h qmail.h substdio.h \
strerr.h substdio.h fmt.h
./compile forward.c
fs.a: \
makelib fmt_str.o fmt_strn.o fmt_uint.o fmt_uint0.o fmt_ulong.o \
scan_ulong.o scan_8long.o
./makelib fs.a fmt_str.o fmt_strn.o fmt_uint.o fmt_uint0.o \
fmt_ulong.o scan_ulong.o scan_8long.o
getln.a: \
makelib getln.o getln2.o
./makelib getln.a getln.o getln2.o
getln.o: \
compile getln.c substdio.h byte.h stralloc.h gen_alloc.h getln.h
./compile getln.c
getln2.o: \
compile getln2.c substdio.h stralloc.h gen_alloc.h byte.h getln.h
./compile getln2.c
getopt.a: \
makelib subgetopt.o sgetopt.o
./makelib getopt.a subgetopt.o sgetopt.o
gfrom.o: \
compile gfrom.c str.h gfrom.h
./compile gfrom.c
hasflock.h: \
tryflock.c compile load
( ( ./compile tryflock.c && ./load tryflock ) >/dev/null \
2>&1 \
&& echo \#define HASFLOCK 1 || exit 0 ) > hasflock.h
rm -f tryflock.o tryflock
hasmkffo.h: \
trymkffo.c compile load
( ( ./compile trymkffo.c && ./load trymkffo ) >/dev/null \
2>&1 \
&& echo \#define HASMKFIFO 1 || exit 0 ) > hasmkffo.h
rm -f trymkffo.o trymkffo
hasnpbg1.h: \
trynpbg1.c compile load open.h open.a fifo.h fifo.o select.h
( ( ./compile trynpbg1.c \
&& ./load trynpbg1 fifo.o open.a && ./trynpbg1 ) \
>/dev/null 2>&1 \
&& echo \#define HASNAMEDPIPEBUG1 1 || exit 0 ) > \
hasnpbg1.h
rm -f trynpbg1.o trynpbg1
hassalen.h: \
trysalen.c compile
( ./compile trysalen.c >/dev/null 2>&1 \
&& echo \#define HASSALEN 1 || exit 0 ) > hassalen.h
rm -f trysalen.o
hassgact.h: \
trysgact.c compile load
( ( ./compile trysgact.c && ./load trysgact ) >/dev/null \
2>&1 \
&& echo \#define HASSIGACTION 1 || exit 0 ) > hassgact.h
rm -f trysgact.o trysgact
hassgprm.h: \
trysgprm.c compile load
( ( ./compile trysgprm.c && ./load trysgprm ) >/dev/null \
2>&1 \
&& echo \#define HASSIGPROCMASK 1 || exit 0 ) > hassgprm.h
rm -f trysgprm.o trysgprm
hasshsgr.h: \
chkshsgr warn-shsgr tryshsgr.c compile load
./chkshsgr || ( cat warn-shsgr; exit 1 )
( ( ./compile tryshsgr.c \
&& ./load tryshsgr && ./tryshsgr ) >/dev/null 2>&1 \
&& echo \#define HASSHORTSETGROUPS 1 || exit 0 ) > \
hasshsgr.h
rm -f tryshsgr.o tryshsgr
haswaitp.h: \
trywaitp.c compile load
( ( ./compile trywaitp.c && ./load trywaitp ) >/dev/null \
2>&1 \
&& echo \#define HASWAITPID 1 || exit 0 ) > haswaitp.h
rm -f trywaitp.o trywaitp
headerbody.o: \
compile headerbody.c stralloc.h gen_alloc.h substdio.h getln.h \
hfield.h headerbody.h
./compile headerbody.c
hfield.o: \
compile hfield.c hfield.h
./compile hfield.c
hier.o: \
compile hier.c auto_qmail.h auto_split.h auto_uids.h fmt.h fifo.h
./compile $(LDAPFLAGS) $(DEBUG) hier.c
home: \
home.sh conf-qmail
cat home.sh \
| sed s}QMAIL}"`head -1 conf-qmail`"}g \
> home
chmod 755 home
home+df: \
home+df.sh conf-qmail
cat home+df.sh \
| sed s}QMAIL}"`head -1 conf-qmail`"}g \
> home+df
chmod 755 home+df
hostname: \
load hostname.o substdio.a error.a str.a dns.lib socket.lib
./load hostname substdio.a error.a str.a `cat dns.lib` \
`cat socket.lib`
hostname.o: \
compile hostname.c substdio.h subfd.h substdio.h readwrite.h exit.h
./compile hostname.c
idedit: \
load idedit.o strerr.a substdio.a error.a str.a fs.a wait.a open.a \
seek.a
./load idedit strerr.a substdio.a error.a str.a fs.a \
wait.a open.a seek.a
idedit.o: \
compile idedit.c readwrite.h exit.h scan.h fmt.h strerr.h open.h \
seek.h fork.h
./compile idedit.c
install: \
load install.o fifo.o hier.o auto_qmail.o auto_split.o auto_uids.o \
auto_userl.o strerr.a substdio.a open.a error.a str.a fs.a
./load install fifo.o hier.o auto_qmail.o auto_split.o \
auto_uids.o auto_userl.o strerr.a substdio.a open.a error.a \
str.a fs.a
install-big: \
load install-big.o fifo.o install.o auto_qmail.o auto_split.o \
auto_uids.o auto_userl.o strerr.a substdio.a open.a error.a str.a fs.a
./load install-big fifo.o install.o auto_qmail.o \
auto_split.o auto_uids.o auto_userl.o strerr.a substdio.a \
open.a error.a str.a fs.a
install-big.o: \
compile install-big.c auto_qmail.h auto_split.h auto_uids.h fmt.h \
fifo.h
./compile $(LDAPFLAGS) $(DEBUG) install-big.c
install.o: \
compile install.c substdio.h strerr.h error.h open.h readwrite.h \