Makefile revision 1.35
1#	$NetBSD: Makefile,v 1.35 2000/01/09 02:45:43 shin Exp $
2#	@(#)Makefile	8.2 (Berkeley) 3/17/94
3
4PROG=	disklabel
5SRCS=	disklabel.c dkcksum.c interact.c
6MAN=	disklabel.5 disklabel.8
7LDADD+= -lutil
8DPADD+= ${LIBUTIL}
9
10# recognize old partition ID for a while
11.if (${MACHINE} == "i386")
12CPPFLAGS+= -DCOMPAT_386BSD_MBRPART
13.endif
14
15.if (${MACHINE} == "hp300") || (${MACHINE} == "vax") \
16	|| (${MACHINE} == "arm32")
17CPPFLAGS+= -DNUMBOOT=1
18.endif
19
20# these have additional requirements on the alignment of a partition
21.if (${MACHINE} == "sparc") || (${MACHINE} == "sparc64") \
22	|| (${MACHINE} == "sun3")
23CPPFLAGS+= -DSTRICT_CYLINDER_ALIGNMENT
24.endif
25
26.if (${MACHINE} == "alpha")
27# read in the old boot area even though we don't support writing the boot
28# area with disklabel(8).
29CPPFLAGS+= -DSAVEBOOTAREA
30.endif
31
32.if (${MACHINE} == "hpcmips")
33# recognize old partition ID for a while
34CPPFLAGS+= -DCOMPAT_386BSD_MBRPART
35# use MBR partition info
36CPPFLAGS+= -DUSE_MBR
37# read in the old boot area even though we don't support writing the boot
38# area with disklabel(8).
39CPPFLAGS+= -DSAVEBOOTAREA
40.endif
41
42.include <bsd.prog.mk>
43