OSDN Git Service

combine the crt1.0/Scrt1.o rules since they are pretty much the samething
authorMike Frysinger <vapier@gentoo.org>
Fri, 17 Feb 2006 12:11:00 +0000 (12:11 -0000)
committerMike Frysinger <vapier@gentoo.org>
Fri, 17 Feb 2006 12:11:00 +0000 (12:11 -0000)
Makerules

index 47c0157..b4b2b9b 100644 (file)
--- a/Makerules
+++ b/Makerules
@@ -181,7 +181,7 @@ $(libc):
 $(headers_dep):
        @cd $(top_builddir); $(MAKE) headers
 
-CRT=crt1
+CRT := crt1
 
 ifeq ($(HAVE_SHARED),y)
 CRTS=$(top_builddir)lib/$(CRT).o $(top_builddir)lib/S$(CRT).o
@@ -189,14 +189,11 @@ else
 CRTS=$(top_builddir)lib/$(CRT).o
 endif
 
-$(top_builddir)lib/$(CRT).o: $(top_srcdir)libc/sysdeps/linux/$(TARGET_ARCH)/$(CRT).S
+ASFLAGS-$(CRT).o := -DL_$(CRT)
+ASFLAGS-S$(CRT).o := $(PIEFLAG) -DL_S$(CRT)
+$(CRTS): $(top_srcdir)libc/sysdeps/linux/$(TARGET_ARCH)/$(CRT).S
        $(Q)$(INSTALL) -d $(dir $@)
-       $(compile.S) -DL_$(patsubst %$(suffix $(notdir $@)),%,$(notdir $@))
-       $(Q)$(STRIPTOOL) -x -R .note -R .comment $@
-
-$(top_builddir)lib/S$(CRT).o: $(top_srcdir)libc/sysdeps/linux/$(TARGET_ARCH)/$(CRT).S
-       $(Q)$(INSTALL) -d $(dir $@)
-       $(compile.S) $(PIEFLAG) -DL_$(patsubst %$(suffix $(notdir $@)),%,$(notdir $@))
+       $(compile.S)
        $(Q)$(STRIPTOOL) -x -R .note -R .comment $@
 
 CTOR_TARGETS=$(top_builddir)lib/crti.o $(top_builddir)lib/crtn.o