summaryrefslogtreecommitdiff
path: root/build_and_run_src.sh
diff options
context:
space:
mode:
authorNikolas <nikolas@boutalas.com>2024-10-27 12:52:55 +0200
committerNikolas <nikolas@boutalas.com>2024-10-27 12:52:55 +0200
commit43394c8a8908442982e3a7e25975c31b3c952923 (patch)
tree2facd563e29f48fe3b0653ac5c113998940b4d5e /build_and_run_src.sh
Diffstat (limited to 'build_and_run_src.sh')
-rwxr-xr-xbuild_and_run_src.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/build_and_run_src.sh b/build_and_run_src.sh
new file mode 100755
index 0000000..799da0d
--- /dev/null
+++ b/build_and_run_src.sh
@@ -0,0 +1,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