#!/bin/bash build_path=build mkdir -p "$build_path" include_path=include include_opts="-I $include_path" files="source/game/game.cpp" build_opts="-fPIC -shared -g -O0" build_command="g++ $build_opts $include_opts $files -o $build_path/libgame.so" printf "Building game as a shared library\n" printf "This is the build command:\n" printf "$build_command\n\n" $build_command printf "Build Complete!\n"