summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-10-20 07:46:54 +0000
committerEric Andersen <andersen@codepoet.org>2000-10-20 07:46:54 +0000
commit27f248f6bb08cf91f984dcb406521eb2c65a89d4 (patch)
treec3616a396cebe7e442c7c012dca57ac9c4d2186d /libc/sysdeps/linux
parent82d766043c6a8dcf6283788419f110dd7ab52f80 (diff)
Switch to doing syscalls in C. Makes things much more easily portable.
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r--libc/sysdeps/linux/i386/Makefile13
1 files changed, 3 insertions, 10 deletions
diff --git a/libc/sysdeps/linux/i386/Makefile b/libc/sysdeps/linux/i386/Makefile
index 4ec84b3be..764682209 100644
--- a/libc/sysdeps/linux/i386/Makefile
+++ b/libc/sysdeps/linux/i386/Makefile
@@ -25,19 +25,16 @@ include $(TOPDIR)Rules.mak
LIBC=$(TOPDIR)libc.a
ASFLAGS=$(CFLAGS)
-ASMSRC=syscalls.S
-ASMOBJS=$(shell ./list_syscalls.sh)
-
SSRC=_start.S setjmp.S longjmp.S #fork.S #clone.S
SOBJS=$(patsubst %.S,%.o, $(SSRC))
MSRC=syscalls.c
-MOBJ=read.o write.o __open.o close.o
+MOBJ=$(shell ./list_syscalls.sh)
CSRC=readdir.c #select.c
COBJS=$(patsubst %.c,%.o, $(CSRC))
-OBJS=$(SOBJS) $(ASMOBJS) $(COBJS) $(MOBJ)
+OBJS=$(SOBJS) $(COBJS) $(MOBJ)
all: $(OBJS) $(LIBC)
@@ -47,10 +44,6 @@ $(LIBC): ar-target
ar-target: $(OBJS)
$(AR) $(ARFLAGS) $(LIBC) $(OBJS)
-$(ASMOBJS): $(ASMSRC)
- $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
- $(STRIPTOOL) -x -R .note -R .comment $*.o
-
$(SOBJS): $(SSRC)
$(CC) $(CFLAGS) $< -c -o $*.o
$(STRIPTOOL) -x -R .note -R .comment $*.o
@@ -60,7 +53,7 @@ $(MOBJ): $(MSRC)
$(STRIPTOOL) -x -R .note -R .comment $*.o
$(COBJS):
- $(CC) $(CFLAGS) $< -c -o $*.o
+ $(CC) $(CFLAGS) $< -c $*.c -o $*.o
$(STRIPTOOL) -x -R .note -R .comment $*.o
clean: