]> wirehaze git hosting - lifeboot.git/commitdiff

wirehaze git hosting

update makefile
authorphfr24 <phfr24@inf.ufpr.br>
Tue, 18 Nov 2025 00:52:52 +0000 (21:52 -0300)
committerphfr24 <phfr24@inf.ufpr.br>
Tue, 18 Nov 2025 00:52:52 +0000 (21:52 -0300)
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