df520b1013
for some reason. (But I have no idea why that would be -- if you have one of these really ancient partitions and you're about to run disklabel, you can easily run fdisk first and change the partition type to NetBSD.) As it stands, the code will munch FreeBSD installs under some circumstances, which is really not acceptable behavior. The code, along with the kernel support that's been disabled by default for several years, and some related but less dangerous code in sysinst, should prboably be removed entirely after -6 is branched. Discussed on tech-kern and tech-userlevel; closes PR 44496. This is also almost certainly the cause of PR 42521 and PR 38841.
63 lines
1.6 KiB
Makefile
63 lines
1.6 KiB
Makefile
# $NetBSD: Makefile,v 1.67 2011/02/12 22:23:01 dholland Exp $
|
|
# @(#)Makefile 8.2 (Berkeley) 3/17/94
|
|
|
|
PROG= disklabel
|
|
SRCS= main.c dkcksum.c interact.c printlabel.c
|
|
MAN= disklabel.5 disklabel.8
|
|
.if (${HOSTPROG:U} == "")
|
|
DPADD+= ${LIBUTIL}
|
|
LDADD+= -lutil
|
|
.endif
|
|
|
|
# these have additional requirements on the alignment of a partition
|
|
.if (${MACHINE} == "sparc") || (${MACHINE} == "sparc64") \
|
|
|| (${MACHINE} == "sun3")
|
|
CPPFLAGS+= -DSTRICT_CYLINDER_ALIGNMENT
|
|
.endif
|
|
|
|
.if ( 0 \
|
|
|| ${MACHINE} == "acorn26" \
|
|
|| ${MACHINE} == "acorn32" \
|
|
|| ${MACHINE} == "amd64" \
|
|
|| ${MACHINE} == "arc" \
|
|
|| ${MACHINE} == "cats" \
|
|
|| ${MACHINE} == "cobalt" \
|
|
|| ${MACHINE} == "dreamcast" \
|
|
|| ${MACHINE} == "evbarm" \
|
|
|| ${MACHINE} == "evbsh3" \
|
|
|| ${MACHINE} == "hpcarm" \
|
|
|| ${MACHINE} == "hpcmips" \
|
|
|| ${MACHINE} == "hpcsh" \
|
|
|| ${MACHINE} == "i386" \
|
|
|| ${MACHINE} == "iyonix" \
|
|
|| ${MACHINE} == "landisk" \
|
|
|| ${MACHINE} == "macppc" \
|
|
|| ${MACHINE} == "mmeye" \
|
|
|| ${MACHINE} == "netwinder" \
|
|
|| ${MACHINE} == "prep" \
|
|
|| ${MACHINE} == "shark" \
|
|
|| ${MACHINE} == "zaurus" \
|
|
)
|
|
# use MBR partition info
|
|
CPPFLAGS+= -DUSE_MBR
|
|
# do not recognize old MBR partition ID any more
|
|
#CPPFLAGS+= -DCOMPAT_386BSD_MBRPART
|
|
.endif
|
|
|
|
.if (${MACHINE} == "acorn32" || ${MACHINE} == "acorn26")
|
|
# Support FileCore boot block
|
|
CPPFLAGS+= -DUSE_ACORN
|
|
.endif
|
|
|
|
.if (${MACHINE_ARCH} == "alpha")
|
|
# alpha requires boot block checksum
|
|
CPPFLAGS+= -DALPHA_BOOTBLOCK_CKSUM
|
|
.endif
|
|
|
|
.if (${MACHINE_ARCH} == "vax")
|
|
# vax requires labels in alternative sectors on SMD disk
|
|
CPPFLAGS+= -DVAX_ALTLABELS
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|