Makefile revision 1.46
12c393a42Smrg# $NetBSD: Makefile,v 1.46 2003/04/26 19:17:30 fvdl Exp $ 2a6844aabSmrg# @(#)Makefile 8.2 (Berkeley) 3/17/94 32c393a42Smrg 42c393a42SmrgPROG= disklabel 52c393a42SmrgSRCS= disklabel.c dkcksum.c interact.c printlabel.c 62c393a42SmrgMAN= disklabel.5 disklabel.8 72c393a42SmrgLDADD+= -lutil 82c393a42SmrgDPADD+= ${LIBUTIL} 92c393a42Smrg 102c393a42Smrg.if (${MACHINE} == "i386" || ${MACHINE} == "amd64") 112c393a42Smrg# recognize old partition ID for a while 122c393a42SmrgCPPFLAGS+= -DCOMPAT_386BSD_MBRPART 132c393a42Smrg# use MBR partition info 142c393a42SmrgCPPFLAGS+= -DUSE_MBR 152c393a42Smrg.endif 16a6844aabSmrg 172c393a42Smrg.if (${MACHINE} == "hp300") || (${MACHINE} == "vax") \ 18a6844aabSmrg || (${MACHINE} == "arm32") 192c393a42SmrgCPPFLAGS+= -DNUMBOOT=1 202c393a42Smrg.endif 212c393a42Smrg 222c393a42Smrg# these have additional requirements on the alignment of a partition 232c393a42Smrg.if (${MACHINE} == "sparc") || (${MACHINE} == "sparc64") \ 242c393a42Smrg || (${MACHINE} == "sun3") 252c393a42SmrgCPPFLAGS+= -DSTRICT_CYLINDER_ALIGNMENT 262c393a42Smrg.endif 272c393a42Smrg 282c393a42Smrg.if (${MACHINE} == "alpha") || (${MACHINE} == "x68k") 292c393a42Smrg# read in the old boot area even though we don't support writing the boot 302c393a42Smrg# area with disklabel(8). 312c393a42SmrgCPPFLAGS+= -DSAVEBOOTAREA 322c393a42Smrg.endif 332c393a42Smrg 342c393a42Smrg.if (${MACHINE} == "hpcmips") || (${MACHINE} == "arc") \ 352c393a42Smrg || (${MACHINE} == "prep") || (${MACHINE} == "cobalt") \ 362c393a42Smrg || (${MACHINE} == "macppc") || (${MACHINE} == "acorn26") \ 372c393a42Smrg || (${MACHINE} == "evbarm") || (${MACHINE} == "hpcarm") \ 382c393a42Smrg || (${MACHINE} == "netwinder") || (${MACHINE} == "acorn32") \ 392c393a42Smrg || (${MACHINE} == "cats") || (${MACHINE} == "shark") 402c393a42Smrg# recognize old partition ID for a while 412c393a42SmrgCPPFLAGS+= -DCOMPAT_386BSD_MBRPART 422c393a42Smrg# use MBR partition info 432c393a42SmrgCPPFLAGS+= -DUSE_MBR 442c393a42Smrg# read in the old boot area even though we don't support writing the boot 452c393a42Smrg# area with disklabel(8). 462c393a42SmrgCPPFLAGS+= -DSAVEBOOTAREA 472c393a42Smrg.endif 482c393a42Smrg 492c393a42Smrg.if (${MACHINE} == "acorn32" || ${MACHINE} == "acorn26") 502c393a42Smrg# Support FileCore boot block 512c393a42SmrgCPPFLAGS+= -DUSE_ACORN 522c393a42Smrg.endif 532c393a42Smrg 542c393a42Smrg.include <bsd.prog.mk> 552c393a42Smrg