From 6437980d51e5690e79429d552728800c14a53843 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 16 Jan 2001 13:11:36 +0000 Subject: Makefile fixes --- libc/sysdeps/linux/arm/Makefile | 8 ++++---- libc/sysdeps/linux/common/syscalls.c | 6 ++++-- libc/sysdeps/linux/i386/Makefile | 8 ++++---- libc/sysdeps/linux/m68k/Makefile | 9 +++++---- 4 files changed, 17 insertions(+), 14 deletions(-) (limited to 'libc/sysdeps/linux') diff --git a/libc/sysdeps/linux/arm/Makefile b/libc/sysdeps/linux/arm/Makefile index f9dba69c8..08e7c01b0 100644 --- a/libc/sysdeps/linux/arm/Makefile +++ b/libc/sysdeps/linux/arm/Makefile @@ -37,17 +37,17 @@ COBJS=$(patsubst %.c,%.o, $(CSRC)) OBJS=$(SOBJS) $(MOBJ) $(COBJS) -all: $(OBJS) $(CRT0_OBJ) $(LIBC) +all: $(OBJS) $(LIBC) -$(LIBC): ar-target +$(LIBC): ar-target -ar-target: $(OBJS) +ar-target: $(OBJS) $(CRT0_OBJ) $(AR) $(ARFLAGS) $(LIBC) $(OBJS) + cp $(CRT0_OBJ) $(TOPDIR)/$(CRT0_OBJ) $(CRT0_OBJ): %.o : %.S $(CC) $(CFLAGS) -c $< -o $@ $(STRIPTOOL) -x -R .note -R .comment $*.o - cp $*.o $(TOPDIR)/libcrt0.o $(SOBJS): %.o : %.S $(CC) $(CFLAGS) -c $< -o $@ diff --git a/libc/sysdeps/linux/common/syscalls.c b/libc/sysdeps/linux/common/syscalls.c index f426c3f7f..6a8f73eb9 100644 --- a/libc/sysdeps/linux/common/syscalls.c +++ b/libc/sysdeps/linux/common/syscalls.c @@ -1005,8 +1005,10 @@ _syscall4(__ptr_t, mremap, __ptr_t, old_address, size_t, old_size, size_t, //#define __NR_query_module 167 #ifdef L_query_module -_syscall5(int, query_module, const char *, name, int, which, - void *, buf, size_t, bufsize, size_t*, ret); +# ifdef __NR_query_module + _syscall5(int, query_module, const char *, name, int, which, + void *, buf, size_t, bufsize, size_t*, ret); +# endif #endif //#define __NR_poll 168 diff --git a/libc/sysdeps/linux/i386/Makefile b/libc/sysdeps/linux/i386/Makefile index a6b185c21..93725607c 100644 --- a/libc/sysdeps/linux/i386/Makefile +++ b/libc/sysdeps/linux/i386/Makefile @@ -40,17 +40,17 @@ COBJS=$(patsubst %.c,%.o, $(CSRC)) OBJS=$(SOBJS) $(COBJS) -all: $(OBJS) $(CRT0_OBJ) $(LIBC) +all: $(OBJS) $(LIBC) -$(LIBC): ar-target +$(LIBC): ar-target -ar-target: $(OBJS) +ar-target: $(OBJS) $(CRT0_OBJ) $(AR) $(ARFLAGS) $(LIBC) $(OBJS) + cp $(CRT0_OBJ) $(TOPDIR)/$(CRT0_OBJ) $(CRT0_OBJ): %.o : %.S $(CC) $(CFLAGS) -c $< -o $@ $(STRIPTOOL) -x -R .note -R .comment $*.o - cp $*.o $(TOPDIR)/libcrt0.o $(SOBJS): %.o : %.S $(CC) $(CFLAGS) -c $< -o $@ diff --git a/libc/sysdeps/linux/m68k/Makefile b/libc/sysdeps/linux/m68k/Makefile index 12c659a07..1b5eb6195 100644 --- a/libc/sysdeps/linux/m68k/Makefile +++ b/libc/sysdeps/linux/m68k/Makefile @@ -39,17 +39,18 @@ COBJS=$(patsubst %.c,%.o, $(CSRC)) OBJS=$(SOBJS) $(MOBJ) $(COBJS) -all: $(OBJS) $(CRT0_OBJ) $(LIBC) -$(LIBC): ar-target +all: $(OBJS) $(LIBC) -ar-target: $(OBJS) +$(LIBC): ar-target + +ar-target: $(OBJS) $(CRT0_OBJ) $(AR) $(ARFLAGS) $(LIBC) $(OBJS) + cp $(CRT0_OBJ) $(TOPDIR)/$(CRT0_OBJ) $(CRT0_OBJ): %.o : %.S $(CC) $(CFLAGS) -c $< -o $@ $(STRIPTOOL) -x -R .note -R .comment $*.o - cp $*.o $(TOPDIR)/libcrt0.o $(SOBJS): %.o : %.S $(CC) $(CFLAGS) -c $< -o $@ -- cgit v1.2.3