xref: /freebsd/share/mk/local.dirdeps.mk (revision d1d015864103b253b3fcb2f72a0da5b0cfeb31b6)
1
2.if ${DEP_MACHINE} != "host"
3
4# this is how we can handle optional dependencies
5.if ${MK_SSP:Uno} != "no" && defined(PROG)
6DIRDEPS += gnu/lib/libssp/libssp_nonshared
7.endif
8
9.endif
10
11# we need pkgs/pseudo/stage to prep the stage tree
12.if ${DEP_RELDIR:U${RELDIR}} != "pkgs/pseudo/stage"
13DIRDEPS += pkgs/pseudo/stage
14.endif
15
16M_dep_qual_fixes += C;\.host,[^/.,]*$$;.host;
17M_dep_qual_fixes += C;\.common,[^/.,]*$$;.common;
18
19CSU_DIR.i386 = csu/i386-elf
20CSU_DIR.${DEP_MACHINE_ARCH} ?= csu/${DEP_MACHINE_ARCH}
21CSU_DIR := ${CSU_DIR.${DEP_MACHINE_ARCH}}
22
23# we want to supress these dependencies for host tools
24DIRDEPS_FILTER.host = \
25	Ninclude* \
26	Nlib/lib* \
27	Nlib/csu* \
28	Nlib/[mn]* \
29	Ngnu/lib/csu* \
30	Ngnu/lib/lib[a-r]* \
31
32