]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - share/mk/local.dirdeps.mk
Apply DEP_DIRDEPS_FILTER.${DEP_MACHINE} as needed.
[FreeBSD/FreeBSD.git] / share / mk / local.dirdeps.mk
1
2 # this is how we can handle optional dependencies
3 .if ${MK_SSP:Uno} != "no" && defined(PROG)
4 DIRDEPS += gnu/lib/libssp/libssp_nonshared
5 .endif
6
7 # we need pkgs/pseudo/stage to prep the stage tree
8 .if ${DEP_RELDIR:U${RELDIR}} != "pkgs/pseudo/stage"
9 DIRDEPS += pkgs/pseudo/stage
10 .endif
11
12 # we want to supress these dependencies for host tools
13 DEP_DIRDEPS_FILTER.host = \
14         Ninclude* \
15         Nlib/* \
16         Ngnu/lib/* \
17
18
19 .if !empty(DIRDEPS) && !empty(DEP_DIRDEPS_FILTER.${DEP_MACHINE})
20 DIRDEPS := ${DIRDEPS:${DEP_DIRDEPS_FILTER.${DEP_MACHINE}:ts:}}
21 .endif
22