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