makefile
来自「Linux Kernel 2.6.9 for OMAP1710」· 代码 · 共 84 行
TXT
84 行
# $Id: Makefile,v 1.52 2002/02/09 19:49:31 davem Exp $# 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)#CHECKFLAGS += -D__sparc__ -D__sparc_v9__CPPFLAGS_vmlinux.lds += -UsparcCC := $(shell if $(CC) -m64 -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo $(CC); else echo sparc64-linux-gcc; fi )NEW_GCC := $(call cc-option-yn, -m64 -mcmodel=medlow)NEW_GAS := $(shell if $(LD) -V 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; )INLINE_LIMIT := $(call cc-option-yn, -m64 -finline-limit=100000)export NEW_GCCifneq ($(NEW_GAS),y)AS = sparc64-linux-asLD = sparc64-linux-ldNM = sparc64-linux-nmAR = sparc64-linux-arRANLIB = sparc64-linux-ranlibelseAS := $(AS) -64LDFLAGS := -m elf64_sparcendififneq ($(UNDECLARED_REGS),y)CC_UNDECL =elseCC_UNDECL = -Wa,--undeclared-regsAS := $(AS) --undeclared-regsendififneq ($(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)endififeq ($(INLINE_LIMIT),y) CFLAGS := $(CFLAGS) -finline-limit=100000endififeq ($(CONFIG_MCOUNT),y) CFLAGS := $(CFLAGS) -pgendifhead-y := arch/sparc64/kernel/head.o arch/sparc64/kernel/init_task.ocore-y += arch/sparc64/kernel/ arch/sparc64/mm/core-$(CONFIG_SOLARIS_EMUL) += arch/sparc64/solaris/core-y += arch/sparc64/math-emu/libs-y += arch/sparc64/prom/ arch/sparc64/lib/# FIXME: is drivers- right?drivers-$(CONFIG_OPROFILE) += arch/sparc64/oprofile/boot := arch/sparc64/bootimage tftpboot.img vmlinux.aout: vmlinux $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@archclean: $(Q)$(MAKE) $(clean)=$(boot)define archhelp echo '* vmlinux - Standard sparc64 kernel' echo ' vmlinux.aout - a.out kernel for sparc64' echo ' tftpboot.img - Image prepared for tftp'endef
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?