2006-12-18 16:39:10 +03:00
|
|
|
# $NetBSD: Makefile,v 1.60 2006/12/18 13:39:10 nonaka Exp $
|
1995-03-18 17:54:19 +03:00
|
|
|
# @(#)Makefile 8.2 (Berkeley) 3/17/94
|
1993-03-21 12:45:37 +03:00
|
|
|
|
|
|
|
PROG= disklabel
|
2005-06-12 23:18:34 +04:00
|
|
|
SRCS= main.c dkcksum.c interact.c printlabel.c
|
1994-12-22 12:57:51 +03:00
|
|
|
MAN= disklabel.5 disklabel.8
|
2005-06-23 04:54:47 +04:00
|
|
|
.if (${HOSTPROG:U} == "")
|
1997-03-09 03:14:17 +03:00
|
|
|
DPADD+= ${LIBUTIL}
|
2005-06-23 04:54:47 +04:00
|
|
|
LDADD+= -lutil
|
|
|
|
.endif
|
1993-03-21 12:45:37 +03:00
|
|
|
|
1999-04-09 20:00:17 +04:00
|
|
|
# these have additional requirements on the alignment of a partition
|
1999-01-21 14:58:00 +03:00
|
|
|
.if (${MACHINE} == "sparc") || (${MACHINE} == "sparc64") \
|
|
|
|
|| (${MACHINE} == "sun3")
|
|
|
|
CPPFLAGS+= -DSTRICT_CYLINDER_ALIGNMENT
|
|
|
|
.endif
|
|
|
|
|
2004-01-19 01:34:22 +03:00
|
|
|
.if ( 0 \
|
|
|
|
|| ${MACHINE} == "acorn26" \
|
|
|
|
|| ${MACHINE} == "acorn32" \
|
|
|
|
|| ${MACHINE} == "amd64" \
|
|
|
|
|| ${MACHINE} == "arc" \
|
|
|
|
|| ${MACHINE} == "cats" \
|
|
|
|
|| ${MACHINE} == "cobalt" \
|
|
|
|
|| ${MACHINE} == "evbarm" \
|
|
|
|
|| ${MACHINE} == "hpcarm" \
|
|
|
|
|| ${MACHINE} == "hpcmips" \
|
|
|
|
|| ${MACHINE} == "i386" \
|
2004-10-14 03:28:34 +04:00
|
|
|
|| ${MACHINE} == "iyonix" \
|
2006-09-02 01:44:02 +04:00
|
|
|
|| ${MACHINE} == "landisk" \
|
2004-01-19 01:34:22 +03:00
|
|
|
|| ${MACHINE} == "macppc" \
|
|
|
|
|| ${MACHINE} == "netwinder" \
|
|
|
|
|| ${MACHINE} == "playstation2" \
|
|
|
|
|| ${MACHINE} == "prep" \
|
|
|
|
|| ${MACHINE} == "shark" \
|
2006-12-18 16:39:10 +03:00
|
|
|
|| ${MACHINE} == "zaurus" \
|
2004-01-19 01:34:22 +03:00
|
|
|
)
|
1999-10-11 09:28:04 +04:00
|
|
|
# use MBR partition info
|
|
|
|
CPPFLAGS+= -DUSE_MBR
|
2004-01-19 01:34:22 +03:00
|
|
|
# recognize old MBR partition ID for a while
|
|
|
|
CPPFLAGS+= -DCOMPAT_386BSD_MBRPART
|
1999-10-11 09:28:04 +04:00
|
|
|
.endif
|
|
|
|
|
2002-03-25 01:25:27 +03:00
|
|
|
.if (${MACHINE} == "acorn32" || ${MACHINE} == "acorn26")
|
2001-11-30 02:08:53 +03:00
|
|
|
# Support FileCore boot block
|
|
|
|
CPPFLAGS+= -DUSE_ACORN
|
|
|
|
.endif
|
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
.include <bsd.prog.mk>
|