svn commit: trunk/uClibc

aldot at uclibc.org aldot at uclibc.org
Sat May 31 17:06:51 UTC 2008


Author: aldot
Date: 2008-05-31 10:06:51 -0700 (Sat, 31 May 2008)
New Revision: 22150

Log:
Oh, and prepend a dot to the basename so i don't have to change my habit of
calling 'size thefile.o*'


Modified:
   trunk/uClibc/Makerules


Changeset:
Modified: trunk/uClibc/Makerules
===================================================================
--- trunk/uClibc/Makerules	2008-05-31 16:49:52 UTC (rev 22149)
+++ trunk/uClibc/Makerules	2008-05-31 17:06:51 UTC (rev 22150)
@@ -99,7 +99,7 @@
 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 @@
 	$(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)




More information about the uClibc-cvs mailing list