diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1999-01-04 16:03:48 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1999-01-04 16:03:48 +0000 |
commit | 78c388aed2b7184182c08428db1de6c872d815f5 (patch) | |
tree | 4b2003b1b4ceb241a17faa995da8dd1004bb8e45 /arch/sparc/Makefile | |
parent | eb7a5bf93aaa4be1d7c6181100ab7639e74d67f7 (diff) |
Merge with Linux 2.1.131 and more MIPS goodies.
(Did I mention that CVS is buggy ...)
Diffstat (limited to 'arch/sparc/Makefile')
-rw-r--r-- | arch/sparc/Makefile | 47 |
1 files changed, 23 insertions, 24 deletions
diff --git a/arch/sparc/Makefile b/arch/sparc/Makefile index fa171a7f7..45bec8353 100644 --- a/arch/sparc/Makefile +++ b/arch/sparc/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.36 1998/06/02 00:36:40 davem Exp $ +# $Id: Makefile,v 1.39 1998/09/16 12:31:31 jj Exp $ # sparc/Makefile # # Makefile for the architecture dependent flags and dependencies on the @@ -15,26 +15,35 @@ 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) --version 2>&1 | grep 'egcs' > /dev/null; 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 #LINKFLAGS = -N -Ttext 0xf0004000 LINKFLAGS = -T arch/sparc/vmlinux.lds HEAD := arch/sparc/kernel/head.o arch/sparc/kernel/init_task.o -# Note arch/sparc/mm has to be the last subdir SUBDIRS := $(SUBDIRS) arch/sparc/kernel arch/sparc/lib arch/sparc/prom \ - arch/sparc/mm + arch/sparc/mm arch/sparc/math-emu -CORE_FILES := arch/sparc/kernel/kernel.o arch/sparc/mm/mm.o $(CORE_FILES) +CORE_FILES := arch/sparc/kernel/kernel.o arch/sparc/mm/mm.o $(CORE_FILES) \ + arch/sparc/math-emu/math-emu.o LIBS := $(TOPDIR)/lib/lib.a $(LIBS) $(TOPDIR)/arch/sparc/prom/promlib.a \ $(TOPDIR)/arch/sparc/lib/lib.a -SUBDIRS += arch/sparc/math-emu -CORE_FILES += arch/sparc/math-emu/math-emu.o - ifdef CONFIG_AP1000 SUBDIRS := $(SUBDIRS) arch/sparc/ap1000 mpp CORE_FILES := $(TOPDIR)/arch/sparc/ap1000/ap1000lib.o \ @@ -43,8 +52,14 @@ DRIVERS := $(DRIVERS) drivers/ap1000/ap1000.a CFLAGS := $(CFLAGS) -D__MPP__=1 endif +# This one has to come last +SUBDIRS += arch/sparc/boot +CORE_FILES_NO_BTFIX := $(CORE_FILES) +CORE_FILES += arch/sparc/boot/btfix.o + archclean: - -$(MAKE) -C arch/sparc/boot archclean + rm -f $(TOPDIR)/vmlinux.aout + -$(MAKE) -C arch/sparc/boot clean archmrproper: -$(MAKE) -C arch/sparc/math-emu cleansymlinks @@ -57,19 +72,3 @@ check_asm: tftpboot.img: $(MAKE) -C arch/sparc/boot tftpboot.img - -vmlinux.o: $(CONFIGURATION) init/main.o init/version.o linuxsubdirs - $(LD) -r $(VMLINUX.OBJS) -o vmlinux.o - -arch/sparc/boot/btfix.s: arch/sparc/boot/btfixupprep vmlinux.o - $(OBJDUMP) -x vmlinux.o | arch/sparc/boot/btfixupprep > arch/sparc/boot/btfix.s - -arch/sparc/boot/btfix.o: arch/sparc/boot/btfix.s - $(CC) -c -o arch/sparc/boot/btfix.o arch/sparc/boot/btfix.s - -arch/sparc/boot/btfixupprep: arch/sparc/boot/btfixupprep.c - $(MAKE) -C arch/sparc/boot btfixupprep - -vmlinux: arch/sparc/boot/btfix.o - $(LD) $(LINKFLAGS) vmlinux.o arch/sparc/boot/btfix.o -o vmlinux - $(NM) vmlinux | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aU] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | sort > System.map |