summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/i386
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/i386')
-rw-r--r--libc/sysdeps/linux/i386/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/i386/Makefile b/libc/sysdeps/linux/i386/Makefile
index bfb8d82ff..ee14d0af6 100644
--- a/libc/sysdeps/linux/i386/Makefile
+++ b/libc/sysdeps/linux/i386/Makefile
@@ -14,13 +14,19 @@ LIBC=$(TOPDIR)libc.a
.S.o:
$(CC) $(CFLAGS) -c -o $*.o $<
+SSRC=syscall.S
+OBJ= setjmp.o longjmp.o readdir.o _start.o _exit.o #select.o
include makefile.objs
all: $(LIBC)
-$(LIBC): $(OBJ)
+$(LIBC): $(OBJ) $(LIBC)($(SOBJ))
$(AR) $(ARFLAGS) $@ $(OBJ)
+$(LIBC)($(SOBJ)): $(SSRC)
+ $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
+ $(AR) $(ARFLAGS) $@ $*.o
+
transfer:
-@rm -f ../include/stdio.h
cp -p stdio.h ../include/.