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 \
17 Ntargets/pseudo/stage* \
20 # Clang has nested directories in its OBJDIR.
21 GENDIRDEPS_FILTER+= C,(lib/clang/lib[^/]*)/.*,\1,
23 # Exclude toolchain which is handled special.
24 .if ${RELDIR:Mtargets*} == ""
25 .if ${RELDIR:Nusr.bin/clang/*:Ngnu/usr.bin/cc/*:Nlib/clang*} != ""
26 GENDIRDEPS_FILTER.host+= \
31 GENDIRDEPS_FILTER_HOST_TOOLS+= \
35 Nusr.bin/clang/clang \
44 Ngnu/usr.bin/binutils* \
46 .if ${MACHINE} != "host"
47 GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_HOST_TOOLS:C,$,.host,}
49 GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_HOST_TOOLS}
53 GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER.${MACHINE}:U}
55 # gendirdeps.mk will turn _{VAR} into ${VAR} which keeps this simple
56 # order of this list matters!
57 GENDIRDEPS_FILTER_DIR_VARS+= \
61 # order of this list matters!
62 GENDIRDEPS_FILTER_VARS+= \
68 GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_DIR_VARS:@v@S,${$v},_{${v}},@}
69 GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_VARS:@v@S,/${$v}/,/_{${v}}/,@:NS,//,*:u}