dad64f0e7c
* Drop <err.h>, which is unnecessary since we use libxo. * As per POSIX, report an error if output fails. * Fix some type mismatches. * Use bool instead of int where appropriate. * Avoid repeatedly checking for a null filename. * Miscellaneous other tidying. * Add tests (partly derived from work performed by SHENG-YI HONG <i19780219111@kimo.com>). Sponsored by: Klara, Inc. Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D38496
19 lines
263 B
Makefile
19 lines
263 B
Makefile
# @(#)Makefile 8.1 (Berkeley) 6/6/93
|
|
# $FreeBSD$
|
|
|
|
.include <src.opts.mk>
|
|
|
|
PROG= wc
|
|
LIBADD= xo
|
|
|
|
.if ${MK_CASPER} != "no"
|
|
LIBADD+= casper
|
|
LIBADD+= cap_fileargs
|
|
CFLAGS+=-DWITH_CASPER
|
|
.endif
|
|
|
|
HAS_TESTS=
|
|
SUBDIR.${MK_TESTS}= tests
|
|
|
|
.include <bsd.prog.mk>
|