diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-01-23 17:30:12 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-01-23 17:30:12 +0000 |
commit | 1bad089bf9f29240e11216eab1109bd6a7a952fd (patch) | |
tree | b34f9915052ae1c88ccb84bcbcb507f005fbc0bf /libc/sysdeps/linux/cris/Makefile | |
parent | 1cb64284ed8fd159fdc10ef927f03110196d9796 (diff) |
Hopefully this will work as expected. I have no way to
test but this should be correct.
Diffstat (limited to 'libc/sysdeps/linux/cris/Makefile')
-rw-r--r-- | libc/sysdeps/linux/cris/Makefile | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libc/sysdeps/linux/cris/Makefile b/libc/sysdeps/linux/cris/Makefile index 6b9931ebb..b3d7d16c5 100644 --- a/libc/sysdeps/linux/cris/Makefile +++ b/libc/sysdeps/linux/cris/Makefile @@ -16,8 +16,8 @@ TOPDIR=../../../../ include $(TOPDIR)Rules.mak ASFLAGS=$(CFLAGS) -CRT0=crt0.c -CRT0_OBJ=$(patsubst %.c,%.o, $(CRT0)) +CRT0_SRC = crt0.c +CRT0_OBJ = crt0.o crt1.o SSRC= setjmp.S __longjmp.S clone.S sysdep.S syscall.S ifeq ($(UNIFIED_SYSCALL),y) @@ -39,8 +39,8 @@ ar-target: $(OBJS) $(CRT0_OBJ) $(AR) $(ARFLAGS) $(LIBC) $(OBJS) cp $(CRT0_OBJ) $(TOPDIR)libc/$(CRT0_OBJ) -$(CRT0_OBJ): %.o : %.c - $(CC) $(CFLAGS) -c $< -o $@ +$(CRT0_OBJ): $(CRT0_SRC) + $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o $(STRIPTOOL) -x -R .note -R .comment $*.o $(SOBJS): %.o : %.S @@ -52,7 +52,6 @@ $(COBJS): %.o : %.c $(STRIPTOOL) -x -R .note -R .comment $*.o headers: - @(TOPDIR=$(TOPDIR) CC=$(CC) /bin/sh $(TOPDIR)/extra/scripts/gen_bits_syscall_h.sh > bits/syscall.h ) clean: rm -f *.[oa] *~ core |