~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Linux/arch/sparc64/Makefile

Version: ~ [ 2.4.0 ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 # $Id: Makefile,v 1.46 2000/12/14 22:57:26 davem Exp $
  2 # sparc64/Makefile
  3 #
  4 # Makefile for the architecture dependent flags and dependencies on the
  5 # 64-bit Sparc.
  6 #
  7 # Copyright (C) 1996,1998 David S. Miller (davem@caip.rutgers.edu)
  8 # Copyright (C) 1998 Jakub Jelinek (jj@ultra.linux.cz)
  9 #
 10 
 11 # If the solaris /bin/sh wasn't so broken, I wouldn't need the following
 12 # line...
 13 SHELL  =/bin/bash
 14 
 15 CC              := $(shell if gcc -m64 -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo gcc; else echo sparc64-linux-gcc; fi )
 16 
 17 NEW_GCC := $(shell if $(CC) -m64 -mcmodel=medlow -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo y; else echo n; fi; )
 18 NEW_GAS := $(shell if $(LD) --version 2>&1 | grep 'elf64_sparc' > /dev/null; then echo y; else echo n; fi)
 19 UNDECLARED_REGS := $(shell if $(CC) -c -x assembler /dev/null -Wa,--help | grep undeclared-regs > /dev/null; then echo y; else echo n; fi; )
 20 
 21 export NEW_GCC
 22 
 23 ifneq ($(NEW_GAS),y)
 24 AS              = sparc64-linux-as
 25 LD              = sparc64-linux-ld
 26 NM              = sparc64-linux-nm
 27 AR              = sparc64-linux-ar
 28 RANLIB          = sparc64-linux-ranlib
 29 else
 30 AS              := $(AS) -64
 31 LD              := $(LD) -m elf64_sparc
 32 endif
 33 ELFTOAOUT       = elftoaout
 34 ifneq ($(UNDECLARED_REGS),y)
 35 CC_UNDECL       =
 36 else
 37 CC_UNDECL       = -Wa,--undeclared-regs
 38 AS              := $(AS) --undeclared-regs
 39 endif
 40 
 41 #
 42 # Uncomment the first CFLAGS if you are doing kgdb source level
 43 # debugging of the kernel to get the proper debugging information.
 44 
 45 #CFLAGS := $(CFLAGS) -g -pipe -fcall-used-g5 -fcall-used-g7 
 46 ifneq ($(NEW_GCC),y)
 47   CFLAGS := $(CFLAGS) -pipe -mno-fpu -mtune=ultrasparc -mmedlow \
 48             -ffixed-g4 -fcall-used-g5 -fcall-used-g7 -Wno-sign-compare
 49 else
 50   CFLAGS := $(CFLAGS) -m64 -pipe -mno-fpu -mcpu=ultrasparc -mcmodel=medlow \
 51             -ffixed-g4 -fcall-used-g5 -fcall-used-g7 -Wno-sign-compare \
 52             $(CC_UNDECL)
 53   AFLAGS += -m64 -mcpu=ultrasparc $(CC_UNDECL)
 54 endif
 55 
 56 # Uncomment this to get spinlock/rwlock debugging on SMP.
 57 # DEBUG_SPINLOCK = 1
 58 
 59 ifdef CONFIG_SMP
 60   ifdef DEBUG_SPINLOCK
 61     CFLAGS += -DSPIN_LOCK_DEBUG
 62     AFLAGS += -DSPIN_LOCK_DEBUG
 63   endif
 64 endif
 65 
 66 LINKFLAGS = -T arch/sparc64/vmlinux.lds
 67 
 68 HEAD := arch/sparc64/kernel/head.o arch/sparc64/kernel/init_task.o
 69 
 70 SUBDIRS += arch/sparc64/kernel arch/sparc64/lib arch/sparc64/mm \
 71         arch/sparc64/prom
 72 
 73 ifneq ($(CONFIG_SOLARIS_EMUL),n)
 74   SUBDIRS += arch/sparc64/solaris
 75 endif
 76 
 77 SUBDIRS += arch/sparc64/math-emu
 78 
 79 CORE_FILES := arch/sparc64/kernel/kernel.o arch/sparc64/mm/mm.o $(CORE_FILES)
 80 
 81 ifeq ($(CONFIG_SOLARIS_EMUL),y)
 82   CORE_FILES += arch/sparc64/solaris/solaris.o
 83 endif
 84 
 85 CORE_FILES += arch/sparc64/math-emu/math-emu.o
 86 
 87 LIBS := $(TOPDIR)/lib/lib.a $(LIBS) $(TOPDIR)/arch/sparc64/prom/promlib.a \
 88         $(TOPDIR)/arch/sparc64/lib/lib.a
 89 
 90 vmlinux.aout: vmlinux
 91         $(ELFTOAOUT) -o $(TOPDIR)/vmlinux.aout $(TOPDIR)/vmlinux
 92 
 93 archclean:
 94         rm -f $(TOPDIR)/vmlinux.aout
 95 
 96 archmrproper:
 97         rm -f $(TOPDIR)/include/asm-sparc64/asm_offsets.h
 98 
 99 archdep: check_asm
100 
101 check_asm:
102         $(MAKE) -C arch/sparc64/kernel check_asm
103 
104 tftpboot.img:
105         $(MAKE) -C arch/sparc64/boot tftpboot.img

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.