Makefile revision 1.49
11.48Sdsl#	$NetBSD: Makefile,v 1.49 2003/11/10 09:22:09 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.49Sfvdl.if (${MACHINE} == "i386" || ${MACHINE} == "amd64")
111.49Sfvdl# recognize old partition ID for a while
121.49SfvdlCPPFLAGS+= -DCOMPAT_386BSD_MBRPART
131.49Sfvdl# use MBR partition info
141.49SfvdlCPPFLAGS+= -DUSE_MBR
151.49Sfvdl.endif
161.49Sfvdl
171.49Sfvdl.if (${MACHINE} == "hp300") || (${MACHINE} == "vax") \
181.49Sfvdl	|| (${MACHINE} == "arm32")
191.49SfvdlCPPFLAGS+= -DNUMBOOT=1
201.49Sfvdl.endif
211.49Sfvdl
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.47Sshin	|| (${MACHINE} == "cats") || (${MACHINE} == "shark") \
401.47Sshin	|| (${MACHINE} == "playstation2")
411.34Sshin# recognize old partition ID for a while
421.34SshinCPPFLAGS+= -DCOMPAT_386BSD_MBRPART
431.34Sshin# use MBR partition info
441.34SshinCPPFLAGS+= -DUSE_MBR
451.35Sshin# read in the old boot area even though we don't support writing the boot
461.35Sshin# area with disklabel(8).
471.35SshinCPPFLAGS+= -DSAVEBOOTAREA
481.41Sbjh21.endif
491.41Sbjh21
501.42Sbjh21.if (${MACHINE} == "acorn32" || ${MACHINE} == "acorn26")
511.41Sbjh21# Support FileCore boot block
521.41Sbjh21CPPFLAGS+= -DUSE_ACORN
531.34Sshin.endif
541.34Sshin
551.1Scgd.include <bsd.prog.mk>
56