summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2017-01-09 01:08:12 -0600
committerepoch <epoch@hacking.allowed.org>2017-01-09 01:08:12 -0600
commitd6e8fd3a5d3b6d07e26a00cbf610d5587e2840a4 (patch)
tree847db9464d84d8bf7eba496742ba27143e0ca0f2 /src/Makefile
parent7716223ab6f9024300003097d680f498629175be (diff)
downloadhackvr-d6e8fd3a5d3b6d07e26a00cbf610d5587e2840a4.tar.gz
hackvr-d6e8fd3a5d3b6d07e26a00cbf610d5587e2840a4.zip
made all versions get built by default and moved some functions from graphics.c into math.c so the headless does not need graphics.c
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile29
1 files changed, 17 insertions, 12 deletions
diff --git a/src/Makefile b/src/Makefile
index 4e93005..1366de2 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -2,27 +2,32 @@
### and add graphics.o to hackvr build target.
### fuck it. I'll fix it later.
CFLAGS=-Wall -pedantic -std=c99 -DGRAPHICAL -ffast-math
-#CFLAGS=-std=c99 -DGRAPHICAL -ffast-math
-all: hackvr slowcat
+all: hackvr_headless hackvr_x11 hackvr_opengl slowcat
-#for x11
-hackvr: LDLIBS=-lm -lX11
-#for opengl
-#hackvr: LDLIBS=-lm -lGL -lGLU -lglut
+hackvr_headless: LDLIBS=-lm
+hackvr_headless: CFLAGS=-Wall -pedantic -std=c99 -ffast-math
+hackvr_headless: hackvr_headless.o math.o
-hackvr: hackvr.o graphics.o graphics_x11.o
-#hackvr: hackvr.o graphics.o graphics_opengl.o
+hackvr_x11: LDLIBS=-lm -lX11
+hackvr_x11: hackvr_x11.o graphics.o graphics_x11.o math.o
-graphics_opengl.o: LDLIBS=-lm -lGL -lGLU -lglut
-
-graphics_x11.o: LDLIBS=-lm -lX11
+hackvr_opengl: LDLIBS=-lm -lGL -lGLU -lglut
+hackvr_opengl: hackvr_opengl.o graphics.o graphics_opengl.o math.o
-hackvr.o: LDLIBS=-lm -lX11
+hackvr_opengl.o: LDLIBS=-lm -lGL -lGLU -lglut
+hackvr_x11.o: LDLIBS=-lm -lX11
+hackvr_headless.o: LDLIBS=-lm
graphics.o: LDLIBS=-lm -lX11
+graphics_x11.o: LDLIBS=-lm -lX11
+graphics_opengl.o: LDLIBS=-lm -lGL -lGLU -lglut
+math.o: LDLIBS=-lm
clean:
rm -f hackvr
+ rm -f hackvr_headless
+ rm -f hackvr_opengl
+ rm -f hackvr_x11
rm -f slowcat
rm -f *.o