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