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