summaryrefslogtreecommitdiff
path: root/build.sh
blob: 819088af72446e5428f000dfb7f2b157ace6e7d3 (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_path="build"
mkdir -p $build_path

include_path=include
include_opts="-I $include_path"

build_opts="-g -O0 -rdynamic -std=c++11"
files="source/sdlmain.cpp"
link_opts="-L libs/SDL2 -lSDL2"

build_command="g++ $build_opts $include_opts $files $link_opts -o $build_path/main" 


printf "Building your sdl2 project.\n\nThis is the build command for posteritys' sake:\n\n"
printf "$build_command\n\n"
$build_command
printf "Build Complete!\n"

sh build_game.sh