From 539adfd7c7cbc7d6d3bea94eb1aa2a7103ca71c0 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 25 Oct 2000 07:12:13 +0000 Subject: Move syscalls to sysdeps/linux/common (since they are common). Remove _start.S since I now have a portable C version. --- libc/sysdeps/linux/common/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'libc/sysdeps/linux/common/Makefile') diff --git a/libc/sysdeps/linux/common/Makefile b/libc/sysdeps/linux/common/Makefile index 06f4651b9..dd891d176 100644 --- a/libc/sysdeps/linux/common/Makefile +++ b/libc/sysdeps/linux/common/Makefile @@ -28,7 +28,10 @@ LIBC=$(TOPDIR)libc.a #The file makefile.objs defines $(COBJS) include makefile.objs -OBJ=$(COBJS) +MSRC=syscalls.c +MOBJ=$(shell ./list_syscalls.sh) + +OBJ=$(COBJS) $(MOBJ) all: $(OBJ) $(LIBC) @@ -37,6 +40,10 @@ $(LIBC): ar-target ar-target: $(OBJ) $(AR) $(ARFLAGS) $(LIBC) $(OBJ) +$(MOBJ): $(MSRC) + $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o + $(STRIPTOOL) -x -R .note -R .comment $*.o + $(COBJS): $(CC) $(CFLAGS) $< -c $*.c -o $*.o $(STRIPTOOL) -x -R .note -R .comment $*.o -- cgit v1.2.3