aboutsummaryrefslogtreecommitdiff
path: root/sbin/Makefile
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2010-09-13 02:25:21 +0000
committerWarner Losh <imp@FreeBSD.org>2010-09-13 02:25:21 +0000
commit130ecf684fe7de319b897e5af4b352edb1e19157 (patch)
tree5108e701f49e7e622c7427a3cf9e628562eba996 /sbin/Makefile
parent22e2f727d0cef7394177c6ecab32de674c1d3404 (diff)
downloadsrc-130ecf684fe7de319b897e5af4b352edb1e19157.tar.gz
src-130ecf684fe7de319b897e5af4b352edb1e19157.zip
MF tbemd: Move to using Makefile.arch to select what to build.
Reviewed by: arch@ (no objection)
Notes
Notes: svn path=/head/; revision=212527
Diffstat (limited to 'sbin/Makefile')
-rw-r--r--sbin/Makefile70
1 files changed, 14 insertions, 56 deletions
diff --git a/sbin/Makefile b/sbin/Makefile
index 72f4bff7782d..0623574c1d65 100644
--- a/sbin/Makefile
+++ b/sbin/Makefile
@@ -5,26 +5,21 @@
# XXX MISSING: icheck ncheck
-SUBDIR= adjkerntz \
+SUBDIR=adjkerntz \
atacontrol \
- ${_atm} \
badsect \
- ${_bsdlabel} \
camcontrol \
ccdconfig \
clri \
comcontrol \
conscontrol \
ddb \
- ${_devd} \
devfs \
dhclient \
dmesg \
dump \
dumpfs \
dumpon \
- ${_fdisk} \
- ${_fdisk_pc98} \
ffsinfo \
fsck \
fsck_ffs \
@@ -40,15 +35,12 @@ SUBDIR= adjkerntz \
hastd \
ifconfig \
init \
- ${_ipf} \
- ${_ipfw} \
iscontrol \
kldconfig \
kldload \
kldstat \
kldunload \
ldconfig \
- ${_mca} \
md5 \
mdconfig \
mdmfs \
@@ -62,96 +54,62 @@ SUBDIR= adjkerntz \
mount_nullfs \
mount_udf \
mount_unionfs \
- ${_natd} \
newfs \
newfs_msdos \
nfsiod \
nos-tun \
- ${_pfctl} \
- ${_pflogd} \
ping \
- ${_ping6} \
- ${_quotacheck} \
rcorder \
reboot \
recoverdisk \
restore \
route \
- ${_routed} \
- ${_rtsol} \
savecore \
- ${_sconfig} \
setkey \
shutdown \
spppcontrol \
- ${_sunlabel} \
swapon \
sysctl \
tunefs \
umount \
.if ${MK_ATM} != "no"
-_atm= atm
+SUBDIR+= atm
.endif
.if ${MK_CXX} != "no"
-_devd= devd
+SUBDIR+= devd
.endif
.if ${MK_IPFILTER} != "no"
-_ipf= ipf
+SUBDIR+= ipf
.endif
.if ${MK_IPFW} != "no"
-_ipfw= ipfw
-_natd= natd
+SUBDIR+= ipfw
+SUBDIR+= natd
.endif
.if ${MK_PF} != "no"
-_pfctl= pfctl
-_pflogd= pflogd
+SUBDIR+= pfctl
+SUBDIR+= pflogd
.endif
.if ${MK_INET6} != "no"
-_ping6= ping6
-_rtsol= rtsol
-.endif
-
-.if ${MACHINE_ARCH} != "ia64" && ${MACHINE_ARCH} != "powerpc"
-_bsdlabel= bsdlabel
+SUBDIR+= ping6
+SUBDIR+= rtsol
.endif
.if ${MK_QUOTAS} != "no"
-_quotacheck= quotacheck
+SUBDIR+= quotacheck
.endif
.if ${MK_ROUTED} != "no"
-_routed= routed
-.endif
-
-.if ${MACHINE_ARCH} == "i386"
-.if ${MACHINE} == "i386"
-_fdisk= fdisk
-.elif ${MACHINE} == "pc98"
-_fdisk_pc98= fdisk_pc98
-.endif
-_sconfig= sconfig
+SUBDIR+= routed
.endif
-.if ${MACHINE_ARCH} == "amd64"
-_fdisk= fdisk
-.endif
+.include <bsd.arch.inc.mk>
-.if ${MACHINE_ARCH} == "arm"
-_fdisk= fdisk
-.endif
-
-.if ${MACHINE_ARCH} == "ia64"
-_mca= mca
-.endif
-
-.if ${MACHINE_ARCH} == "sparc64"
-_sunlabel= sunlabel
-.endif
+SUBDIR:= ${SUBDIR:O}
.include <bsd.subdir.mk>