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