Makefile revision 1.68
1# $NetBSD: Makefile,v 1.68 2011/08/18 08:42:07 phx 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 ( 0 \ 19 || ${MACHINE} == "acorn26" \ 20 || ${MACHINE} == "acorn32" \ 21 || ${MACHINE} == "amd64" \ 22 || ${MACHINE} == "arc" \ 23 || ${MACHINE} == "cats" \ 24 || ${MACHINE} == "cobalt" \ 25 || ${MACHINE} == "dreamcast" \ 26 || ${MACHINE} == "evbarm" \ 27 || ${MACHINE} == "evbsh3" \ 28 || ${MACHINE} == "hpcarm" \ 29 || ${MACHINE} == "hpcmips" \ 30 || ${MACHINE} == "hpcsh" \ 31 || ${MACHINE} == "i386" \ 32 || ${MACHINE} == "iyonix" \ 33 || ${MACHINE} == "landisk" \ 34 || ${MACHINE} == "macppc" \ 35 || ${MACHINE} == "mmeye" \ 36 || ${MACHINE} == "netwinder" \ 37 || ${MACHINE} == "ofppc" \ 38 || ${MACHINE} == "prep" \ 39 || ${MACHINE} == "shark" \ 40 || ${MACHINE} == "zaurus" \ 41 ) 42# use MBR partition info 43CPPFLAGS+= -DUSE_MBR 44# do not recognize old MBR partition ID any more 45#CPPFLAGS+= -DCOMPAT_386BSD_MBRPART 46.endif 47 48.if (${MACHINE} == "acorn32" || ${MACHINE} == "acorn26") 49# Support FileCore boot block 50CPPFLAGS+= -DUSE_ACORN 51.endif 52 53.if (${MACHINE_ARCH} == "alpha") 54# alpha requires boot block checksum 55CPPFLAGS+= -DALPHA_BOOTBLOCK_CKSUM 56.endif 57 58.if (${MACHINE_ARCH} == "vax") 59# vax requires labels in alternative sectors on SMD disk 60CPPFLAGS+= -DVAX_ALTLABELS 61.endif 62 63.include <bsd.prog.mk> 64