From 5c12c8eecd5f2e06c200651e90befe85efcf166f Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 11 Oct 2001 08:29:22 +0000 Subject: Patch from Miles Bader to support the v850. He sent this patch to me a month ago, but I forgot to apply it... --- libc/sysdeps/linux/v850/Makefile | 57 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 libc/sysdeps/linux/v850/Makefile (limited to 'libc/sysdeps/linux/v850/Makefile') diff --git a/libc/sysdeps/linux/v850/Makefile b/libc/sysdeps/linux/v850/Makefile new file mode 100644 index 000000000..a48dcfd1d --- /dev/null +++ b/libc/sysdeps/linux/v850/Makefile @@ -0,0 +1,57 @@ +# +# libc/sysdeps/linux/v850/Makefile -- Makefile for v850 machine-dependent dir +# +# Copyright (C) 2001 NEC Corporation +# Copyright (C) 2001 Miles Bader +# Copyright (C) 2000 Lineo, inc. +# +# This file is subject to the terms and conditions of the GNU Library +# General Public License. See the file COPYING.LIB in the main +# directory of this archive for more details. +# + +TOPDIR=../../../../ +include $(TOPDIR)Rules.mak +ASFLAGS=$(CFLAGS) + +CFLAGS+= -I../ -D__ASSEMBLER__ -DASM_GLOBAL_DIRECTIVE=.globl + +TARGET_MACHINE_TYPE=$(shell $(CC) -dumpmachine) + +CRT0=crt0.S +CRT0_OBJ=$(patsubst %.S,%.o, $(CRT0)) + +SSRC=setjmp.S longjmp.S vfork.S +SOBJS=$(patsubst %.S,%.o, $(SSRC)) + +CSRC= +COBJS=$(patsubst %.c,%.o, $(CSRC)) + +OBJS=$(SOBJS) $(MOBJ) $(COBJS) + + +all: $(OBJS) $(LIBC) + +$(LIBC): ar-target + +ar-target: $(OBJS) $(CRT0_OBJ) + $(AR) $(ARFLAGS) $(LIBC) $(OBJS) + cp $(CRT0_OBJ) $(TOPDIR)libc/$(CRT0_OBJ) + +$(CRT0_OBJ): %.o : %.S + $(CC) $(CFLAGS) -c $< -o $@ + $(STRIPTOOL) -x -R .note -R .comment $*.o + +$(SOBJS): %.o : %.S + $(CC) $(CFLAGS) -c $< -o $@ + $(STRIPTOOL) -x -R .note -R .comment $*.o + +$(COBJS): %.o : %.c + $(CC) $(CFLAGS) -c $< -o $@ + $(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 -- cgit v1.2.3