summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-05-31 17:06:51 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-05-31 17:06:51 +0000
commit590514724ae896b1232eff8c6693b2c3f40703ab (patch)
tree2e2b34a8aab85cfca900de0338bb79a549bd2513
parent8040ad5d521628ba9a5177b25e142f4a0ed3dd5b (diff)
Oh, and prepend a dot to the basename so i don't have to change my habit of
calling 'size thefile.o*'
-rw-r--r--Makerules5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makerules b/Makerules
index 6e5dfed94..b045144f3 100644
--- a/Makerules
+++ b/Makerules
@@ -99,7 +99,7 @@ disp_t_strip = $($(DISP)_disp_t_strip)
disp_ar = $($(DISP)_disp_ar)
disp_ld = $($(DISP)_disp_ld)
-cmd_gen.dep = -MT $@ -MD -MF $(@D)/$(@F).dep
+cmd_gen.dep = -MT $@ -MD -MF $(dir $@).$(notdir $@).dep
cmd_compile.c = $(CC) -c $< -o $@ $(CFLAGS) $(ARCH_CFLAGS) $(CFLAGS-$(suffix $@)) $(filter-out $(CFLAGS-OMIT-$(notdir $<)),$(CFLAGS-$(notdir $(^D)))) $(CFLAGS-$(subst $(top_srcdir),,$(dir $<))) $(CFLAGS-$(notdir $<)) $(CFLAGS-$(notdir $@)) $(cmd_gen.dep)
cmd_compile.u = $(CC) $^ $(DEPS-$(notdir $@)) -o $@ $(CFLAGS) $(CFLAGS-$(notdir $(^D))) $(CFLAGS-$(notdir $@)) $(cmd_gen.dep)
@@ -298,6 +298,9 @@ $(top_builddir)lib/libpthread_nonshared.a: $(libpthread-nonshared-y)
$(patsubst %.o,%.o.dep,$(filter %.o,$(libc-a-y) $(libc-so-y))) \
$(patsubst %.os,%.os.dep,$(filter %.os,$(libc-a-y) $(libc-so-y))) \
$(patsubst %.oS,%.oS.dep,$(filter %.oS,$(libc-a-y) $(libc-so-y)))
+# Oh, and prepend a dot to the basename so i don't have to change my habit of
+# calling 'size thefile.o*'
+.depends.dep := $(foreach f,$(.depends.dep),$(dir $(f)).$(notdir $(f)))
ifdef .depends.dep
-include $(.depends.dep)