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 \
18 Ntargets/pseudo/stage* \
21 # Clang has nested directories in its OBJDIR.
22 GENDIRDEPS_FILTER+= C,(lib/clang/lib[^/]*)/.*,\1,
24 # Exclude toolchain which is handled special.
25 .if ${RELDIR:Mtargets*} == ""
26 .if ${RELDIR:Nusr.bin/clang/*:Ngnu/usr.bin/cc/*:Nlib/clang*} != ""
27 GENDIRDEPS_FILTER.host+= \
32 GENDIRDEPS_FILTER_HOST_TOOLS+= \
36 Nusr.bin/clang/clang \
45 Ngnu/usr.bin/binutils* \
47 .if ${MACHINE} != "host"
48 GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_HOST_TOOLS:C,$,.host,}
50 GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_HOST_TOOLS}
54 GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER.${MACHINE}:U}
56 # gendirdeps.mk will turn _{VAR} into ${VAR} which keeps this simple
57 # order of this list matters!
58 GENDIRDEPS_FILTER_DIR_VARS+= \
62 # order of this list matters!
63 GENDIRDEPS_FILTER_VARS+= \
69 GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_DIR_VARS:@v@S,${$v},_{${v}},@}
70 GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_VARS:@v@S,/${$v}/,/_{${v}}/,@:NS,//,*:u}