📄 makefile
字号:
# $Id: Makefile,v 1.51 2001/11/17 00:15:27 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)## If the solaris /bin/sh wasn't so broken, I wouldn't need the following# line...SHELL =/bin/bashCC := $(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) -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; )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-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)endifLINKFLAGS = -T arch/sparc64/vmlinux.ldsHEAD := arch/sparc64/kernel/head.o arch/sparc64/kernel/init_task.oSUBDIRS += arch/sparc64/kernel arch/sparc64/lib arch/sparc64/mm \ arch/sparc64/promifneq ($(CONFIG_SOLARIS_EMUL),n) SUBDIRS += arch/sparc64/solarisendifSUBDIRS += arch/sparc64/math-emuCORE_FILES := arch/sparc64/kernel/kernel.o arch/sparc64/mm/mm.o $(CORE_FILES)ifeq ($(CONFIG_SOLARIS_EMUL),y) CORE_FILES += arch/sparc64/solaris/solaris.oendifCORE_FILES += arch/sparc64/math-emu/math-emu.oLIBS := $(TOPDIR)/lib/lib.a $(LIBS) $(TOPDIR)/arch/sparc64/prom/promlib.a \ $(TOPDIR)/arch/sparc64/lib/lib.avmlinux.aout: vmlinux $(ELFTOAOUT) -o $(TOPDIR)/vmlinux.aout $(TOPDIR)/vmlinuxarchclean: rm -f $(TOPDIR)/vmlinux.aoutarchmrproper: rm -f $(TOPDIR)/include/asm-sparc64/asm_offsets.harchdep: check_asmcheck_asm: include/linux/version.h $(MAKE) -C arch/sparc64/kernel check_asmtftpboot.img: $(MAKE) -C arch/sparc64/boot tftpboot.img
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -