From 27f248f6bb08cf91f984dcb406521eb2c65a89d4 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 20 Oct 2000 07:46:54 +0000 Subject: Switch to doing syscalls in C. Makes things much more easily portable. --- libc/sysdeps/linux/i386/Makefile | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'libc/sysdeps') 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: -- cgit v1.2.3