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 # Clang has nested directories in its OBJDIR.
17 GENDIRDEPS_FILTER+= C,(lib/clang/lib[^/]*)/.*,\1,
19 # Exclude toolchain which is handled special.
20 .if ${RELDIR:Mtargets*} == ""
21 .if ${RELDIR:Nusr.bin/clang/*:Ngnu/usr.bin/cc/*:Nlib/clang*} != ""
22 GENDIRDEPS_FILTER.host+= \
27 GENDIRDEPS_FILTER_HOST_TOOLS+= \
31 Nusr.bin/clang/clang \
40 Ngnu/usr.bin/binutils* \
42 .if ${MACHINE} != "host"
43 GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_HOST_TOOLS:C,$,.host,}
45 GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_HOST_TOOLS}
49 GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER.${MACHINE}:U}
51 # gendirdeps.mk will turn _{VAR} into ${VAR} which keeps this simple
52 # order of this list matters!
53 GENDIRDEPS_FILTER_DIR_VARS+= \
57 # order of this list matters!
58 GENDIRDEPS_FILTER_VARS+= \
64 GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_DIR_VARS:@v@S,${$v},_{${v}},@}
65 GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_VARS:@v@S,/${$v}/,/_{${v}}/,@:NS,//,*:u}