4fe54d4279
Hide dialog specific code behind HAVE_DIALOG. It allows to build a stripped down version (missing the dialog UI) but perfectly function tzsetup when world is built WITHOUT_DIALOG Reorganise a bit the code to limit the number of blocks under HAVE_DIALOG Reviewed by: emaste Sponsored by: https://reviews.freebsd.org/D8325
17 lines
226 B
Makefile
17 lines
226 B
Makefile
# $FreeBSD$
|
|
|
|
.include <src.opts.mk>
|
|
|
|
PROG= tzsetup
|
|
MAN= tzsetup.8
|
|
|
|
CFLAGS+= -I.
|
|
|
|
.if ${MK_DIALOG} != no
|
|
WARNS?= 3
|
|
CFLAGS+= -I${.CURDIR}/../../contrib/dialog -DHAVE_DIALOG
|
|
LIBADD= dialog ncursesw
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|