#!/bin/sh build_mode="debug" # temporary for now build_dir="build" mkdir -p $build_dir include_path=include include_opts="-I $include_path" files="source/main.cpp $include_path/glad/glad.c" build_opts="$build_dir/main" lib_path="libs/SDL2 libs/freetype/libfreetype.so" link_opts="-L $lib_path -lSDL2" build_command="clang++ -std=c++11 -g -O0 $include_opts $files $link_opts -o $build_opts" printf "Building Project...\n" printf "$build_command\n\n" $build_command printf "\nBuild Complete!\n\n"