-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
51 lines (41 loc) · 1016 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
.SILENT: debug_linux_x64
.SILENT: debug_windows_x64
.SILENT: linux_x64
.SILENT: windows_x64
.SILENT: clean
all: clean debug_linux_x64 debug_windows_x64 linux_x64 windows_x64
debug_linux_x64:
if [ ! -d "bin" ]; \
then \
echo "|> Creating /bin directory"; \
mkdir bin; \
fi
echo "|> Building: Debug Linux x64"
gcc src/GitChess.c -o bin/GitChessDebug
debug_windows_x64:
if [ ! -d "bin" ]; \
then \
echo "|> Creating /bin directory"; \
mkdir bin; \
fi
echo "|> Building: Debug Windows x64"
x86_64-w64-mingw32-gcc src/GitChess.c -o bin/GitChessDebug.exe
linux_x64:
if [ ! -d "bin" ]; \
then \
echo "|> Creating /bin directory"; \
mkdir bin; \
fi
echo "|> Building: Linux x64"
gcc -Ofast src/GitChess.c -o bin/GitChess
windows_x64:
if [ ! -d "bin" ]; \
then \
echo "|> Creating /bin directory"; \
mkdir bin; \
fi
echo "|> Building: Windows x64"
x86_64-w64-mingw32-gcc -Ofast src/GitChess.c -o bin/GitChess.exe
clean:
echo "|> Cleaning /bin "
rm -rf bin/*