patch-2.1.127 linux/arch/sparc64/Makefile
Next file: linux/arch/sparc64/defconfig
Previous file: linux/arch/sparc/lib/locks.S
Back to the patch index
Back to the overall index
- Lines: 57
- Date:
Tue Oct 27 09:52:20 1998
- Orig file:
v2.1.126/linux/arch/sparc64/Makefile
- Orig date:
Mon Oct 5 13:13:37 1998
diff -u --recursive --new-file v2.1.126/linux/arch/sparc64/Makefile linux/arch/sparc64/Makefile
@@ -1,21 +1,28 @@
-# $Id: Makefile,v 1.29 1998/09/16 12:25:20 jj Exp $
+# $Id: Makefile,v 1.33 1998/10/19 07:04:02 jj Exp $
# sparc64/Makefile
#
# Makefile for the architecture dependent flags and dependencies on the
# 64-bit Sparc.
#
-# Copyright (C) 1996 David S. Miller (davem@caip.rutgers.edu)
+# Copyright (C) 1996,1998 David S. Miller (davem@caip.rutgers.edu)
+# Copyright (C) 1998 Jakub Jelinek (jj@ultra.linux.cz)
#
# If the solaris /bin/sh wasn't so broken, I wouldn't need the following
# line...
SHELL =/bin/bash
-CC = sparc64-linux-gcc -D__KERNEL__ -I$(TOPDIR)/include
+CC := sparc64-linux-gcc -D__KERNEL__ -I$(TOPDIR)/include
+CC_HAS_ARGS := $(shell if echo "$(CC)" | grep '\(__KERNEL__\| \)' > /dev/null; then echo y; else echo n; fi)
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)
+ifneq ($(CC_HAS_ARGS),y)
+MAKEOVERRIDES := $(shell echo "$(MAKEOVERRIDES)" | sed 's CC=$(CC) CC=$(CC)\\\ -D__KERNEL__\\\ -I$(TOPDIR)/include ')
+override CC := $(CC) -D__KERNEL__ -I$(TOPDIR)/include
+endif
+
ifneq ($(NEW_GAS),y)
AS = sparc64-linux-as
LD = sparc64-linux-ld
@@ -28,7 +35,6 @@
endif
ELFTOAOUT = elftoaout
-
#
# Uncomment the first CFLAGS if you are doing kgdb source level
# debugging of the kernel to get the proper debugging information.
@@ -40,6 +46,16 @@
else
CFLAGS := $(CFLAGS) -m64 -pipe -mno-fpu -mcpu=ultrasparc -mcmodel=medlow \
-ffixed-g4 -fcall-used-g5 -fcall-used-g7 -Wno-sign-compare
+endif
+
+# Uncomment this to get spinlock/rwlock debugging on SMP.
+# DEBUG_SPINLOCK = 1
+
+ifdef SMP
+ ifdef DEBUG_SPINLOCK
+ CFLAGS += -DSPIN_LOCK_DEBUG
+ AFLAGS += -DSPIN_LOCK_DEBUG
+ endif
endif
LINKFLAGS = -T arch/sparc64/vmlinux.lds
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov