blob: 4e11e85bcaafef88c9184719e230c8eb332ffff0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/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="lib/SDL2"
link_opts="-L $lib_path -lSDL2"
build_command="clang++ -std=c++11 -g -Og $include_opts $files $link_opts -o $build_opts"
printf "This is the build command for posteritys' sake:\n"
printf "$build_command\n\n"
printf "Building Project...\n"
$build_command
printf "\nBuild Complete!\n\n"
|