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

📄 rules.mk

📁 xen 3.2.2 源码
💻 MK
字号:
HAS_PPC64 := yCC := $(CROSS_COMPILE)gccLD := $(CROSS_COMPILE)ld# These are goodess that applies to all source.C_WARNINGS := -Wredundant-decls# _no_ common code can have packed data structures or we are in touble.C_WARNINGS += -WpackedCFLAGS += -m64 -ffreestanding -fno-builtin -fno-commonCFLAGS += -iwithprefix include -Werror -pipeCFLAGS += -I$(BASEDIR)/includeCFLAGS += -I$(BASEDIR)/include/asm-powerpc/mach-defaultCFLAGS += $(C_WARNINGS)CFLAGS += -msoft-float -O2CFLAGS-$(debug) += -O0 # last one winsCFLAGS-$(papr_vterm) += -DPAPR_VDEVICE -DPAPR_VTERMLDFLAGS += -m elf64ppc## command to embed a binary inside a .o#%.o: %.bin	$(CROSS_COMPILE)objcopy --input-target=binary \		--output-target=elf64-powerpc \		--binary-architecture=powerpc \		--redefine-sym _binary_$*_bin_start=$*_start \		--redefine-sym _binary_$*_bin_end=$*_end \		--redefine-sym _binary_$*_bin_size=$*_size \		$< $@HDRS += $(wildcard $(BASEDIR)/include/asm-powerpc/mach-*/*.h)# Test for at least GCC v3.2.x.gcc-ver = $(shell $(CC) -dumpversion | sed -e 's/^\(.\)\.\(.\)\.\(.\)/\$(1)/')ifeq ($(call gcc-ver,1),1)$(error gcc-1.x.x unsupported - upgrade to at least gcc-3.2.x)endififeq ($(call gcc-ver,1),2)$(error gcc-2.x.x unsupported - upgrade to at least gcc-3.2.x)endififeq ($(call gcc-ver,1),3)ifeq ($(call gcc-ver,2),0)$(error gcc-3.0.x unsupported - upgrade to at least gcc-3.2.x)endififeq ($(call gcc-ver,2),1)$(error gcc-3.1.x unsupported - upgrade to at least gcc-3.2.x)endifendif

⌨️ 快捷键说明

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