makefile
来自「linux bochs 镜像这是被引导扇区代码读取到物理地址0x10000H处的」· 代码 · 共 55 行
TXT
55 行
## if you want the ram-disk device, define this to be the# size in blocks.#AS86 =as86 -0 -aLD86 =ld86 -0AS =gasLD =gldLDFLAGS =-s -x -MCC =gcc $(RAMDISK)CFLAGS =-Wall -O -fstrength-reduce -fomit-frame-pointer \-fcombine-regs CPP =cpp -nostdinc -Iinclude.c.s: $(CC) $(CFLAGS) \ -nostdinc -Iinclude -S -o $*.s $<.s.o: $(AS) -c -o $*.o $<.c.o: $(CC) $(CFLAGS) \ -nostdinc -Iinclude -c -o $*.o $<all: ImageImage: boot/boot tools/system tools/build tools/build boot/boot tools/system > Image syncdisk: Image dd bs=8192 if=Image of=/dev/fd0 sync;sync;synctools/build: tools/build.c $(CC) $(CFLAGS) \ -o tools/build tools/build.cboot/head.o: boot/head.stools/system: boot/head.o $(LD) $(LDFLAGS) boot/head.o -o tools/system > System.mapboot/boot: boot/boot.s $(AS86) -o boot/boot.o boot/boot.s $(LD86) -s -o boot/boot boot/boot.oclean: rm -f Image System.map tmp_make core boot/boot rm -f init/*.o tools/system tools/build boot/*.o
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?