summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2017-01-07 14:33:39 -0600
committerepoch <epoch@hacking.allowed.org>2017-01-07 14:33:39 -0600
commit03c135688893423cf3fde2c0576ff64407eab6aa (patch)
treeb8edab34bdd21bb392417dfae5e924e8264a2edf
parent9ab713a1b279372a9fad8b49473ca03351e2d27f (diff)
downloadhackvr-03c135688893423cf3fde2c0576ff64407eab6aa.tar.gz
hackvr-03c135688893423cf3fde2c0576ff64407eab6aa.zip
working on opengl but set defaults back to x11
-rw-r--r--src/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
index 6ae7cee..4e93005 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -6,8 +6,15 @@ CFLAGS=-Wall -pedantic -std=c99 -DGRAPHICAL -ffast-math
all: hackvr slowcat
+#for x11
hackvr: LDLIBS=-lm -lX11
+#for opengl
+#hackvr: LDLIBS=-lm -lGL -lGLU -lglut
+
hackvr: hackvr.o graphics.o graphics_x11.o
+#hackvr: hackvr.o graphics.o graphics_opengl.o
+
+graphics_opengl.o: LDLIBS=-lm -lGL -lGLU -lglut
graphics_x11.o: LDLIBS=-lm -lX11