summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/sh/Makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-08-19 10:07:41 +0000
committerEric Andersen <andersen@codepoet.org>2002-08-19 10:07:41 +0000
commitd7643439eba4ded2253cc4c0c5b2531ee82bd4ea (patch)
tree87538475452f3b3ee086fd704ef70e97e6a35585 /libc/sysdeps/linux/sh/Makefile
parent3358b761b15daa480ca0ca788b3fe077ac967674 (diff)
Work from Stefan Allius which allows superH to use the common
method for building crti.o and crtn.o
Diffstat (limited to 'libc/sysdeps/linux/sh/Makefile')
-rw-r--r--libc/sysdeps/linux/sh/Makefile16
1 files changed, 1 insertions, 15 deletions
diff --git a/libc/sysdeps/linux/sh/Makefile b/libc/sysdeps/linux/sh/Makefile
index 9b46c965a..6ff7f87e3 100644
--- a/libc/sysdeps/linux/sh/Makefile
+++ b/libc/sysdeps/linux/sh/Makefile
@@ -45,7 +45,7 @@ all: $(OBJS) $(LIBC)
$(LIBC): ar-target
-ar-target: $(OBJS) $(CRT0_OBJ) $(TOPDIR)lib/crti.o $(TOPDIR)lib/crtn.o
+ar-target: $(OBJS) $(CRT0_OBJ)
$(AR) $(ARFLAGS) $(LIBC) $(OBJS)
cp $(CRT0_OBJ) $(TOPDIR)lib/$(CRT0_OBJ)
@@ -53,20 +53,6 @@ $(CRT0_OBJ): %.o : %.S
$(CC) $(SFLAGS) -c $< -o $@
$(STRIPTOOL) -x -R .note -R .comment $*.o
-crti.o: crti.S
- $(CC) $(SAFECFLAGS) -c crti.S -o crti.o
-
-$(TOPDIR)lib/crti.o: crti.o
- mkdir -p $(TOPDIR)lib/
- cp crti.o $(TOPDIR)lib/
-
-crtn.o: crtn.S
- $(CC) $(SAFECFLAGS) -c crtn.S -o crtn.o
-
-$(TOPDIR)lib/crtn.o: crtn.o
- mkdir -p $(TOPDIR)lib/
- cp crtn.o $(TOPDIR)lib/
-
$(SOBJS): %.o : %.S
$(CC) $(SFLAGS) -c $< -o $@
$(STRIPTOOL) -x -R .note -R .comment $*.o