summaryrefslogtreecommitdiff
path: root/libc/sysdeps
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps')
-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: