makefile

来自「a linux like c++ kernel」· 代码 · 共 32 行

TXT
32
字号
%.o:%.cc	g++ -c -O -o $@ $<%.o:%.S	g++ -c -D__ASSEMBLY__ -o $@ $<all: glue bootsect setup bootparamglue: glue.o	g++ -o $@ $^bootsect: bootsect.o	ld -e 0 -Ttext 0 -o $@ $@.osetup: setup.o	ld -e 0 -Ttext 0 -o $@ $@.obootparam: bootparam.o	g++ -o $@ $^SRCS:=glue.cc bootsect.S setup.S bootparam.ccdep:	@rm -f Depend	@for s in $(SRCS); do cpp -MM $$s >>Depend; doneclean:	@rm -f *.o glue bootsect setup collect collect.nm bootparam Dependifeq (Depend, $(wildcard Depend))include Dependendif

⌨️ 快捷键说明

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