summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
index b7aec54..5e233f7 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,3 +1,5 @@
+.PHONY: all install clean uninstall
+
CFLAGS=-Wall -pedantic -std=c99 -DGRAPHICAL -ffast-math
#all: hackvr_headless hackvr_x11 hackvr_opengl slowcat ### when hackvr_opengl gets useful at all I'll start including it in default build.
@@ -29,6 +31,16 @@ graphics_c2_opengl.o: LDLIBS=-lm -lGL -lGLU -lglut
graphics_cs_opengl.o: LDLIBS=-lm -lGL -lGLU -lglut
math.o: LDLIBS=-lm
+install:
+ install hackvr $(PREFIX)/bin/hackvr
+ install hackvr_x11 $(PREFIX)/bin/hackvr_x11
+ install slowcat $(PREFIX)/bin/slowcat
+
+uninstall:
+ rm $(PREFIX)/bin/hackvr
+ rm $(PREFIX)/bin/hackvr_x11
+ rm $(PREFIX)/bin/slowcat
+
clean:
rm -f hackvr
rm -f hackvr_headless