summaryrefslogtreecommitdiffstats
path: root/sbin/bsdlabel
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-05-05 21:28:08 +0000
committerphk <phk@FreeBSD.org>2003-05-05 21:28:08 +0000
commitfe7b626383a17cbc517ac730bb9ffc3fd0cb0006 (patch)
tree8e3e76f86b750013bdb10a143506ff2eefa31d0f /sbin/bsdlabel
parentad3e75f51edb275ecaa78bf716f7148a4f647f6d (diff)
downloadFreeBSD-src-fe7b626383a17cbc517ac730bb9ffc3fd0cb0006.zip
FreeBSD-src-fe7b626383a17cbc517ac730bb9ffc3fd0cb0006.tar.gz
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.
Diffstat (limited to 'sbin/bsdlabel')
-rw-r--r--sbin/bsdlabel/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/sbin/bsdlabel/Makefile b/sbin/bsdlabel/Makefile
index 09a2fa6..58c54f5 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
OpenPOWER on IntegriCloud