1994-05-26 06:18:55 +00:00
|
|
|
# @(#)Makefile 8.1 (Berkeley) 6/2/93
|
1999-08-27 23:15:48 +00:00
|
|
|
# $FreeBSD$
|
1994-05-26 06:18:55 +00:00
|
|
|
|
2014-05-06 04:22:01 +00:00
|
|
|
.include <src.opts.mk>
|
2012-05-19 18:05:00 +00:00
|
|
|
|
2016-02-09 16:58:50 +00:00
|
|
|
PACKAGE=runtime
|
1994-05-26 06:18:55 +00:00
|
|
|
PROG= ls
|
2002-10-24 00:07:30 +00:00
|
|
|
SRCS= cmp.c ls.c print.c util.c
|
Convert ls(1) to not use libxo(3)
libxo imposes a large burden on system utilities. In the case of ls, that
burden is difficult to justify -- any language that can interact with json
output can use readdir(3) and stat(2).
Logically, this reverts r291607, r285857, r285803, r285734, r285425,
r284494, r284489, r284252, and r284198.
Kyua tests continue to pass (libxo integration was entirely untested).
Reported by: many
Reviewed by: imp
Discussed with: manu, bdrewery
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D13959
2018-01-17 22:47:34 +00:00
|
|
|
LIBADD= util
|
1994-05-26 06:18:55 +00:00
|
|
|
|
2019-07-15 07:35:46 +00:00
|
|
|
.if ${MK_LS_COLORS} != no
|
2000-06-05 02:14:01 +00:00
|
|
|
CFLAGS+= -DCOLORLS
|
2015-07-12 18:40:31 +00:00
|
|
|
LIBADD+= termcapw
|
2000-06-05 02:25:55 +00:00
|
|
|
.endif
|
2000-06-05 02:14:01 +00:00
|
|
|
|
2017-08-02 08:50:42 +00:00
|
|
|
HAS_TESTS=
|
2017-08-02 08:35:51 +00:00
|
|
|
SUBDIR.${MK_TESTS}+= tests
|
2015-09-28 03:36:15 +00:00
|
|
|
|
1994-05-26 06:18:55 +00:00
|
|
|
.include <bsd.prog.mk>
|