Makefile revision 1.58
1#	$NetBSD: Makefile,v 1.58 2005/10/19 21:22:21 dsl Exp $
2#	@(#)Makefile	8.2 (Berkeley) 3/17/94
3
4PROG=	disklabel
5SRCS=	main.c dkcksum.c interact.c printlabel.c
6MAN=	disklabel.5 disklabel.8
7.if (${HOSTPROG:U} == "")
8DPADD+= ${LIBUTIL}
9LDADD+= -lutil
10.endif
11
12# these have additional requirements on the alignment of a partition
13.if (${MACHINE} == "sparc") || (${MACHINE} == "sparc64") \
14	|| (${MACHINE} == "sun3")
15CPPFLAGS+= -DSTRICT_CYLINDER_ALIGNMENT
16.endif
17
18.if ( 0 \
19	|| ${MACHINE} == "acorn26" \
20	|| ${MACHINE} == "acorn32" \
21	|| ${MACHINE} == "amd64" \
22	|| ${MACHINE} == "arc" \
23	|| ${MACHINE} == "cats" \
24	|| ${MACHINE} == "cobalt" \
25	|| ${MACHINE} == "evbarm" \
26	|| ${MACHINE} == "hpcarm" \
27	|| ${MACHINE} == "hpcmips" \
28	|| ${MACHINE} == "i386" \
29	|| ${MACHINE} == "iyonix" \
30	|| ${MACHINE} == "macppc" \
31	|| ${MACHINE} == "netwinder" \
32	|| ${MACHINE} == "playstation2" \
33	|| ${MACHINE} == "prep" \
34	|| ${MACHINE} == "shark" \
35    )
36# use MBR partition info
37CPPFLAGS+= -DUSE_MBR
38# recognize old MBR partition ID for a while
39CPPFLAGS+= -DCOMPAT_386BSD_MBRPART
40.endif
41
42.if (${MACHINE} == "acorn32" || ${MACHINE} == "acorn26")
43# Support FileCore boot block
44CPPFLAGS+= -DUSE_ACORN
45.endif
46
47.include <bsd.prog.mk>
48