aboutsummaryrefslogtreecommitdiff
path: root/make.sh
blob: f483b8510ef9c099990bf6df0cc08c469a296932 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
echo "Creating build directory... (if it doesn't exist)"
mkdir -p build

echo "Removing old gameOfLife... (if it exists)"
rm -f build/gameOfLife

echo "Building gameOfLife..."
echo "C++ version: $(clang++ --version)"
echo "SDL2 version: $(sdl2-config --version)"

echo "Setting C++20 standard and libc++ as the standard library..."
echo "Including SDL2 headers from /opt/homebrew/include..."
echo "Linking SDL2 libraries from /opt/homebrew/lib..."

clang++ -std=c++20 -stdlib=libc++ src/gameOfLife.cpp -I/opt/homebrew/include -L/opt/homebrew/lib/ -lSDL2 -o build/gameOfLife

echo "gameOfLife built successfully"