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 \
|
2022-11-23 23:28:34 +01:00
|
|
|
-D__REENTRANT \
|
|
|
|
# EOL
|
2012-03-23 10:43:33 +01:00
|
|
|
|
2015-12-12 14:26:50 +01:00
|
|
|
AM_CPPFLAGS = \
|
|
|
|
-isystem $(top_srcdir)/include/bsd/ \
|
|
|
|
$(HEADERS_CPPFLAGS) \
|
2022-11-23 23:28:34 +01:00
|
|
|
-DLIBBSD_OVERLAY \
|
|
|
|
# EOL
|
2015-12-12 14:26:50 +01:00
|
|
|
|
|
|
|
AM_TESTS_ENVIRONMENT = \
|
|
|
|
export CC="$(CC)"; \
|
|
|
|
export CPPFLAGS="$(HEADERS_CPPFLAGS)"; \
|
|
|
|
export top_srcdir="$(top_srcdir)"; \
|
2022-11-23 23:28:34 +01:00
|
|
|
# EOL
|
2015-12-12 14:26:50 +01:00
|
|
|
|
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 \
|
2022-11-23 23:28:34 +01:00
|
|
|
# EOL
|
2015-12-12 14:26:50 +01:00
|
|
|
|
|
|
|
check_SCRIPTS = \
|
|
|
|
headers-overlay.sh \
|
|
|
|
headers-system.sh \
|
2022-11-23 23:28:34 +01:00
|
|
|
# EOL
|
2015-12-12 14:26:50 +01:00
|
|
|
|
2012-03-23 10:43:33 +01:00
|
|
|
check_PROGRAMS = \
|
2012-03-24 20:37:55 +01:00
|
|
|
overlay \
|
2012-03-23 10:43:33 +01:00
|
|
|
endian \
|
2024-02-11 23:55:40 +01:00
|
|
|
# EOL
|
|
|
|
|
|
|
|
if ABI_ACCMODE
|
|
|
|
check_PROGRAMS += \
|
2017-06-18 20:29:52 +02:00
|
|
|
setmode \
|
2022-11-23 23:28:34 +01:00
|
|
|
# EOL
|
2024-02-11 23:55:40 +01:00
|
|
|
endif
|
2012-03-23 10:43:33 +01:00
|
|
|
|
2024-02-14 04:59:44 +01:00
|
|
|
if ABI_ARC4RANDOM
|
2024-02-11 23:55:40 +01:00
|
|
|
if HAVE_LIBTESTU01
|
|
|
|
check_PROGRAMS += arc4random
|
2023-04-22 22:47:10 +02:00
|
|
|
|
2024-02-11 23:55:40 +01:00
|
|
|
arc4random_LDADD = $(LDADD) $(TESTU01_LIBS)
|
2023-04-04 23:59:05 +02:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2024-02-11 23:55:40 +01:00
|
|
|
if ABI_CLOSEFROM
|
|
|
|
check_PROGRAMS += \
|
|
|
|
closefrom \
|
|
|
|
# EOL
|
|
|
|
endif
|
|
|
|
|
|
|
|
if ABI_EXPLICIT_BZERO
|
|
|
|
check_PROGRAMS += \
|
|
|
|
bzero \
|
|
|
|
explicit_bzero \
|
|
|
|
# EOL
|
|
|
|
endif
|
|
|
|
|
|
|
|
if ABI_FGETLN
|
|
|
|
check_PROGRAMS += \
|
|
|
|
fgetln \
|
|
|
|
fparseln \
|
|
|
|
# EOL
|
|
|
|
|
2024-02-11 23:55:40 +01:00
|
|
|
fgetln_SOURCES = \
|
|
|
|
test-stream.c \
|
|
|
|
test-stream.h \
|
|
|
|
fgetln.c \
|
|
|
|
# EOL
|
|
|
|
|
|
|
|
fgetln_CFLAGS = -Wno-deprecated-declarations
|
|
|
|
|
|
|
|
fparseln_SOURCES = \
|
|
|
|
test-stream.c \
|
|
|
|
test-stream.h \
|
|
|
|
fparseln.c \
|
|
|
|
# EOL
|
2024-02-11 23:55:40 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
if ABI_FPURGE
|
|
|
|
check_PROGRAMS += fpurge
|
|
|
|
endif
|
|
|
|
|
|
|
|
if ABI_FUNOPEN
|
|
|
|
check_PROGRAMS += funopen
|
|
|
|
endif
|
|
|
|
|
|
|
|
if ABI_HUMANIZE_NUMBER
|
|
|
|
check_PROGRAMS += \
|
|
|
|
humanize \
|
|
|
|
# EOL
|
|
|
|
endif
|
2023-04-04 23:59:05 +02:00
|
|
|
|
2024-02-14 04:59:44 +01:00
|
|
|
if ABI_FPURGE
|
2023-04-04 23:59:05 +02:00
|
|
|
check_PROGRAMS += fpurge
|
|
|
|
endif
|
|
|
|
|
2024-02-14 04:59:44 +01:00
|
|
|
if ABI_FUNOPEN
|
2022-11-23 23:31:54 +01:00
|
|
|
check_PROGRAMS += funopen
|
|
|
|
endif
|
|
|
|
|
2024-02-14 04:59:44 +01:00
|
|
|
if ABI_MD5
|
2024-02-11 23:55:40 +01:00
|
|
|
check_PROGRAMS += md5
|
2015-11-16 01:12:24 +01:00
|
|
|
|
2024-02-14 04:59:44 +01:00
|
|
|
if ABI_TRANSPARENT_LIBMD
|
2024-02-11 23:55:40 +01:00
|
|
|
# On the installed system this is handled via the ld script.
|
|
|
|
md5_LDADD = $(LDADD) $(MD5_LIBS)
|
2015-11-16 01:12:24 +01:00
|
|
|
endif
|
2023-04-04 23:59:05 +02:00
|
|
|
endif
|
2015-11-16 01:12:24 +01:00
|
|
|
|
2024-02-14 04:59:44 +01:00
|
|
|
if ABI_NLIST
|
2024-02-11 23:55:40 +01:00
|
|
|
check_PROGRAMS += nlist
|
|
|
|
endif
|
|
|
|
|
2024-02-11 23:55:40 +01:00
|
|
|
if ABI_PROGNAME
|
|
|
|
check_PROGRAMS += progname
|
|
|
|
endif
|
|
|
|
|
|
|
|
if ABI_PROCTITLE
|
|
|
|
check_PROGRAMS += \
|
|
|
|
proctitle-init \
|
|
|
|
# EOL
|
|
|
|
|
2024-02-11 23:55:40 +01:00
|
|
|
proctitle_init_SOURCES = \
|
|
|
|
proctitle.c \
|
|
|
|
# EOL
|
|
|
|
|
|
|
|
proctitle_init_CPPFLAGS = $(AM_CPPFLAGS) -DTEST_USE_SETPROCTITLE_INIT=1
|
|
|
|
|
2014-07-20 01:48:20 +02:00
|
|
|
if BUILD_LIBBSD_CTOR
|
2024-02-11 23:55:40 +01:00
|
|
|
check_PROGRAMS += proctitle
|
|
|
|
|
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 \
|
2022-11-23 23:28:34 +01:00
|
|
|
# EOL
|
2014-07-20 01:48:20 +02:00
|
|
|
endif
|
2024-02-11 23:55:40 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
if ABI_PWCACHE
|
|
|
|
check_PROGRAMS += \
|
|
|
|
pwcache \
|
|
|
|
# EOL
|
|
|
|
endif
|
2014-07-20 01:48:20 +02:00
|
|
|
|
2024-02-14 04:59:44 +01:00
|
|
|
if ABI_PROGNAME
|
2024-02-11 23:55:40 +01:00
|
|
|
check_PROGRAMS += progname
|
2023-04-04 23:59:05 +02:00
|
|
|
endif
|
2021-11-28 22:44:08 +01:00
|
|
|
|
2024-02-14 04:59:44 +01:00
|
|
|
if ABI_STRL
|
2024-02-11 23:55:40 +01:00
|
|
|
check_PROGRAMS += strl
|
|
|
|
endif
|
2015-09-22 20:56:15 +02:00
|
|
|
|
2024-02-14 04:59:44 +01:00
|
|
|
if ABI_STRMODE
|
2024-02-11 23:55:40 +01:00
|
|
|
check_PROGRAMS += strmode
|
|
|
|
endif
|
2014-11-01 00:52:42 +01:00
|
|
|
|
2024-02-11 23:55:40 +01:00
|
|
|
if ABI_STRNSTR
|
|
|
|
check_PROGRAMS += \
|
|
|
|
strnstr \
|
|
|
|
# EOL
|
|
|
|
endif
|
|
|
|
|
|
|
|
if ABI_STRTONUM
|
|
|
|
check_PROGRAMS += \
|
|
|
|
strtonum \
|
|
|
|
# EOL
|
|
|
|
endif
|
|
|
|
|
|
|
|
if ABI_VIS
|
|
|
|
check_PROGRAMS += \
|
|
|
|
vis \
|
|
|
|
vis-openbsd \
|
|
|
|
# EOL
|
|
|
|
endif
|
|
|
|
|
2024-02-09 04:32:12 +01:00
|
|
|
if LIBBSD_SYS_IS_TIME32
|
|
|
|
check_PROGRAMS += timeconv32
|
|
|
|
endif
|
|
|
|
|
|
|
|
if LIBBSD_SYS_HAS_TIME64
|
|
|
|
check_PROGRAMS += timeconv64
|
|
|
|
endif
|
|
|
|
|
2015-12-12 14:26:50 +01:00
|
|
|
TESTS = $(check_SCRIPTS) $(check_PROGRAMS)
|