summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorBernd Schmidt <bernds_cb1@t-online.de>2008-06-01 16:49:23 +0000
committerBernd Schmidt <bernds_cb1@t-online.de>2008-06-01 16:49:23 +0000
commit68d02d6473eeaa349e4ee5dceef0fcd1ac32aae2 (patch)
tree5a4522a5a004f64cd1709bf7506c071cd12186a9 /libc
parent809dbec58fd772bfa9f7d75f8afdc13b3c4542af (diff)
A slight improvement over my previous commit which ensured we always rebuild
libc when one of the source files changes. Since there are more places which want to depend on $(libc), fix them all to use a new variable $(libc.depend), which contains the filename for which we have a rule.
Diffstat (limited to 'libc')
-rw-r--r--libc/Makefile.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/Makefile.in b/libc/Makefile.in
index 136d2dfaa..11224bbe0 100644
--- a/libc/Makefile.in
+++ b/libc/Makefile.in
@@ -51,16 +51,16 @@ endif
lib-a-y += $(top_builddir)lib/libc.a
lib-gdb-y += $(top_builddir)lib/libc.gdb
-lib-so-y += $(libc:.$(MAJOR_VERSION)=)
+lib-so-y += $(libc.depend)
objclean-y += libc_clean
OUTPUT_FORMAT = $(CC) $(CFLAGS) -Wl,--verbose 2>&1 | sed -n 's/^OUTPUT_FORMAT("\([^"]*\)",.*/OUTPUT_FORMAT ( \1 )/p'
ifeq ($(DOMULTI),n)
-$(libc:.$(MAJOR_VERSION)=): $(libc_OUT)/libc_so.a $(LIBS-libc.so)
+$(libc.depend): $(libc_OUT)/libc_so.a $(LIBS-libc.so)
$(call link.so,$(libc_FULL_NAME),$(MAJOR_VERSION))
else
-$(libc:.$(MAJOR_VERSION)=): $(libc_OUT)/libc.oS $(libc-nomulti-y:.o=.oS) | $(LIBS-libc.so)
+$(libc.depend): $(libc_OUT)/libc.oS $(libc-nomulti-y:.o=.oS) | $(LIBS-libc.so)
$(do_strip)
$(call linkm.so,$(libc_FULL_NAME),$(MAJOR_VERSION))
endif