about summary refs log tree commit diff
path: root/libraries.mk
diff options
context:
space:
mode:
Diffstat (limited to 'libraries.mk')
-rw-r--r--libraries.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries.mk b/libraries.mk
index 90eb125a65d9..461a3e9a6291 100644
--- a/libraries.mk
+++ b/libraries.mk
@@ -107,10 +107,10 @@ define build-library =
   $$(foreach obj, $$($(1)_OBJS), $$(eval $$(obj): $$($(1)_COMMON_DEPS)))
 
   # Include .dep files, if they exist.
-  $(1)_DEPS := $$(addsuffix .dep, $$(basename $$(_srcs)))
+  $(1)_DEPS := $$(foreach fn, $$($(1)_OBJS), $$(call filename-to-dep, $$(fn)))
   -include $$($(1)_DEPS)
 
   libs_list += $$($(1)_PATH)
-  clean_files += $$(_d)/*.a $$(_d)/*.$(SO_EXT) $$(_d)/*.o $$(_d)/*.dep $$($(1)_DEPS) $$($(1)_OBJS)
+  clean_files += $$(_d)/*.a $$(_d)/*.$(SO_EXT) $$(_d)/*.o $$(_d)/.*.dep $$($(1)_DEPS) $$($(1)_OBJS)
   dist_files += $$(_srcs)
 endef