1# $FreeBSD$ 2 3BINDIR= ${LIBEXECDIR}/bsdinstall 4PROG= partedit 5LINKS= ${BINDIR}/partedit ${BINDIR}/autopart \ 6 ${BINDIR}/partedit ${BINDIR}/scriptedpart 7SYMLINKS= ../libexec/bsdinstall/partedit /usr/sbin/sade 8CFLAGS+= -I${SRCTOP}/contrib/bsddialog/lib -I${.OBJDIR}/.. 9LIBADD+= geom util bsddialog 10 11PARTEDIT_ARCH= ${MACHINE} 12.if ${MACHINE} == "i386" || ${MACHINE} == "amd64" 13PARTEDIT_ARCH= x86 14.elif ${MACHINE} == "arm64" || ${MACHINE} == "riscv" 15PARTEDIT_ARCH= efi 16.endif 17.if !exists(partedit_${PARTEDIT_ARCH}.c) 18PARTEDIT_ARCH= generic 19.endif 20 21SRCS= diskmenu.c partedit.c gpart_ops.c partedit_${PARTEDIT_ARCH}.c \ 22 part_wizard.c scripted.c 23 24WARNS?= 3 25MAN= sade.8 26 27.include <bsd.prog.mk> 28