view src/plugins/zlib/Makefile.am @ 14682:d0d7b810646b

Make sure we check all the functions' return values. Minor API changes to simplify this. Checked using a patched clang that adds attribute(warn_unused_result) to all functions. This commit fixes several error handling mistakes.
author Timo Sirainen <tss@iki.fi>
date Mon, 25 Jun 2012 01:14:03 +0300
parents 0be58f3930b2
children 378ba560ea9f
line wrap: on
line source

doveadm_moduledir = $(moduledir)/doveadm

AM_CPPFLAGS = \
	-I$(top_srcdir)/src/lib \
	-I$(top_srcdir)/src/lib-master \
	-I$(top_srcdir)/src/lib-mail \
	-I$(top_srcdir)/src/lib-index \
	-I$(top_srcdir)/src/lib-storage \
	-I$(top_srcdir)/src/lib-storage/index \
	-I$(top_srcdir)/src/lib-storage/index/dbox-common \
	-I$(top_srcdir)/src/doveadm

NOPLUGIN_LDFLAGS =
lib10_doveadm_zlib_plugin_la_LDFLAGS = -module -avoid-version
lib20_zlib_plugin_la_LDFLAGS = -module -avoid-version

module_LTLIBRARIES = \
	lib20_zlib_plugin.la

if BUILD_ZLIB
ZLIB_LIB = -lz
endif
if BUILD_BZLIB
BZLIB_LIB = -lbz2
endif

lib20_zlib_plugin_la_LIBADD = \
	$(ZLIB_LIB) $(BZLIB_LIB)

lib20_zlib_plugin_la_SOURCES = \
	istream-bzlib.c \
	istream-zlib.c \
	ostream-zlib.c \
	ostream-bzlib.c \
	zlib-plugin.c

noinst_HEADERS = \
	istream-zlib.h \
	ostream-zlib.h \
	zlib-plugin.h

doveadm_module_LTLIBRARIES = \
	lib10_doveadm_zlib_plugin.la

lib10_doveadm_zlib_plugin_la_SOURCES = \
	doveadm-zlib.c