1 1.41 bjh21 # $NetBSD: Makefile,v 1.41 2001/11/29 23:08:53 bjh21 Exp $ 2 1.15 cgd # @(#)Makefile 8.2 (Berkeley) 3/17/94 3 1.1 cgd 4 1.1 cgd PROG= disklabel 5 1.39 lukem SRCS= disklabel.c dkcksum.c interact.c printlabel.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.36 soda .if (${MACHINE} == "i386") 11 1.30 drochner # recognize old partition ID for a while 12 1.30 drochner CPPFLAGS+= -DCOMPAT_386BSD_MBRPART 13 1.36 soda # use MBR partition info 14 1.36 soda CPPFLAGS+= -DUSE_MBR 15 1.30 drochner .endif 16 1.9 hpeyerl 17 1.29 mark .if (${MACHINE} == "hp300") || (${MACHINE} == "vax") \ 18 1.29 mark || (${MACHINE} == "arm32") 19 1.28 christos CPPFLAGS+= -DNUMBOOT=1 20 1.31 pk .endif 21 1.31 pk 22 1.32 kleink # these have additional requirements on the alignment of a partition 23 1.31 pk .if (${MACHINE} == "sparc") || (${MACHINE} == "sparc64") \ 24 1.31 pk || (${MACHINE} == "sun3") 25 1.31 pk CPPFLAGS+= -DSTRICT_CYLINDER_ALIGNMENT 26 1.33 cgd .endif 27 1.33 cgd 28 1.40 minoura .if (${MACHINE} == "alpha") || (${MACHINE} == "x68k") 29 1.33 cgd # read in the old boot area even though we don't support writing the boot 30 1.33 cgd # area with disklabel(8). 31 1.33 cgd CPPFLAGS+= -DSAVEBOOTAREA 32 1.5 mycroft .endif 33 1.1 cgd 34 1.38 soren .if (${MACHINE} == "hpcmips" || ${MACHINE} == "arc" || ${MACHINE} == "prep" \ 35 1.38 soren || ${MACHINE} == "cobalt") 36 1.34 shin # recognize old partition ID for a while 37 1.34 shin CPPFLAGS+= -DCOMPAT_386BSD_MBRPART 38 1.34 shin # use MBR partition info 39 1.34 shin CPPFLAGS+= -DUSE_MBR 40 1.35 shin # read in the old boot area even though we don't support writing the boot 41 1.35 shin # area with disklabel(8). 42 1.35 shin CPPFLAGS+= -DSAVEBOOTAREA 43 1.41 bjh21 .endif 44 1.41 bjh21 45 1.41 bjh21 .if (${MACHINE} == "acorn32" || ${MACHINE} == "arm26") 46 1.41 bjh21 # Support FileCore boot block 47 1.41 bjh21 CPPFLAGS+= -DUSE_ACORN 48 1.34 shin .endif 49 1.34 shin 50 1.1 cgd .include <bsd.prog.mk> 51