libbsd/test/Makefile.am

91 lines
1.6 KiB
Makefile
Raw Normal View History

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