xref: /freebsd/tests/sys/kern/acct/Makefile (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1# $FreeBSD$
2
3TESTSDIR=	${TESTSBASE}/sys/kern/acct
4
5ATF_TESTS_C=	acct_test
6
7CFLAGS+=	-I${.OBJDIR}
8
9CLEANFILES+=	convert.c convert.c.tmp
10
11DPSRCS.acct_test=	convert.c
12acct_test.o: convert.c
13
14convert.c: ${SRCTOP}/sys/kern/kern_acct.c
15	sed -n -e 's/log(/syslog(/g' \
16	       -e 's/exp/exponent/g' \
17	       -e '/FLOAT_CONVERSION_START/,/FLOAT_CONVERSION_END/p' ${.ALLSRC} >${.TARGET}.tmp
18	mv ${.TARGET}.tmp ${.TARGET}
19
20.include <bsd.test.mk>
21