NetBSD/sbin/disklabel/Makefile

57 lines
1.5 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.51 2004/06/28 18:21:43 jkunz 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 printlabel.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} == "hp300") || (${MACHINE} == "vax") \
|| (${MACHINE} == "arm32") || (${MACHINE} == "hp700")
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") || (${MACHINE} == "x68k") || (${MACHINE} == "hp700")
# preserve the non-disklabel portions of the first 8KB of the disk
CPPFLAGS+= -DSAVEBOOTAREA
.endif
.if ( 0 \
|| ${MACHINE} == "acorn26" \
|| ${MACHINE} == "acorn32" \
|| ${MACHINE} == "amd64" \
|| ${MACHINE} == "arc" \
|| ${MACHINE} == "cats" \
|| ${MACHINE} == "cobalt" \
|| ${MACHINE} == "evbarm" \
|| ${MACHINE} == "hpcarm" \
|| ${MACHINE} == "hpcmips" \
|| ${MACHINE} == "i386" \
|| ${MACHINE} == "macppc" \
|| ${MACHINE} == "netwinder" \
|| ${MACHINE} == "playstation2" \
|| ${MACHINE} == "prep" \
|| ${MACHINE} == "shark" \
)
1999-10-11 09:28:04 +04:00
# use MBR partition info
CPPFLAGS+= -DUSE_MBR
# preserve the non-disklabel portions of the first 8KB of the disk
CPPFLAGS+= -DSAVEBOOTAREA
# recognize old MBR partition ID for a while
CPPFLAGS+= -DCOMPAT_386BSD_MBRPART
1999-10-11 09:28:04 +04:00
.endif
2002-03-25 01:25:27 +03:00
.if (${MACHINE} == "acorn32" || ${MACHINE} == "acorn26")
# Support FileCore boot block
CPPFLAGS+= -DUSE_ACORN
.endif
1993-03-21 12:45:37 +03:00
.include <bsd.prog.mk>