xref: /netbsd-src/sbin/disklabel/Makefile (revision 4472dbe5e3bd91ef2540bada7a7ca7384627ff9b)
1#	$NetBSD: Makefile,v 1.38 2000/05/02 19:00:41 soren 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.if (${MACHINE} == "i386")
11# recognize old partition ID for a while
12CPPFLAGS+= -DCOMPAT_386BSD_MBRPART
13# use MBR partition info
14CPPFLAGS+= -DUSE_MBR
15.endif
16
17.if (${MACHINE} == "hp300") || (${MACHINE} == "vax") \
18	|| (${MACHINE} == "arm32")
19CPPFLAGS+= -DNUMBOOT=1
20.endif
21
22# these have additional requirements on the alignment of a partition
23.if (${MACHINE} == "sparc") || (${MACHINE} == "sparc64") \
24	|| (${MACHINE} == "sun3")
25CPPFLAGS+= -DSTRICT_CYLINDER_ALIGNMENT
26.endif
27
28.if (${MACHINE} == "alpha")
29# read in the old boot area even though we don't support writing the boot
30# area with disklabel(8).
31CPPFLAGS+= -DSAVEBOOTAREA
32.endif
33
34.if (${MACHINE} == "hpcmips" || ${MACHINE} == "arc" || ${MACHINE} == "prep" \
35	|| ${MACHINE} == "cobalt")
36# recognize old partition ID for a while
37CPPFLAGS+= -DCOMPAT_386BSD_MBRPART
38# use MBR partition info
39CPPFLAGS+= -DUSE_MBR
40# read in the old boot area even though we don't support writing the boot
41# area with disklabel(8).
42CPPFLAGS+= -DSAVEBOOTAREA
43.endif
44
45.include <bsd.prog.mk>
46