xref: /freebsd/share/mk/local.gendirdeps.mk (revision 069ac18495ad8fde2748bc94b0f80a50250bb01d)
1
2# suppress optional/auto dependencies
3# local.dirdeps.mk will put them in if necessary
4GENDIRDEPS_FILTER+= \
5	Nbin/cat.host \
6	Nlib/libssp_nonshared \
7	Ncddl/usr.bin/ctf* \
8	Nlib/libc_nonshared \
9	Nlib/libgcc_eh \
10	Nlib/libgcc_s \
11	Nstand/libsa/* \
12	Nstand/libsa32/* \
13	Ntargets/pseudo/stage* \
14	Ntools/*
15
16# Clang has nested directories in its OBJDIR.
17GENDIRDEPS_FILTER+= C,(lib/clang/lib[^/]*)/.*,\1,
18
19# Exclude toolchain which is handled special.
20.if ${RELDIR:Mtargets*} == ""
21.if ${RELDIR:Nusr.bin/clang/*:Ngnu/usr.bin/cc/*:Nlib/clang*} != ""
22GENDIRDEPS_FILTER.host+= \
23	Nusr.bin/clang/* \
24	Ngnu/usr.bin/cc/* \
25
26.endif
27GENDIRDEPS_FILTER_HOST_TOOLS+= \
28	Nlib/clang/headers \
29	Nusr.bin/addr2line \
30	Nusr.bin/ar \
31	Nusr.bin/clang/clang \
32	Nusr.bin/elfcopy \
33	Nusr.bin/elfdump \
34	Nusr.bin/nm \
35	Nusr.bin/readelf \
36	Nusr.bin/size \
37	Nusr.bin/strings \
38	Nusr.bin/strip \
39	Ngnu/usr.bin/cc* \
40	Ngnu/usr.bin/binutils* \
41
42.if ${MACHINE} != "host"
43GENDIRDEPS_FILTER+=	${GENDIRDEPS_FILTER_HOST_TOOLS:C,$,.host,}
44.else
45GENDIRDEPS_FILTER+=	${GENDIRDEPS_FILTER_HOST_TOOLS}
46.endif
47.endif
48
49GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER.${MACHINE}:U}
50
51# gendirdeps.mk will turn _{VAR} into ${VAR} which keeps this simple
52# see local.meta.sys.mk for GENDIRDEPS_FILTER_DIR_VARS and
53# GENDIRDEPS_FILTER_VARS
54
55# avoid churn for now
56LOCAL_DEPENDS_GUARD= _{DEP_RELDIR} == _{_DEP_RELDIR}
57
58.-include <site.gendirdeps.mk>
59