Updated Makefile and .gitignore to allow for many other binaries to be added

This commit is contained in:
2021-08-29 11:26:38 +01:00
parent 0dca50b0d4
commit 4f2e8c5cd3
2 changed files with 8 additions and 4 deletions
+7 -4
View File
@@ -1,13 +1,16 @@
disk.img: boot.bin kernel.bin
disk.img: boot.sector kernel.bin hello.bin
dd if=/dev/zero of=disk.img count=43 bs=100k
dd if=boot.bin of=disk.img conv=notrunc
dd if=boot.sector of=disk.img conv=notrunc
mount disk.img img.d
cp kernel.bin img.d
cp *.bin img.d/
umount img.d
chmod 777 disk.img
boot.bin: boot.asm
boot.sector: boot.asm
nasm boot.asm -o $@
kernel.bin: kernel.asm
nasm kernel.asm -o $@
hello.bin: hello.asm
nasm hello.asm -o $@