view src/lib/Makefile.am @ 23007:36e01285b5b8

lib: buffer - Improve header comment for buffer_insert() and buffer_delete().
author Stephan Bosch <stephan.bosch@dovecot.fi>
date Mon, 18 Mar 2019 00:52:37 +0100
parents 708b4dda62dc
children
line wrap: on
line source

noinst_LTLIBRARIES = liblib.la

BUILT_SOURCES = unicodemap.c

EXTRA_DIST = unicodemap.c unicodemap.pl UnicodeData.txt

UnicodeData.txt:
	test -f UnicodeData.txt || wget https://dovecot.org/res/UnicodeData.txt

$(srcdir)/unicodemap.c: unicodemap.pl UnicodeData.txt
	perl $(srcdir)/unicodemap.pl < UnicodeData.txt > $@

liblib_la_SOURCES = \
	abspath.c \
	array.c \
	aqueue.c \
	askpass.c \
	backtrace-string.c \
	base32.c \
	base64.c \
	bits.c \
	bsearch-insert-pos.c \
	buffer.c \
	child-wait.c \
	compat.c \
	connection.c \
	crc32.c \
	data-stack.c \
	eacces-error.c \
	env-util.c \
	execv-const.c \
	failures.c \
	fd-close-on-exec.c \
	fd-set-nonblock.c \
	fdatasync-path.c \
	fdpass.c \
	file-cache.c \
	file-create-locked.c \
	file-copy.c \
	file-dotlock.c \
	file-lock.c \
	file-set-size.c \
	guid.c \
	hash.c \
	hash-format.c \
	hash-method.c \
	hash2.c \
	hex-binary.c \
	hex-dec.c \
	hmac.c \
	hmac-cram-md5.c \
	home-expand.c \
	hook-build.c \
	hostpid.c \
	imem.c \
	ipwd.c \
	iostream.c \
	iostream-rawlog.c \
	iostream-temp.c \
	iso8601-date.c \
	istream.c \
	istream-base64-decoder.c \
	istream-base64-encoder.c \
	istream-callback.c \
	istream-chain.c \
	istream-concat.c \
	istream-crlf.c \
	istream-data.c \
	istream-failure-at.c \
	istream-file.c \
	istream-hash.c \
	istream-jsonstr.c \
	istream-limit.c \
	istream-mmap.c \
	istream-multiplex.c \
	istream-rawlog.c \
	istream-seekable.c \
	istream-sized.c \
	istream-tee.c \
	istream-try.c \
	istream-timeout.c \
	istream-unix.c \
	ioloop.c \
	ioloop-iolist.c \
	ioloop-notify-none.c \
	ioloop-notify-fd.c \
	ioloop-notify-inotify.c \
	ioloop-notify-kqueue.c \
	ioloop-poll.c \
	ioloop-select.c \
	ioloop-epoll.c \
	ioloop-kqueue.c \
	json-parser.c \
	json-tree.c \
	lib.c \
	lib-signals.c \
	log-throttle.c \
	md4.c \
	md5.c \
	mempool.c \
	mempool-alloconly.c \
	mempool-datastack.c \
	mempool-system.c \
	mempool-unsafe-datastack.c \
	mkdir-parents.c \
	mmap-anon.c \
	mmap-util.c \
	module-dir.c \
	mountpoint.c \
	net.c \
	nfs-workarounds.c \
	numpack.c \
	ostream.c \
	ostream-buffer.c \
	ostream-escaped.c \
	ostream-failure-at.c \
	ostream-file.c \
	ostream-hash.c \
	ostream-multiplex.c \
	ostream-null.c \
	ostream-rawlog.c \
	ostream-unix.c \
	pkcs5.c \
	primes.c \
	printf-format-fix.c \
	process-title.c \
	priorityq.c \
	randgen.c \
	rand.c \
	read-full.c \
	restrict-access.c \
	restrict-process-size.c \
	safe-memset.c \
	safe-mkdir.c \
	safe-mkstemp.c \
	sendfile-util.c \
	seq-range-array.c \
	sha1.c \
	sha2.c \
	sha3.c \
	str.c \
	str-find.c \
	str-sanitize.c \
	str-table.c \
	strescape.c \
	strfuncs.c \
	strnum.c \
	time-util.c \
	timing.c \
	unix-socket-create.c \
	unlink-directory.c \
	unlink-old-files.c \
	unichar.c \
	uri-util.c \
	utc-offset.c \
	utc-mktime.c \
	var-expand.c \
	var-expand-if.c \
	wildcard-match.c \
	write-full.c

