-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathr.sh
executable file
·43 lines (29 loc) · 1.13 KB
/
r.sh
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
#!/bin/bash
echo "Compiling frame.cpp"
g++ -c src/frame/frame.cpp `wx-config --cxxflags --libs`
echo "Compiling board.cpp"
g++ -c src/board/board.cpp `wx-config --cxxflags --libs`
echo "Compiling piece.cpp"
g++ -c src/pieces/piece.cpp `wx-config --cxxflags --libs`
echo "Compiling pawn.cpp"
g++ -c src/pieces/pawn/pawn.cpp `wx-config --cxxflags --libs`
echo "Compiling rook.cpp"
g++ -c src/pieces/rook/rook.cpp `wx-config --cxxflags --libs`
echo "Compiling bishop.cpp"
g++ -c src/pieces/bishop/bishop.cpp `wx-config --cxxflags --libs`
echo "Compiling knight.cpp"
g++ -c src/pieces/knight/knight.cpp `wx-config --cxxflags --libs`
echo "Compiling queen.cpp"
g++ -c src/pieces/queen/queen.cpp `wx-config --cxxflags --libs`
echo "Compiling king.cpp"
g++ -c src/pieces/king/king.cpp `wx-config --cxxflags --libs`
echo "Compiling main.cpp"
g++ -c src/main.cpp `wx-config --cxxflags --libs`
echo "Linking main.o"
g++ -o main main.o frame.o board.o piece.o pawn.o rook.o bishop.o knight.o queen.o king.o `wx-config --cxxflags --libs`
echo "Running main.o"
./main
echo "Execution completed successfully."
rm main
echo "Removing object files"
rm *.o