1994-05-26 02:35:07 -04:00
|
|
|
# @(#)Makefile 8.2 (Berkeley) 3/17/94
|
2000-05-09 09:46:14 -04:00
|
|
|
# $FreeBSD$
|
1994-05-26 02:35:07 -04:00
|
|
|
|
2003-05-17 15:06:45 -04:00
|
|
|
.PATH: ${.CURDIR}/../../sys/geom
|
|
|
|
|
|
2003-04-18 15:44:12 -04:00
|
|
|
PROG= bsdlabel
|
2003-05-02 15:54:18 -04:00
|
|
|
SRCS= bsdlabel.c geom_bsd_enc.c
|
2003-05-17 15:06:45 -04:00
|
|
|
#MAN= bsdlabel.5
|
2003-04-18 15:44:12 -04:00
|
|
|
MAN+= bsdlabel.8
|
1994-05-26 02:35:07 -04:00
|
|
|
|
2003-05-23 02:08:28 -04:00
|
|
|
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "alpha" || \
|
|
|
|
|
${MACHINE_ARCH} == "amd64"
|
2003-05-05 17:28:08 -04:00
|
|
|
LINKS= ${BINDIR}/bsdlabel ${BINDIR}/disklabel
|
2003-05-17 15:06:45 -04:00
|
|
|
MLINKS= bsdlabel.8 disklabel.8
|
2003-05-05 17:28:08 -04:00
|
|
|
.endif
|
|
|
|
|
|
2003-05-17 15:05:17 -04:00
|
|
|
DPADD= ${LIBGEOM}
|
|
|
|
|
LDADD= -lgeom
|
2003-05-03 04:04:24 -04:00
|
|
|
|
2000-05-09 09:46:14 -04:00
|
|
|
.if ${MACHINE} == "pc98"
|
2003-05-17 15:06:45 -04:00
|
|
|
CFLAGS+=-DPC98
|
2000-05-09 09:46:14 -04:00
|
|
|
.endif
|
|
|
|
|
|
1994-05-26 02:35:07 -04:00
|
|
|
.include <bsd.prog.mk>
|
2003-04-18 18:20:46 -04:00
|
|
|
|
2003-05-17 15:06:45 -04:00
|
|
|
test: ${PROG}
|
2003-04-18 18:20:46 -04:00
|
|
|
sh ${.CURDIR}/runtest.sh
|
2003-05-03 04:04:24 -04:00
|
|
|
|
2003-05-17 15:06:45 -04:00
|
|
|
testx: ${PROG}
|
2003-05-03 04:04:24 -04:00
|
|
|
sh -x ${.CURDIR}/runtest.sh
|