xref: /openbsd/regress/lib/libcrypto/free/Makefile (revision fa27b1a1)
1#	$OpenBSD: Makefile,v 1.5 2023/04/15 14:10:09 tb Exp $
2
3TESTS = \
4	freenull
5
6PROG = ${TESTS}
7
8REGRESS_TARGETS= all_tests
9
10LDADD=		-lcrypto
11DPADD=		${LIBCRYPTO}
12
13CLEANFILES+= freenull.c freenull.c.body freenull.c.tmp
14
15freenull.c: freenull.awk ../../../../lib/libcrypto/Symbols.list
16	awk -f ${.CURDIR}/freenull.awk \
17		< ${BSDSRCDIR}/lib/libcrypto/Symbols.list > freenull.c.body
18	cat ${.CURDIR}/freenull.c.head freenull.c.body \
19		${.CURDIR}/freenull.c.tail > freenull.c.tmp
20	mv freenull.c.tmp freenull.c
21
22all_tests: ${TESTS}
23	@for test in $>; do \
24		./$$test; \
25	done
26
27.include <bsd.regress.mk>
28