38e233371c
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
36 lines
750 B
Makefile
36 lines
750 B
Makefile
# $FreeBSD$
|
|
|
|
BINDIR= /usr/libexec/bsdinstall
|
|
PROG= partedit
|
|
LINKS= ${BINDIR}/partedit ${BINDIR}/autopart \
|
|
${BINDIR}/partedit ${BINDIR}/scriptedpart
|
|
SYMLINKS= ${BINDIR}/partedit /usr/sbin/sade
|
|
DPADD= ${LIBGEOM} ${LIBUTIL} ${LIBDIALOG} ${LIBM}
|
|
LDADD= -lgeom -lutil -ldialog -lm
|
|
|
|
PARTEDIT_ARCH= ${MACHINE}
|
|
.if ${MACHINE} == "i386" || ${MACHINE} == "amd64"
|
|
PARTEDIT_ARCH= x86
|
|
.endif
|
|
.if !exists(partedit_${PARTEDIT_ARCH}.c)
|
|
PARTEDIT_ARCH= generic
|
|
.endif
|
|
|
|
SRCS= diskeditor.c partedit.c gpart_ops.c partedit_${PARTEDIT_ARCH}.c \
|
|
part_wizard.c scripted.c
|
|
|
|
WARNS?= 3
|
|
MAN= sade.8
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
.if ${MK_NCURSESW} == "no"
|
|
DPADD+= ${LIBNCURSES}
|
|
LDADD+= -lncurses
|
|
.else
|
|
DPADD+= ${LIBNCURSESW}
|
|
LDADD+= -lncursesw
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|