-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompileTetris.sh
executable file
·17 lines (14 loc) · 1.21 KB
/
compileTetris.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#Compiler(Name)-> g++
#AllProgramFiles(.cpp)-> main.cpp game.cpp grid.cpp position.cpp colors.cpp block.cpp blocks.cpp
#Output Argument For (Compiler)-> -o
#Output To FileName(Binary)-> TetrisGame
#-L/path/to/raylib (Optional/ Add If Necessary) -> -L/home/yashwanth/raylib
#Flags for (Linking)-> -lraylib -lGL -lm -lpthread -ldl -lrt -lX11
#In the below command PATH/TO/RAYLIB has been added for compilation process (OPTIONAL)
#Adding raylib path helps when raylib is not made available systemwide
#--------------------------------------------------------------------------------------------------------------------------------------------------------------
#g++ main.cpp game.cpp grid.cpp position.cpp colors.cpp block.cpp blocks.cpp -o TetrisGame -L/home/yashwanth/raylib -lraylib -lGL -lm -lpthread -ldl -lrt -lX11
#--------------------------------------------------------------------------------------------------------------------------------------------------------------
#When raylib is made available systemwide below command works
echo "Compiling output to binary file named TetrisGame"
g++ main.cpp game.cpp grid.cpp position.cpp colors.cpp block.cpp blocks.cpp -o TetrisGame -lraylib -lGL -lm -lpthread -ldl -lrt -lX11