makefile

来自「该文件是rt_linux」· 代码 · 共 62 行

TXT
62
字号
## Makefile for rescue code#ifndef TOPDIRTOPDIR = ../../../..HPATH = $(TOPDIR)/includeexport HPATHendifCC = gcc-cris -mlinux -I $(TOPDIR)/includeCFLAGS = -O2LD = gcc-cris -mlinux -nostdlibOBJCOPY = objcopy-crisall: rescue.bin testrescue.bin kimagerescue.binrescue: rescue.bin	# do nothingrescue.bin: head.o	$(LD) -T rescue.ld -o rescue.o head.o	$(OBJCOPY) -O binary --remove-section=.bss rescue.o rescue.bin	cp rescue.bin $(TOPDIR)testrescue.bin: testrescue.o	$(OBJCOPY) -O binary --remove-section=.bss testrescue.o tr.bin# Pad it to 784 bytes	dd if=/dev/zero of=tmp2423 bs=1 count=784	cat tr.bin tmp2423 >testrescue_tmp.bin	dd if=testrescue_tmp.bin of=testrescue.bin bs=1 count=784	rm tr.bin tmp2423 testrescue_tmp.binkimagerescue.bin: kimagerescue.o	$(OBJCOPY) -O binary --remove-section=.bss kimagerescue.o ktr.bin# Pad it to 784 bytes, that's what the rescue loader expects	dd if=/dev/zero of=tmp2423 bs=1 count=784	cat ktr.bin tmp2423 >kimagerescue_tmp.bin	dd if=kimagerescue_tmp.bin of=kimagerescue.bin bs=1 count=784	rm ktr.bin tmp2423 kimagerescue_tmp.binhead.o: head.S 	$(CC) -D__ASSEMBLY__ -traditional -c $< -o $*.otestrescue.o: testrescue.S	$(CC) -D__ASSEMBLY__ -traditional -c $< -o $*.okimagerescue.o: kimagerescue.S	$(CC) -D__ASSEMBLY__ -traditional -c $< -o $*.oclean:	rm -f *.o *.binfastdep:modules:modules-install:depend:	$(CC) -M *.S > .depend-include .depend

⌨️ 快捷键说明

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