freebsd-nq/usr.sbin/tzsetup/Makefile
Baptiste Daroussin 4fe54d4279 Fix build of tzsetup when WITHOUT_DIALOG is set
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
2016-10-22 22:35:39 +00:00

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>