xref: /freebsd/usr.sbin/bsdinstall/partedit/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
17fdd45b0SBryan DreweryBINDIR= ${LIBEXECDIR}/bsdinstall
22118f387SNathan WhitehornPROG=	partedit
35eca7e06SNathan WhitehornLINKS= ${BINDIR}/partedit ${BINDIR}/autopart \
45eca7e06SNathan Whitehorn       ${BINDIR}/partedit ${BINDIR}/scriptedpart
5ce9f2d31SRodney W. GrimesSYMLINKS= ../libexec/bsdinstall/partedit /usr/sbin/sade
6*50e24496SAlfonso S. SicilianoLIBADD+=	geom util bsddialog
72118f387SNathan Whitehorn
82118f387SNathan WhitehornPARTEDIT_ARCH= ${MACHINE}
92118f387SNathan Whitehorn.if ${MACHINE} == "i386" || ${MACHINE} == "amd64"
102118f387SNathan WhitehornPARTEDIT_ARCH= x86
117b08a307SMitchell Horne.elif ${MACHINE} == "arm64" || ${MACHINE} == "riscv"
127b08a307SMitchell HornePARTEDIT_ARCH= efi
132118f387SNathan Whitehorn.endif
142118f387SNathan Whitehorn.if !exists(partedit_${PARTEDIT_ARCH}.c)
152118f387SNathan WhitehornPARTEDIT_ARCH= generic
162118f387SNathan Whitehorn.endif
172118f387SNathan Whitehorn
18*50e24496SAlfonso S. SicilianoSRCS=	diskmenu.c partedit.c gpart_ops.c partedit_${PARTEDIT_ARCH}.c \
195eca7e06SNathan Whitehorn	part_wizard.c scripted.c
202118f387SNathan Whitehorn
212118f387SNathan WhitehornWARNS?=	3
222befb361SNathan WhitehornMAN= sade.8
232118f387SNathan Whitehorn
242118f387SNathan Whitehorn.include <bsd.prog.mk>
25