Makefile.sparc
上传用户:wudi5211
上传日期:2010-01-21
资源大小:607k
文件大小:1k
- # This material is inherited from the Linux Makefile: arch/sparc/Makefile:
- # $Id: Makefile.sparc,v 1.1 2000/10/16 17:13:57 rubini Exp $
- # sparc/Makefile
- #
- # Makefile for the architecture dependent flags and dependencies on the
- # Sparc.
- #
- # Copyright (C) 1994 David S. Miller (davem@caip.rutgers.edu)
- #
- # If the solaris /bin/sh wasn't so broken, I wouldn't need the following
- # line...
- SHELL =/bin/bash
- #
- # Uncomment the first CFLAGS if you are doing kgdb source level
- # debugging of the kernel to get the proper debugging information.
- IS_EGCS := $(shell if $(CC) -m32 -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo y; else echo n; fi; )
- NEW_GAS := $(shell if $(LD) --version 2>&1 | grep 'elf64_sparc' > /dev/null; then echo y; else echo n; fi)
- ifeq ($(NEW_GAS),y)
- AS := $(AS) -32
- LD := $(LD) -m elf32_sparc
- endif
- #CFLAGS := $(CFLAGS) -g -pipe -fcall-used-g5 -fcall-used-g7
- ifneq ($(IS_EGCS),y)
- CFLAGS := $(CFLAGS) -pipe -mno-fpu -fcall-used-g5 -fcall-used-g7
- else
- CFLAGS := $(CFLAGS) -m32 -pipe -mno-fpu -fcall-used-g5 -fcall-used-g7
- endif