summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2019-02-05 21:46:21 -0600
committerepoch <epoch@hacking.allowed.org>2019-02-05 21:46:21 -0600
commit848a823b1287d8804e8d6170c3ca30ccf7689784 (patch)
treeea9357aa5a2ac4a1b2667a0ec3482d86b994d8b4 /src/Makefile
parentf479b438e6119e83c95b19aaeccd61a8e5eded27 (diff)
downloadhackvr-848a823b1287d8804e8d6170c3ca30ccf7689784.tar.gz
hackvr-848a823b1287d8804e8d6170c3ca30ccf7689784.zip
added --version/-v/version flag/command. changed mouse coords from shrot to int
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
index 7bc082b..81f81f7 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -22,13 +22,20 @@ hackvr_freeglut: LDLIBS=-lm -lGL -lGLU -lglut
hackvr_freeglut: hackvr_freeglut.o graphics_c3_freeglut.o math.o physics.o keyboard.o mouse_die.o keyboard_die.o
hackvr_freeglut.o: LDLIBS=-lm -lGL -lGLU -lglut
+hackvr_freeglut.o: CFLAGS+='-DHVR_VERSION="freeglut"'
+
+hackvr_fb.o: CFLAGS+='-DHVR_VERSION="framebuffer"'
graphics_c3_freeglut.o: LDLIBS=-lm -lGL -lGLU -lglut
hackvr_opengl.o: LDLIBS=-lm -lGL -lGLU -lglut
+hackvr_opengl.o: CFLAGS+='-DHVR_VERSION="opengl"'
+
hackvr_x11.o: LDLIBS=-lm -lX11
+hackvr_x11.o: CFLAGS+='-DHVR_VERSION="x11"'
hackvr_headless.o: CFLAGS=-Wall -pedantic -std=c99 -ffast-math
+hackvr_headless.o: CFLAGS+='-DHVR_VERSION="headless"'
hackvr_headless.o: LDLIBS=-lm
graphics_c3.o: LDLIBS=-lm