about summary refs log tree commit diff
path: root/libraries.mk
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-02-01T10·31+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-02-01T10·31+0100
commitf324b49ea19e606f84b89ecb499f0e961646cd50 (patch)
treefa11c86a31d72bed8d9cf1f816ff2372a0f08db4 /libraries.mk
parent4271927c5be2c5b87ca83682d1f2bd71d5ce4a66 (diff)
Change dependency file names from foo.dep to .foo.o.dep
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