summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/mips/Makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-02-04 13:51:21 +0000
committerEric Andersen <andersen@codepoet.org>2002-02-04 13:51:21 +0000
commit473a7dd3d8c4ae64956db05872e35a0336f447ab (patch)
treecfa6fdefe00b6559d6518546aab56a43fad1a17a /libc/sysdeps/linux/mips/Makefile
parent330eb7bad0aeb0f95a12eb77791bdb4b828249d4 (diff)
Fixup mips so it now works and provides basic functionality
Diffstat (limited to 'libc/sysdeps/linux/mips/Makefile')
-rw-r--r--libc/sysdeps/linux/mips/Makefile16
1 files changed, 2 insertions, 14 deletions
diff --git a/libc/sysdeps/linux/mips/Makefile b/libc/sysdeps/linux/mips/Makefile
index 51f75caeb..b0bc87297 100644
--- a/libc/sysdeps/linux/mips/Makefile
+++ b/libc/sysdeps/linux/mips/Makefile
@@ -21,27 +21,19 @@
# other sundry sources. Files within this library are copyright by their
# respective copyright holders.
-USE_CRT0_C=y
-
TOPDIR=../../../../
include $(TOPDIR)Rules.mak
ASFLAGS=$(CFLAGS)
TARGET_MACHINE_TYPE=$(shell $(CC) -dumpmachine)
-ifeq ($(USE_CRT0_C),y)
-CRT0=crt0.c
-CRT0_OBJ=$(patsubst %.c,%.o, $(CRT0))
-else
CRT0=crt0.S
CRT0_OBJ=$(patsubst %.S,%.o, $(CRT0))
-endif
-#SSRC=longjmp.S setjmp.S vfork.S
-SSRC=
+SSRC=bsd-_setjmp.S bsd-setjmp.S setjmp.S #fork.S clone.S
SOBJS=$(patsubst %.S,%.o, $(SSRC))
-CSRC=
+CSRC=__longjmp.c brk.c
COBJS=$(patsubst %.c,%.o, $(CSRC))
OBJS=$(SOBJS) $(MOBJ) $(COBJS)
@@ -56,11 +48,7 @@ ar-target: $(OBJS) $(CRT0_OBJ)
cp $(CRT0_OBJ) $(TOPDIR)libc
-ifeq ($(USE_CRT0_C),y)
-$(CRT0_OBJ): %.o : %.c
-else
$(CRT0_OBJ): %.o : %.S
-endif
$(CC) $(CFLAGS) -c $< -o $@
$(STRIPTOOL) -x -R .note -R .comment $*.o