⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile.sparc64

📁 Linux Device Drivers 2nd 经典书籍的配套源码
💻 SPARC64
字号:
# This material is inherited from the Linux Makefile: arch/sparc64/Makefile:## Makefile for the architecture dependent flags and dependencies on the# 64-bit Sparc.## Copyright (C) 1996,1998 David S. Miller (davem@caip.rutgers.edu)# Copyright (C) 1998 Jakub Jelinek (jj@ultra.linux.cz)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 )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; )NEW_GAS := $(shell if $(LD) --version 2>&1 | grep 'elf64_sparc' > /dev/null; then echo y; else echo n; fi)UNDECLARED_REGS := $(shell if $(CC) -c -x assembler /dev/null -Wa,--help | grep undeclared-regs > /dev/null; then echo y; else echo n; fi; )export NEW_GCCifneq ($(NEW_GAS),y)AS		= sparc64-linux-asLD		= sparc64-linux-ldNM		= sparc64-linux-nmAR		= sparc64-linux-arRANLIB		= sparc64-linux-ranlibelseAS		:= $(AS) -64LD		:= $(LD) -m elf64_sparcendifELFTOAOUT	= elftoaoutifneq ($(UNDECLARED_REGS),y)CC_UNDECL	=elseCC_UNDECL	= -Wa,--undeclared-regsAS		:= $(AS) --undeclared-regsendif## Uncomment the first CFLAGS if you are doing kgdb source level# debugging of the kernel to get the proper debugging information.#CFLAGS := $(CFLAGS) -g -pipe -fcall-used-g5 -fcall-used-g7 ifneq ($(NEW_GCC),y)  CFLAGS := $(CFLAGS) -pipe -mno-fpu -mtune=ultrasparc -mmedlow \	    -ffixed-g4 -fcall-used-g5 -fcall-used-g7 -Wno-sign-compareelse  CFLAGS := $(CFLAGS) -m64 -pipe -mno-fpu -mcpu=ultrasparc -mcmodel=medlow \	    -ffixed-g4 -fcall-used-g5 -fcall-used-g7 -Wno-sign-compare \	    $(CC_UNDECL)  AFLAGS += -m64 -mcpu=ultrasparc $(CC_UNDECL)endif# Uncomment this to get spinlock/rwlock debugging on SMP.# DEBUG_SPINLOCK = 1ifdef CONFIG_SMP  ifdef DEBUG_SPINLOCK    CFLAGS += -DSPIN_LOCK_DEBUG    AFLAGS += -DSPIN_LOCK_DEBUG  endifendif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -