summaryrefslogtreecommitdiffstats
path: root/sbin/Makefile
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2010-09-13 02:25:21 +0000
committerimp <imp@FreeBSD.org>2010-09-13 02:25:21 +0000
commit6bf6c14dc888864c00a059512629d055fd11d63c (patch)
tree5108e701f49e7e622c7427a3cf9e628562eba996 /sbin/Makefile
parent628ee6d3bc29336787bd2f0a2cbc191e8191f17b (diff)
downloadFreeBSD-src-6bf6c14dc888864c00a059512629d055fd11d63c.zip
FreeBSD-src-6bf6c14dc888864c00a059512629d055fd11d63c.tar.gz
MF tbemd: Move to using Makefile.arch to select what to build.
Reviewed by: arch@ (no objection)
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 72f4bff..0623574 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>
OpenPOWER on IntegriCloud