Makefile 515 字节
Newer Older
1
all:
R
rain 已提交
2 3
	touch boot/x86/bootloader.bin
	make -C boot/x86/
4
	make -C kernel/
R
rain 已提交
5
	make cunix.img
6

7
clear:
8
	rm *.bin boot/x86/*.bin kernel/*.o kernel/*.bin kernel/init/*.o kernel/hal/*.o cunix.img -rf
9

10 11

lines:
12
	wc boot/x86/boot.asm boot/x86/loader.asm kernel/init/*.c kernel/hal/*.c include/arch/x86/* include/kernel/* -l
13

R
rain 已提交
14 15 16 17 18

cunix.img: boot/x86/bootloader.bin kernel/kernel.bin
	dd if=/dev/zero of=cunix.img bs=1024 count=1440
	cat boot/x86/bootloader.bin kernel/kernel.bin > boot.bin
	dd if=boot.bin of=cunix.img conv=notrunc