1# $MirOS: src/sbin/disklabel/Makefile,v 1.10 2010/08/14 20:53:06 tg Exp $
2# $OpenBSD: Makefile,v 1.38 2005/04/01 16:00:09 deraadt Exp $
3
4.include <bsd.own.mk>
5
6PROG=		disklabel
7SRCS=		disklabel.c dkcksum.c editor.c manpage.S
8DPADD+=		${LIBMBFUN} ${LIBUTIL}
9LDADD+=		-lmbfun -lutil
10MAN=		disklabel.8 disklabel.5
11COPTS+=		-Wall
12
13.if !defined(NOMAN) || ${NOMAN:L} == "no"
14manpage.o: disklabel.cat8
15.else
16AFLAGS_manpage.o+= -DNOMAN
17.endif
18
19.if ${MACHINE_ARCH} == "i386"
20CPPFLAGS+=	-DNUMBOOT=2 -DDOSLABEL
21CPPFLAGS+=	-DSEEALSO="\"fdisk(8), installboot(8)\""
22.endif
23
24.if ${MACHINE_ARCH} == "sparc"
25CPPFLAGS+=	-DSEEALSO="\"installboot(8)\"" -DCYLCHECK -DAAT0
26.endif
27
28.include <bsd.prog.mk>
29