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+= \ 9dba62d8dSSimon 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 17*4aa63711SBryan Drewery# Exclude toolchain which is handled special. 1861ad1ff5SSimon J. Gerraty.if ${RELDIR:Mtargets*} == "" 194113aa90SSimon J. Gerraty.if ${RELDIR:Nusr.bin/clang/*:Ngnu/usr.bin/cc/*:Nlib/clang*} != "" 204113aa90SSimon J. GerratyGENDIRDEPS_FILTER.host+= \ 214113aa90SSimon J. Gerraty Nusr.bin/clang/* \ 224113aa90SSimon J. Gerraty Ngnu/usr.bin/cc/* \ 234113aa90SSimon J. Gerraty 244113aa90SSimon J. Gerraty.endif 255633315bSSimon J. GerratyGENDIRDEPS_FILTER+= \ 26*4aa63711SBryan Drewery Nlib/clang/include.host \ 27*4aa63711SBryan Drewery Nusr.bin/addr2line.host \ 28*4aa63711SBryan Drewery Nusr.bin/ar.host \ 295633315bSSimon J. Gerraty Nusr.bin/clang/clang.host \ 30*4aa63711SBryan Drewery Nusr.bin/elfcopy.host \ 31*4aa63711SBryan Drewery Nusr.bin/elfdump.host \ 32*4aa63711SBryan Drewery Nusr.bin/nm.host \ 33*4aa63711SBryan Drewery Nusr.bin/readelf.host \ 34*4aa63711SBryan Drewery Nusr.bin/size.host \ 35*4aa63711SBryan Drewery Nusr.bin/strings.host \ 36*4aa63711SBryan Drewery Nusr.bin/strip.host \ 375633315bSSimon J. Gerraty Ngnu/usr.bin/cc* \ 384113aa90SSimon J. Gerraty Ngnu/usr.bin/binutils*.host \ 395633315bSSimon J. Gerraty 405633315bSSimon J. Gerraty.endif 417750ad47SMarcel Moolenaar 424113aa90SSimon J. GerratyGENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER.${MACHINE}:U} 434113aa90SSimon J. Gerraty 447750ad47SMarcel Moolenaar# gendirdeps.mk will turn _{VAR} into ${VAR} which keeps this simple 4504667c47SSimon J. Gerraty# order of this list matters! 4604667c47SSimon J. GerratyGENDIRDEPS_FILTER_DIR_VARS+= \ 4704667c47SSimon J. Gerraty CSU_DIR \ 4804667c47SSimon J. Gerraty BOOT_MACHINE_DIR 497750ad47SMarcel Moolenaar 5004667c47SSimon J. Gerraty# order of this list matters! 5104667c47SSimon J. GerratyGENDIRDEPS_FILTER_VARS+= \ 5204667c47SSimon J. Gerraty KERNEL_NAME \ 5304667c47SSimon J. Gerraty MACHINE_CPUARCH \ 5404667c47SSimon J. Gerraty MACHINE_ARCH \ 5504667c47SSimon J. Gerraty MACHINE 5604667c47SSimon J. Gerraty 5704667c47SSimon J. GerratyGENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_DIR_VARS:@v@S,${$v},_{${v}},@} 5804667c47SSimon J. GerratyGENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_VARS:@v@S,/${$v}/,/_{${v}}/,@:NS,//,*:u} 59