xref: /netbsd-src/sbin/fdisk/Makefile (revision 7d3af8c6a2070d16ec6d1aef203d052d6683100d)
1#	$NetBSD: Makefile,v 1.42 2012/05/05 16:03:55 tsutsui 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
23.include <bsd.prog.mk>
24
25.if (${HOSTPROG:U} == "")
26DPADD+=	${LIBUTIL} ${LIBZ}
27LDADD+=	-lutil -lz
28.endif
29