makefile
来自「简单的操作系统源代码」· 代码 · 共 26 行
TXT
26 行
CC = gccLD = ldLDFILE = os_x86.ldOBJCOPY = objcopyall:boot_hw.imgboot_hw.o: boot_hw.s $(CC) -c boot_hw.sboot_hw.elf: boot_hw.o $(LD) boot_hw.o -o boot_hw.elf -e c -T$(LDFILE)boot_hw.bin : boot_hw.elf @$(OBJCOPY) -R .pdr -R .comment -R .note -S -O binary boot_hw.elf boot_hw.binboot_hw.img : boot_hw.bin @dd if=boot_hw.bin of=boot_hw.img bs=512 count=1 @dd if=/dev/zero of=boot_hw.img skip=1 seek=1 bs=512 count=2879clean: @rm -rf boot_hw.o boot_hw.elf boot_hw.bin boot_hw.img
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?