forked from gnb/cyrus-imapd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
843 lines (724 loc) · 36.9 KB
/
Makefile.am
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
#
# @configure_input@
#
# Copyright (c) 1994-2008 Carnegie Mellon University. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
#
# 3. The name "Carnegie Mellon University" must not be used to
# endorse or promote products derived from this software without
# prior written permission. For permission or any legal
# details, please contact
# Carnegie Mellon University
# Center for Technology Transfer and Enterprise Creation
# 4615 Forbes Avenue
# Suite 302
# Pittsburgh, PA 15213
# (412) 268-7393, fax: (412) 268-7395
#
# 4. Redistributions of any form whatsoever must retain the following
# acknowledgment:
# "This product includes software developed by Computing Services
# at Carnegie Mellon University (http://www.cmu.edu/computing/)."
#
# CARNEGIE MELLON UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO
# THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
# AND FITNESS, IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY BE LIABLE
# FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
# AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
# OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#
ACLOCAL_AMFLAGS = -I cmulocal
AM_CFLAGS = @PERL_CCCDLFLAGS@ $(COV_CFLAGS)
AM_CPPFLAGS = $(COM_ERR_CPPFLAGS) \
-I${top_builddir} -I${top_builddir}/lib \
-I${top_srcdir} -I${top_srcdir}/lib \
${DEFS} ${LOCALDEFS} $(SASLFLAGS) $(SSL_CPPFLAGS)
if HAVE_LDAP
AM_CPPFLAGS += $(LDAP_CPPFLAGS)
endif
AM_LDFLAGS = $(COV_LDFLAGS)
BUILT_SOURCES = xversion.h lib/imapopts.c
MAINTAINERCLEANFILES = \
doc/murder.png doc/netnews.png \
imap/imap_err.h imap/lmtpstats.h imap/mupdate_err.h imap/nntp_err.h imap/pushstats.h \
lib/chartable.c lib/imapopts.h \
doc/man/cyradm.1.html man/imapd.conf.5 man/sieveshell.1 doc/man/sieveshell.1.html \
sieve/addr.h sieve/sieve.h sieve/sieve_err.h
SUBDIRS = .
DIST_SUBDIRS = .
dist_sysconf_DATA =
check_LIBRARIES =
noinst_LIBRARIES =
lib_LIBRARIES = lib/libcyrus.a lib/libcyrus_min.a
noinst_PROGRAMS = doc/text/htmlstrip
check_PROGRAMS =
service_PROGRAMS =
CLEANFILES =
if COM_ERR
BUILT_SOURCES += com_err/et/compile_et
noinst_LIBRARIES += com_err/et/libcom_err.a
endif
bin_PROGRAMS = imtest/imtest
if SERVER
BUILT_SOURCES += imap/imap_err.c imap/mupdate_err.c imap/nntp_err.c \
imap/lmtpstats.c imap/pushstats.c imap/rfc822_header.c \
imap/rfc822_header.h
noinst_LIBRARIES += imap/libimap.a
service_PROGRAMS += imap/arbitron imap/chk_cyrus imap/ctl_cyrusdb \
imap/ctl_deliver imap/ctl_mboxlist imap/cvt_cyrusdb imap/cyr_df \
imap/cyrdump imap/cyr_dbtool imap/cyr_expire imap/cyr_info \
imap/cyr_sequence imap/cyr_synclog imap/cyr_userseen imap/deliver
if NNTPD
service_PROGRAMS += imap/fetchnews
endif
service_PROGRAMS += imap/fud
if IDLED
service_PROGRAMS += imap/idled
endif
service_PROGRAMS += imap/imapd imap/ipurge imap/lmtpd imap/mbexamine \
imap/mbpath imap/mbtool
if MURDER
service_PROGRAMS += imap/mupdate
endif
if NNTPD
service_PROGRAMS += imap/nntpd
endif
service_PROGRAMS += imap/pop3d imap/quota imap/reconstruct imap/smmapd \
imap/squatter
if REPLICATION
service_PROGRAMS += imap/sync_client imap/sync_reset imap/sync_server
endif
if HAVE_SSL
service_PROGRAMS += imap/tls_prune
endif
service_PROGRAMS += imap/unexpunge master/master
endif
if CMULOCAL
dist_sysconf_DATA += depot/rc.local.imap depot/rc.local.ptclient
service_PROGRAMS += netnews/remotepurge
endif
if SIEVE
if SERVER
check_PROGRAMS += notifyd/notifytest
service_PROGRAMS += notifyd/notifyd
endif
endif
if PTCLIENT
service_PROGRAMS += ptclient/ptdump ptclient/ptexpire ptclient/ptloader
# ptclient/ptextract
endif
if PERL
SUBDIRS += perl/annotator perl/imap
endif
if SIEVE
if PERL
SUBDIRS += perl/sieve/managesieve
noinst_LIBRARIES += perl/sieve/lib/libisieve.a
endif
BUILT_SOURCES += sieve/addr.c sieve/sieve.c sieve/sieve_err.c
noinst_LIBRARIES += sieve/libsieve.a
check_PROGRAMS += sieve/test
service_PROGRAMS += sieve/sievec sieve/sieved
if SERVER
service_PROGRAMS += timsieved/timsieved
endif
endif
EXTRA_DIST = COPYRIGHT README.andrew SMakefile xversion.h \
com_err/et/et_c.awk com_err/et/et_h.awk \
com_err/et/test1.et com_err/et/test2.et com_err/et/test_et.c \
contrib/drac_auth.patch contrib/sieve-spamasssassin contrib/fud-client.c contrib/deliver-notify-zephyr.patch contrib/add-cyrus-user contrib/README contrib/cyrus-graphtools.1.0 contrib/cyrus-graphtools.1.0/cgi-bin/cyrus_master.pl contrib/cyrus-graphtools.1.0/cgi-bin/graph_cyrus_db.pl contrib/cyrus-graphtools.1.0/cgi-bin/graph_cyrus_db-sum.pl contrib/cyrus-graphtools.1.0/html contrib/cyrus-graphtools.1.0/html/index.html contrib/cyrus-graphtools.1.0/README contrib/cyrus-graphtools.1.0/script contrib/cyrus-graphtools.1.0/script/cyrus.pl contrib/cyrus-graphtools.1.0/script/run contrib/cyrus-graphtools.1.0/script/cyrusrc contrib/notify_unix/notify contrib/notify_unix/net-server-prefork-0.01.tgz contrib/notify_unix/README contrib/notify_unix/sql_notify.pl contrib/notify_unix/simple_notify.pl contrib/squatrunner.pl contrib/mupdate-test.pl contrib/squatrunner.txt \
cunit/cacert.pem cunit/cert.pem cunit/cunit.pl cunit/cunit-to-junit.pl cunit/key.pem cunit/vg.supp \
doc \
imap/imap_err.et imap/mupdate_err.et imap/nntp_err.et imap/rfc822_header.st \
lib/charset/aliases.txt lib/charset/big5.t \
lib/charset/gb2312.t lib/charset/iso-2022-jp.t \
lib/charset/iso-2022-kr.t lib/charset/iso-8859-10.t \
lib/charset/iso-8859-11.t lib/charset/iso-8859-13.t \
lib/charset/iso-8859-14.t lib/charset/iso-8859-15.t \
lib/charset/iso-8859-16.t lib/charset/iso-8859-1.t \
lib/charset/iso-8859-2.t lib/charset/iso-8859-3.t \
lib/charset/iso-8859-4.t lib/charset/iso-8859-5.t \
lib/charset/iso-8859-6.t lib/charset/iso-8859-7.t \
lib/charset/iso-8859-8.t lib/charset/iso-8859-9.t \
lib/charset/koi8-r.t lib/charset/UnicodeData.txt \
lib/charset/unifix.txt lib/charset/us-ascii.t \
lib/charset/windows-1250.t lib/charset/windows-1251.t \
lib/charset/windows-1252.t lib/charset/windows-1255.t \
lib/charset/windows-1256.t lib/test/cyrusdb.c lib/test/cyrusdb.INPUT \
lib/test/cyrusdblong.INPUT lib/test/cyrusdblong.OUTPUT \
lib/test/cyrusdb.OUTPUT lib/test/cyrusdbtxn.INPUT \
lib/test/cyrusdbtxn.OUTPUT lib/test/pool.c lib/test/rnddb.c \
lib/test/testglob2.c \
master/CYRUS-MASTER.mib master/conf/cmu-backend.conf master/conf/cmu-frontend.conf master/conf/normal.conf master/conf/prefork.conf master/conf/small.conf master/README \
netnews/inn.diffs \
perl/annotator/Daemon.pm perl/annotator/Makefile.PL.in perl/annotator/MANIFEST perl/annotator/Message.pm perl/annotator/README \
perl/imap/Changes perl/imap/cyradm.sh perl/imap/cyrperl.h perl/imap/Cyrus/Shell.pm perl/imap/examples/auditmbox.pl perl/imap/examples/imapcollate.pl perl/imap/examples/imapdu.pl perl/imap/examples/test-imsp.pl perl/imap/IMAP/Admin.pm perl/imap/IMAP/IMSP.pm perl/imap/IMAP/Shell.pm perl/imap/IMAP.pm perl/imap/IMAP.xs perl/imap/Makefile.PL.in perl/imap/MANIFEST perl/imap/README perl/imap/t/01-imclient.t perl/imap/t/02-admin.t perl/imap/typemap perl/imap/xsutil.c \
perl/sieve/managesieve/Makefile.PL.in perl/sieve/managesieve/managesieve.h perl/sieve/managesieve/managesieve.pm perl/sieve/managesieve/managesieve.xs perl/sieve/managesieve/MANIFEST perl/sieve/managesieve/typemap \
ptclient/README ptclient/test.c ptclient/test2.c \
sieve/addr.h sieve/sieve.h sieve/sieve_err.et sieve/tests/testExtension sieve/tests/testExtension/uberExtensionTestScript.key sieve/tests/testExtension/testm sieve/tests/testExtension/testm/uetest-envelope sieve/tests/testExtension/testm/uetest-asub sieve/tests/testExtension/testm/uetest-areg sieve/tests/testExtension/testm/uetest-count sieve/tests/testExtension/testm/uetest-value sieve/tests/testExtension/testm/uetest-hreg sieve/tests/testExtension/serverm sieve/tests/testExtension/serverm/uetmail-hreg sieve/tests/testExtension/serverm/uetmail-value sieve/tests/testExtension/serverm/uetmail-count2 sieve/tests/testExtension/serverm/uetmail-envelope sieve/tests/testExtension/serverm/uetmail-asub sieve/tests/testExtension/serverm/uetmail-value2 sieve/tests/testExtension/serverm/uetmail-areg sieve/tests/testExtension/serverm/uetmail-count sieve/tests/testExtension/uberExtensionTestScript.s sieve/tests/README sieve/tests/action sieve/tests/action/testm sieve/tests/action/testm/uatest-keep sieve/tests/action/testm/uatest-redirect sieve/tests/action/testm/uatest-discard sieve/tests/action/testm/uatest-stop2 sieve/tests/action/testm/uatest-stop sieve/tests/action/serverm sieve/tests/action/serverm/uamail-stop2 sieve/tests/action/serverm/uamail-redirect sieve/tests/action/serverm/uamail-stop sieve/tests/action/serverm/uamail-keep sieve/tests/action/serverm/uamail-discard sieve/tests/action/uberActionScript.key sieve/tests/action/uberActionScript.s sieve/tests/test sieve/tests/test/uberTestScript.key sieve/tests/test/testm sieve/tests/test/testm/utest-header sieve/tests/test/testm/utest-address sieve/tests/test/serverm sieve/tests/test/serverm/utmail-address sieve/tests/test/serverm/utmail-header sieve/tests/test/uberTestScript.s sieve/tests/actionExtensions sieve/tests/actionExtensions/uberExtensionActionScript.s sieve/tests/actionExtensions/testm sieve/tests/actionExtensions/testm/ueatest-flag4 sieve/tests/actionExtensions/testm/ueatest-flag2 sieve/tests/actionExtensions/testm/ueatest-fileinto sieve/tests/actionExtensions/testm/ueatest-denotify sieve/tests/actionExtensions/testm/ueatest-vacation sieve/tests/actionExtensions/testm/ueatest-reject sieve/tests/actionExtensions/testm/ueatest-mark sieve/tests/actionExtensions/testm/ueatest-denotify2 sieve/tests/actionExtensions/testm/ueatest-flag5 sieve/tests/actionExtensions/testm/ueatest-notify2 sieve/tests/actionExtensions/testm/ueatest-notify sieve/tests/actionExtensions/testm/ueatest-flag1 sieve/tests/actionExtensions/testm/ueatest-flag3 sieve/tests/actionExtensions/testm/ueatest-unmark sieve/tests/actionExtensions/uberExtensionActionScript.key sieve/tests/actionExtensions/serverm sieve/tests/actionExtensions/serverm/ueamail-flag4 sieve/tests/actionExtensions/serverm/ueamail-denotify sieve/tests/actionExtensions/serverm/ueamail-mark sieve/tests/actionExtensions/serverm/ueamail-denotify2 sieve/tests/actionExtensions/serverm/ueamail-flag2 sieve/tests/actionExtensions/serverm/ueamail-unmark sieve/tests/actionExtensions/serverm/ueamail-reject sieve/tests/actionExtensions/serverm/ueamail-flag3 sieve/tests/actionExtensions/serverm/ueamail-fileinto sieve/tests/actionExtensions/serverm/ueamail-flag1 sieve/tests/actionExtensions/serverm/ueamail-notify sieve/tests/actionExtensions/serverm/ueamail-flag5 sieve/tests/actionExtensions/serverm/ueamail-notify2 sieve/tests/actionExtensions/serverm/ueamail-vacation \
timsieved/TODO
TEXINFO_TEX = com_err/et/texinfo.tex
EXTRA_SCRIPTS = com_err/et/compile_et.sh com_err/et/config_script \
lib/imapoptions lib/mkchartable.pl lib/test/run \
perl/sieve/scripts/installsieve.pl perl/sieve/scripts/sieveshell.pl \
tools/arbitronsort.pl tools/compile_st.pl tools/config2header tools/config2man tools/convert-sieve.pl tools/dohash tools/masssievec tools/migrate-metadata tools/mkimap tools/mknewsgroups tools/mupdate-loadgen.pl tools/rehash tools/translatesieve tools/undohash tools/upgradesieve \
snmp/snmpgen \
autobuild.sh
noinst_MAN = com_err/et/com_err.3 com_err/et/compile_et.1
noinst_TEXINFOS = com_err/et/com_err.texinfo
com_err_et_libcom_err_a_SOURCES = com_err/et/com_err.c com_err/et/com_err.h \
com_err/et/error_message.c com_err/et/error_table.h \
com_err/et/et_name.c com_err/et/init_et.c com_err/et/internal.h \
com_err/et/mit-sipb-copyright.h
com_err/et/compile_et: com_err/et/compile_et.sh com_err/et/config_script \
config.h
@${top_srcdir}/com_err/et/config_script ${top_srcdir}/com_err/et/compile_et.sh ${AWK} ${SED} > $@
@chmod 755 $@
# ---- Libraries ----
# BASIC is the libraries that every Cyrus program (except master) will
# need to link with.
#
# Note that several places in the code use -lcrypto, e.g. for SHA1 or
# MD5 algorithms, without needing SSL. Currently we have no way of
# minimally linking such code.
LD_BASIC_FLAGS = $(SSL_LDFLAGS)
LD_BASIC_ADD = lib/libcyrus.a lib/libcyrus_min.a $(LIB_RT) ${LIB_SASL} $(SSL_LDADD) ${LIBS}
# UTILITY is the libraries that utility programs which use Cyrus'
# mailbox and message handling code need to link with.
LD_UTILITY_FLAGS = $(LD_BASIC_FLAGS)
LD_UTILITY_ADD = imap/libimap.a $(LD_BASIC_ADD) $(COM_ERR_LIBS) $(LIB_UUID)
# SERVER is the libraries that network-facing servers need to link with
#
# Note that the code is horribly intertwingled e.g. in imap/global.c
# so that even utilities which never open a socket need to link against
# the SASL library.
LD_SERVER_FLAGS = $(LD_UTILITY_FLAGS)
LD_SERVER_ADD = $(LD_UTILITY_ADD) $(LIB_WRAP)
# ----
if CUNIT
CUNIT_PROJECT = cunit/default.cunit
BUILT_SOURCES += cunit/registers.h $(CUNIT_PROJECT)
CLEANFILES += cunit/registers.h $(CUNIT_PROJECT)
check_PROGRAMS += cunit/unit
cunit_FRAMEWORK = \
cunit/unit.c cunit/cunit.h \
cunit/syslog.c cunit/cunit-syslog.h \
cunit/timeout.c cunit/timeout.h
cunit_TESTS = \
cunit/annotate.testc \
cunit/backend.testc \
cunit/binhex.testc \
cunit/buf.testc \
cunit/charset.testc \
cunit/crc32.testc \
cunit/db.testc \
cunit/dlist.testc \
cunit/duplicate.testc \
cunit/getxstring.testc \
cunit/glob.testc \
cunit/guid.testc \
cunit/hash.testc \
cunit/imapurl.testc \
cunit/mboxname.testc \
cunit/md5.testc \
cunit/message.testc \
cunit/msgid.testc \
cunit/parseaddr.testc \
cunit/parse.testc \
cunit/prot.testc \
cunit/ptrarray.testc \
cunit/quota.testc
if SIEVE
cunit_TESTS += cunit/sieve.testc
endif
cunit_TESTS += \
cunit/spool.testc \
cunit/squat.testc \
cunit/strarray.testc \
cunit/strconcat.testc \
cunit/times.testc \
cunit/tok.testc
cunit_unit_SOURCES = $(cunit_FRAMEWORK) $(cunit_TESTS) \
imap/mutex_fake.c imap/spool.c
cunit_unit_LDADD =
if SIEVE
cunit_unit_LDADD += sieve/libsieve.a
endif
cunit_unit_LDADD += $(LD_UTILITY_ADD) -lcunit
cunit_unit_LDFLAGS = $(LD_UTILITY_FLAGS)
CUNIT_PL = cunit/cunit.pl --project $(CUNIT_PROJECT)
.testc.o:
$(CUNIT_PL) --generate-wrapper $<
$(COMPILE) -c -o $@ $<-cunit.c
$(RM) $<-cunit.c
$(CUNIT_PROJECT):
$(RM) $@
$(CUNIT_PL) --add-sources $(cunit_TESTS)
cunit/registers.h: $(CUNIT_PROJECT)
$(CUNIT_PL) --generate-register-function $@
# To run under Valgrind, do: make VG=1 check
VALGRIND = valgrind --tool=memcheck --leak-check=full --suppressions=vg.supp
check-local:
@echo "Running unit tests"
@vg= ; test -z "$$VG" || vg="$(VALGRIND)" ;\
cd cunit ;\
$$vg ./unit -x ;\
$(RM) -rf reports ; mkdir reports ; ./cunit-to-junit.pl
endif
doc_text_htmlstrip_SOURCE = doc/text/htmlstrip.c
includedir=@includedir@/cyrus
include_HEADERS = lib/acl.h lib/assert.h lib/auth.h lib/auth_pts.h \
lib/bsearch.h lib/charset.h lib/chartable.h lib/crc32.h \
lib/cyr_lock.h lib/cyrusdb.h lib/exitcodes.h lib/glob.h lib/gmtoff.h \
lib/hash.h lib/imapopts.h lib/imapurl.h lib/imclient.h lib/imparse.h \
lib/iostat.h lib/iptostring.h lib/libcyr_cfg.h lib/lsort.h \
lib/map.h lib/mappedfile.h lib/mkgmtime.h lib/mpool.h lib/nonblock.h \
lib/parseaddr.h lib/retry.h lib/rfc822date.h lib/signals.h \
lib/strhash.h lib/stristr.h lib/sysexits.h lib/times.h lib/tok.h \
lib/wildmat.h lib/xmalloc.h
noinst_HEADERS = lib/byteorder64.h lib/gai.h lib/libconfig.h lib/md5.h \
lib/prot.h lib/ptrarray.h lib/strarray.h lib/util.h lib/xstrlcat.h \
lib/xstrlcpy.h
imap_arbitron_SOURCES = imap/arbitron.c imap/cli_fatal.c imap/mutex_fake.c
imap_arbitron_LDFLAGS = $(LD_UTILITY_FLAGS)
imap_arbitron_LDADD = $(LD_UTILITY_ADD)
imap_chk_cyrus_SOURCES = imap/chk_cyrus.c imap/cli_fatal.c imap/mutex_fake.c
imap_chk_cyrus_LDFLAGS = $(LD_UTILITY_FLAGS)
imap_chk_cyrus_LDADD = $(LD_UTILITY_ADD)
imap_ctl_cyrusdb_SOURCES = imap/cli_fatal.c imap/ctl_cyrusdb.c imap/mutex_fake.c
imap_ctl_cyrusdb_LDFLAGS = $(LD_UTILITY_FLAGS)
imap_ctl_cyrusdb_LDADD = $(LD_UTILITY_ADD)
imap_ctl_deliver_SOURCES = imap/cli_fatal.c imap/ctl_deliver.c imap/mutex_fake.c
imap_ctl_deliver_LDFLAGS = $(LD_UTILITY_FLAGS)
imap_ctl_deliver_LDADD = $(LD_UTILITY_ADD)
imap_ctl_mboxlist_SOURCES = imap/cli_fatal.c imap/ctl_mboxlist.c imap/mutex_fake.c
imap_ctl_mboxlist_LDFLAGS = $(LD_UTILITY_FLAGS)
imap_ctl_mboxlist_LDADD = $(LD_UTILITY_ADD)
imap_cvt_cyrusdb_SOURCES = imap/cli_fatal.c imap/cvt_cyrusdb.c imap/mutex_fake.c
imap_cvt_cyrusdb_LDFLAGS = $(LD_UTILITY_FLAGS)
imap_cvt_cyrusdb_LDADD = $(LD_UTILITY_ADD)
imap_cyrdump_SOURCES = imap/cli_fatal.c imap/cyrdump.c imap/index.c imap/mutex_fake.c
imap_cyrdump_LDFLAGS = $(LD_UTILITY_FLAGS)
imap_cyrdump_LDADD = $(LD_UTILITY_ADD)
imap_cyr_dbtool_SOURCES = imap/cli_fatal.c imap/cyr_dbtool.c imap/mutex_fake.c
imap_cyr_dbtool_LDFLAGS = $(LD_UTILITY_FLAGS)
imap_cyr_dbtool_LDADD = $(LD_UTILITY_ADD)
imap_cyr_df_SOURCES = imap/cli_fatal.c imap/cyr_df.c imap/mutex_fake.c
imap_cyr_df_LDFLAGS = $(LD_UTILITY_FLAGS)
imap_cyr_df_LDADD = $(LD_UTILITY_ADD)
imap_cyr_expire_SOURCES = imap/cli_fatal.c imap/cyr_expire.c imap/mutex_fake.c
imap_cyr_expire_LDFLAGS = $(LD_UTILITY_FLAGS)
imap_cyr_expire_LDADD = $(LD_UTILITY_ADD)
imap_cyr_info_SOURCES = imap/cli_fatal.c imap/cyr_info.c imap/mutex_fake.c master/masterconf.c
imap_cyr_info_LDFLAGS = $(LD_UTILITY_FLAGS)
imap_cyr_info_LDADD = $(LD_UTILITY_ADD)
imap_cyr_sequence_SOURCES = imap/cli_fatal.c imap/cyr_sequence.c imap/mutex_fake.c
imap_cyr_sequence_LDFLAGS = $(LD_UTILITY_FLAGS)
imap_cyr_sequence_LDADD = $(LD_UTILITY_ADD)
imap_cyr_synclog_SOURCES = imap/cli_fatal.c imap/cyr_synclog.c imap/mutex_fake.c
imap_cyr_synclog_LDFLAGS = $(LD_UTILITY_FLAGS)
imap_cyr_synclog_LDADD = $(LD_UTILITY_ADD)
imap_cyr_userseen_SOURCES = imap/cli_fatal.c imap/cyr_userseen.c imap/mutex_fake.c
imap_cyr_userseen_LDFLAGS = $(LD_UTILITY_FLAGS)
imap_cyr_userseen_LDADD = $(LD_UTILITY_ADD)
#imap_cyr_virusscan_SOURCES = imap/cli_fatal.c imap/cyr_virusscan.c imap/index.c imap/mutex_fake.c
#imap_cyr_virusscan_LDFLAGS = $(LD_UTILITY_FLAGS)
#imap_cyr_virusscan_LDADD = $(LD_UTILITY_ADD) -lclamav
imap_deliver_SOURCES = imap/deliver.c imap/lmtpengine.c imap/lmtpstats.c imap/mutex_fake.c imap/proxy.c imap/spool.c
imap_deliver_LDFLAGS = $(LD_UTILITY_FLAGS)
imap_deliver_LDADD = $(LD_UTILITY_ADD)
imap_fetchnews_SOURCES = imap/cli_fatal.c imap/fetchnews.c imap/mutex_fake.c
imap_fetchnews_LDFLAGS = $(LD_UTILITY_FLAGS)
imap_fetchnews_LDADD = $(LD_UTILITY_ADD)
imap_fud_SOURCES = imap/fud.c imap/mutex_fake.c master/service.c
imap_fud_LDFLAGS = $(LD_SERVER_FLAGS)
imap_fud_LDADD = $(LD_SERVER_ADD)
imap_idled_SOURCES = imap/idled.c imap/mutex_fake.c
imap_idled_LDFLAGS = $(LD_UTILITY_FLAGS)
imap_idled_LDADD = $(LD_UTILITY_ADD)
imap_imapd_SOURCES = imap/imap_proxy.c imap/imap_proxy.h imap/imapd.c imap/imapd.h imap/index.c imap/mutex_fake.c imap/pushstats.c imap/pushstats.h imap/proxy.c master/service.c
imap_imapd_LDFLAGS = $(LD_SERVER_FLAGS)
imap_imapd_LDADD = $(LD_SERVER_ADD)
imap_ipurge_SOURCES = imap/cli_fatal.c imap/ipurge.c imap/mutex_fake.c
imap_ipurge_LDFLAGS = $(LD_UTILITY_FLAGS)
imap_ipurge_LDADD = $(LD_UTILITY_ADD)
nodist_imap_libimap_a_SOURCES = imap/imap_err.c imap/mupdate_err.c imap/mupdate_err.h
imap_libimap_a_SOURCES = imap/annotate.c imap/annotate.h imap/append.c \
imap/append.h imap/backend.c imap/backend.h imap/convert_code.c \
imap/convert_code.h imap/dlist.c imap/dlist.h imap/duplicate.c \
imap/duplicate.h imap/global.c imap/global.h imap/idle.c imap/idle.h \
imap/idlemsg.c imap/idlemsg.h imap/imapparse.c imap/index.h \
imap/mailbox.c imap/mailbox.h imap/mbdump.c imap/mbdump.h \
imap/mboxkey.c imap/mboxkey.h imap/mboxlist.c imap/mboxlist.h \
imap/mboxname.c imap/mboxname.h imap/message_guid.c \
imap/message_guid.h imap/message.c imap/message.h \
imap/mupdate-client.c imap/mupdate-client.h imap/mutex.h \
imap/notify.c imap/notify.h imap/proc.c imap/proc.h imap/protocol.h \
imap/quota_db.c imap/rfc822_header.c imap/rfc822_header.h \
imap/saslclient.c imap/saslclient.h imap/saslserver.c \
imap/search_engines.c imap/search_engines.h imap/seen.h \
imap/seen_db.c imap/sequence.c imap/sequence.h imap/setproctitle.c \
imap/squat.c imap/squat.h imap/squat_internal.c imap/squat_internal.h \
imap/statuscache.h imap/statuscache_db.c imap/sync_log.c \
imap/sync_log.h imap/telemetry.c imap/telemetry.h imap/tls.c \
imap/tls.h imap/upgrade_index.c imap/upgrade_index.h imap/user.c \
imap/user.h imap/userdeny_db.c imap/userdeny.h imap/version.c \
imap/version.h
imap_lmtpd_SOURCES = imap/lmtpd.c imap/lmtpd.h imap/lmtpengine.c \
imap/lmtpengine.h imap/lmtpstats.c imap/lmtpstats.h \
imap/mutex_fake.c imap/proxy.c imap/spool.c master/service.c
imap_lmtpd_LDFLAGS =
imap_lmtpd_LDADD =
# sieve/libsieve.a must be added to LDADD before lib/libcyrus.a (#3677)
if SIEVE
imap_lmtpd_SOURCES += imap/lmtp_sieve.c imap/smtpclient.c
imap_lmtpd_LDADD += sieve/libsieve.a
endif
imap_lmtpd_LDFLAGS += $(LD_SERVER_FLAGS)
imap_lmtpd_LDADD += $(LD_SERVER_ADD)
imap/lmtpstats.c: imap/lmtpstats.snmp snmp/snmpgen
cd imap && ../${top_srcdir}/snmp/snmpgen ../${top_srcdir}/imap/lmtpstats.snmp
imap/pushstats.c: imap/pushstats.snmp snmp/snmpgen
cd imap && ../${top_srcdir}/snmp/snmpgen ../${top_srcdir}/imap/pushstats.snmp
imap_mbexamine_SOURCES = imap/cli_fatal.c imap/mbexamine.c imap/mutex_fake.c
imap_mbexamine_LDFLAGS = $(LD_UTILITY_FLAGS)
imap_mbexamine_LDADD = $(LD_UTILITY_ADD)
imap_mbpath_SOURCES = imap/cli_fatal.c imap/mbpath.c imap/mutex_fake.c
imap_mbpath_LDFLAGS = $(LD_UTILITY_FLAGS)
imap_mbpath_LDADD = $(LD_UTILITY_ADD)
imap_mbtool_SOURCES = imap/cli_fatal.c imap/mbtool.c imap/mutex_fake.c
imap_mbtool_LDFLAGS = $(LD_UTILITY_FLAGS)
imap_mbtool_LDADD = $(LD_UTILITY_ADD)
imap_mupdate_SOURCES = imap/mupdate.c imap/mupdate-slave.c imap/mutex_pthread.c master/service-thread.c
imap_mupdate_LDFLAGS = $(LD_SERVER_FLAGS)
imap_mupdate_LDADD = $(LD_SERVER_ADD) -lpthread
nodist_imap_nntpd_SOURCES = imap/nntp_err.c imap/nntp_err.h
imap_nntpd_SOURCES = imap/index.c imap/mutex_fake.c imap/nntpd.c \
imap/proxy.c imap/smtpclient.c imap/smtpclient.h imap/spool.c \
imap/spool.h master/service.c
imap_nntpd_LDFLAGS = $(LD_SERVER_FLAGS)
imap_nntpd_LDADD = $(LD_SERVER_ADD)
imap_pop3d_SOURCES = imap/mutex_fake.c imap/pop3d.c imap/proxy.c master/service.c
imap_pop3d_LDFLAGS = $(LD_SERVER_FLAGS)
imap_pop3d_LDADD = $(LD_SERVER_ADD)
imap_quota_SOURCES = imap/cli_fatal.c imap/mutex_fake.c imap/quota.c
imap_quota_LDFLAGS = $(LD_UTILITY_FLAGS)
imap_quota_LDADD = $(LD_UTILITY_ADD)
imap_reconstruct_SOURCES = imap/cli_fatal.c imap/mutex_fake.c imap/reconstruct.c
imap_reconstruct_LDFLAGS = $(LD_UTILITY_FLAGS)
imap_reconstruct_LDADD = $(LD_UTILITY_ADD)
imap_smmapd_SOURCES = imap/mutex_fake.c imap/proxy.c imap/smmapd.c master/service.c
imap_smmapd_LDFLAGS = $(LD_SERVER_FLAGS)
imap_smmapd_LDADD = $(LD_SERVER_ADD)
imap_squatter_SOURCES = imap/cli_fatal.c imap/index.c imap/mutex_fake.c imap/squatter.c imap/squat_build.c
imap_squatter_LDFLAGS = $(LD_UTILITY_FLAGS)
imap_squatter_LDADD = $(LD_UTILITY_ADD)
imap_sync_client_SOURCES = imap/mutex_fake.c imap/sync_client.c imap/sync_support.c
imap_sync_client_LDFLAGS = $(LD_UTILITY_FLAGS)
imap_sync_client_LDADD = $(LD_UTILITY_ADD)
imap_sync_reset_SOURCES = imap/mutex_fake.c imap/sync_reset.c imap/sync_support.c
imap_sync_reset_LDFLAGS = $(LD_UTILITY_FLAGS)
imap_sync_reset_LDADD = $(LD_UTILITY_ADD)
imap_sync_server_SOURCES = imap/mutex_fake.c imap/sync_server.c imap/sync_support.c master/service.c
imap_sync_server_LDFLAGS = $(LD_SERVER_FLAGS)
imap_sync_server_LDADD = $(LD_SERVER_ADD)
imap_tls_prune_SOURCES = imap/cli_fatal.c imap/mutex_fake.c imap/tls_prune.c
imap_tls_prune_LDFLAGS = $(LD_UTILITY_FLAGS)
imap_tls_prune_LDADD = $(LD_UTILITY_ADD)
imap_unexpunge_SOURCES = imap/cli_fatal.c imap/mutex_fake.c imap/unexpunge.c
imap_unexpunge_LDFLAGS = $(LD_UTILITY_FLAGS)
imap_unexpunge_LDADD = $(LD_UTILITY_ADD)
imap/imap_err.h imap/imap_err.c: imap/imap_err.et
cd imap && $(COMPILE_ET) ../$(top_srcdir)/imap/imap_err.et
imap/mupdate_err.h imap/mupdate_err.c: imap/mupdate_err.et
cd imap && $(COMPILE_ET) ../$(top_srcdir)/imap/mupdate_err.et
imap/nntp_err.h imap/nntp_err.c: imap/nntp_err.et
cd imap && $(COMPILE_ET) ../$(top_srcdir)/imap/nntp_err.et
if MAINTAINER_MODE
imap/rfc822_header.c: imap/rfc822_header.st
${top_srcdir}/tools/compile_st.pl -c $< > [email protected] && mv [email protected] $@
imap/rfc822_header.h: imap/rfc822_header.st
${top_srcdir}/tools/compile_st.pl -h $< > [email protected] && mv [email protected] $@
endif
imtest_imtest_SOURCES = imtest/imtest.c
imtest_imtest_LDFLAGS = $(LD_BASIC_FLAGS)
imtest_imtest_LDADD = $(LD_BASIC_ADD)
nodist_lib_libcyrus_a_SOURCES = lib/chartable.c
lib_libcyrus_a_SOURCES = lib/acl.c lib/acl_afs.c lib/auth.c lib/auth_krb.c \
lib/auth_krb5.c lib/auth_pts.c lib/auth_unix.c lib/bsearch.c \
lib/byteorder64.c lib/charset.c lib/crc32.c lib/cyrusdb.c
if USE_BERKELEY
lib_libcyrus_a_SOURCES += lib/cyrusdb_berkeley.c
endif
lib_libcyrus_a_SOURCES += lib/cyrusdb_flat.c lib/cyrusdb_quotalegacy.c \
lib/cyrusdb_skiplist.c
if USE_SQL
lib_libcyrus_a_SOURCES += lib/cyrusdb_sql.c
endif
lib_libcyrus_a_SOURCES += lib/cyrusdb_twoskip.c lib/glob.c
if GMTOFF_TM
lib_libcyrus_a_SOURCES += lib/gmtoff_tm.c
else
lib_libcyrus_a_SOURCES += lib/gmtoff_gmtime.c
endif
lib_libcyrus_a_SOURCES += lib/imapurl.c lib/imclient.c lib/imparse.c \
lib/iostat.c lib/iptostring.c lib/libcyr_cfg.c lib/lsort.c \
lib/mkgmtime.c
if NONBLOCK_FCNTL
lib_libcyrus_a_SOURCES += lib/nonblock_fcntl.c
else
lib_libcyrus_a_SOURCES += lib/nonblock_ioctl.c
endif
lib_libcyrus_a_SOURCES += lib/parseaddr.c lib/prot.c lib/ptrarray.c \
lib/signals.c lib/stristr.c lib/times.c lib/tok.c lib/wildmat.c
lib_libcyrus_min_a_SOURCES = lib/assert.c
if IPV6_noGETADDRINFO
lib_libcyrus_min_a_SOURCES += lib/getaddrinfo.c
endif
if IPV6_noGETNAMEINFO
lib_libcyrus_min_a_SOURCES += lib/getnameinfo.c
endif
lib_libcyrus_min_a_SOURCES += lib/hash.c lib/imapopts.c lib/libconfig.c
if LOCK_FCNTL
lib_libcyrus_min_a_SOURCES += lib/lock_fcntl.c
else
lib_libcyrus_min_a_SOURCES += lib/lock_flock.c
endif
lib_libcyrus_min_a_SOURCES += lib/mappedfile.c
if MAP_SHARED
lib_libcyrus_min_a_SOURCES += lib/map_shared.c
else
if MAP_STUPIDSHARED
lib_libcyrus_min_a_SOURCES += lib/map_stupidshared.c
else
lib_libcyrus_min_a_SOURCES += lib/map_nommap.c
endif
endif
lib_libcyrus_min_a_SOURCES += lib/mpool.c lib/retry.c lib/strarray.c \
lib/strhash.c lib/util.c lib/xmalloc.c lib/xstrlcat.c lib/xstrlcpy.c
lib_libcyrus_min_a_LIBADD = $(LIBOBJS)
lib/chartable.c: lib/mkchartable.pl lib/charset/unifix.txt \
$(top_srcdir)/lib/charset/*.t lib/charset/UnicodeData.txt \
lib/charset/aliases.txt
@echo "### Building chartables..."
perl $(top_srcdir)/lib/mkchartable.pl -m $(top_srcdir)/lib/charset/unifix.txt -m $(top_srcdir)/lib/charset/UnicodeData.txt -a $(top_srcdir)/lib/charset/aliases.txt -o $@ $(top_srcdir)/lib/charset/*.t || (rm -f $@ && exit 1)
@echo "### Done building chartables."
lib/imapopts.c: lib/imapoptions tools/config2header
$(top_srcdir)/tools/config2header CC="$(CC)" $(top_builddir)/lib/imapopts.c $(top_builddir)/lib/imapopts.h < $(top_srcdir)/lib/imapoptions
#this is from lib/test/Makefile.in, however testglob.c does not exist in
#/lib/test, instead testglob2.c is there.
#lib_test_testglob_LIRBARIES = lib/libcyrus.a lib/libcyrus_min.a -ldb-4.0
@SET_MAKE@
dist_man_MANS = man/imtest.1 man/installsieve.1 man/lmtptest.1 \
man/mupdatetest.1 man/nntptest.1 man/pop3test.1 man/sieveshell.1 \
man/sivtest.1 man/smtptest.1 \
man/imclient.3 \
man/cyrus.conf.5 man/imapd.conf.5 man/krb.equiv.5 \
man/arbitron.8 man/chk_cyrus.8 man/ctl_cyrusdb.8 man/ctl_deliver.8 \
man/ctl_mboxlist.8 man/cyr_expire.8 man/cvt_cyrusdb.8 \
man/cyr_dbtool.8 man/cyr_df.8 man/cyr_info.8 man/cyr_synclog.8 \
man/deliver.8 man/fetchnews.8 man/fud.8 man/idled.8 man/imapd.8 \
man/ipurge.8 man/lmtpd.8 man/master.8 man/mbexamine.8 man/mbpath.8 \
man/nntpd.8 man/notifyd.8 man/pop3d.8 man/quota.8 man/reconstruct.8 \
man/rmnews.8 man/smmapd.8 man/squatter.8 man/syncnews.8 \
man/sync_client.8 man/sync_reset.8 man/sync_server.8 man/timsieved.8 \
man/tls_prune.8 man/unexpunge.8
master_master_SOURCES = master/cyrusMasterMIB.c master/cyrusMasterMIB.h \
master/master.c master/master.h master/masterconf.c \
master/masterconf.h master/service.h
master_master_LDADD = lib/libcyrus_min.a $(LIB_UCDSNMP) $(LIBS) -lm
netnews_remotepurge_SOURCES = netnews/macros.h netnews/readconfig.c netnews/readconfig.h netnews/remotepurge.c
netnews_remotepurge_LDADD = $(LD_BASIC_ADD)
netnews_remotepurge_LDFLAGS = $(LD_BASIC_FLAGS)
notifyd_notifyd_SOURCES = imap/mutex_fake.c master/service.c \
notifyd/exitcodes.h notifyd/notify_external.c \
notifyd/notify_external.h notifyd/notify_log.c notifyd/notify_log.h \
notifyd/notify_mailto.c notifyd/notify_mailto.h notifyd/notify_null.c \
notifyd/notify_null.h notifyd/notify_zephyr.c notifyd/notify_zephyr.h \
notifyd/notifyd.c notifyd/notifyd.h notifyd/version.h
notifyd_notifyd_LDFLAGS = $(LD_SERVER_FLAGS)
notifyd_notifyd_LDADD = $(LD_SERVER_ADD) $(ZEPHYR_LIBS)
notifyd_notifytest_SOURCES = notifyd/notifytest.c imap/mutex_fake.c
notifyd_notifytest_LDFLAGS = $(LD_UTILITY_FLAGS)
notifyd_notifytest_LDADD = $(LD_UTILITY_ADD)
perl_sieve_lib_libisieve_a_SOURCES = perl/sieve/lib/isieve.c perl/sieve/lib/lex.c perl/sieve/lib/mystring.c perl/sieve/lib/request.c
ptclient_ptdump_SOURCES = imap/cli_fatal.c imap/mutex_fake.c ptclient/ptdump.c
ptclient_ptdump_LDFLAGS = $(LD_UTILITY_FLAGS)
ptclient_ptdump_LDADD = $(LD_UTILITY_ADD)
ptclient_ptexpire_SOURCES = imap/cli_fatal.c imap/mutex_fake.c ptclient/ptexpire.c
ptclient_ptexpire_LDFLAGS = $(LD_UTILITY_FLAGS)
ptclient_ptexpire_LDADD = $(LD_UTILITY_ADD)
#ptclient_ptextract_SOURCES = imap/cli_fatal.c imap/mutex_fake.c ptclient/ptextract.c
#ptclient_ptextract_LDFLAGS = $(LD_UTILITY_FLAGS)
#ptclient_ptextract_LDADD = $(LD_UTILITY_ADD)
ptclient_ptloader_SOURCES = ptclient/ptloader.c ptclient/ptloader.h imap/mutex_fake.c master/service-thread.c
ptclient_ptloader_LDFLAGS = $(LD_SERVER_FLAGS)
ptclient_ptloader_LDADD = $(LD_SERVER_ADD)
if HAVE_LDAP
ptclient_ptloader_SOURCES += ptclient/ldap.c
ptclient_ptloader_LDADD += $(LDAP_LIBS)
ptclient_ptloader_LDFLAGS += $(LDAP_LDFLAGS)
endif
if USE_AFSKRB
ptclient_ptloader_SOURCES += ptclient/afskrb.c
ptclient_ptloader_LDADD += $(AFS_LIBS)
ptclient_ptloader_LDFLAGS += $(AFS_LDFLAGS)
endif
nodist_sieve_libsieve_a_SOURCES = sieve/sieve_err.c sieve/sieve_err.h
sieve_libsieve_a_SOURCES = sieve/bytecode.h sieve/addr.y sieve/addr-lex.l \
sieve/bc_dump.c sieve/bc_emit.c sieve/bc_eval.c sieve/bc_generate.c \
sieve/comparator.c sieve/comparator.h sieve/interp.c sieve/interp.h \
sieve/message.c sieve/message.h sieve/script.c sieve/script.h \
sieve/sieve-lex.l sieve/sieve.y sieve/sieve_interface.h sieve/tree.c sieve/tree.h
LD_SIEVE_FLAGS = $(LD_BASIC_FLAGS)
LD_SIEVE_ADD = sieve/libsieve.a $(LD_BASIC_ADD) $(COM_ERR_LIBS)
sieve_sievec_LDFLAGS = $(LD_SIEVE_FLAGS)
sieve_sievec_LDADD = $(LD_SIEVE_ADD)
sieve_sieved_LDFLAGS = $(LD_SIEVE_FLAGS)
sieve_sieved_LDADD = $(LD_SIEVE_ADD)
sieve/sieve_err.h sieve/sieve_err.c: sieve/sieve_err.et
cd sieve && $(COMPILE_ET) ../$(top_srcdir)/sieve/sieve_err.et
sieve_test_SOURCES = sieve/test.c imap/mutex_fake.c
sieve_test_LDFLAGS = $(LD_UTILITY_FLAGS)
sieve_test_LDADD = sieve/libsieve.a $(LD_UTILITY_ADD)
timsieved_timsieved_SOURCES = imap/mutex_fake.c imap/proxy.c master/service.c \
timsieved/actions.c timsieved/actions.h timsieved/codes.h \
timsieved/exitcodes.h timsieved/lex.c timsieved/lex.h \
timsieved/mystring.c timsieved/mystring.h timsieved/parser.c \
timsieved/parser.h timsieved/scripttest.c timsieved/scripttest.h \
timsieved/timsieved.c
timsieved_timsieved_LDFLAGS = $(LD_SERVER_FLAGS)
timsieved_timsieved_LDADD = sieve/libsieve.a $(LD_SERVER_ADD)
GIT_VERSION = $(PACKAGE_VERSION).git$(shell date +'%Y%m%d%H%M')
snapshot::
@echo "creating snapshot $(GIT_VERSION)"
@$(MKDIR_P) snapshot
@git archive --format=tar --prefix=$(PACKAGE_NAME)-$(GIT_VERSION)/ HEAD | tar -C snapshot/ -x -f -
@echo "/* $(PACKAGE_NAME) $(GIT_VERSION) */" > snapshot/$(PACKAGE_NAME)-$(GIT_VERSION)/xversion.h
@echo "#define _CYRUS_VERSION \"git$(PACKAGE_VERSION)+`git log --pretty=oneline $(PACKAGE_NAME)-$(PACKAGE_VERSION)..HEAD | wc -l`\"" >> snapshot/$(PACKAGE_NAME)-$(GIT_VERSION)/xversion.h
@echo "#define CYRUS_GITVERSION \"`git log --abbrev=8 --pretty=\"format:%h %ci\" -1 | cut -d\" \" -f1,2`\"" >> snapshot/$(PACKAGE_NAME)-$(GIT_VERSION)/xversion.h
@touch snapshot/$(PACKAGE_NAME)-$(GIT_VERSION)/xversion
@cd snapshot/$(PACKAGE_NAME)-$(GIT_VERSION) ; sh SMakefile
@for d in $(DIST_SUBDIRS); \
do \
(cd snapshot/$(PACKAGE_NAME)-$(GIT_VERSION)/$$d; \
if [ -f Makefile.dist ]; then \
echo "### Making" snapshot "in" `pwd`; \
$(MAKE) $(MFLAGS) YACC='$(YACC)' LEX='$(LEX)' \
COMPILE_ET='$(COMPILE_ET)' -f Makefile.dist dist ; \
fi) || exit 1; \
done
@echo "creating tarfile"
tar -C snapshot -c -f - $(PACKAGE_NAME)-$(GIT_VERSION) | gzip -9 > $(PACKAGE_NAME)-$(GIT_VERSION).tar.gz
@rm -rf snapshot
man/imapd.conf.5: $(top_srcdir)/tools/config2man $(top_srcdir)/lib/imapoptions
@echo creating man/imapd.conf.5
@$(MKDIR_P) man
$(top_srcdir)/tools/config2man $(top_srcdir)/lib/imapoptions > $@
man/sieveshell.1: $(top_srcdir)/perl/sieve/scripts/sieveshell.pl
@echo creating man/sieveshell.1
@$(MKDIR_P) man
pod2man $(top_srcdir)/perl/sieve/scripts/sieveshell.pl > $@
doc/man/cyradm.1.html: $(top_srcdir)/perl/imap/cyradm.sh
@$(MKDIR_P) doc/man
pod2html $(top_srcdir)/perl/imap/cyradm.sh > $@
rm pod2htm*
doc/man/sieveshell.1.html: $(top_srcdir)/perl/sieve/scripts/sieveshell.pl
@$(MKDIR_P) doc/man
pod2html $(top_srcdir)/perl/sieve/scripts/sieveshell.pl > $@
rm pod2htm*
dist-old:: distgit
@echo "creating configure"
@cd dist/cyrus-imapd-$(PACKAGE_VERSION) ; sh SMakefile
@for d in $(DIST_SUBDIRS); \
do \
(cd dist/cyrus-imapd-$(PACKAGE_VERSION)/$$d; \
if [ -f Makefile.dist ]; then \
echo "### Making" dist "in" `pwd`; \
$(MAKE) $(MFLAGS) YACC='$(YACC)' LEX='$(LEX)' \
COMPILE_ET='$(COMPILE_ET)' -f Makefile.dist dist ; \
fi) || exit 1; \
done
@echo "creating tarfile"
@cd dist ; tar cf - cyrus-imapd-$(PACKAGE_VERSION) | \
gzip -9 > ../cyrus-imapd-$(PACKAGE_VERSION).tar.gz
rm -f distgit
rm -rf dist
distgit:
$(MKDIR_P) dist
@echo "checking out the distribution from tag $(PACKAGE_NAME)-$(PACKAGE_VERSION)"
git archive --format=tar --prefix=$(PACKAGE_NAME)-$(PACKAGE_VERSION)/ $(PACKAGE_NAME)-$(PACKAGE_VERSION) | tar -C dist -x -f -
echo "/* Release $(PACKAGE_NAME)-$(PACKAGE_VERSION) */" > dist/$(PACKAGE_NAME)-$(PACKAGE_VERSION)/xversion.h
echo "#define _CYRUS_VERSION \"v$(PACKAGE_VERSION)\"" >> dist/$(PACKAGE_NAME)-$(PACKAGE_VERSION)/xversion.h
echo "#define CYRUS_GITVERSION \"`git log --abbrev=8 --pretty=\"format:%h %ci\" -1 | cut -d\" \" -f1,2`\"" >> dist/$(PACKAGE_NAME)-$(PACKAGE_VERSION)/xversion.h
touch dist/$(PACKAGE_NAME)-$(PACKAGE_VERSION)/xversion
touch distgit
xversion xversion.h:
@echo "/* Development version */" > xversion.h.tmp
@echo "#define _CYRUS_VERSION \"git$(PACKAGE_VERSION)+`git log --pretty=oneline $(PACKAGE_NAME)-$(PACKAGE_VERSION)..HEAD | wc -l`\"" >> xversion.h.tmp
@echo "#define CYRUS_GITVERSION \"`git log --abbrev=8 --pretty=\"format:%h %ci\" -1 | cut -d\" \" -f1,2`\"" >> xversion.h.tmp
@cmp -s xversion.h.tmp xversion.h || mv xversion.h.tmp xversion.h
@rm -f xversion.h.tmp
dist-hook: doc/text/htmlstrip doc/man/cyradm.1.html doc/man/sieveshell.1.html
@$(MKDIR_P) doc/text doc/man
for man in $(top_builddir)/man/*.[1-9] $(top_srcdir)/man/*.[1-9]; \
do \
echo "=== $$man ==="; \
groff -man -Thtml $$man > doc/man/`basename $$man`.html; \
done
rm -f doc/groff-html-*.png
for file in $(top_srcdir)/doc/*.html; \
do \
echo "=== $$file ==="; \
doc/text/htmlstrip $$file > doc/text/`basename $$file .html`; \
done
@rm doc/text/htmlstrip doc/text/htmlstrip.o doc/text/.dirstamp
@echo "== done =="
install-data-hook:
if CMULOCAL
$(INSTALL) -m 644 $(top_srcdir)/depot/depot.conf $(DESTDIR)/
endif
install-exec-hook:
for s in installsieve sieveshell; \
do \
$(PERL_PREINSTALL) < perl/sieve/scripts/$$s.pl > perl/sieve/scripts/$$s ;\
$(INSTALL) -m 755 perl/sieve/scripts/$$s $(DESTDIR)$(bindir)/$$s ; \
done
## The @$(MKDIR_P) line is added due to a bug in Automake 1.10 and can be removed if using Automake 1.12.
@$(MKDIR_P) $(DESTDIR)$(servicedir)
cd $(DESTDIR)$(servicedir) && \
$(LN_S) -f pop3d pop3proxyd && \
$(LN_S) -f imapd proxyd && \
$(LN_S) -f lmtpd lmtpproxyd
## The @$(MKDIR_P) line is added due to a bug in Automake 1.10 and can be removed if using Automake 1.12.
@$(MKDIR_P) $(DESTDIR)$(bindir)
cd $(DESTDIR)$(bindir) && \
$(LN_S) -f imtest lmtptest && \
$(LN_S) -f imtest mupatetest && \
$(LN_S) -f imtest nntptest && \
$(LN_S) -f imtest pop3test && \
$(LN_S) -f imtest sivtest && \
$(LN_S) -f imtest smpttest && \
$(LN_S) -f imtest synctest
SUFFIXES = .fig.png
.fig.png:
fig2dev -L png $< $@
valgrind:
$(MAKE) VG=yes check
tags cscope:
find $(DIST_SUBDIRS) -type f -name '*.[ch]' > cs.files
cscope -b -k -i cs.files
$(RM) cs.files