1# $FreeBSD$ 2 3BINDIR= /usr/libexec/bsdinstall 4PROG= partedit 5LINKS= ${BINDIR}/partedit ${BINDIR}/autopart \ 6 ${BINDIR}/partedit ${BINDIR}/scriptedpart 7SYMLINKS= ${BINDIR}/partedit /usr/sbin/sade 8DPADD= ${LIBGEOM} ${LIBUTIL} ${LIBDIALOG} ${LIBM} 9LDADD= -lgeom -lutil -ldialog -lm 10 11PARTEDIT_ARCH= ${MACHINE} 12.if ${MACHINE} == "i386" || ${MACHINE} == "amd64" 13PARTEDIT_ARCH= x86 14.endif 15.if !exists(partedit_${PARTEDIT_ARCH}.c) 16PARTEDIT_ARCH= generic 17.endif 18 19SRCS= diskeditor.c partedit.c gpart_ops.c partedit_${PARTEDIT_ARCH}.c \ 20 part_wizard.c scripted.c 21 22WARNS?= 3 23MAN= sade.8 24 25.include <bsd.own.mk> 26 27.if ${MK_NCURSESW} == "no" 28DPADD+= ${LIBNCURSES} 29LDADD+= -lncurses 30.else 31DPADD+= ${LIBNCURSESW} 32LDADD+= -lncursesw 33.endif 34 35.include <bsd.prog.mk> 36