summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/sh/Makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-08-08 14:51:40 +0000
committerEric Andersen <andersen@codepoet.org>2002-08-08 14:51:40 +0000
commit9f2d19bf1ef216e536c5e89b82a5ce422002fd01 (patch)
tree1103cecba0916b5c2b42f3ff7f1d6fa12b115b49 /libc/sysdeps/linux/sh/Makefile
parent42650258c1d93e49e102dcbb02ca75de53a0b7b8 (diff)
I reworked syscalls.h to match how I'm doing other arches. Stefan Allius and
Edie C. Dost has some concerns about the perl script used to general crti.o and crtn.o and added their own versions. These versions will win since they are built last,
Diffstat (limited to 'libc/sysdeps/linux/sh/Makefile')
-rw-r--r--libc/sysdeps/linux/sh/Makefile16
1 files changed, 15 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/sh/Makefile b/libc/sysdeps/linux/sh/Makefile
index 6ff7f87e3..9b46c965a 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)
+ar-target: $(OBJS) $(CRT0_OBJ) $(TOPDIR)lib/crti.o $(TOPDIR)lib/crtn.o
$(AR) $(ARFLAGS) $(LIBC) $(OBJS)
cp $(CRT0_OBJ) $(TOPDIR)lib/$(CRT0_OBJ)
@@ -53,6 +53,20 @@ $(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