summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2018-01-02 06:02:45 -0600
committerepoch <epoch@hacking.allowed.org>2018-01-02 06:02:45 -0600
commitecdf070d79d479655f2a75936845a454cbed84b3 (patch)
tree423d8d30a2e90cb751348e5f8d50a57abaee6768 /src
parent44d8f3acca9a236373df1ced55dd9ddaf76e5d2b (diff)
downloadhackvr-ecdf070d79d479655f2a75936845a454cbed84b3.tar.gz
hackvr-ecdf070d79d479655f2a75936845a454cbed84b3.zip
added install and uninstall and a Makefile to the root dir.
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