summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorMorten Hustveit <morten.hustveit@gmail.com>2014-12-02 14:22:11 -0500
committerMorten Hustveit <morten.hustveit@gmail.com>2014-12-02 14:22:11 -0500
commit0ef8e84c082a80354b502b169b6c79fccffa4405 (patch)
treec62b361bdc570598f7e8035963f8520bfd764702 /Makefile.am
parent706da965d3c7892ef09b83bdf6120f104faa2ede (diff)
Make a headless entry point for benchmarking purposes
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am
index e67837f..2e9d900 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,7 +1,10 @@
-AM_CFLAGS = -Wall -Wextra -pedantic -std=c99
+AM_CFLAGS = -Wall -Wextra -pedantic -std=c99 -flto
-bin_PROGRAMS = ray
+bin_PROGRAMS = ray ray-headless
+
+ray_SOURCES = main_glut.c ray.c 3dmath.c 3dmath.h
ray_LDFLAGS = -lGL -lGLU -lglut -lm -pthread
-ray_SOURCES = ray.c 3dmath.c 3dmath.h
+ray_headless_SOURCES = main_headless.c ray.c 3dmath.c 3dmath.h
+ray_headless_LDFLAGS = -lm -pthread