diff options
author | brooks <brooks@FreeBSD.org> | 2014-01-30 21:08:36 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2014-01-30 21:08:36 +0000 |
commit | f1b43045b34f3a11eb2202d754836c300f3aee39 (patch) | |
tree | 274baf7c9ba25224bc6f2c68d144d98c43f7e4e8 /usr.sbin/bsdinstall/distfetch | |
parent | 5c8ed84ec82e0c7c0f55d157363bd283c8b0f900 (diff) | |
download | FreeBSD-src-f1b43045b34f3a11eb2202d754836c300f3aee39.zip FreeBSD-src-f1b43045b34f3a11eb2202d754836c300f3aee39.tar.gz |
Merge from CheriBSD:
commit c1acf022c533c5ae27e0cd556977eafe3f5959eb
Author: Brooks Davis <brooks@one-eyed-alien.net>
Date: Fri Jan 17 21:46:44 2014 +0000
Add an option WITHOUT_NCURSESW to suppress building and linking to
libncursesw. While wide character support it useful we'd like to
only need one ncurses library on embedded systems.
MFC after: 4 weeks
Sponsored by: DARPA, AFRL
Diffstat (limited to 'usr.sbin/bsdinstall/distfetch')
-rw-r--r-- | usr.sbin/bsdinstall/distfetch/Makefile | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/usr.sbin/bsdinstall/distfetch/Makefile b/usr.sbin/bsdinstall/distfetch/Makefile index bb82908..9c4becd 100644 --- a/usr.sbin/bsdinstall/distfetch/Makefile +++ b/usr.sbin/bsdinstall/distfetch/Makefile @@ -2,10 +2,20 @@ BINDIR= /usr/libexec/bsdinstall PROG= distfetch -DPADD= ${LIBFETCH} ${LIBNCURSESW} ${LIBDIALOG} ${LIBM} -LDADD= -lfetch -lncursesw -ldialog -lm +DPADD= ${LIBFETCH} ${LIBDIALOG} ${LIBM} +LDADD= -lfetch -ldialog -lm WARNS?= 6 NO_MAN= true +.include <bsd.own.mk> + +.if ${MK_NCURSESW} == "no" +DPADD+= ${LIBNCURSES} +LDADD+= -lncurses +.else +DPADD+= ${LIBNCURSESW} +LDADD+= -lncursesw +.endif + .include <bsd.prog.mk> |