2012-03-23 10:43:33 +01:00
|
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
|
2015-12-12 14:26:50 +01:00
|
|
|
HEADERS_CPPFLAGS = \
|
2012-03-23 10:43:33 +01:00
|
|
|
-I$(top_builddir) \
|
|
|
|
-include $(top_builddir)/config.h \
|
2015-12-12 14:26:50 +01:00
|
|
|
-DLIBBSD_DISABLE_DEPRECATED \
|
2012-03-23 10:43:33 +01:00
|
|
|
-D__REENTRANT
|
|
|
|
|
2015-12-12 14:26:50 +01:00
|
|
|
AM_CPPFLAGS = \
|
|
|
|
-isystem $(top_srcdir)/include/bsd/ \
|
|
|
|
$(HEADERS_CPPFLAGS) \
|
|
|
|
-DLIBBSD_OVERLAY
|
|
|
|
|
|
|
|
AM_TESTS_ENVIRONMENT = \
|
|
|
|
export CC="$(CC)"; \
|
|
|
|
export CPPFLAGS="$(HEADERS_CPPFLAGS)"; \
|
|
|
|
export top_srcdir="$(top_srcdir)"; \
|
|
|
|
$(nil)
|
|
|
|
|
2014-11-01 00:52:42 +01:00
|
|
|
LDADD = $(top_builddir)/src/libbsd.la
|
|
|
|
|
2015-12-12 14:26:50 +01:00
|
|
|
EXTRA_DIST = \
|
|
|
|
headers-overlay.sh \
|
|
|
|
headers-system.sh \
|
|
|
|
$(nil)
|
|
|
|
|
|
|
|
check_SCRIPTS = \
|
|
|
|
headers-overlay.sh \
|
|
|
|
headers-system.sh \
|
|
|
|
$(nil)
|
|
|
|
|
2012-03-23 10:43:33 +01:00
|
|
|
check_PROGRAMS = \
|
2012-03-24 20:37:55 +01:00
|
|
|
overlay \
|
2015-09-23 19:37:37 +02:00
|
|
|
bzero \
|
2015-09-23 04:40:21 +02:00
|
|
|
closefrom \
|
2012-03-23 10:43:33 +01:00
|
|
|
endian \
|
2013-05-26 04:34:57 +02:00
|
|
|
humanize \
|
2013-05-23 02:05:19 +02:00
|
|
|
fgetln \
|
2013-10-21 05:07:56 +02:00
|
|
|
funopen \
|
2015-09-22 22:30:17 +02:00
|
|
|
fparseln \
|
2014-11-01 00:54:09 +01:00
|
|
|
fpurge \
|
2016-03-27 12:31:58 +02:00
|
|
|
md5 \
|
2017-06-14 01:52:12 +02:00
|
|
|
nlist \
|
2014-07-20 01:48:20 +02:00
|
|
|
proctitle-init \
|
2017-06-18 20:30:19 +02:00
|
|
|
progname \
|
2017-06-18 20:29:52 +02:00
|
|
|
setmode \
|
2017-06-09 05:13:32 +02:00
|
|
|
strl \
|
2015-09-30 04:17:15 +02:00
|
|
|
strmode \
|
2017-06-18 20:30:40 +02:00
|
|
|
strnstr \
|
2018-05-22 13:50:44 +02:00
|
|
|
vis \
|
|
|
|
vis-openbsd \
|
2012-03-23 10:43:33 +01:00
|
|
|
$(nil)
|
|
|
|
|
2015-11-16 01:12:24 +01:00
|
|
|
if HAVE_LIBTESTU01
|
|
|
|
arc4random_LDADD = $(LDADD) $(TESTU01_LIBS)
|
|
|
|
|
|
|
|
check_PROGRAMS += arc4random
|
|
|
|
endif
|
|
|
|
|
2014-07-20 01:48:20 +02:00
|
|
|
if BUILD_LIBBSD_CTOR
|
2015-11-30 02:48:23 +01:00
|
|
|
proctitle_LDFLAGS = \
|
|
|
|
-Wl,-u,libbsd_init_func \
|
|
|
|
$(top_builddir)/src/libbsd-ctor.a \
|
|
|
|
$(top_builddir)/src/libbsd.la \
|
|
|
|
$(nil)
|
|
|
|
|
2014-07-20 01:48:20 +02:00
|
|
|
check_PROGRAMS += proctitle
|
|
|
|
endif
|
|
|
|
|
2015-09-22 20:56:15 +02:00
|
|
|
fgetln_SOURCES = test-stream.c test-stream.h fgetln.c
|
2015-09-22 16:22:56 +02:00
|
|
|
fgetln_CFLAGS = -Wno-deprecated-declarations
|
2015-09-22 22:30:17 +02:00
|
|
|
fparseln_SOURCES = test-stream.c test-stream.h fparseln.c
|
2015-09-22 20:56:15 +02:00
|
|
|
|
2014-07-20 01:48:20 +02:00
|
|
|
proctitle_init_SOURCES = proctitle.c
|
|
|
|
proctitle_init_CPPFLAGS = $(AM_CPPFLAGS) -DTEST_USE_SETPROCTITLE_INIT=1
|
2014-11-01 00:52:42 +01:00
|
|
|
|
2015-12-12 14:26:50 +01:00
|
|
|
TESTS = $(check_SCRIPTS) $(check_PROGRAMS)
|