Makefile.am revision 1ed1ad066e4aa313e33dafedb892fb84946caceb
AM_CPPFLAGS = \
-I$(top_srcdir)/src/lib \
-I$(top_srcdir)/src/lib-dict \
-I$(top_srcdir)/src/lib-index \
-I$(top_srcdir)/src/lib-mail \
-I$(top_srcdir)/src/lib-storage \
-I$(top_srcdir)/src/lib-storage/index \
-I$(top_srcdir)/src/lib-storage/index/maildir
lib10_quota_plugin_la_LDFLAGS = -module -avoid-version
module_LTLIBRARIES = \
if HAVE_RQUOTA
lib10_quota_plugin_la_LIBADD = \
-lrpcsvc
endif
quota_dist_sources = \
quota.c \
lib10_quota_plugin_la_SOURCES = \
$(quota_dist_sources) \
$(RQUOTA_XDR)
if HAVE_RQUOTA
RQUOTA_XDR = rquota_xdr.c
#RQUOTA_X = /usr/include/rpcsvc/rquota.x
RQUOTA_X = $(srcdir)/rquota.x
rquota_xdr.c: Makefile $(RQUOTA_X)
(echo '#include "lib.h"'; \
echo '#include <rpc/rpc.h>'; \
$(RPCGEN) -c $(RQUOTA_X) | \
sed -e 's/IXDR_PUT/(void)IXDR_PUT/g' \
-e 's,/usr/include/rpcsvc/rquota.h,rquota.h,' \
-e 's/int32_t \*buf/int32_t *buf ATTR_UNUSED/' \
-e 's/^static char rcsid.*//' ) > rquota_xdr.c
rquota.h: Makefile $(RQUOTA_X)
$(RPCGEN) -h $(RQUOTA_X) > rquota.h
endif
noinst_HEADERS = \
quota.h \
EXTRA_DIST = rquota.x
DISTFILES = $(DIST_COMMON) $(quota_dist_sources) $(TEXINFOS) $(EXTRA_DIST)
clean-generic:
rm -f rquota_xdr.c rquota.h