1ccfb9654SSimon J. Gerraty# $FreeBSD$ 2ccfb9654SSimon J. Gerraty 3ccfb9654SSimon J. Gerraty# we need a keyword, this noise is to prevent it being expanded 48311337dSSimon J. GerratyGENDIRDEPS_HEADER= echo '\# ${FreeBSD:L:@v@$$$v$$ @:M*F*}'; 5ccfb9654SSimon J. Gerraty 604667c47SSimon J. Gerraty# supress optional/auto dependecies 77750ad47SMarcel Moolenaar# local.dirdeps.mk will put them in if necessary 804667c47SSimon J. GerratyGENDIRDEPS_FILTER+= \ 9*dba62d8dSSimon J. Gerraty Nbin/cat.host \ 1004667c47SSimon J. Gerraty Ngnu/lib/libssp/libssp_nonshared \ 1104667c47SSimon J. Gerraty Ncddl/usr.bin/ctf* \ 125633315bSSimon J. Gerraty Nlib/clang/include \ 135633315bSSimon J. Gerraty Nlib/libc_nonshared \ 1461ad1ff5SSimon J. Gerraty Ntargets/pseudo/stage* \ 155633315bSSimon J. Gerraty Ntools/* 165633315bSSimon J. Gerraty 1761ad1ff5SSimon J. Gerraty.if ${RELDIR:Mtargets*} == "" 184113aa90SSimon J. Gerraty.if ${RELDIR:Nusr.bin/clang/*:Ngnu/usr.bin/cc/*:Nlib/clang*} != "" 194113aa90SSimon J. GerratyGENDIRDEPS_FILTER.host+= \ 204113aa90SSimon J. Gerraty Nusr.bin/clang/* \ 214113aa90SSimon J. Gerraty Ngnu/usr.bin/cc/* \ 224113aa90SSimon J. Gerraty 234113aa90SSimon J. Gerraty.endif 245633315bSSimon J. GerratyGENDIRDEPS_FILTER+= \ 255633315bSSimon J. Gerraty Nusr.bin/clang/clang.host \ 265633315bSSimon J. Gerraty Ngnu/usr.bin/cc* \ 274113aa90SSimon J. Gerraty Ngnu/usr.bin/binutils*.host \ 285633315bSSimon J. Gerraty 295633315bSSimon J. Gerraty.endif 307750ad47SMarcel Moolenaar 314113aa90SSimon J. GerratyGENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER.${MACHINE}:U} 324113aa90SSimon J. Gerraty 337750ad47SMarcel Moolenaar# gendirdeps.mk will turn _{VAR} into ${VAR} which keeps this simple 3404667c47SSimon J. Gerraty# order of this list matters! 3504667c47SSimon J. GerratyGENDIRDEPS_FILTER_DIR_VARS+= \ 3604667c47SSimon J. Gerraty CSU_DIR \ 3704667c47SSimon J. Gerraty BOOT_MACHINE_DIR 387750ad47SMarcel Moolenaar 3904667c47SSimon J. Gerraty# order of this list matters! 4004667c47SSimon J. GerratyGENDIRDEPS_FILTER_VARS+= \ 4104667c47SSimon J. Gerraty KERNEL_NAME \ 4204667c47SSimon J. Gerraty MACHINE_CPUARCH \ 4304667c47SSimon J. Gerraty MACHINE_ARCH \ 4404667c47SSimon J. Gerraty MACHINE 4504667c47SSimon J. Gerraty 4604667c47SSimon J. GerratyGENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_DIR_VARS:@v@S,${$v},_{${v}},@} 4704667c47SSimon J. GerratyGENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_VARS:@v@S,/${$v}/,/_{${v}}/,@:NS,//,*:u} 48