104667c47SSimon J. Gerraty# supress optional/auto dependecies 27750ad47SMarcel Moolenaar# local.dirdeps.mk will put them in if necessary 304667c47SSimon J. GerratyGENDIRDEPS_FILTER+= \ 404667c47SSimon J. Gerraty Ngnu/lib/libssp/libssp_nonshared \ 504667c47SSimon J. Gerraty Ncddl/usr.bin/ctf* \ 65633315bSSimon J. Gerraty Nlib/clang/include \ 75633315bSSimon J. Gerraty Nlib/libc_nonshared \ 861ad1ff5SSimon J. Gerraty Ntargets/pseudo/stage* \ 95633315bSSimon J. Gerraty Ntools/* 105633315bSSimon J. Gerraty 1161ad1ff5SSimon J. Gerraty.if ${RELDIR:Mtargets*} == "" 12*4113aa90SSimon J. Gerraty.if ${RELDIR:Nusr.bin/clang/*:Ngnu/usr.bin/cc/*:Nlib/clang*} != "" 13*4113aa90SSimon J. GerratyGENDIRDEPS_FILTER.host+= \ 14*4113aa90SSimon J. Gerraty Nusr.bin/clang/* \ 15*4113aa90SSimon J. Gerraty Ngnu/usr.bin/cc/* \ 16*4113aa90SSimon J. Gerraty 17*4113aa90SSimon J. Gerraty.endif 185633315bSSimon J. GerratyGENDIRDEPS_FILTER+= \ 195633315bSSimon J. Gerraty Nusr.bin/clang/clang.host \ 205633315bSSimon J. Gerraty Ngnu/usr.bin/cc* \ 21*4113aa90SSimon J. Gerraty Ngnu/usr.bin/binutils*.host \ 225633315bSSimon J. Gerraty 235633315bSSimon J. Gerraty.endif 247750ad47SMarcel Moolenaar 25*4113aa90SSimon J. GerratyGENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER.${MACHINE}:U} 26*4113aa90SSimon J. Gerraty 277750ad47SMarcel Moolenaar# gendirdeps.mk will turn _{VAR} into ${VAR} which keeps this simple 2804667c47SSimon J. Gerraty# order of this list matters! 2904667c47SSimon J. GerratyGENDIRDEPS_FILTER_DIR_VARS+= \ 3004667c47SSimon J. Gerraty CSU_DIR \ 3104667c47SSimon J. Gerraty BOOT_MACHINE_DIR 327750ad47SMarcel Moolenaar 3304667c47SSimon J. Gerraty# order of this list matters! 3404667c47SSimon J. GerratyGENDIRDEPS_FILTER_VARS+= \ 3504667c47SSimon J. Gerraty KERNEL_NAME \ 3604667c47SSimon J. Gerraty MACHINE_CPUARCH \ 3704667c47SSimon J. Gerraty MACHINE_ARCH \ 3804667c47SSimon J. Gerraty MACHINE 3904667c47SSimon J. Gerraty 4004667c47SSimon J. GerratyGENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_DIR_VARS:@v@S,${$v},_{${v}},@} 4104667c47SSimon J. GerratyGENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_VARS:@v@S,/${$v}/,/_{${v}}/,@:NS,//,*:u} 4204667c47SSimon J. Gerraty 4304667c47SSimon J. Gerraty# handle the non-standard way that gnu/usr.bin/groff/tmac is staged 4404667c47SSimon J. GerratyGENDIRDEPS_FILTER+= C,.*usr/share/tmac.*stage,gnu/usr.bin/groff/tmac, 457750ad47SMarcel Moolenaar 46