summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sbin/Makefile7
-rw-r--r--sbin/bsdlabel/Makefile10
2 files changed, 11 insertions, 6 deletions
diff --git a/sbin/Makefile b/sbin/Makefile
index 17ecce4..b2636ee 100644
--- a/sbin/Makefile
+++ b/sbin/Makefile
@@ -7,6 +7,7 @@ SUBDIR= adjkerntz \
atacontrol \
atm \
badsect \
+ bsdlabel \
camcontrol \
ccdconfig \
clri \
@@ -94,7 +95,6 @@ SUBDIR+=ipf \
SUBDIR+=cxconfig \
mount_nwfs \
mount_smbfs
-SUBDIR+=disklabel
.if ${MACHINE} == "pc98"
SUBDIR+=fdisk_pc98
.else
@@ -104,15 +104,10 @@ SUBDIR+=fdisk
.if ${MACHINE_ARCH} == "ia64"
SUBDIR+=fdisk \
- disklabel \
gpt \
mca
.endif
-.if ${MACHINE_ARCH} == "alpha"
-SUBDIR+=disklabel
-.endif
-
.if ${MACHINE_ARCH} == "sparc64"
SUBDIR+=sunlabel
.endif
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