574fe75809
- Sort the includes of pack.c, moving sys/*.h files near the top. - Add a couple of missing #include lines, and remove the need for custom -include options in the CFLAGS of the test Makefile. - Remove the ad-hoc 'all' target, but keep its 'regress' bits for testing. - Convert the ad-hoc 'clean' target to proper CLEANFILES stuff, so that the normal bsd.prog.mk machinery can clean up. - Use `make -V .OBJDIR' to detect the place where 'pack' lives, so that regress.t works both with and without 'make obj'. Reviewed by: uqs MFC after: 1 week
23 lines
374 B
Makefile
23 lines
374 B
Makefile
#
|
|
# $FreeBSD$
|
|
#
|
|
# "make" will compile the acct test programs
|
|
#
|
|
|
|
PROG= pack
|
|
SRCS= pack.c
|
|
NO_MAN=
|
|
CFLAGS+= -I${.OBJDIR}
|
|
|
|
pack.o: convert.c
|
|
|
|
CLEANFILES+= convert.c
|
|
convert.c: ../../../sys/kern/kern_acct.c
|
|
sed -n -e 's/log(/syslog(/g' \
|
|
-e '/FLOAT_CONVERSION_START/,/FLOAT_CONVERSION_END/p' $? >$@
|
|
|
|
regress: pack regress.t
|
|
${.CURDIR}/regress.t
|
|
|
|
.include <bsd.prog.mk>
|