NetBSD/sbin/disklabel/Makefile

46 lines
1.2 KiB
Makefile
Raw Normal View History

2000-05-02 23:00:41 +04:00
# $NetBSD: Makefile,v 1.38 2000/05/02 19:00:41 soren Exp $
# @(#)Makefile 8.2 (Berkeley) 3/17/94
1993-03-21 12:45:37 +03:00
PROG= disklabel
SRCS= disklabel.c dkcksum.c interact.c
1994-12-22 12:57:51 +03:00
MAN= disklabel.5 disklabel.8
LDADD+= -lutil
DPADD+= ${LIBUTIL}
1993-03-21 12:45:37 +03:00
.if (${MACHINE} == "i386")
# recognize old partition ID for a while
CPPFLAGS+= -DCOMPAT_386BSD_MBRPART
# use MBR partition info
CPPFLAGS+= -DUSE_MBR
.endif
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
.endif
1999-04-09 20:00:17 +04:00
# 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")
# read in the old boot area even though we don't support writing the boot
# area with disklabel(8).
CPPFLAGS+= -DSAVEBOOTAREA
.endif
2000-05-02 23:00:41 +04:00
.if (${MACHINE} == "hpcmips" || ${MACHINE} == "arc" || ${MACHINE} == "prep" \
|| ${MACHINE} == "cobalt")
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
# 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
1993-03-21 12:45:37 +03:00
.include <bsd.prog.mk>