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

📄 makefile

📁 Linux内核源代码 为压缩文件 是<<Linux内核>>一书中的源代码
💻
字号:
# This file is included by the global makefile so that you can add your own# architecture-specific flags and dependencies. Remember to do have actions# for "archclean" and "archdep" for cleaning up and making dependencies for# this architecture## This file is subject to the terms and conditions of the GNU General Public# License.  See the file "COPYING" in the main directory of this archive# for more details.## Copyright (C) 1994 by Linus Torvalds# Changes for PPC by Gary Thomas# Rewritten by Cort Dougan and Paul Mackerras#KERNELLOAD	=0xc0000000ifeq ($(shell uname -m),ppc)CHECKS		= checksendifASFLAGS		=LINKFLAGS	= -T arch/ppc/vmlinux.lds -Ttext $(KERNELLOAD) -BstaticCPPFLAGS	:= $(CPPFLAGS) -D__powerpc__CFLAGS		:= $(CFLAGS) -D__powerpc__ -fsigned-char \		-msoft-float -pipe -ffixed-r2 -Wno-uninitialized \		-mmultiple -mstringCPP		= $(CC) -E $(CFLAGS)ifdef CONFIG_4xxCFLAGS := $(CFLAGS) -mcpu=403endififdef CONFIG_8xxCFLAGS := $(CFLAGS) -mcpu=860 -I../8xx_ioendififdef CONFIG_PPC64BRIDGECFLAGS := $(CFLAGS) -Wa,-mppc64bridgeendififdef CONFIG_4xx  HEAD := arch/ppc/kernel/head_4xx.oelse  ifdef CONFIG_8xx    HEAD := arch/ppc/kernel/head_8xx.o  else    HEAD := arch/ppc/kernel/head.o  endifendifARCH_SUBDIRS = arch/ppc/kernel arch/ppc/mm arch/ppc/libSUBDIRS := $(SUBDIRS) $(ARCH_SUBDIRS)ARCHIVES := arch/ppc/kernel/kernel.o arch/ppc/mm/mm.o arch/ppc/lib/lib.o $(ARCHIVES)CORE_FILES := arch/ppc/kernel/kernel.o arch/ppc/mm/mm.o arch/ppc/lib/lib.o $(CORE_FILES)ifdef CONFIG_MATH_EMULATIONSUBDIRS += arch/ppc/math-emuARCHIVES += arch/ppc/math-emu/math-emu.oCORE_FILES += arch/ppc/math-emu/math-emu.oendififdef CONFIG_XMONSUBDIRS += arch/ppc/xmonCORE_FILES += arch/ppc/xmon/x.oendifMAKEBOOT = $(MAKE) -C arch/$(ARCH)/bootMAKECOFFBOOT = $(MAKE) -C arch/$(ARCH)/coffbootMAKECHRPBOOT = $(MAKE) -C arch/$(ARCH)/chrpbootMAKEMBXBOOT = $(MAKE) -C arch/$(ARCH)/mbxbootMAKETREEBOOT = $(MAKE) -C arch/$(ARCH)/treebootifdef CONFIG_8xxSUBDIRS += arch/ppc/8xx_ioDRIVERS += arch/ppc/8xx_io/8xx_io.oendififdef CONFIG_8260SUBDIRS += arch/ppc/8260_ioDRIVERS += arch/ppc/8260_io/8260_io.oendififdef CONFIG_APUSSUBDIRS += arch/ppc/amigaARCHIVES += arch/ppc/amiga/amiga.oCORE_FILES += arch/ppc/amiga/amiga.oendifchecks:	@$(MAKE) -C arch/$(ARCH)/kernel checksBOOT_TARGETS = zImage znetboot.initrd zImage.initrdifdef CONFIG_4xx$(BOOT_TARGETS): $(CHECKS) vmlinux	@$(MAKETREEBOOT) $@endififdef CONFIG_8xx$(BOOT_TARGETS): $(CHECKS) vmlinux	@$(MAKECOFFBOOT) $@	@$(MAKEMBXBOOT) $@endififdef CONFIG_6xxifndef CONFIG_8260$(BOOT_TARGETS): $(CHECKS) vmlinux	@$(MAKECOFFBOOT) $@	@$(MAKEBOOT) $@	@$(MAKECHRPBOOT) $@znetboot: $(CHECKS) vmlinuxifdef CONFIG_ALL_PPCifdef CONFIG_SMP	cp -f vmlinux /tftpboot/vmlinux.smpelse	cp -f vmlinux /tftpboot/vmlinuxendifendif	@$(MAKECOFFBOOT) $@	@$(MAKEBOOT) $@	@$(MAKECHRPBOOT) $@else# 8260 is custom 6xx$(BOOT_TARGETS): $(CHECKS) vmlinux	@$(MAKECOFFBOOT) $@	@$(MAKEMBXBOOT) $@endifendififdef CONFIG_PPC64BRIDGE$(BOOT_TARGETS): $(CHECKS) vmlinux	@$(MAKECOFFBOOT) $@	@$(MAKEBOOT) $@	@$(MAKECHRPBOOT) $@znetboot: $(CHECKS) vmlinux	cp -f vmlinux /tftpboot/vmlinux.64	@$(MAKECOFFBOOT) $@	@$(MAKEBOOT) $@	@$(MAKECHRPBOOT) $@endif.PHONY: clean_configclean_config:	rm -f .config arch/ppc/defconfiggemini_config: clean_config	cp -f arch/ppc/configs/gemini_defconfig arch/ppc/defconfigpmac_config: clean_config	cp -f arch/ppc/configs/pmac_defconfig arch/ppc/defconfigprep_config: clean_config	cp -f arch/ppc/configs/prep_defconfig arch/ppc/defconfigchrp_config: clean_config	cp -f arch/ppc/configs/chrp_defconfig arch/ppc/defconfigcommon_config: clean_config	cp -f arch/ppc/configs/common_defconfig arch/ppc/defconfigmbx_config: clean_config	cp -f arch/ppc/configs/mbx_defconfig arch/ppc/defconfigapus_config: clean_config	cp -f arch/ppc/configs/apus_defconfig arch/ppc/defconfigoak_config: clean_config	cp -f arch/ppc/configs/oak_defconfig arch/ppc/defconfigwalnut_config: clean_config	cp -f arch/ppc/configs/walnut_defconfig arch/ppc/defconfigrpxlite_config: clean_config	cp -f arch/ppc/configs/rpxlite_defconfig arch/ppc/defconfigrpxcllf_config: clean_config	cp -f arch/ppc/configs/rpxcllf_defconfig arch/ppc/defconfigbseip_config: clean_config	cp -f arch/ppc/configs/bseip_defconfig arch/ppc/defconfigest8260_config: clean_config	cp -f arch/ppc/configs/est8260_defconfig arch/ppc/defconfigarchclean:	rm -f arch/ppc/kernel/{mk_defs,ppc_defs.h,find_name,checks}	@$(MAKECOFFBOOT) clean	@$(MAKEBOOT) clean	@$(MAKECHRPBOOT) clean	@$(MAKEMBXBOOT) clean	@$(MAKETREEBOOT) cleanarchmrproper:archdep:	$(MAKEBOOT) fastdep	$(MAKECHRPBOOT) fastdep

⌨️ 快捷键说明

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