makefile: add run target
This commit is contained in:
parent
699a66a75a
commit
42cd075421
1 changed files with 6 additions and 2 deletions
8
makefile
8
makefile
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue