diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2017-07-26 17:38:26 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2017-07-26 17:38:26 +0200 |
commit | dc9f5457ee20ab17bb54551497703e9d9bf91573 (patch) | |
tree | a8a15e88925c2fd7ec01c3d9916f4369ad0f38fb /build.sh |
Initial commit.
This is the ray tracer/path tracer I've written for Otwarty Międzyszkolny Konkurs Fizyczny in March/April of 2014.
There is no proper history as back then I had no idea how to use a VCS.
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..ca04100 --- /dev/null +++ b/build.sh @@ -0,0 +1,8 @@ +#!/bin/bash +INPUT="main.c u_platform.c u_math.c u_misc.c u_world.c u_ray.c player.c" +OUTPUT="rrt" +FLAGS_CC="-Wall -O3 -fno-diagnostics-show-caret -Wno-unused-result -ffast-math -march=native" +FLAGS_LD="-lSDL2 -lSDL2_image -lrt -lm" + +echo "-------------------------" +gcc $INPUT -o $OUTPUT $FLAGS_CC $FLAGS_LD |