summaryrefslogtreecommitdiff
path: root/build_and_run_src.sh
blob: 799da0d505f27f96cfb434785880b425afe2e259 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

CC=g++
LD=g++
BIN_PATH="bin"
LIB_PATH="lib"
CFLAGS="-O2"

mkdir -p $BIN_PATH
mkdir -p $BIN_PATH/assets

$CC $CFLAGS -L$LIB_PATH -Igraphics src/*.cpp -o $BIN_PATH/main -lsgg -lGL -lGLEW -lSDL2 -lSDL2_mixer -lfreetype

cp -r assets $BIN_PATH

./bin/main