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

wirehaze git hosting

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