diff options
author | joe <joe@FreeBSD.org> | 2000-06-05 02:14:01 +0000 |
---|---|---|
committer | joe <joe@FreeBSD.org> | 2000-06-05 02:14:01 +0000 |
commit | 6bddd8294aa4e9b7e4a66bff9c54de93da25168c (patch) | |
tree | 4b2add70f4438049835782f1038234b01e567c23 /bin/ls/Makefile | |
parent | e0bbf8350ab6353586ba169e70f2057a1ffc4e34 (diff) | |
download | FreeBSD-src-6bddd8294aa4e9b7e4a66bff9c54de93da25168c.zip FreeBSD-src-6bddd8294aa4e9b7e4a66bff9c54de93da25168c.tar.gz |
* Re-implement colour support using termcap's AF and AB capabilities
to manage the ANSI colour sequences. Colour support is disabled
unless the TERM environment variable references a valid termcap.
* Allow optional compilation of the colour support in the Makefile,
defaulting to yes. This allows us to switch it off for fixit
floppies and other mediums where space is an issue and the extra
bloat of statically linking with ncurses isn't acceptable.
* Display a warning if colour is requested with '-G' but support
for it isn't compiled in.
Diffstat (limited to 'bin/ls/Makefile')
-rw-r--r-- | bin/ls/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/ls/Makefile b/bin/ls/Makefile index 8496dd9..1607a4c 100644 --- a/bin/ls/Makefile +++ b/bin/ls/Makefile @@ -6,4 +6,7 @@ PROG= ls SRCS= cmp.c setflags.c ls.c print.c util.c .PATH: ${.CURDIR}/../../lib/libc/gen +CFLAGS+= -DCOLORLS +LDADD= -lncurses + .include <bsd.prog.mk> |