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 \
16 Ntargets/pseudo/stage* \
19 # Clang has nested directories in its OBJDIR.
20 GENDIRDEPS_FILTER+= C,(lib/clang/lib[^/]*)/.*,\1,
22 # Exclude toolchain which is handled special.
23 .if ${RELDIR:Mtargets*} == ""
24 .if ${RELDIR:Nusr.bin/clang/*:Ngnu/usr.bin/cc/*:Nlib/clang*} != ""
25 GENDIRDEPS_FILTER.host+= \
30 GENDIRDEPS_FILTER_HOST_TOOLS+= \
34 Nusr.bin/clang/clang \
43 Ngnu/usr.bin/binutils* \
45 .if ${MACHINE} != "host"
46 GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_HOST_TOOLS:C,$,.host,}
48 GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_HOST_TOOLS}
52 GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER.${MACHINE}:U}
54 # gendirdeps.mk will turn _{VAR} into ${VAR} which keeps this simple
55 # order of this list matters!
56 GENDIRDEPS_FILTER_DIR_VARS+= \
60 # order of this list matters!
61 GENDIRDEPS_FILTER_VARS+= \
67 GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_DIR_VARS:@v@S,${$v},_{${v}},@}
68 GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_VARS:@v@S,/${$v}/,/_{${v}}/,@:NS,//,*:u}