56ed3d51fc
in C source file to define option features. Define proper options in each Makefile per ${MACHINE_ARCH} variable instead. Previously if a host is x86 and it has /usr/mdec/mbr file in its system, tools fdisk implicitly installs it as mbr bootcode even for !x86 targets.
29 lines
510 B
Makefile
29 lines
510 B
Makefile
# $NetBSD: Makefile,v 1.42 2012/05/05 16:03:55 tsutsui Exp $
|
|
|
|
PROG= fdisk
|
|
SRCS= fdisk.c
|
|
|
|
MAN= fdisk.8
|
|
|
|
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
|
|
CPPFLAGS+= -DBOOTSEL
|
|
.if (${HOSTPROG:U} == "")
|
|
CPPFLAGS+= -DUSE_DISKLIST
|
|
.endif
|
|
.endif
|
|
|
|
.if ${MACHINE} == "arc"
|
|
CPPFLAGS+= -D_PATH_DEFDISK='"/dev/rsd0d"'
|
|
.endif
|
|
|
|
.if ${MACHINE} == "netwinder"
|
|
CPPFLAGS+= -D_PATH_DEFDISK='"/dev/rwd0c"'
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|
|
|
|
.if (${HOSTPROG:U} == "")
|
|
DPADD+= ${LIBUTIL} ${LIBZ}
|
|
LDADD+= -lutil -lz
|
|
.endif
|