From 73dce672626ceb415b49ff059092c48a2f7c3de3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Duje=20Mihanovi=C4=87?= Date: Sat, 21 Aug 2021 13:00:34 +0200 Subject: [PATCH] Add Makefile Can compile, clean and run the boot sector. --- Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9d95b1e --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +AS = yasm # choose yasm or nasm here +ASFLAGS = -f bin # compile a raw binary + +boot: boot.s print.s + $(AS) $(ASFLAGS) -o $@ boot.s + +clean: + -rm boot + +run: + qemu-system-i386 boot + +help: + @echo "Run 'make' to compile." + @echo "Run 'make clean' to delete compiled objects." + @echo "Run 'make run' to run the compiled object. Must have qemu-system-i386 (but x86_64 should work too)." + +.PHONY = clean run help -- 2.39.2