Mercurial > dovecot > original-hg > dovecot-1.2
annotate src/plugins/quota/Makefile.am @ 9226:1b5a1ac430a7 HEAD
quota: Yet another build fix for old automakes.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 14 Jul 2009 12:39:55 -0400 |
parents | 66040bffc1a5 |
children | b6aaca59301a |
rev | line source |
---|---|
3738
732b62dc1976
Added beginnings of plugin infrastructure. TODO: These could be optionally
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
1 AM_CPPFLAGS = \ |
732b62dc1976
Added beginnings of plugin infrastructure. TODO: These could be optionally
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
2 -I$(top_srcdir)/src/lib \ |
732b62dc1976
Added beginnings of plugin infrastructure. TODO: These could be optionally
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
3 -I$(top_srcdir)/src/lib-dict \ |
4351
61cc7e40bec6
Add ",S=size" to maildir filenames when quota plugin is loaded with
Timo Sirainen <tss@iki.fi>
parents:
4231
diff
changeset
|
4 -I$(top_srcdir)/src/lib-index \ |
3738
732b62dc1976
Added beginnings of plugin infrastructure. TODO: These could be optionally
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
5 -I$(top_srcdir)/src/lib-mail \ |
4351
61cc7e40bec6
Add ",S=size" to maildir filenames when quota plugin is loaded with
Timo Sirainen <tss@iki.fi>
parents:
4231
diff
changeset
|
6 -I$(top_srcdir)/src/lib-storage \ |
61cc7e40bec6
Add ",S=size" to maildir filenames when quota plugin is loaded with
Timo Sirainen <tss@iki.fi>
parents:
4231
diff
changeset
|
7 -I$(top_srcdir)/src/lib-storage/index \ |
9174
eed86bcc33aa
dict proxy: Use base_dir as the default dict-server location.
Timo Sirainen <tss@iki.fi>
parents:
8912
diff
changeset
|
8 -I$(top_srcdir)/src/lib-storage/index/maildir \ |
eed86bcc33aa
dict proxy: Use base_dir as the default dict-server location.
Timo Sirainen <tss@iki.fi>
parents:
8912
diff
changeset
|
9 -DPKG_RUNDIR=\""$(rundir)"\" |
3738
732b62dc1976
Added beginnings of plugin infrastructure. TODO: These could be optionally
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
10 |
4910
e66dc3774099
Changed the plugin filename numbering (ie. the ordering in which the plugins
Timo Sirainen <tss@iki.fi>
parents:
4870
diff
changeset
|
11 lib10_quota_plugin_la_LDFLAGS = -module -avoid-version |
3738
732b62dc1976
Added beginnings of plugin infrastructure. TODO: These could be optionally
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
12 |
732b62dc1976
Added beginnings of plugin infrastructure. TODO: These could be optionally
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
13 module_LTLIBRARIES = \ |
4910
e66dc3774099
Changed the plugin filename numbering (ie. the ordering in which the plugins
Timo Sirainen <tss@iki.fi>
parents:
4870
diff
changeset
|
14 lib10_quota_plugin.la |
3738
732b62dc1976
Added beginnings of plugin infrastructure. TODO: These could be optionally
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
15 |
6159
078d9dde99c8
Support for rquota with NFS mounts. Patch by HTK NetCommunication Oy.
Timo Sirainen <tss@iki.fi>
parents:
4910
diff
changeset
|
16 if HAVE_RQUOTA |
078d9dde99c8
Support for rquota with NFS mounts. Patch by HTK NetCommunication Oy.
Timo Sirainen <tss@iki.fi>
parents:
4910
diff
changeset
|
17 lib10_quota_plugin_la_LIBADD = \ |
078d9dde99c8
Support for rquota with NFS mounts. Patch by HTK NetCommunication Oy.
Timo Sirainen <tss@iki.fi>
parents:
4910
diff
changeset
|
18 -lrpcsvc |
078d9dde99c8
Support for rquota with NFS mounts. Patch by HTK NetCommunication Oy.
Timo Sirainen <tss@iki.fi>
parents:
4910
diff
changeset
|
19 endif |
078d9dde99c8
Support for rquota with NFS mounts. Patch by HTK NetCommunication Oy.
Timo Sirainen <tss@iki.fi>
parents:
4910
diff
changeset
|
20 |
6439
b951f3e42322
Yet another try at getting rquota code compiling properly with BSD make.
Timo Sirainen <tss@iki.fi>
parents:
6438
diff
changeset
|
21 quota_dist_sources = \ |
3738
732b62dc1976
Added beginnings of plugin infrastructure. TODO: These could be optionally
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
22 quota.c \ |
4870
e92b3eaab490
dict quota: If dictionary doesn't yet contain the quota, calculate it by
Timo Sirainen <tss@iki.fi>
parents:
4413
diff
changeset
|
23 quota-count.c \ |
3751
768770a01733
quotactl() quota checking support
Timo Sirainen <tss@iki.fi>
parents:
3743
diff
changeset
|
24 quota-fs.c \ |
3738
732b62dc1976
Added beginnings of plugin infrastructure. TODO: These could be optionally
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
25 quota-dict.c \ |
732b62dc1976
Added beginnings of plugin infrastructure. TODO: These could be optionally
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
26 quota-dirsize.c \ |
4086
07c3a801c3dc
Maildir++ quota support.
Timo Sirainen <timo.sirainen@movial.fi>
parents:
3753
diff
changeset
|
27 quota-maildir.c \ |
3738
732b62dc1976
Added beginnings of plugin infrastructure. TODO: These could be optionally
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
28 quota-plugin.c \ |
732b62dc1976
Added beginnings of plugin infrastructure. TODO: These could be optionally
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
29 quota-storage.c |
732b62dc1976
Added beginnings of plugin infrastructure. TODO: These could be optionally
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
30 |
6439
b951f3e42322
Yet another try at getting rquota code compiling properly with BSD make.
Timo Sirainen <tss@iki.fi>
parents:
6438
diff
changeset
|
31 lib10_quota_plugin_la_SOURCES = \ |
b951f3e42322
Yet another try at getting rquota code compiling properly with BSD make.
Timo Sirainen <tss@iki.fi>
parents:
6438
diff
changeset
|
32 $(quota_dist_sources) \ |
b951f3e42322
Yet another try at getting rquota code compiling properly with BSD make.
Timo Sirainen <tss@iki.fi>
parents:
6438
diff
changeset
|
33 $(RQUOTA_XDR) |
b951f3e42322
Yet another try at getting rquota code compiling properly with BSD make.
Timo Sirainen <tss@iki.fi>
parents:
6438
diff
changeset
|
34 |
6177
abec53314897
Build rquota_xdr.c with rpcgen from rquota.x.
Timo Sirainen <tss@iki.fi>
parents:
6159
diff
changeset
|
35 if HAVE_RQUOTA |
6439
b951f3e42322
Yet another try at getting rquota code compiling properly with BSD make.
Timo Sirainen <tss@iki.fi>
parents:
6438
diff
changeset
|
36 RQUOTA_XDR = rquota_xdr.c |
8892
66a8cbe7f007
quota-fs: Added support for NFS group quota.
Timo Sirainen <tss@iki.fi>
parents:
8589
diff
changeset
|
37 #RQUOTA_X = /usr/include/rpcsvc/rquota.x |
8912
f38a9a2692ac
Fixed quota compiling when using a separate build dir.
Timo Sirainen <tss@iki.fi>
parents:
8910
diff
changeset
|
38 RQUOTA_X = $(srcdir)/rquota.x |
6439
b951f3e42322
Yet another try at getting rquota code compiling properly with BSD make.
Timo Sirainen <tss@iki.fi>
parents:
6438
diff
changeset
|
39 rquota_xdr.c: Makefile $(RQUOTA_X) |
9226
1b5a1ac430a7
quota: Yet another build fix for old automakes.
Timo Sirainen <tss@iki.fi>
parents:
9223
diff
changeset
|
40 if [ "$(top_srcdir)" != "$(top_builddir)" ]; then \ |
1b5a1ac430a7
quota: Yet another build fix for old automakes.
Timo Sirainen <tss@iki.fi>
parents:
9223
diff
changeset
|
41 cp $(RQUOTA_X) $(top_builddir)/src/plugins/quota/; \ |
9214
7d11a507cf3a
quota-fs: Another compiling fix (for older autotools?)
Timo Sirainen <tss@iki.fi>
parents:
9194
diff
changeset
|
42 fi; \ |
7957
22244e559776
rquota_xdr compilation fixes for AIX (hopefully won't break other OSes).
Timo Sirainen <tss@iki.fi>
parents:
7937
diff
changeset
|
43 (echo '#include "lib.h"'; \ |
22244e559776
rquota_xdr compilation fixes for AIX (hopefully won't break other OSes).
Timo Sirainen <tss@iki.fi>
parents:
7937
diff
changeset
|
44 echo '#include <rpc/rpc.h>'; \ |
9223
66040bffc1a5
quota: Fixed compiling with older automakes.
Timo Sirainen <tss@iki.fi>
parents:
9220
diff
changeset
|
45 $(RPCGEN) -c $$dir/rquota.x | \ |
6308
b44b090d7c07
Use sed instead of $(SED). sed should work everywhere anyway, and $(SED)
Timo Sirainen <tss@iki.fi>
parents:
6231
diff
changeset
|
46 sed -e 's/IXDR_PUT/(void)IXDR_PUT/g' \ |
7957
22244e559776
rquota_xdr compilation fixes for AIX (hopefully won't break other OSes).
Timo Sirainen <tss@iki.fi>
parents:
7937
diff
changeset
|
47 -e 's,/usr/include/rpcsvc/rquota.h,rquota.h,' \ |
8589
a496105bf45c
quota-fs: Avoid compiler warning with BSDs.
Timo Sirainen <tss@iki.fi>
parents:
7957
diff
changeset
|
48 -e 's/int32_t \*buf/int32_t *buf ATTR_UNUSED/' \ |
a496105bf45c
quota-fs: Avoid compiler warning with BSDs.
Timo Sirainen <tss@iki.fi>
parents:
7957
diff
changeset
|
49 -e 's/^static char rcsid.*//' ) > rquota_xdr.c |
6437 | 50 |
6439
b951f3e42322
Yet another try at getting rquota code compiling properly with BSD make.
Timo Sirainen <tss@iki.fi>
parents:
6438
diff
changeset
|
51 rquota.h: Makefile $(RQUOTA_X) |
6438 | 52 $(RPCGEN) -h $(RQUOTA_X) > rquota.h |
6439
b951f3e42322
Yet another try at getting rquota code compiling properly with BSD make.
Timo Sirainen <tss@iki.fi>
parents:
6438
diff
changeset
|
53 |
b951f3e42322
Yet another try at getting rquota code compiling properly with BSD make.
Timo Sirainen <tss@iki.fi>
parents:
6438
diff
changeset
|
54 quota-fs.lo: rquota.h |
b951f3e42322
Yet another try at getting rquota code compiling properly with BSD make.
Timo Sirainen <tss@iki.fi>
parents:
6438
diff
changeset
|
55 |
6177
abec53314897
Build rquota_xdr.c with rpcgen from rquota.x.
Timo Sirainen <tss@iki.fi>
parents:
6159
diff
changeset
|
56 endif |
abec53314897
Build rquota_xdr.c with rpcgen from rquota.x.
Timo Sirainen <tss@iki.fi>
parents:
6159
diff
changeset
|
57 |
3743
146a924333aa
Added missing header files. Fixed plugin install hooks to use DESTDIR.
Timo Sirainen <tss@iki.fi>
parents:
3738
diff
changeset
|
58 noinst_HEADERS = \ |
146a924333aa
Added missing header files. Fixed plugin install hooks to use DESTDIR.
Timo Sirainen <tss@iki.fi>
parents:
3738
diff
changeset
|
59 quota.h \ |
3751
768770a01733
quotactl() quota checking support
Timo Sirainen <tss@iki.fi>
parents:
3743
diff
changeset
|
60 quota-fs.h \ |
3743
146a924333aa
Added missing header files. Fixed plugin install hooks to use DESTDIR.
Timo Sirainen <tss@iki.fi>
parents:
3738
diff
changeset
|
61 quota-plugin.h \ |
146a924333aa
Added missing header files. Fixed plugin install hooks to use DESTDIR.
Timo Sirainen <tss@iki.fi>
parents:
3738
diff
changeset
|
62 quota-private.h |
146a924333aa
Added missing header files. Fixed plugin install hooks to use DESTDIR.
Timo Sirainen <tss@iki.fi>
parents:
3738
diff
changeset
|
63 |
3738
732b62dc1976
Added beginnings of plugin infrastructure. TODO: These could be optionally
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
64 install-exec-local: |
4231
8ac54879ca92
Install the quota plugin also for POP3.
Timo Sirainen <tss@iki.fi>
parents:
4086
diff
changeset
|
65 for d in imap pop3 lda; do \ |
4413
96d9947fde60
mkdir_p doesn't accept multiple directories in some systems, so do it one at
Timo Sirainen <tss@iki.fi>
parents:
4351
diff
changeset
|
66 $(mkdir_p) $(DESTDIR)$(moduledir)/$$d; \ |
7864
f5d1dc944a7c
Previous changes broke plugin symlink creation in make install.
Timo Sirainen <tss@iki.fi>
parents:
7826
diff
changeset
|
67 rm -f $(DESTDIR)$(moduledir)/$$d/lib10_quota_plugin$(MODULE_SUFFIX); \ |
f5d1dc944a7c
Previous changes broke plugin symlink creation in make install.
Timo Sirainen <tss@iki.fi>
parents:
7826
diff
changeset
|
68 $(LN_S) ../lib10_quota_plugin$(MODULE_SUFFIX) $(DESTDIR)$(moduledir)/$$d; \ |
3738
732b62dc1976
Added beginnings of plugin infrastructure. TODO: These could be optionally
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
69 done |
6177
abec53314897
Build rquota_xdr.c with rpcgen from rquota.x.
Timo Sirainen <tss@iki.fi>
parents:
6159
diff
changeset
|
70 |
8910
d828eedb2f9d
rquota.x was missing from distribution tarball.
Timo Sirainen <tss@iki.fi>
parents:
8892
diff
changeset
|
71 EXTRA_DIST = rquota.x |
d828eedb2f9d
rquota.x was missing from distribution tarball.
Timo Sirainen <tss@iki.fi>
parents:
8892
diff
changeset
|
72 |
6439
b951f3e42322
Yet another try at getting rquota code compiling properly with BSD make.
Timo Sirainen <tss@iki.fi>
parents:
6438
diff
changeset
|
73 DISTFILES = $(DIST_COMMON) $(quota_dist_sources) $(TEXINFOS) $(EXTRA_DIST) |
b951f3e42322
Yet another try at getting rquota code compiling properly with BSD make.
Timo Sirainen <tss@iki.fi>
parents:
6438
diff
changeset
|
74 |
b951f3e42322
Yet another try at getting rquota code compiling properly with BSD make.
Timo Sirainen <tss@iki.fi>
parents:
6438
diff
changeset
|
75 clean-generic: |
9226
1b5a1ac430a7
quota: Yet another build fix for old automakes.
Timo Sirainen <tss@iki.fi>
parents:
9223
diff
changeset
|
76 if [ [ "$(top_srcdir)" != "$(top_builddir)" ]; then \ |
1b5a1ac430a7
quota: Yet another build fix for old automakes.
Timo Sirainen <tss@iki.fi>
parents:
9223
diff
changeset
|
77 rm -f $(top_builddir)/src/plugins/quota/rquota.x; \ |
9220
0a999fedb6e0
quota: When building in a separate dir, make clean should delete copied rquota.
Timo Sirainen <tss@iki.fi>
parents:
9214
diff
changeset
|
78 fi; \ |
6439
b951f3e42322
Yet another try at getting rquota code compiling properly with BSD make.
Timo Sirainen <tss@iki.fi>
parents:
6438
diff
changeset
|
79 rm -f rquota_xdr.c rquota.h |