makefile: add run target

This commit is contained in:
xesc 2024-10-08 14:55:58 +02:00
parent 699a66a75a
commit 42cd075421

View file

@ -1,7 +1,11 @@
.PHONY: all debug .PHONY: debug release run
all: src/wta.c
release: src/wta.c
gcc -o build/wta -O2 -Wall -Wextra -pedantic -Werror src/wta.c gcc -o build/wta -O2 -Wall -Wextra -pedantic -Werror src/wta.c
run: release
./build/wta
debug: src/wta.c debug: src/wta.c
gcc -o build/wta -ggdb3 -DDEBUG -Wall -Wextra -pedantic -Werror src/wta.c gcc -o build/wta -ggdb3 -DDEBUG -Wall -Wextra -pedantic -Werror src/wta.c