📄 makefile
字号:
## i386/Makefile## 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## 19990713 Artur Skawina <skawina@geocities.com># Added '-march' and '-mpreferred-stack-boundary' support#LD=$(CROSS_COMPILE)ld -m elf_i386OBJCOPY=$(CROSS_COMPILE)objcopy -O binary -R .note -R .comment -SLDFLAGS=-e stextLINKFLAGS =-T $(TOPDIR)/arch/i386/vmlinux.lds $(LDFLAGS)CFLAGS += -pipe# prevent gcc from keeping the stack 16 byte alignedCFLAGS += $(shell if $(CC) -mpreferred-stack-boundary=2 -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-mpreferred-stack-boundary=2"; fi)ifdef CONFIG_M386CFLAGS += -march=i386endififdef CONFIG_M486CFLAGS += -march=i486endififdef CONFIG_M586CFLAGS += -march=i586endififdef CONFIG_M586TSCCFLAGS += -march=i586endififdef CONFIG_M586MMXCFLAGS += -march=i586endififdef CONFIG_M686CFLAGS += -march=i686endififdef CONFIG_M686FXSRCFLAGS += -march=i686endififdef CONFIG_MPENTIUM4CFLAGS += -march=i686endififdef CONFIG_MK6CFLAGS += $(shell if $(CC) -march=k6 -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-march=k6"; else echo "-march=i586"; fi)endififdef CONFIG_MK7CFLAGS += $(shell if $(CC) -march=athlon -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-march=athlon"; else echo "-march=i686 -malign-functions=4"; fi) endififdef CONFIG_MCRUSOECFLAGS += -march=i686 -malign-functions=0 -malign-jumps=0 -malign-loops=0endififdef CONFIG_MWINCHIPC6CFLAGS += -march=i586endififdef CONFIG_MWINCHIP2CFLAGS += -march=i586endififdef CONFIG_MWINCHIP3DCFLAGS += -march=i586endifHEAD := arch/i386/kernel/head.o arch/i386/kernel/init_task.oSUBDIRS += arch/i386/kernel arch/i386/mm arch/i386/libCORE_FILES := arch/i386/kernel/kernel.o arch/i386/mm/mm.o $(CORE_FILES)LIBS := $(TOPDIR)/arch/i386/lib/lib.a $(LIBS) $(TOPDIR)/arch/i386/lib/lib.aifdef CONFIG_MATH_EMULATIONSUBDIRS += arch/i386/math-emuDRIVERS += arch/i386/math-emu/math.oendifarch/i386/kernel: dummy $(MAKE) linuxsubdirs SUBDIRS=arch/i386/kernelarch/i386/mm: dummy $(MAKE) linuxsubdirs SUBDIRS=arch/i386/mmMAKEBOOT = $(MAKE) -C arch/$(ARCH)/bootvmlinux: arch/i386/vmlinux.ldsFORCE: ;.PHONY: zImage bzImage compressed zlilo bzlilo zdisk bzdisk install \ clean archclean archmrproper archdepzImage: vmlinux @$(MAKEBOOT) zImagebzImage: vmlinux @$(MAKEBOOT) bzImagecompressed: zImagezlilo: vmlinux @$(MAKEBOOT) BOOTIMAGE=zImage zlilotmp: @$(MAKEBOOT) BOOTIMAGE=bzImage zlilobzlilo: vmlinux @$(MAKEBOOT) BOOTIMAGE=bzImage zlilozdisk: vmlinux @$(MAKEBOOT) BOOTIMAGE=zImage zdiskbzdisk: vmlinux @$(MAKEBOOT) BOOTIMAGE=bzImage zdiskinstall: vmlinux @$(MAKEBOOT) BOOTIMAGE=bzImage installarchclean: @$(MAKEBOOT) cleanarchmrproper:archdep: @$(MAKEBOOT) dep
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -