aboutsummaryrefslogtreecommitdiff
path: root/share/mk/local.dirdeps.mk
diff options
context:
space:
mode:
Diffstat (limited to 'share/mk/local.dirdeps.mk')
-rw-r--r--share/mk/local.dirdeps.mk15
1 files changed, 15 insertions, 0 deletions
diff --git a/share/mk/local.dirdeps.mk b/share/mk/local.dirdeps.mk
new file mode 100644
index 000000000000..dedf9e274134
--- /dev/null
+++ b/share/mk/local.dirdeps.mk
@@ -0,0 +1,15 @@
+.if !target(_DIRDEP_USE)
+# first time read
+.if ${MACHINE} == "host"
+DIRDEPS_FILTER+= \
+ Ninclude* \
+ Nlib/* \
+ Ngnu/lib/* \
+
+.endif
+.endif
+
+# this is how we can handle optional dependencies
+.if ${MK_SSP:Uno} != "no" && defined(PROG)
+DIRDEPS += gnu/lib/libssp/libssp_nonshared
+.endif