Makefile revision 1.51
1# $NetBSD: Makefile,v 1.51 2004/06/28 18:21:43 jkunz Exp $ 2# @(#)Makefile 8.2 (Berkeley) 3/17/94 3 4PROG= disklabel 5SRCS= disklabel.c dkcksum.c interact.c printlabel.c 6MAN= disklabel.5 disklabel.8 7LDADD+= -lutil 8DPADD+= ${LIBUTIL} 9 10.if (${MACHINE} == "hp300") || (${MACHINE} == "vax") \ 11 || (${MACHINE} == "arm32") || (${MACHINE} == "hp700") 12CPPFLAGS+= -DNUMBOOT=1 13.endif 14 15# these have additional requirements on the alignment of a partition 16.if (${MACHINE} == "sparc") || (${MACHINE} == "sparc64") \ 17 || (${MACHINE} == "sun3") 18CPPFLAGS+= -DSTRICT_CYLINDER_ALIGNMENT 19.endif 20 21.if (${MACHINE} == "alpha") || (${MACHINE} == "x68k") || (${MACHINE} == "hp700") 22# preserve the non-disklabel portions of the first 8KB of the disk 23CPPFLAGS+= -DSAVEBOOTAREA 24.endif 25 26.if ( 0 \ 27 || ${MACHINE} == "acorn26" \ 28 || ${MACHINE} == "acorn32" \ 29 || ${MACHINE} == "amd64" \ 30 || ${MACHINE} == "arc" \ 31 || ${MACHINE} == "cats" \ 32 || ${MACHINE} == "cobalt" \ 33 || ${MACHINE} == "evbarm" \ 34 || ${MACHINE} == "hpcarm" \ 35 || ${MACHINE} == "hpcmips" \ 36 || ${MACHINE} == "i386" \ 37 || ${MACHINE} == "macppc" \ 38 || ${MACHINE} == "netwinder" \ 39 || ${MACHINE} == "playstation2" \ 40 || ${MACHINE} == "prep" \ 41 || ${MACHINE} == "shark" \ 42 ) 43# use MBR partition info 44CPPFLAGS+= -DUSE_MBR 45# preserve the non-disklabel portions of the first 8KB of the disk 46CPPFLAGS+= -DSAVEBOOTAREA 47# recognize old MBR partition ID for a while 48CPPFLAGS+= -DCOMPAT_386BSD_MBRPART 49.endif 50 51.if (${MACHINE} == "acorn32" || ${MACHINE} == "acorn26") 52# Support FileCore boot block 53CPPFLAGS+= -DUSE_ACORN 54.endif 55 56.include <bsd.prog.mk> 57