1# $FreeBSD$ 2 3# we need a keyword, this noise is to prevent it being expanded 4GENDIRDEPS_HEADER= echo '\# ${FreeBSD:L:@v@$$$v$$ @:M*F*}'; 5 6# supress optional/auto dependecies 7# local.dirdeps.mk will put them in if necessary 8GENDIRDEPS_FILTER+= \ 9 Ngnu/lib/libssp/libssp_nonshared \ 10 Ncddl/usr.bin/ctf* \ 11 Nlib/clang/include \ 12 Nlib/libc_nonshared \ 13 Ntargets/pseudo/stage* \ 14 Ntools/* 15 16.if ${RELDIR:Mtargets*} == "" 17.if ${RELDIR:Nusr.bin/clang/*:Ngnu/usr.bin/cc/*:Nlib/clang*} != "" 18GENDIRDEPS_FILTER.host+= \ 19 Nusr.bin/clang/* \ 20 Ngnu/usr.bin/cc/* \ 21 22.endif 23GENDIRDEPS_FILTER+= \ 24 Nusr.bin/clang/clang.host \ 25 Ngnu/usr.bin/cc* \ 26 Ngnu/usr.bin/binutils*.host \ 27 28.endif 29 30GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER.${MACHINE}:U} 31 32# gendirdeps.mk will turn _{VAR} into ${VAR} which keeps this simple 33# order of this list matters! 34GENDIRDEPS_FILTER_DIR_VARS+= \ 35 CSU_DIR \ 36 BOOT_MACHINE_DIR 37 38# order of this list matters! 39GENDIRDEPS_FILTER_VARS+= \ 40 KERNEL_NAME \ 41 MACHINE_CPUARCH \ 42 MACHINE_ARCH \ 43 MACHINE 44 45GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_DIR_VARS:@v@S,${$v},_{${v}},@} 46GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_VARS:@v@S,/${$v}/,/_{${v}}/,@:NS,//,*:u} 47