summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2017-07-26 17:38:26 +0200
committerPaweł Redman <pawel.redman@gmail.com>2017-07-26 17:38:26 +0200
commitdc9f5457ee20ab17bb54551497703e9d9bf91573 (patch)
treea8a15e88925c2fd7ec01c3d9916f4369ad0f38fb /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-xbuild.sh8
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