1# supress optional/auto dependecies 2# local.dirdeps.mk will put them in if necessary 3GENDIRDEPS_FILTER+= \ 4 Ngnu/lib/libssp/libssp_nonshared \ 5 Ncddl/usr.bin/ctf* \ 6 Nlib/clang/include \ 7 Nlib/libc_nonshared \ 8 Ntargets/pseudo/stage* \ 9 Ntools/* 10 11.if ${RELDIR:Mtargets*} == "" 12.if ${RELDIR:Nusr.bin/clang/*:Ngnu/usr.bin/cc/*:Nlib/clang*} != "" 13GENDIRDEPS_FILTER.host+= \ 14 Nusr.bin/clang/* \ 15 Ngnu/usr.bin/cc/* \ 16 17.endif 18GENDIRDEPS_FILTER+= \ 19 Nusr.bin/clang/clang.host \ 20 Ngnu/usr.bin/cc* \ 21 Ngnu/usr.bin/binutils*.host \ 22 23.endif 24 25GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER.${MACHINE}:U} 26 27# gendirdeps.mk will turn _{VAR} into ${VAR} which keeps this simple 28# order of this list matters! 29GENDIRDEPS_FILTER_DIR_VARS+= \ 30 CSU_DIR \ 31 BOOT_MACHINE_DIR 32 33# order of this list matters! 34GENDIRDEPS_FILTER_VARS+= \ 35 KERNEL_NAME \ 36 MACHINE_CPUARCH \ 37 MACHINE_ARCH \ 38 MACHINE 39 40GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_DIR_VARS:@v@S,${$v},_{${v}},@} 41GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_VARS:@v@S,/${$v}/,/_{${v}}/,@:NS,//,*:u} 42 43# handle the non-standard way that gnu/usr.bin/groff/tmac is staged 44GENDIRDEPS_FILTER+= C,.*usr/share/tmac.*stage,gnu/usr.bin/groff/tmac, 45 46