]> wirehaze git hosting - lifeboot.git/blobdiff - Makefile

wirehaze git hosting

add lifeboot.asm skel
[lifeboot.git] / Makefile
index 9c4db25d4093be94b3e823abeab3a2c98229918b..6ae753483ab480f72f285c912e8426378b8a44f6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,20 @@
 SRC_DIR := .
-PROGRAMS := prototype
+PROGRAMS := prototype lifeboot
 CC := gcc
 CFLAGS := -Wall -Wextra -Werror -I.
 
 build: $(PROGRAMS)
 
+lifeboot:
+       nasm lifeboot.asm
+
+run:
+       qemu-system-x86_64 -drive file=lifeboot,format=raw
+
 format:
        find $(SRC_DIR) -iname '*.[hc]' | xargs clang-format -i --style=GNU
 
 clean:
        rm -rf $(PROGRAMS) *.o
 
-.PHONY: build format clean
+.PHONY: build run format clean