view src/lib/Makefile.am @ 9258:665ea7a8d26e HEAD

Tests are now run on "make check". Added initial tests for lib-index. Moved old tests away from tests/ to libraries' individual directories.
author Timo Sirainen <tss@iki.fi>
date Sat, 09 May 2009 16:20:41 -0400
parents 3cac418eeab5
children 810e36796e3d
line wrap: on
line source

noinst_LTLIBRARIES = liblib.la

BUILT_SOURCES = unicodemap.c

EXTRA_DIST = unicodemap.c unicodemap.pl

$(srcdir)/unicodemap.c:
	test -f UnicodeData.txt || wget http://www.unicode.org/Public/UNIDATA/UnicodeData.txt
	perl $(srcdir)/unicodemap.pl < UnicodeData.txt > $@

liblib_la_SOURCES = \
	array.c \
	aqueue.c \
	backtrace-string.c \
	base64.c \
	bsearch-insert-pos.c \
	buffer.c \
	child-wait.c \
	close-keep-errno.c \
	compat.c \
	crc32.c \
	data-stack.c \
	eacces-error.c \
	env-util.c \
	failures.c \
	fd-close-on-exec.c \
	fd-set-nonblock.c \
	fdatasync-path.c \
	fdpass.c \
	file-cache.c \
	file-copy.c \
	file-dotlock.c \
	file-lock.c \
	file-set-size.c \
	hash.c \
	hash2.c \
	hex-binary.c \
	hex-dec.c \
	hmac-md5.c \
	home-expand.c \
	hostpid.c \
	imem.c \
	iostream.c \
	istream.c \
	istream-concat.c \
	istream-crlf.c \
	istream-data.c \
	istream-file.c \
	istream-limit.c \
	istream-mmap.c \
	istream-seekable.c \
	istream-tee.c \
	ioloop.c \
	ioloop-iolist.c \
	ioloop-notify-none.c \
	ioloop-notify-fd.c \
	ioloop-notify-dn.c \
	ioloop-notify-inotify.c \
	ioloop-notify-kqueue.c \
	ioloop-poll.c \
	ioloop-select.c \
	ioloop-epoll.c \
	ioloop-kqueue.c \
	lib.c \
	lib-signals.c \
	md4.c \
	md5.c \
	mempool.c \
	mempool-alloconly.c \
	mempool-datastack.c \
	mempool-system.c \
	mempool-system-clean.c \
	mempool-unsafe-datastack.c \
	mkdir-parents.c \
	mmap-anon.c \
	mmap-util.c \
	module-dir.c \
	mountpoint.c \
	network.c \
	nfs-workarounds.c \
	ostream.c \
	ostream-file.c \
	primes.c \
	printf-format-fix.c \
	process-title.c \
	priorityq.c \
	randgen.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 \
	str.c \
	str-find.c \
	str-sanitize.c \
	strescape.c \
	strfuncs.c \
	unix-socket-create.c \
	unlink-directory.c \
	unlink-old-files.c \
	unichar.c \
	utc-offset.c \
	utc-mktime.c \
	var-expand.c \
	write-full.c

headers = \
	aqueue.h \
	array.h \
	array-decl.h \
	backtrace-string.h \
	base64.h \
	bsearch-insert-pos.h \
	buffer.h \
	child-wait.h \
	close-keep-errno.h \
	compat.h \
	crc32.h \
	data-stack.h \
	eacces-error.h \
	env-util.h \
	failures.h \
	fd-close-on-exec.h \
	fd-set-nonblock.h \
	fdatasync-path.h \
	fdpass.h \
	file-cache.h \
	file-copy.h \
	file-dotlock.h \
	file-lock.h \
	file-set-size.h \
	hash.h \
	hash2.h \
	hex-binary.h \
	hex-dec.h \
	hmac-md5.h \
	home-expand.h \
	hostpid.h \
	imem.h \
	iostream-internal.h \
	istream.h \
	istream-concat.h \
	istream-crlf.h \
	istream-internal.h \
	istream-seekable.h \
	istream-tee.h \
	ioloop.h \
	ioloop-iolist.h \
	ioloop-internal.h \
	ioloop-notify-fd.h \
	lib.h \
	lib-signals.h \
	llist.h \
	macros.h \
	md4.h \
	md5.h \
	mempool.h \
	mkdir-parents.h \
	mmap-util.h \
	module-context.h \
	module-dir.h \
	mountpoint.h \
	network.h \
	nfs-workarounds.h \
	ostream.h \
	ostream-internal.h \
	primes.h \
	printf-format-fix.h \
	process-title.h \
	priorityq.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 \
	sha1.h \
	sha2.h \
	str.h \
	str-find.h \
	str-sanitize.h \
	strescape.h \
	strfuncs.h \
	unix-socket-create.h \
	unlink-directory.h \
	unlink-old-files.h \
	unichar.h \
	utc-offset.h \
	utc-mktime.h \
	var-expand.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-istream.c

test_headers = \
	test-lib.h

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

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

if INSTALL_HEADERS
  pkginc_libdir=$(pkgincludedir)
  pkginc_lib_HEADERS = $(headers)
  noinst_HEADERS = $(test_headers)
else
  noinst_HEADERS = $(headers) $(test_headers)
endif