makefile: add clean-target, make build-targets more generic
This commit is contained in:
parent
67a044a3c9
commit
20f4ae0581
1 changed files with 7 additions and 4 deletions
11
makefile
11
makefile
|
@ -1,11 +1,14 @@
|
|||
.PHONY: debug release run
|
||||
|
||||
release: src/wte.c
|
||||
gcc -o build/wte -O2 -Wall -Wextra -pedantic -Werror src/wte.c
|
||||
release: src/*.c
|
||||
gcc -o build/wte -O2 -Wall -Wextra -pedantic -Werror src/*.c
|
||||
|
||||
run: release
|
||||
./build/wte
|
||||
|
||||
debug: src/wte.c
|
||||
gcc -o build/wte -ggdb3 -DDEBUG -Wall -Wextra -pedantic -Werror src/wte.c
|
||||
debug: src/*.c
|
||||
gcc -o build/wte -ggdb3 -DDEBUG -Wall -Wextra -pedantic -Werror src/*.c
|
||||
|
||||
clean:
|
||||
rm -f build/*
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue