-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
28 lines (28 loc) · 1.59 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/make -f
bin: src/main.cpp
mkdir -p bin
g++-5 -std=c++14 -O2 -Wall -Wextra -Wpedantic -I. -UDEBUG -UTEST -o bin/tankcombat src/*.cpp -lsfml-graphics -lsfml-window -lsfml-audio -lsfml-system
dbg: src/main.cpp
mkdir -p bin
g++-5 -std=c++14 -ggdb3 -Wall -Wextra -Wpedantic -I. -DDEBUG -UTEST -o bin/tankcombat src/*.cpp -lsfml-graphics -lsfml-window -lsfml-audio -lsfml-system
prof: src/main.cpp
mkdir -p bin
g++-5 -std=c++14 -pg -O2 -Wall -Wextra -Wpedantic -I. -UDEBUG -UTEST -o bin/tankcombat src/*.cpp -lsfml-graphics -lsfml-window -lsfml-audio -lsfml-system
test: src/main.cpp
mkdir -p bin
g++-5 -std=c++14 -O2 -Wall -Wextra -Wpedantic -I. -DTEST -UDEBUG -o bin/tankcombat src/*.cpp -lsfml-graphics -lsfml-window -lsfml-audio -lsfml-system
clang: src/main.cpp
mkdir -p bin
clang++-3.8 -std=c++14 -O2 -Wall -Wextra -Wpedantic -I. -UDEBUG -UTEST -o bin/tankcombat src/*.cpp -lsfml-graphics -lsfml-window -lsfml-audio -lsfml-system
clangdbg: src/main.cpp
mkdir -p bin
clang++-3.8 -std=c++14 -ggdb3 -Wall -Wextra -Wpedantic -I. -DDEBUG -UTEST -o bin/tankcombat src/*.cpp -lsfml-graphics -lsfml-window -lsfml-audio -lsfml-system
clangprof: src/main.cpp
mkdir -p bin
clang++-3.8 -std=c++14 -pg -O2 -Wall -Wextra -Wpedantic -I. -UDEBUG -UTEST -o bin/tankcombat src/*.cpp -lsfml-graphics -lsfml-window -lsfml-audio -lsfml-system
clangtest: src/main.cpp
mkdir -p bin
clang++-3.8 -std=c++14 -O2 -Wall -Wextra -Wpedantic -I. -DTEST -UDEBUG -o bin/tankcombat src/*.cpp -lsfml-graphics -lsfml-window -lsfml-audio -lsfml-system
clean:
rm -rf bin
.PHONY: bin dbg prof test clang clangdbg clangprof clangtest clean