forked from Hckerx/ChessQD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (20 loc) · 725 Bytes
/
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
all:
ifeq ($(OS),Windows_NT)
clang++ -c src/*.cpp -I includeSDL --std=c++17 -g -Wall -m64 -I include && clang++ *.o -o bin/debug/main -L -lmingw32 -lSDL2 -lSDL2_image -lSDL2_ttf && start bin/debug/main.exe && del *.o
else
clang++ -g -c src/*.cpp -std=c++17 -g -Wall -m64 -I include && clang++ *.o -g -o bin/debug/main -L -lSDL2main -lSDL2 -lSDL2_image -lSDL2_ttf -lSDL2_mixer && ./bin/debug/main && rm *.o
endif
release:
g++ -c src/*.cpp -std=c++14 -O3 -Wall -m64 -I include && g++ *.o -o bin/release/main -s -L -lSDL2main -lSDL2 -lSDL2_image && ./bin/release/main
clean:
ifeq ($(OS),Windows_NT)
del *.o
else
rm *.o
endif
test:
ifeq ($(OS),Windows_NT)
.\\bin\\debug\\main.exe
else
./bin/debug/main
endif