headers = \
	abspath.h \
	aqueue.h \
	array.h \
	array-decl.h \
	askpass.h \
	backtrace-string.h \
	base32.h \
	base64.h \
	bits.h \
	bsearch-insert-pos.h \
	buffer.h \
	byteorder.h \
	child-wait.h \
	compat.h \
	connection.h \
	crc32.h \
	data-stack.h \
	eacces-error.h \
	env-util.h \
	execv-const.h \
	failures.h \
	fd-close-on-exec.h \
	fd-set-nonblock.h \
	fdatasync-path.h \
	fdpass.h \
	file-cache.h \
	file-create-locked.h \
	file-copy.h \
	file-dotlock.h \
	file-lock.h \
	file-set-size.h \
	fsync-mode.h \
	guid.h \
	hash.h \
	hash-decl.h \
	hash-format.h \
	hash-method.h \
	hash2.h \
	hex-binary.h \
	hex-dec.h \
	hmac.h \
	hmac-cram-md5.h \
	home-expand.h \
	hook-build.h \
	hostpid.h \
	imem.h \
	ipwd.h \
	iostream.h \
	iostream-private.h \
	iostream-rawlog.h \
	iostream-rawlog-private.h \
	iostream-temp.h \
	iso8601-date.h \
	istream.h \
	istream-base64.h \
	istream-callback.h \
	istream-chain.h \
	istream-concat.h \
	istream-crlf.h \
	istream-failure-at.h \
	istream-file-private.h \
	istream-hash.h \
	istream-jsonstr.h \
	istream-multiplex.h \
	istream-private.h \
	istream-rawlog.h \
	istream-seekable.h \
	istream-sized.h \
	istream-tee.h \
	istream-try.h \
	istream-timeout.h \
	istream-unix.h \
	ioloop.h \
	ioloop-iolist.h \
	ioloop-private.h \
	ioloop-notify-fd.h \
	json-parser.h \
	json-tree.h \
	lib.h \
	lib-signals.h \
	llist.h \
	log-throttle.h \
	macros.h \
	md4.h \
	md5.h \
	malloc-overflow.h \
	mempool.h \
	mkdir-parents.h \
	mmap-util.h \
	module-context.h \
	module-dir.h \
	mountpoint.h \
	net.h \
	nfs-workarounds.h \
	numpack.h \
	ostream.h \
	ostream-escaped.h \
	ostream-failure-at.h \
	ostream-file-private.h \
	ostream-hash.h \
	ostream-multiplex.h \
	ostream-private.h \
	ostream-null.h \
	ostream-rawlog.h \
	ostream-unix.h \
	pkcs5.h \
	primes.h \
	printf-format-fix.h \
	process-title.h \
	priorityq.h \
	rand.h \
	randgen.h \
	read-full.h \
	restrict-access.h \
	restrict-process-size.h \
	safe-memset.h \
	safe-mkdir.h \
	safe-mkstemp.h \
	sendfile-util.h \
	seq-range-array.h \
	sha-common.h \
	sha1.h \
	sha2.h \
	sha3.h \
	sort.h \
	str.h \
	str-find.h \
	str-sanitize.h \
	str-table.h \
	strescape.h \
	strfuncs.h \
	strnum.h \
	time-util.h \
	timing.h \
	unix-socket-create.h \
	unlink-directory.h \
	unlink-old-files.h \
	unichar.h \
	uri-util.h \
	utc-offset.h \
	utc-mktime.h \
	var-expand.h \
	var-expand-private.h \
	wildcard-match.h \
	write-full.h

test_programs = test-lib
noinst_PROGRAMS = $(test_programs)

test_lib_CPPFLAGS = \
	-I$(top_srcdir)/src/lib-test

test_libs = \
	../lib-test/libtest.la \
	liblib.la

test_lib_SOURCES = \
	test-lib.c \
	test-array.c \
	test-aqueue.c \
	test-base32.c \
	test-base64.c \
	test-bits.c \
	test-bsearch-insert-pos.c \
	test-buffer.c \
	test-byteorder.c \
	test-crc32.c \
	test-data-stack.c \
	test-failures.c \
	test-file-create-locked.c \
	test-guid.c \
	test-hash.c \
	test-hash-format.c \
	test-hash-method.c \
	test-hex-binary.c \
	test-imem.c \
	test-ioloop.c \
	test-iso8601-date.c \
	test-iostream-temp.c \
	test-istream.c \
	test-istream-base64-decoder.c \
	test-istream-base64-encoder.c \
	test-istream-chain.c \
	test-istream-concat.c \
	test-istream-crlf.c \
	test-istream-failure-at.c \
	test-istream-multiplex.c \
	test-istream-seekable.c \
	test-istream-tee.c \
	test-istream-try.c \
	test-istream-unix.c \
	test-json-parser.c \
	test-json-tree.c \
	test-llist.c \
	test-log-throttle.c \
	test-malloc-overflow.c \
	test-mempool.c \
	test-mempool-alloconly.c \
	test-pkcs5.c \
	test-net.c \
	test-numpack.c \
	test-ostream-buffer.c \
	test-ostream-escaped.c \
	test-ostream-failure-at.c \
	test-ostream-file.c \
	test-ostream-multiplex.c \
	test-multiplex.c \
	test-primes.c \
	test-printf-format-fix.c \
	test-priorityq.c \
	test-seq-range-array.c \
	test-str.c \
	test-strescape.c \
	test-strfuncs.c \
	test-strnum.c \
	test-str-find.c \
	test-str-sanitize.c \
	test-str-table.c \
	test-time-util.c \
	test-timing.c \
	test-unichar.c \
	test-utc-mktime.c \
	test-var-expand.c \
	test-wildcard-match.c

test_headers = \
	test-lib.h

test_lib_LDADD = $(test_libs)
test_lib_DEPENDENCIES = $(test_libs)

check: check-am check-test
check-test: all-am
	for bin in $(test_programs); do \
	  if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
	done

pkginc_libdir=$(pkgincludedir)
pkginc_lib_HEADERS = $(headers)
noinst_HEADERS = $(test_headers)