Makefile revision 1.57
11.57Sfvdl# $NetBSD: Makefile,v 1.57 2005/06/23 00:54:47 fvdl Exp $ 21.15Scgd# @(#)Makefile 8.2 (Berkeley) 3/17/94 31.1Scgd 41.1ScgdPROG= disklabel 51.55SdyoungSRCS= main.c dkcksum.c interact.c printlabel.c 61.12ScgdMAN= disklabel.5 disklabel.8 71.57Sfvdl.if (${HOSTPROG:U} == "") 81.57SfvdlDPADD+= ${LIBUTIL} 91.20SchristosLDADD+= -lutil 101.57Sfvdl.endif 111.9Shpeyerl 121.32Skleink# these have additional requirements on the alignment of a partition 131.31Spk.if (${MACHINE} == "sparc") || (${MACHINE} == "sparc64") \ 141.31Spk || (${MACHINE} == "sun3") 151.31SpkCPPFLAGS+= -DSTRICT_CYLINDER_ALIGNMENT 161.33Scgd.endif 171.33Scgd 181.51Sjkunz.if (${MACHINE} == "alpha") || (${MACHINE} == "x68k") || (${MACHINE} == "hp700") 191.50Slukem# preserve the non-disklabel portions of the first 8KB of the disk 201.33ScgdCPPFLAGS+= -DSAVEBOOTAREA 211.5Smycroft.endif 221.1Scgd 231.50Slukem.if ( 0 \ 241.50Slukem || ${MACHINE} == "acorn26" \ 251.50Slukem || ${MACHINE} == "acorn32" \ 261.50Slukem || ${MACHINE} == "amd64" \ 271.50Slukem || ${MACHINE} == "arc" \ 281.50Slukem || ${MACHINE} == "cats" \ 291.50Slukem || ${MACHINE} == "cobalt" \ 301.50Slukem || ${MACHINE} == "evbarm" \ 311.50Slukem || ${MACHINE} == "hpcarm" \ 321.50Slukem || ${MACHINE} == "hpcmips" \ 331.50Slukem || ${MACHINE} == "i386" \ 341.52Sgavan || ${MACHINE} == "iyonix" \ 351.50Slukem || ${MACHINE} == "macppc" \ 361.50Slukem || ${MACHINE} == "netwinder" \ 371.50Slukem || ${MACHINE} == "playstation2" \ 381.50Slukem || ${MACHINE} == "prep" \ 391.50Slukem || ${MACHINE} == "shark" \ 401.50Slukem ) 411.34Sshin# use MBR partition info 421.34SshinCPPFLAGS+= -DUSE_MBR 431.50Slukem# preserve the non-disklabel portions of the first 8KB of the disk 441.35SshinCPPFLAGS+= -DSAVEBOOTAREA 451.50Slukem# recognize old MBR partition ID for a while 461.50SlukemCPPFLAGS+= -DCOMPAT_386BSD_MBRPART 471.41Sbjh21.endif 481.41Sbjh21 491.42Sbjh21.if (${MACHINE} == "acorn32" || ${MACHINE} == "acorn26") 501.41Sbjh21# Support FileCore boot block 511.41Sbjh21CPPFLAGS+= -DUSE_ACORN 521.34Sshin.endif 531.34Sshin 541.1Scgd.include <bsd.prog.mk> 55