1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5SUBDIR= ${_dtrace} \ 6 ${_dwatch} \ 7 ${_lockstat} \ 8 ${_plockstat} \ 9 ${_zdb} \ 10 ${_zfsd} \ 11 ${_zhack} 12 13SUBDIR.${MK_TESTS}+= tests 14 15.if ${MK_ZFS} != "no" 16_zdb= zdb 17_zhack= zhack 18. if ${MK_CXX} != "no" 19_zfsd= zfsd 20. endif 21.endif 22 23.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" 24_dtrace= dtrace 25_dwatch= dwatch 26_lockstat= lockstat 27_plockstat= plockstat 28.endif 29 30.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm" || \ 31 ${MACHINE_CPUARCH} == "riscv" 32_dtrace= dtrace 33_dwatch= dwatch 34_lockstat= lockstat 35.endif 36 37.if ${MACHINE_CPUARCH} == "mips" 38_dtrace= dtrace 39_dwatch= dwatch 40.endif 41 42.if ${MACHINE_CPUARCH} == "powerpc" 43_dtrace= dtrace 44_dwatch= dwatch 45_lockstat= lockstat 46.endif 47 48SUBDIR_PARALLEL= 49 50.include <bsd.subdir.mk> 51