aboutsummaryrefslogtreecommitdiff
path: root/sbin/bsdlabel/Makefile
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2003-05-05 21:28:08 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2003-05-05 21:28:08 +0000
commit4917b55e507076f965667530e55015ecc6a4dc69 (patch)
tree8e3e76f86b750013bdb10a143506ff2eefa31d0f /sbin/bsdlabel/Makefile
parent01de25134f4ce3f1820c98e2932e2e74e21c225f (diff)
downloadsrc-4917b55e507076f965667530e55015ecc6a4dc69.tar.gz
src-4917b55e507076f965667530e55015ecc6a4dc69.zip
Compile bsdlabel on all platforms.
Install a link to the disklabel(8) name on i386 and alpha platforms. Leave old disklabel(8) sources intact but disconnected from the build for now.
Notes
Notes: svn path=/head/; revision=114759
Diffstat (limited to 'sbin/bsdlabel/Makefile')
-rw-r--r--sbin/bsdlabel/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/sbin/bsdlabel/Makefile b/sbin/bsdlabel/Makefile
index 09a2fa669009..58c54f5e6f70 100644
--- a/sbin/bsdlabel/Makefile
+++ b/sbin/bsdlabel/Makefile
@@ -6,6 +6,16 @@ SRCS= bsdlabel.c geom_bsd_enc.c
#MAN+= bsdlabel.5
MAN+= bsdlabel.8
+.if ${MACHINE_ARCH} == "i386"
+LINKS= ${BINDIR}/bsdlabel ${BINDIR}/disklabel
+MLINKS+= bsdlabel.8 disklabel.8
+.endif
+
+.if ${MACHINE_ARCH} == "alpha"
+LINKS= ${BINDIR}/bsdlabel ${BINDIR}/disklabel
+MLINKS+= bsdlabel.8 disklabel.8
+.endif
+
DDADD= ${LIBGEOM}
LDADD= -lgeom -lbsdxml -lsbuf