xref: /freebsd/share/mk/local.gendirdeps.mk (revision 6b135dd607534ff082c64ecb5bab9512e3b274f3)
1ccfb9654SSimon J. Gerraty
2ca7f4027SPedro F. Giffuni# suppress optional/auto dependencies
37750ad47SMarcel Moolenaar# local.dirdeps.mk will put them in if necessary
404667c47SSimon J. GerratyGENDIRDEPS_FILTER+= \
5dba62d8dSSimon J. Gerraty	Nbin/cat.host \
6cd0d51baSKyle Evans	Nlib/libssp_nonshared \
704667c47SSimon J. Gerraty	Ncddl/usr.bin/ctf* \
85633315bSSimon J. Gerraty	Nlib/libc_nonshared \
9a160cbfaSBryan Drewery	Nlib/libgcc_eh \
10a160cbfaSBryan Drewery	Nlib/libgcc_s \
11a6589ab7SSimon J. Gerraty	Nstand/libsa/* \
12a6589ab7SSimon J. Gerraty	Nstand/libsa32/* \
13*6b135dd6SSimon J. Gerraty	Nusr.bin/awk.host \
14*6b135dd6SSimon J. Gerraty	Nusr.bin/xinstall.host \
1561ad1ff5SSimon J. Gerraty	Ntargets/pseudo/stage* \
165633315bSSimon J. Gerraty	Ntools/*
175633315bSSimon J. Gerraty
18dab362ecSBryan Drewery# Clang has nested directories in its OBJDIR.
19dab362ecSBryan DreweryGENDIRDEPS_FILTER+= C,(lib/clang/lib[^/]*)/.*,\1,
20dab362ecSBryan Drewery
214aa63711SBryan Drewery# Exclude toolchain which is handled special.
2261ad1ff5SSimon J. Gerraty.if ${RELDIR:Mtargets*} == ""
234113aa90SSimon J. Gerraty.if ${RELDIR:Nusr.bin/clang/*:Ngnu/usr.bin/cc/*:Nlib/clang*} != ""
244113aa90SSimon J. GerratyGENDIRDEPS_FILTER.host+= \
254113aa90SSimon J. Gerraty	Nusr.bin/clang/* \
264113aa90SSimon J. Gerraty	Ngnu/usr.bin/cc/* \
274113aa90SSimon J. Gerraty
284113aa90SSimon J. Gerraty.endif
2973571281SBryan DreweryGENDIRDEPS_FILTER_HOST_TOOLS+= \
30142d4b37SBryan Drewery	Nlib/clang/headers \
3173571281SBryan Drewery	Nusr.bin/addr2line \
3273571281SBryan Drewery	Nusr.bin/ar \
3373571281SBryan Drewery	Nusr.bin/clang/clang \
3473571281SBryan Drewery	Nusr.bin/elfcopy \
3573571281SBryan Drewery	Nusr.bin/elfdump \
3673571281SBryan Drewery	Nusr.bin/nm \
3773571281SBryan Drewery	Nusr.bin/readelf \
3873571281SBryan Drewery	Nusr.bin/size \
3973571281SBryan Drewery	Nusr.bin/strings \
4073571281SBryan Drewery	Nusr.bin/strip \
415633315bSSimon J. Gerraty	Ngnu/usr.bin/cc* \
4273571281SBryan Drewery	Ngnu/usr.bin/binutils* \
435633315bSSimon J. Gerraty
4473571281SBryan Drewery.if ${MACHINE} != "host"
4573571281SBryan DreweryGENDIRDEPS_FILTER+=	${GENDIRDEPS_FILTER_HOST_TOOLS:C,$,.host,}
4673571281SBryan Drewery.else
4773571281SBryan DreweryGENDIRDEPS_FILTER+=	${GENDIRDEPS_FILTER_HOST_TOOLS}
4873571281SBryan Drewery.endif
495633315bSSimon J. Gerraty.endif
507750ad47SMarcel Moolenaar
514113aa90SSimon J. GerratyGENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER.${MACHINE}:U}
524113aa90SSimon J. Gerraty
537750ad47SMarcel Moolenaar# gendirdeps.mk will turn _{VAR} into ${VAR} which keeps this simple
54f957a32dSSimon J. Gerraty# see local.meta.sys.mk for GENDIRDEPS_FILTER_DIR_VARS and
55f957a32dSSimon J. Gerraty# GENDIRDEPS_FILTER_VARS
56960b77beSSimon J. Gerraty
57960b77beSSimon J. Gerraty# avoid churn for now
58960b77beSSimon J. GerratyLOCAL_DEPENDS_GUARD= _{DEP_RELDIR} == _{_DEP_RELDIR}
59e300f328SSimon J. Gerraty
60e300f328SSimon J. Gerraty.-include <site.gendirdeps.mk>
61