1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5SUBDIR= ${_dtrace} \ 6 ${_lockstat} \ 7 ${_plockstat} \ 8 ${_zdb} \ 9 ${_zfsd} \ 10 ${_zhack} 11 12SUBDIR.${MK_TESTS}+= tests 13 14.if ${MK_ZFS} != "no" 15.if ${MK_LIBTHR} != "no" 16_zdb= zdb 17_zhack= zhack 18.endif 19. if ${MK_CXX} != "no" 20_zfsd= zfsd 21. endif 22.endif 23 24.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" 25_dtrace= dtrace 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_lockstat= lockstat 34.endif 35 36.if ${MACHINE_CPUARCH} == "mips" 37_dtrace= dtrace 38.endif 39 40.if ${MACHINE_CPUARCH} == "powerpc" 41_dtrace= dtrace 42_lockstat= lockstat 43.endif 44 45SUBDIR_PARALLEL= 46 47.include <bsd.subdir.mk> 48