Sync usage with man page.
[netbsd-mini2440.git] / sbin / disklabel / Makefile
blobf39382ae9577bee09419bf5c25e0f90345115699
1 # $NetBSD: Makefile,v 1.65 2009/12/05 16:29:11 pooka Exp $
2 # @(#)Makefile 8.2 (Berkeley) 3/17/94
4 PROG= disklabel
5 SRCS= main.c dkcksum.c interact.c printlabel.c
6 MAN= disklabel.5 disklabel.8
7 .if (${HOSTPROG:U} == "")
8 DPADD+= ${LIBUTIL}
9 LDADD+= -lutil
10 .endif
12 # these have additional requirements on the alignment of a partition
13 .if (${MACHINE} == "sparc") || (${MACHINE} == "sparc64") \
14 || (${MACHINE} == "sun3")
15 CPPFLAGS+= -DSTRICT_CYLINDER_ALIGNMENT
16 .endif
18 .if ( 0 \
19 || ${MACHINE} == "acorn26" \
20 || ${MACHINE} == "acorn32" \
21 || ${MACHINE} == "amd64" \
22 || ${MACHINE} == "arc" \
23 || ${MACHINE} == "cats" \
24 || ${MACHINE} == "cobalt" \
25 || ${MACHINE} == "dreamcast" \
26 || ${MACHINE} == "evbarm" \
27 || ${MACHINE} == "evbsh3" \
28 || ${MACHINE} == "hpcarm" \
29 || ${MACHINE} == "hpcmips" \
30 || ${MACHINE} == "hpcsh" \
31 || ${MACHINE} == "i386" \
32 || ${MACHINE} == "iyonix" \
33 || ${MACHINE} == "landisk" \
34 || ${MACHINE} == "macppc" \
35 || ${MACHINE} == "mmeye" \
36 || ${MACHINE} == "netwinder" \
37 || ${MACHINE} == "prep" \
38 || ${MACHINE} == "shark" \
39 || ${MACHINE} == "zaurus" \
41 # use MBR partition info
42 CPPFLAGS+= -DUSE_MBR
43 # recognize old MBR partition ID for a while
44 CPPFLAGS+= -DCOMPAT_386BSD_MBRPART
45 .endif
47 .if (${MACHINE} == "acorn32" || ${MACHINE} == "acorn26")
48 # Support FileCore boot block
49 CPPFLAGS+= -DUSE_ACORN
50 .endif
52 .if (${MACHINE_ARCH} == "alpha")
53 # alpha requires boot block checksum
54 CPPFLAGS+= -DALPHA_BOOTBLOCK_CKSUM
55 .endif
57 .if (${MACHINE_ARCH} == "vax")
58 # vax requires labels in alternative sectors on SMD disk
59 CPPFLAGS+= -DVAX_ALTLABELS
60 .endif
62 .include <bsd.prog.mk>