diff options
author | Marcel Moolenaar <marcel@FreeBSD.org> | 2012-05-19 18:05:00 +0000 |
---|---|---|
committer | Marcel Moolenaar <marcel@FreeBSD.org> | 2012-05-19 18:05:00 +0000 |
commit | 6663ff446e2c20b8581fe14722bb8d0a47025a87 (patch) | |
tree | 235104bc59ab252f904970051992881db1df9ceb /bin/ls/Makefile | |
parent | aa39c44746ae09b7c2f6c9b94f210fdcce71ef84 (diff) | |
download | src-6663ff446e2c20b8581fe14722bb8d0a47025a87.tar.gz src-6663ff446e2c20b8581fe14722bb8d0a47025a87.zip |
Add build opton MK_LS_COLORS to control whether ls(1) supports colors
(and thus needs to depend on libtermcap). Embedded systems may not
want or need colors.
Obtained from: Juniper Networks, Inc.
Notes
Notes:
svn path=/head/; revision=235655
Diffstat (limited to 'bin/ls/Makefile')
-rw-r--r-- | bin/ls/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/ls/Makefile b/bin/ls/Makefile index 2af1203b1d38..4d02a7ec94ac 100644 --- a/bin/ls/Makefile +++ b/bin/ls/Makefile @@ -1,12 +1,15 @@ # @(#)Makefile 8.1 (Berkeley) 6/2/93 # $FreeBSD$ +.include <bsd.own.mk> + PROG= ls SRCS= cmp.c ls.c print.c util.c DPADD= ${LIBUTIL} LDADD= -lutil -.if !defined(RELEASE_CRUNCH) +.if !defined(RELEASE_CRUNCH) && \ + ${MK_LS_COLORS} != no CFLAGS+= -DCOLORLS DPADD+= ${LIBTERMCAP} LDADD+= -ltermcap |