summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/makefile b/makefile
new file mode 100644
index 0000000..c3d4174
--- /dev/null
+++ b/makefile
@@ -0,0 +1,12 @@
+floppy: out bootloader
+ mkfs.fat -C -f 1 -F 12 -n "PORTLAND OS" -R 2 -S 512 out/floppy.img 1440
+ dd if=obj/bootloader.bin of=out/floppy.img bs=1 seek=62 conv=notrunc
+
+bootloader: obj
+ nasm src/bootloader.bin -o obj/bootloader.bin
+
+obj:
+ mkdir -p obj
+
+out:
+ mkdir -p out \ No newline at end of file