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 Nlib/libssp_nonshared \
19 Ntargets/pseudo/stage* \
22 # Clang has nested directories in its OBJDIR.
23 GENDIRDEPS_FILTER+= C,(lib/clang/lib[^/]*)/.*,\1,
25 # Exclude toolchain which is handled special.
26 .if ${RELDIR:Mtargets*} == ""
27 .if ${RELDIR:Nusr.bin/clang/*:Ngnu/usr.bin/cc/*:Nlib/clang*} != ""
28 GENDIRDEPS_FILTER.host+= \
33 GENDIRDEPS_FILTER_HOST_TOOLS+= \
37 Nusr.bin/clang/clang \
46 Ngnu/usr.bin/binutils* \
48 .if ${MACHINE} != "host"
49 GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_HOST_TOOLS:C,$,.host,}
51 GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_HOST_TOOLS}
55 GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER.${MACHINE}:U}
57 # gendirdeps.mk will turn _{VAR} into ${VAR} which keeps this simple
58 # order of this list matters!
59 GENDIRDEPS_FILTER_DIR_VARS+= \
63 # order of this list matters!
64 GENDIRDEPS_FILTER_VARS+= \
70 GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_DIR_VARS:@v@S,${$v},_{${v}},@}
71 GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_VARS:@v@S,/${$v}/,/_{${v}}/,@:NS,//,*:u}