Makefile.am revision ca44a6ba994aaa3231a20ef6e046dfd97a8dcd2d
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo SirainenAM_CPPFLAGS = \
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen -I$(top_srcdir)/src/lib \
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen -I$(top_srcdir)/src/lib-dict \
677e22747b82bf15b339e31d1d0106d62bf806daTimo Sirainen -I$(top_srcdir)/src/lib-index \
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen -I$(top_srcdir)/src/lib-mail \
677e22747b82bf15b339e31d1d0106d62bf806daTimo Sirainen -I$(top_srcdir)/src/lib-storage \
677e22747b82bf15b339e31d1d0106d62bf806daTimo Sirainen -I$(top_srcdir)/src/lib-storage/index \
677e22747b82bf15b339e31d1d0106d62bf806daTimo Sirainen -I$(top_srcdir)/src/lib-storage/index/maildir
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen
9d1526ac8bcec9aff3c3a32f092ee2f3da2760b7Timo Sirainenlib10_quota_plugin_la_LDFLAGS = -module -avoid-version
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainenmodule_LTLIBRARIES = \
9d1526ac8bcec9aff3c3a32f092ee2f3da2760b7Timo Sirainen lib10_quota_plugin.la
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen
23ad3970cd22adb6c875caf95fa791548849f0d1Timo Sirainenquota_dist_sources = \
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen quota.c \
62300a38f91227b9de043a9a8ec1d4f1978e1138Timo Sirainen quota-count.c \
a35cbba04d0a2823da98e693bd09a051addffdb2Timo Sirainen quota-fs.c \
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen quota-dict.c \
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen quota-dirsize.c \
cb951d3282610a9a0960230865bc5f3e3347b203Timo Sirainen quota-maildir.c \
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen quota-plugin.c \
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen quota-storage.c
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen
23ad3970cd22adb6c875caf95fa791548849f0d1Timo Sirainenlib10_quota_plugin_la_SOURCES = \
23ad3970cd22adb6c875caf95fa791548849f0d1Timo Sirainen $(quota_dist_sources) \
23ad3970cd22adb6c875caf95fa791548849f0d1Timo Sirainen $(RQUOTA_XDR)
f4526ec0e620af27bc027955f7a56cfe187c212fTimo Sirainen
23ad3970cd22adb6c875caf95fa791548849f0d1Timo Sirainenif HAVE_RQUOTA
23ad3970cd22adb6c875caf95fa791548849f0d1Timo SirainenRQUOTA_XDR = rquota_xdr.c
4c7caf83adc56d54e2ecec0a803f5ca9b6d0498dTimo Sirainen#RQUOTA_X = /usr/include/rpcsvc/rquota.x
667f09546abd3d3636b277fec9dba8622cb3d644Timo SirainenRQUOTA_X = $(srcdir)/rquota.x
23ad3970cd22adb6c875caf95fa791548849f0d1Timo Sirainenrquota_xdr.c: Makefile $(RQUOTA_X)
acbd82bd456316a32f61df67fc41bbff681119c7Timo Sirainen if [ "$(top_srcdir)" != "$(top_builddir)" ]; then \
acbd82bd456316a32f61df67fc41bbff681119c7Timo Sirainen cp $(RQUOTA_X) $(top_builddir)/src/plugins/quota/; \
9fd7e883292dab58f3c209f0ec6a8cd11e52075cTimo Sirainen fi; \
d0cc826dab58ed8e30e1ccd7cb6ad2f44b391a00Timo Sirainen (echo '#include "lib.h"'; \
d0cc826dab58ed8e30e1ccd7cb6ad2f44b391a00Timo Sirainen echo '#include <rpc/rpc.h>'; \
acbd82bd456316a32f61df67fc41bbff681119c7Timo Sirainen $(RPCGEN) -c $(top_builddir)/src/plugins/quota/rquota.x | \
fba3d682d6bad6a9530b254d6fd07dc5577be7feTimo Sirainen sed -e 's/IXDR_PUT/(void)IXDR_PUT/g' \
d0cc826dab58ed8e30e1ccd7cb6ad2f44b391a00Timo Sirainen -e 's,/usr/include/rpcsvc/rquota.h,rquota.h,' \
a321662b406acc9c9e6fe52332236740d449f591Timo Sirainen -e 's/int32_t \*buf/int32_t *buf ATTR_UNUSED/' \
a321662b406acc9c9e6fe52332236740d449f591Timo Sirainen -e 's/^static char rcsid.*//' ) > rquota_xdr.c
f740f218bbb1a98cea08dd82b601a8dd50f35093Timo Sirainen
23ad3970cd22adb6c875caf95fa791548849f0d1Timo Sirainenrquota.h: Makefile $(RQUOTA_X)
1707642460105a013eb08e902c9ffdb2cbd86a1eTimo Sirainen $(RPCGEN) -h $(RQUOTA_X) > rquota.h
23ad3970cd22adb6c875caf95fa791548849f0d1Timo Sirainen
23ad3970cd22adb6c875caf95fa791548849f0d1Timo Sirainenquota-fs.lo: rquota.h
23ad3970cd22adb6c875caf95fa791548849f0d1Timo Sirainen
fdbcd3027578d35cb6e12b44c06a46905024e300Timo Sirainenendif
fdbcd3027578d35cb6e12b44c06a46905024e300Timo Sirainen
797d20c35779d68f2542d3e287c1a869048c8f26Timo Sirainennoinst_HEADERS = \
797d20c35779d68f2542d3e287c1a869048c8f26Timo Sirainen quota.h \
a35cbba04d0a2823da98e693bd09a051addffdb2Timo Sirainen quota-fs.h \
797d20c35779d68f2542d3e287c1a869048c8f26Timo Sirainen quota-plugin.h \
797d20c35779d68f2542d3e287c1a869048c8f26Timo Sirainen quota-private.h
797d20c35779d68f2542d3e287c1a869048c8f26Timo Sirainen
88c580cdff2656df007fdfe5bd8ca8a465ee605aTimo SirainenEXTRA_DIST = rquota.x
88c580cdff2656df007fdfe5bd8ca8a465ee605aTimo Sirainen
23ad3970cd22adb6c875caf95fa791548849f0d1Timo SirainenDISTFILES = $(DIST_COMMON) $(quota_dist_sources) $(TEXINFOS) $(EXTRA_DIST)
23ad3970cd22adb6c875caf95fa791548849f0d1Timo Sirainen
23ad3970cd22adb6c875caf95fa791548849f0d1Timo Sirainenclean-generic:
acbd82bd456316a32f61df67fc41bbff681119c7Timo Sirainen if [ "$(top_srcdir)" != "$(top_builddir)" ]; then \
acbd82bd456316a32f61df67fc41bbff681119c7Timo Sirainen rm -f $(top_builddir)/src/plugins/quota/rquota.x; \
acbd82bd456316a32f61df67fc41bbff681119c7Timo Sirainen fi; \
23ad3970cd22adb6c875caf95fa791548849f0d1Timo Sirainen rm -f rquota_xdr.c rquota.h