Branch
Hash :
32d18dcf
Author :
Date :
2024-02-09T04:32:12
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193
## Process this file with automake to produce Makefile.in
HEADERS_CPPFLAGS = \
-I$(top_builddir) \
-include $(top_builddir)/config.h \
-DLIBBSD_DISABLE_DEPRECATED \
-D__REENTRANT \
# EOL
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
check_PROGRAMS = \
overlay \
endian \
# EOL
if ABI_ACCMODE
check_PROGRAMS += \
setmode \
# EOL
endif
if ABI_ARC4RANDOM
if HAVE_LIBTESTU01
check_PROGRAMS += arc4random
arc4random_LDADD = $(LDADD) $(TESTU01_LIBS)
endif
endif
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
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
endif
if ABI_FPURGE
check_PROGRAMS += fpurge
endif
if ABI_FUNOPEN
check_PROGRAMS += funopen
endif
if ABI_HUMANIZE_NUMBER
check_PROGRAMS += \
humanize \
# EOL
endif
if ABI_FPURGE
check_PROGRAMS += fpurge
endif
if ABI_FUNOPEN
check_PROGRAMS += funopen
endif
if ABI_MD5
check_PROGRAMS += md5
if ABI_TRANSPARENT_LIBMD
# On the installed system this is handled via the ld script.
md5_LDADD = $(LDADD) $(MD5_LIBS)
endif
endif
if ABI_NLIST
check_PROGRAMS += nlist
endif
if ABI_PROGNAME
check_PROGRAMS += progname
endif
if ABI_PROCTITLE
check_PROGRAMS += \
proctitle-init \
# EOL
proctitle_init_SOURCES = \
proctitle.c \
# EOL
proctitle_init_CPPFLAGS = $(AM_CPPFLAGS) -DTEST_USE_SETPROCTITLE_INIT=1
if BUILD_LIBBSD_CTOR
check_PROGRAMS += proctitle
proctitle_LDFLAGS = \
-Wl,-u,libbsd_init_func \
$(top_builddir)/src/libbsd-ctor.a \
$(top_builddir)/src/libbsd.la \
# EOL
endif
endif
if ABI_PWCACHE
check_PROGRAMS += \
pwcache \
# EOL
endif
if ABI_PROGNAME
check_PROGRAMS += progname
endif
if ABI_STRL
check_PROGRAMS += strl
endif
if ABI_STRMODE
check_PROGRAMS += strmode
endif
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
if LIBBSD_SYS_IS_TIME32
check_PROGRAMS += timeconv32
endif
if LIBBSD_SYS_HAS_TIME64
check_PROGRAMS += timeconv64
endif
TESTS = $(check_SCRIPTS) $(check_PROGRAMS)