a47e2eb758
http://mail-index.netbsd.org/tech-userlevel/2011/08/25/msg005404.html This is used by disk tools such as disklabel(8) to dynamically decide is the undelyling platform uses a disklabel-in-mbr-partition or not (instead of using a compile-time list of ports). getlabelusesmbr() reads the sysctl kern.labelusesmbr, takes its value from the machdep #define LABELUSESMBR. For evbmips, make LABELUSESMBR 1 if the platform uses pmon as bootloader, and 0 (the previous value) otherwise.
34 lines
838 B
Makefile
34 lines
838 B
Makefile
# $NetBSD: Makefile,v 1.69 2011/08/30 12:39:52 bouyer 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 (${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>
|