xref: /freebsd/share/mk/local.gendirdeps.mk (revision 96190b4fef3b4a0cc3ca0606b0c4e3e69a5e6717)
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	Nusr.bin/awk.host \
14	Nusr.bin/xinstall.host \
15	Ntargets/pseudo/stage* \
16	Ntools/*
17
18# Clang has nested directories in its OBJDIR.
19GENDIRDEPS_FILTER+= C,(lib/clang/lib[^/]*)/.*,\1,
20
21# Exclude toolchain which is handled special.
22.if ${RELDIR:Mtargets*} == ""
23.if ${RELDIR:Nusr.bin/clang/*:Ngnu/usr.bin/cc/*:Nlib/clang*} != ""
24GENDIRDEPS_FILTER.host+= \
25	Nusr.bin/clang/* \
26	Ngnu/usr.bin/cc/* \
27
28.endif
29GENDIRDEPS_FILTER_HOST_TOOLS+= \
30	Nlib/clang/headers \
31	Nusr.bin/addr2line \
32	Nusr.bin/ar \
33	Nusr.bin/clang/clang \
34	Nusr.bin/elfcopy \
35	Nusr.bin/elfdump \
36	Nusr.bin/nm \
37	Nusr.bin/readelf \
38	Nusr.bin/size \
39	Nusr.bin/strings \
40	Nusr.bin/strip \
41	Ngnu/usr.bin/cc* \
42	Ngnu/usr.bin/binutils* \
43
44.if ${MACHINE} != "host"
45GENDIRDEPS_FILTER+=	${GENDIRDEPS_FILTER_HOST_TOOLS:C,$,.host,}
46.else
47GENDIRDEPS_FILTER+=	${GENDIRDEPS_FILTER_HOST_TOOLS}
48.endif
49.endif
50
51GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER.${MACHINE}:U}
52
53# gendirdeps.mk will turn _{VAR} into ${VAR} which keeps this simple
54# see local.meta.sys.mk for GENDIRDEPS_FILTER_DIR_VARS and
55# GENDIRDEPS_FILTER_VARS
56
57# avoid churn for now
58LOCAL_DEPENDS_GUARD= _{DEP_RELDIR} == _{_DEP_RELDIR}
59
60.-include <site.gendirdeps.mk>
61