3 # we need a keyword, this noise is to prevent it being expanded
4 GENDIRDEPS_HEADER= echo '\# ${FreeBSD:L:@v@$$$v$$ @:M*F*}';
6 # suppress optional/auto dependencies
7 # local.dirdeps.mk will put them in if necessary
10 Ngnu/lib/libssp/libssp_nonshared \
13 Ntargets/pseudo/stage* \
16 # Exclude toolchain which is handled special.
17 .if ${RELDIR:Mtargets*} == ""
18 .if ${RELDIR:Nusr.bin/clang/*:Ngnu/usr.bin/cc/*:Nlib/clang*} != ""
19 GENDIRDEPS_FILTER.host+= \
24 GENDIRDEPS_FILTER_HOST_TOOLS+= \
28 Nusr.bin/clang/clang \
37 Ngnu/usr.bin/binutils* \
39 .if ${MACHINE} != "host"
40 GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_HOST_TOOLS:C,$,.host,}
42 GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_HOST_TOOLS}
46 GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER.${MACHINE}:U}
48 # gendirdeps.mk will turn _{VAR} into ${VAR} which keeps this simple
49 # order of this list matters!
50 GENDIRDEPS_FILTER_DIR_VARS+= \
54 # order of this list matters!
55 GENDIRDEPS_FILTER_VARS+= \
61 GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_DIR_VARS:@v@S,${$v},_{${v}},@}
62 GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_VARS:@v@S,/${$v}/,/_{${v}}/,@:NS,//,*:u}