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 +SUBDIR+= routed .endif -.if ${MACHINE_ARCH} == "i386" -.if ${MACHINE} == "i386" -_fdisk= fdisk -.elif ${MACHINE} == "pc98" -_fdisk_pc98= fdisk_pc98 -.endif -_sconfig= sconfig -.endif +.include -.if ${MACHINE_ARCH} == "amd64" -_fdisk= fdisk -.endif - -.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 diff --git a/sbin/Makefile.amd64 b/sbin/Makefile.amd64 new file mode 100644 index 000000000000..2d231b0cb2b0 --- /dev/null +++ b/sbin/Makefile.amd64 @@ -0,0 +1,4 @@ +# $FreeBSD$ + +SUBDIR += bsdlabel +SUBDIR += fdisk diff --git a/sbin/Makefile.arm b/sbin/Makefile.arm new file mode 100644 index 000000000000..2d231b0cb2b0 --- /dev/null +++ b/sbin/Makefile.arm @@ -0,0 +1,4 @@ +# $FreeBSD$ + +SUBDIR += bsdlabel +SUBDIR += fdisk diff --git a/sbin/Makefile.i386 b/sbin/Makefile.i386 new file mode 100644 index 000000000000..4135c44082c9 --- /dev/null +++ b/sbin/Makefile.i386 @@ -0,0 +1,5 @@ +# $FreeBSD$ + +SUBDIR += bsdlabel +SUBDIR += fdisk +SUBDIR += sconfig diff --git a/sbin/Makefile.ia64 b/sbin/Makefile.ia64 new file mode 100644 index 000000000000..c1e6a417ac88 --- /dev/null +++ b/sbin/Makefile.ia64 @@ -0,0 +1,3 @@ +# $FreeBSD$ + +SUBDIR += mca diff --git a/sbin/Makefile.mips b/sbin/Makefile.mips new file mode 100644 index 000000000000..2d231b0cb2b0 --- /dev/null +++ b/sbin/Makefile.mips @@ -0,0 +1,4 @@ +# $FreeBSD$ + +SUBDIR += bsdlabel +SUBDIR += fdisk diff --git a/sbin/Makefile.pc98 b/sbin/Makefile.pc98 new file mode 100644 index 000000000000..4aab559ad6dd --- /dev/null +++ b/sbin/Makefile.pc98 @@ -0,0 +1,5 @@ +# $FreeBSD$ + +SUBDIR += bsdlabel +SUBDIR += fdisk_pc98 +SUBDIR += sconfig diff --git a/sbin/Makefile.sparc64 b/sbin/Makefile.sparc64 new file mode 100644 index 000000000000..9a5bbe63bf17 --- /dev/null +++ b/sbin/Makefile.sparc64 @@ -0,0 +1,4 @@ +# $FreeBSD$ + +SUBDIR += bsdlabel +SUBDIR += sunlabel