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

wirehaze git hosting

fix flickering
[lifeboot.git] / Makefile
index 16f62dde2ba734925c429ce1e3666529965785bd..3117265796c18d3baf2fe17548eeeb901cf99801 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,12 +3,12 @@ PROGRAMS := prototype lifeboot
 CC := gcc
 CFLAGS := -Wall -Wextra -I.
 
 CC := gcc
 CFLAGS := -Wall -Wextra -I.
 
-build: $(PROGRAMS)
-
-lifeboot:
+lifeboot: lifeboot.asm
        nasm lifeboot.asm
 
        nasm lifeboot.asm
 
-run:
+all: $(PROGRAMS)
+
+run: lifeboot
        qemu-system-x86_64 -drive file=lifeboot,format=raw
 
 format:
        qemu-system-x86_64 -drive file=lifeboot,format=raw
 
 format:
@@ -17,4 +17,4 @@ format:
 clean:
        rm -rf $(PROGRAMS) *.o
 
 clean:
        rm -rf $(PROGRAMS) *.o
 
-.PHONY: build run format clean
+.PHONY: all run format clean