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