summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCarlos Maiolino <[email protected]>2025-07-17 19:20:00 +0200
committerCarlos Maiolino <[email protected]>2025-07-17 19:20:00 +0200
commit60ad28e57a02d17981f3854f1f23b8740c309f60 (patch)
tree1739866cffc3d3e297e6e266cafdcc880c5d4cfe /Makefile
Initial commit
Add a bootloader and a hello message. Signed-off-by: Carlos Maiolino <[email protected]>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..f44f839
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,9 @@
+BOOTLOADER=./bootloader.asm
+TARGET=./boot.img
+
+all:
+ nasm -f bin $(BOOTLOADER) -o $(TARGET)
+ dd if=./boot.txt >> $(TARGET)
+ dd if=/dev/zero bs=512 count=1 >> $(TARGET)
+clean:
+ rm -f $(TARGET)