summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2016-12-21 11:58:30 -0600
committerepoch <epoch@hacking.allowed.org>2016-12-21 11:58:30 -0600
commitf7353ec277198b295c6c842a4a4a07b403b2a572 (patch)
tree76196d53de0ad7de24c1359589c154e44ad16b6a /src/Makefile
parent31678be1711af6afeb1ba9a7d02cc44e26ee9520 (diff)
downloadhackvr-f7353ec277198b295c6c842a4a4a07b403b2a572.tar.gz
hackvr-f7353ec277198b295c6c842a4a4a07b403b2a572.zip
trying to split up hackvr.c into graphical and non-graphical stuff to make it easier to port it to different graphic systems
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
new file mode 100644
index 0000000..136e8d2
--- /dev/null
+++ b/src/Makefile
@@ -0,0 +1,20 @@
+### if you want X11: CFLAGS=-Wall -pedantic -std=c99 -DGRAPHICAL
+### and add graphics.o to hackvr build target.
+### fuck it. I'll fix it later.
+CFLAGS=-Wall -pedantic -std=c99 -DGRAPHICAL
+
+all: hackvr slowcat
+
+hackvr: LDLIBS=-lm -lX11
+hackvr: hackvr.o graphics.o
+
+# x11.o: LDLIBS=-lm -lX11
+
+hackvr.o: LDLIBS=-lm -lX11
+
+graphics.o: LDLIBS=-lm -lX11
+
+clean:
+ rm hackvr
+ rm slowcat
+ rm *.o