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.if ${MK_LIBTHR} != "no" 17_zdb= zdb 18_zhack= zhack 19.endif 20. if ${MK_CXX} != "no" 21_zfsd= zfsd 22. endif 23.endif 24 25.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" 26_dtrace= dtrace 27_dwatch= dwatch 28_lockstat= lockstat 29_plockstat= plockstat 30.endif 31 32.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm" || \ 33 ${MACHINE_CPUARCH} == "riscv" 34_dtrace= dtrace 35_dwatch= dwatch 36_lockstat= lockstat 37.endif 38 39.if ${MACHINE_CPUARCH} == "mips" 40_dtrace= dtrace 41_dwatch= dwatch 42.endif 43 44.if ${MACHINE_CPUARCH} == "powerpc" 45_dtrace= dtrace 46_dwatch= dwatch 47_lockstat= lockstat 48.endif 49 50SUBDIR_PARALLEL= 51 52.include <bsd.subdir.mk> 53