Makefile revision 1.48
1#	$NetBSD: Makefile,v 1.48 2003/11/08 09:25:01 dsl 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# these have additional requirements on the alignment of a partition
11.if (${MACHINE} == "sparc") || (${MACHINE} == "sparc64") \
12	|| (${MACHINE} == "sun3")
13CPPFLAGS+= -DSTRICT_CYLINDER_ALIGNMENT
14.endif
15
16.if (${MACHINE} == "alpha") || (${MACHINE} == "x68k")
17# read in the old boot area even though we don't support writing the boot
18# area with disklabel(8).
19CPPFLAGS+= -DSAVEBOOTAREA
20.endif
21
22.if (${MACHINE} == "hpcmips") || (${MACHINE} == "arc") \
23	|| (${MACHINE} == "prep") || (${MACHINE} == "cobalt") \
24	|| (${MACHINE} == "macppc") || (${MACHINE} == "acorn26") \
25	|| (${MACHINE} == "evbarm") || (${MACHINE} == "hpcarm") \
26	|| (${MACHINE} == "netwinder") || (${MACHINE} == "acorn32") \
27	|| (${MACHINE} == "cats") || (${MACHINE} == "shark") \
28	|| (${MACHINE} == "i386") || (${MACHINE} == "amd64") \
29	|| (${MACHINE} == "playstation2")
30# recognize old partition ID for a while
31CPPFLAGS+= -DCOMPAT_386BSD_MBRPART
32# use MBR partition info
33CPPFLAGS+= -DUSE_MBR
34# read in the old boot area even though we don't support writing the boot
35# area with disklabel(8).
36CPPFLAGS+= -DSAVEBOOTAREA
37.endif
38
39.if (${MACHINE} == "acorn32" || ${MACHINE} == "acorn26")
40# Support FileCore boot block
41CPPFLAGS+= -DUSE_ACORN
42.endif
43
44.include <bsd.prog.mk>
45