822cc4efe2
it conditional on USE_ACORN, and define that if MACHINE is arm26 or acorn32. This is less than optimal, and maybe we should define it for all ARM systems, but then disklabel handling across architectures is generally a mess at the moment.
51 lines
1.4 KiB
Makefile
51 lines
1.4 KiB
Makefile
# $NetBSD: Makefile,v 1.41 2001/11/29 23:08:53 bjh21 Exp $
|
|
# @(#)Makefile 8.2 (Berkeley) 3/17/94
|
|
|
|
PROG= disklabel
|
|
SRCS= disklabel.c dkcksum.c interact.c printlabel.c
|
|
MAN= disklabel.5 disklabel.8
|
|
LDADD+= -lutil
|
|
DPADD+= ${LIBUTIL}
|
|
|
|
.if (${MACHINE} == "i386")
|
|
# recognize old partition ID for a while
|
|
CPPFLAGS+= -DCOMPAT_386BSD_MBRPART
|
|
# use MBR partition info
|
|
CPPFLAGS+= -DUSE_MBR
|
|
.endif
|
|
|
|
.if (${MACHINE} == "hp300") || (${MACHINE} == "vax") \
|
|
|| (${MACHINE} == "arm32")
|
|
CPPFLAGS+= -DNUMBOOT=1
|
|
.endif
|
|
|
|
# these have additional requirements on the alignment of a partition
|
|
.if (${MACHINE} == "sparc") || (${MACHINE} == "sparc64") \
|
|
|| (${MACHINE} == "sun3")
|
|
CPPFLAGS+= -DSTRICT_CYLINDER_ALIGNMENT
|
|
.endif
|
|
|
|
.if (${MACHINE} == "alpha") || (${MACHINE} == "x68k")
|
|
# read in the old boot area even though we don't support writing the boot
|
|
# area with disklabel(8).
|
|
CPPFLAGS+= -DSAVEBOOTAREA
|
|
.endif
|
|
|
|
.if (${MACHINE} == "hpcmips" || ${MACHINE} == "arc" || ${MACHINE} == "prep" \
|
|
|| ${MACHINE} == "cobalt")
|
|
# recognize old partition ID for a while
|
|
CPPFLAGS+= -DCOMPAT_386BSD_MBRPART
|
|
# use MBR partition info
|
|
CPPFLAGS+= -DUSE_MBR
|
|
# read in the old boot area even though we don't support writing the boot
|
|
# area with disklabel(8).
|
|
CPPFLAGS+= -DSAVEBOOTAREA
|
|
.endif
|
|
|
|
.if (${MACHINE} == "acorn32" || ${MACHINE} == "arm26")
|
|
# Support FileCore boot block
|
|
CPPFLAGS+= -DUSE_ACORN
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|