Makefile revision 1.46
11.46Sfvdl#	$NetBSD: Makefile,v 1.46 2003/04/26 19:17:30 fvdl Exp $
21.15Scgd#	@(#)Makefile	8.2 (Berkeley) 3/17/94
31.1Scgd
41.1ScgdPROG=	disklabel
51.39SlukemSRCS=	disklabel.c dkcksum.c interact.c printlabel.c
61.12ScgdMAN=	disklabel.5 disklabel.8
71.20SchristosLDADD+= -lutil
81.20SchristosDPADD+= ${LIBUTIL}
91.9Shpeyerl
101.46Sfvdl.if (${MACHINE} == "i386" || ${MACHINE} == "amd64")
111.30Sdrochner# recognize old partition ID for a while
121.30SdrochnerCPPFLAGS+= -DCOMPAT_386BSD_MBRPART
131.36Ssoda# use MBR partition info
141.36SsodaCPPFLAGS+= -DUSE_MBR
151.30Sdrochner.endif
161.9Shpeyerl
171.29Smark.if (${MACHINE} == "hp300") || (${MACHINE} == "vax") \
181.29Smark	|| (${MACHINE} == "arm32")
191.28SchristosCPPFLAGS+= -DNUMBOOT=1
201.31Spk.endif
211.31Spk
221.32Skleink# these have additional requirements on the alignment of a partition
231.31Spk.if (${MACHINE} == "sparc") || (${MACHINE} == "sparc64") \
241.31Spk	|| (${MACHINE} == "sun3")
251.31SpkCPPFLAGS+= -DSTRICT_CYLINDER_ALIGNMENT
261.33Scgd.endif
271.33Scgd
281.40Sminoura.if (${MACHINE} == "alpha") || (${MACHINE} == "x68k")
291.33Scgd# read in the old boot area even though we don't support writing the boot
301.33Scgd# area with disklabel(8).
311.33ScgdCPPFLAGS+= -DSAVEBOOTAREA
321.5Smycroft.endif
331.1Scgd
341.44Smanu.if (${MACHINE} == "hpcmips") || (${MACHINE} == "arc") \
351.44Smanu	|| (${MACHINE} == "prep") || (${MACHINE} == "cobalt") \
361.44Smanu	|| (${MACHINE} == "macppc") || (${MACHINE} == "acorn26") \
371.44Smanu	|| (${MACHINE} == "evbarm") || (${MACHINE} == "hpcarm") \
381.44Smanu	|| (${MACHINE} == "netwinder") || (${MACHINE} == "acorn32") \
391.44Smanu	|| (${MACHINE} == "cats") || (${MACHINE} == "shark")
401.34Sshin# recognize old partition ID for a while
411.34SshinCPPFLAGS+= -DCOMPAT_386BSD_MBRPART
421.34Sshin# use MBR partition info
431.34SshinCPPFLAGS+= -DUSE_MBR
441.35Sshin# read in the old boot area even though we don't support writing the boot
451.35Sshin# area with disklabel(8).
461.35SshinCPPFLAGS+= -DSAVEBOOTAREA
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