2003-04-26 23:14:17 +04:00
|
|
|
# $NetBSD: Makefile,v 1.46 2003/04/26 19:17:30 fvdl Exp $
|
1995-03-18 17:54:19 +03:00
|
|
|
# @(#)Makefile 8.2 (Berkeley) 3/17/94
|
1993-03-21 12:45:37 +03:00
|
|
|
|
|
|
|
PROG= disklabel
|
2000-12-24 10:08:02 +03:00
|
|
|
SRCS= disklabel.c dkcksum.c interact.c printlabel.c
|
1994-12-22 12:57:51 +03:00
|
|
|
MAN= disklabel.5 disklabel.8
|
1997-03-09 03:14:17 +03:00
|
|
|
LDADD+= -lutil
|
|
|
|
DPADD+= ${LIBUTIL}
|
1993-03-21 12:45:37 +03:00
|
|
|
|
2003-04-26 23:14:17 +04:00
|
|
|
.if (${MACHINE} == "i386" || ${MACHINE} == "amd64")
|
2000-01-31 19:01:06 +03:00
|
|
|
# recognize old partition ID for a while
|
1998-03-02 19:26:47 +03:00
|
|
|
CPPFLAGS+= -DCOMPAT_386BSD_MBRPART
|
2000-01-31 19:01:06 +03:00
|
|
|
# use MBR partition info
|
|
|
|
CPPFLAGS+= -DUSE_MBR
|
1998-03-02 19:26:47 +03:00
|
|
|
.endif
|
1994-06-24 17:48:17 +04:00
|
|
|
|
1997-10-18 11:28:47 +04:00
|
|
|
.if (${MACHINE} == "hp300") || (${MACHINE} == "vax") \
|
|
|
|
|| (${MACHINE} == "arm32")
|
1997-10-10 23:47:50 +04:00
|
|
|
CPPFLAGS+= -DNUMBOOT=1
|
1994-06-24 17:48:17 +04:00
|
|
|
.endif
|
|
|
|
|
1999-04-09 20:00:17 +04:00
|
|
|
# these have additional requirements on the alignment of a partition
|
1999-01-21 14:58:00 +03:00
|
|
|
.if (${MACHINE} == "sparc") || (${MACHINE} == "sparc64") \
|
|
|
|
|| (${MACHINE} == "sun3")
|
|
|
|
CPPFLAGS+= -DSTRICT_CYLINDER_ALIGNMENT
|
|
|
|
.endif
|
|
|
|
|
2001-11-19 16:55:06 +03:00
|
|
|
.if (${MACHINE} == "alpha") || (${MACHINE} == "x68k")
|
1999-06-03 05:58:51 +04:00
|
|
|
# read in the old boot area even though we don't support writing the boot
|
|
|
|
# area with disklabel(8).
|
|
|
|
CPPFLAGS+= -DSAVEBOOTAREA
|
|
|
|
.endif
|
|
|
|
|
2002-07-28 19:17:38 +04:00
|
|
|
.if (${MACHINE} == "hpcmips") || (${MACHINE} == "arc") \
|
|
|
|
|| (${MACHINE} == "prep") || (${MACHINE} == "cobalt") \
|
|
|
|
|| (${MACHINE} == "macppc") || (${MACHINE} == "acorn26") \
|
|
|
|
|| (${MACHINE} == "evbarm") || (${MACHINE} == "hpcarm") \
|
|
|
|
|| (${MACHINE} == "netwinder") || (${MACHINE} == "acorn32") \
|
|
|
|
|| (${MACHINE} == "cats") || (${MACHINE} == "shark")
|
1999-10-11 09:28:04 +04:00
|
|
|
# recognize old partition ID for a while
|
|
|
|
CPPFLAGS+= -DCOMPAT_386BSD_MBRPART
|
|
|
|
# use MBR partition info
|
|
|
|
CPPFLAGS+= -DUSE_MBR
|
2000-01-09 05:45:43 +03:00
|
|
|
# read in the old boot area even though we don't support writing the boot
|
|
|
|
# area with disklabel(8).
|
|
|
|
CPPFLAGS+= -DSAVEBOOTAREA
|
1999-10-11 09:28:04 +04:00
|
|
|
.endif
|
|
|
|
|
2002-03-25 01:25:27 +03:00
|
|
|
.if (${MACHINE} == "acorn32" || ${MACHINE} == "acorn26")
|
2001-11-30 02:08:53 +03:00
|
|
|
# Support FileCore boot block
|
|
|
|
CPPFLAGS+= -DUSE_ACORN
|
|
|
|
.endif
|
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
.include <bsd.prog.mk>
|