annotate src/plugins/quota/Makefile.am @ 9605:e96ea07f1437 HEAD

quota: Fixed compiling with older automakes.
author Timo Sirainen <tss@iki.fi>
date Fri, 10 Jul 2009 11:08:35 -0400
parents 2cd15c71923d
children 4ea40abcc301
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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 \
61cc7e40bec6 Add ",S=size" to maildir filenames when quota plugin is loaded with
Timo Sirainen <tss@iki.fi>
parents: 4231
diff changeset
8 -I$(top_srcdir)/src/lib-storage/index/maildir
3738
732b62dc1976 Added beginnings of plugin infrastructure. TODO: These could be optionally
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
9
4910
e66dc3774099 Changed the plugin filename numbering (ie. the ordering in which the plugins
Timo Sirainen <tss@iki.fi>
parents: 4870
diff changeset
10 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
11
732b62dc1976 Added beginnings of plugin infrastructure. TODO: These could be optionally
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
12 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
13 lib10_quota_plugin.la
3738
732b62dc1976 Added beginnings of plugin infrastructure. TODO: These could be optionally
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
14
6159
078d9dde99c8 Support for rquota with NFS mounts. Patch by HTK NetCommunication Oy.
Timo Sirainen <tss@iki.fi>
parents: 4910
diff changeset
15 if HAVE_RQUOTA
078d9dde99c8 Support for rquota with NFS mounts. Patch by HTK NetCommunication Oy.
Timo Sirainen <tss@iki.fi>
parents: 4910
diff changeset
16 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
17 -lrpcsvc
078d9dde99c8 Support for rquota with NFS mounts. Patch by HTK NetCommunication Oy.
Timo Sirainen <tss@iki.fi>
parents: 4910
diff changeset
18 endif
078d9dde99c8 Support for rquota with NFS mounts. Patch by HTK NetCommunication Oy.
Timo Sirainen <tss@iki.fi>
parents: 4910
diff changeset
19
6439
b951f3e42322 Yet another try at getting rquota code compiling properly with BSD make.
Timo Sirainen <tss@iki.fi>
parents: 6438
diff changeset
20 quota_dist_sources = \
3738
732b62dc1976 Added beginnings of plugin infrastructure. TODO: These could be optionally
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
21 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
22 quota-count.c \
3751
768770a01733 quotactl() quota checking support
Timo Sirainen <tss@iki.fi>
parents: 3743
diff changeset
23 quota-fs.c \
3738
732b62dc1976 Added beginnings of plugin infrastructure. TODO: These could be optionally
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
24 quota-dict.c \
732b62dc1976 Added beginnings of plugin infrastructure. TODO: These could be optionally
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
25 quota-dirsize.c \
4086
07c3a801c3dc Maildir++ quota support.
Timo Sirainen <timo.sirainen@movial.fi>
parents: 3753
diff changeset
26 quota-maildir.c \
3738
732b62dc1976 Added beginnings of plugin infrastructure. TODO: These could be optionally
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
27 quota-plugin.c \
732b62dc1976 Added beginnings of plugin infrastructure. TODO: These could be optionally
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
28 quota-storage.c
732b62dc1976 Added beginnings of plugin infrastructure. TODO: These could be optionally
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
29
6439
b951f3e42322 Yet another try at getting rquota code compiling properly with BSD make.
Timo Sirainen <tss@iki.fi>
parents: 6438
diff changeset
30 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
31 $(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
32 $(RQUOTA_XDR)
b951f3e42322 Yet another try at getting rquota code compiling properly with BSD make.
Timo Sirainen <tss@iki.fi>
parents: 6438
diff changeset
33
6177
abec53314897 Build rquota_xdr.c with rpcgen from rquota.x.
Timo Sirainen <tss@iki.fi>
parents: 6159
diff changeset
34 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
35 RQUOTA_XDR = rquota_xdr.c
8892
66a8cbe7f007 quota-fs: Added support for NFS group quota.
Timo Sirainen <tss@iki.fi>
parents: 8589
diff changeset
36 #RQUOTA_X = /usr/include/rpcsvc/rquota.x
9021
5650eba36f79 Fixed quota compiling when using a separate build dir.
Timo Sirainen <tss@iki.fi>
parents: 8892
diff changeset
37 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
38 rquota_xdr.c: Makefile $(RQUOTA_X)
9605
e96ea07f1437 quota: Fixed compiling with older automakes.
Timo Sirainen <tss@iki.fi>
parents: 9591
diff changeset
39 if [ "$(builddir)" = "" ]; then dir="."; else dir="$(builddir)"; fi; \
e96ea07f1437 quota: Fixed compiling with older automakes.
Timo Sirainen <tss@iki.fi>
parents: 9591
diff changeset
40 if [ "$(srcdir)" != "$$dir" ]; then \
e96ea07f1437 quota: Fixed compiling with older automakes.
Timo Sirainen <tss@iki.fi>
parents: 9591
diff changeset
41 cp $(RQUOTA_X) $$dir; \
9591
2cd15c71923d quota-fs: Another compiling fix (for older autotools?)
Timo Sirainen <tss@iki.fi>
parents: 9571
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>'; \
9605
e96ea07f1437 quota: Fixed compiling with older automakes.
Timo Sirainen <tss@iki.fi>
parents: 9591
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
92bce6a3fdad Generate also rquota_xdr.h.
Timo Sirainen <tss@iki.fi>
parents: 6435
diff changeset
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
2ab3cb6af745 rquota_xdr.h -> rquota.h
Timo Sirainen <tss@iki.fi>
parents: 6437
diff changeset
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
9023
e4d1cc1d9b46 rquota.x was missing from distribution tarball.
Timo Sirainen <tss@iki.fi>
parents: 9021
diff changeset
64 EXTRA_DIST = rquota.x
e4d1cc1d9b46 rquota.x was missing from distribution tarball.
Timo Sirainen <tss@iki.fi>
parents: 9021
diff changeset
65
6439
b951f3e42322 Yet another try at getting rquota code compiling properly with BSD make.
Timo Sirainen <tss@iki.fi>
parents: 6438
diff changeset
66 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
67
b951f3e42322 Yet another try at getting rquota code compiling properly with BSD make.
Timo Sirainen <tss@iki.fi>
parents: 6438
diff changeset
68 clean-generic:
b951f3e42322 Yet another try at getting rquota code compiling properly with BSD make.
Timo Sirainen <tss@iki.fi>
parents: 6438
diff changeset
69 rm -f rquota_xdr.c rquota.h