xref: /freebsd/share/mk/local.gendirdeps.mk (revision 61ad1ff58d4e7a8c21f05066d9a05aad2f84d291)
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 \
8*61ad1ff5SSimon J. Gerraty	Ntargets/pseudo/stage* \
95633315bSSimon J. Gerraty	Ntools/*
105633315bSSimon J. Gerraty
11*61ad1ff5SSimon J. Gerraty.if ${RELDIR:Mtargets*} == ""
125633315bSSimon J. GerratyGENDIRDEPS_FILTER+= \
135633315bSSimon J. Gerraty	Nusr.bin/clang/clang.host \
145633315bSSimon J. Gerraty	Ngnu/usr.bin/cc* \
155633315bSSimon J. Gerraty
165633315bSSimon J. Gerraty.endif
177750ad47SMarcel Moolenaar
187750ad47SMarcel Moolenaar# gendirdeps.mk will turn _{VAR} into ${VAR} which keeps this simple
1904667c47SSimon J. Gerraty# order of this list matters!
2004667c47SSimon J. GerratyGENDIRDEPS_FILTER_DIR_VARS+= \
2104667c47SSimon J. Gerraty       CSU_DIR \
2204667c47SSimon J. Gerraty       BOOT_MACHINE_DIR
237750ad47SMarcel Moolenaar
2404667c47SSimon J. Gerraty# order of this list matters!
2504667c47SSimon J. GerratyGENDIRDEPS_FILTER_VARS+= \
2604667c47SSimon J. Gerraty       KERNEL_NAME \
2704667c47SSimon J. Gerraty       MACHINE_CPUARCH \
2804667c47SSimon J. Gerraty       MACHINE_ARCH \
2904667c47SSimon J. Gerraty       MACHINE
3004667c47SSimon J. Gerraty
3104667c47SSimon J. GerratyGENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_DIR_VARS:@v@S,${$v},_{${v}},@}
3204667c47SSimon J. GerratyGENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_VARS:@v@S,/${$v}/,/_{${v}}/,@:NS,//,*:u}
3304667c47SSimon J. Gerraty
3404667c47SSimon J. Gerraty# handle the non-standard way that gnu/usr.bin/groff/tmac is staged
3504667c47SSimon J. GerratyGENDIRDEPS_FILTER+= C,.*usr/share/tmac.*stage,gnu/usr.bin/groff/tmac,
367750ad47SMarcel Moolenaar
37