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

📄 makefile

📁 Murphy 大俠 GPL 的 C++/x86 RTOS, 支持 MMU, 用戶/核心 模式區隔. http://hpc.ee.ntu.edu.tw/~murphy/me/EKernel.html
💻
字号:
# Required GNU Make version 3.77
# ( Type 'make -v' to see the version )

default :
	@echo "Usage: make CPU_TYPE"
	@echo
	@echo "Valid CPU_TYPE:"
	@echo "Pentium ( compile using DJGPP C/C++ Compiler)"
	@echo "StrongArm ( compile using Metaware High C/C++ Compier) "


include Initialize/Makefile
include ADT/Makefile
include Hardware/Makefile
include Kernel/Makefile
include LibC/Makefile
include MemoryManager/Makefile


CCSources = $(ADTSrc) $(HardwareSrc) $(InitializeSrc) \
	$(KernelSrc) $(LibCSrc) $(MemoryManagerSrc)

# Note: InitializeAsmSrc should be placed first.
ASMSources = $(InitializeAsmSrc) \
	$(HardwareAsmSrc) $(KernelAsmSrc) $(LibCAsmSrc)

CCObjects = $(CCSources:.cc=.o)
ASMObjects = $(ASMSources:.asm=.o)
Objects = $(ASMObjects) $(CCObjects)

CCDepends = $(CCSources:.cc=.d)


ifeq ($(MAKECMDGOALS),Pentium)
	include $(CCSources:.cc=.d)
	include Pentium.mk
endif


ifeq ($(MAKECMDGOALS),StrongArm)
	include $(CCSources:.cc=.d)
	include StrongArm.mk
endif

# -------- depend --------
.PHONY : depend
depend : $(CCDepends)
	@echo $(CCDepends)

# -------- clean ---------

.PHONY : clean
clean :
	rm -f $(CCObjects) $(ASMObjects) $(CCDepends) kernel.*

⌨️ 快捷键说明

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