1 1.35 shin # $NetBSD: Makefile,v 1.35 2000/01/09 02:45:43 shin Exp $ 2 1.15 cgd # @(#)Makefile 8.2 (Berkeley) 3/17/94 3 1.1 cgd 4 1.1 cgd PROG= disklabel 5 1.19 christos SRCS= disklabel.c dkcksum.c interact.c 6 1.12 cgd MAN= disklabel.5 disklabel.8 7 1.20 christos LDADD+= -lutil 8 1.20 christos DPADD+= ${LIBUTIL} 9 1.9 hpeyerl 10 1.30 drochner # recognize old partition ID for a while 11 1.30 drochner .if (${MACHINE} == "i386") 12 1.30 drochner CPPFLAGS+= -DCOMPAT_386BSD_MBRPART 13 1.30 drochner .endif 14 1.9 hpeyerl 15 1.29 mark .if (${MACHINE} == "hp300") || (${MACHINE} == "vax") \ 16 1.29 mark || (${MACHINE} == "arm32") 17 1.28 christos CPPFLAGS+= -DNUMBOOT=1 18 1.31 pk .endif 19 1.31 pk 20 1.32 kleink # these have additional requirements on the alignment of a partition 21 1.31 pk .if (${MACHINE} == "sparc") || (${MACHINE} == "sparc64") \ 22 1.31 pk || (${MACHINE} == "sun3") 23 1.31 pk CPPFLAGS+= -DSTRICT_CYLINDER_ALIGNMENT 24 1.33 cgd .endif 25 1.33 cgd 26 1.33 cgd .if (${MACHINE} == "alpha") 27 1.33 cgd # read in the old boot area even though we don't support writing the boot 28 1.33 cgd # area with disklabel(8). 29 1.33 cgd CPPFLAGS+= -DSAVEBOOTAREA 30 1.5 mycroft .endif 31 1.1 cgd 32 1.34 shin .if (${MACHINE} == "hpcmips") 33 1.34 shin # recognize old partition ID for a while 34 1.34 shin CPPFLAGS+= -DCOMPAT_386BSD_MBRPART 35 1.34 shin # use MBR partition info 36 1.34 shin CPPFLAGS+= -DUSE_MBR 37 1.35 shin # read in the old boot area even though we don't support writing the boot 38 1.35 shin # area with disklabel(8). 39 1.35 shin CPPFLAGS+= -DSAVEBOOTAREA 40 1.34 shin .endif 41 1.34 shin 42 1.1 cgd .include <bsd.prog.mk> 43