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

wirehaze git hosting

use xorshift instead of rand()
[lifeboot.git] / Makefile
index 9c4db25d4093be94b3e823abeab3a2c98229918b..16f62dde2ba734925c429ce1e3666529965785bd 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,20 @@
 SRC_DIR := .
-PROGRAMS := prototype
+PROGRAMS := prototype lifeboot
 CC := gcc
-CFLAGS := -Wall -Wextra -Werror -I.
+CFLAGS := -Wall -Wextra -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