1# $NetBSD: Makefile,v 1.44 2023/06/03 09:09:12 lukem Exp $ 2 3PROG= fdisk 4SRCS= fdisk.c 5 6MAN= fdisk.8 7 8.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" 9CPPFLAGS+= -DBOOTSEL 10.if (${HOSTPROG:U} == "") 11CPPFLAGS+= -DUSE_DISKLIST 12.endif 13.endif 14 15.if ${MACHINE} == "arc" 16CPPFLAGS+= -D_PATH_DEFDISK='"/dev/rsd0d"' 17.endif 18 19.if ${MACHINE} == "netwinder" 20CPPFLAGS+= -D_PATH_DEFDISK='"/dev/rwd0c"' 21.endif 22 23COPTS.fdisk.c+= ${CC_WNO_STRINGOP_TRUNCATION} 24 25.include <bsd.prog.mk> 26 27.if (${HOSTPROG:U} == "") 28DPADD+= ${LIBUTIL} ${LIBZ} 29LDADD+= -lutil -lz 30.endif 31