00140433d2
Use DEP_DIRDEPS_FILTER.host to supress dependencies for host tools.
23 lines
543 B
Makefile
23 lines
543 B
Makefile
|
|
# this is how we can handle optional dependencies
|
|
.if ${MK_SSP:Uno} != "no" && defined(PROG)
|
|
DIRDEPS += gnu/lib/libssp/libssp_nonshared
|
|
.endif
|
|
|
|
# we need pkgs/pseudo/stage to prep the stage tree
|
|
.if ${DEP_RELDIR:U${RELDIR}} != "pkgs/pseudo/stage"
|
|
DIRDEPS += pkgs/pseudo/stage
|
|
.endif
|
|
|
|
# we want to supress these dependencies for host tools
|
|
DEP_DIRDEPS_FILTER.host = \
|
|
Ninclude* \
|
|
Nlib/* \
|
|
Ngnu/lib/* \
|
|
|
|
|
|
.if !empty(DIRDEPS) && !empty(DEP_DIRDEPS_FILTER.${DEP_MACHINE})
|
|
DIRDEPS := ${DIRDEPS:${DEP_DIRDEPS_FILTER.${DEP_MACHINE}:ts:}}
|
|
.endif
|
|
|