aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCharles Lohr <lohr85@gmail.com>2016-12-11 00:03:40 -0500
committerCharles Lohr <lohr85@gmail.com>2016-12-11 00:03:40 -0500
commit44d7e56bf6a419104fee5dd2aedc26e00e543d69 (patch)
tree91567a4cfced76249981f616cf22781995989c58 /Makefile
parent4d5a42768f142c25c2efa6c6fd54e1f0dc484f70 (diff)
downloadlibsurvive-44d7e56bf6a419104fee5dd2aedc26e00e543d69.tar.gz
libsurvive-44d7e56bf6a419104fee5dd2aedc26e00e543d69.tar.bz2
* Get config from headset.
* Make pretty display. * Improve disambiguation.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 77aee01..29c05a1 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,13 @@
all : test
-CFLAGS:=-Iinclude -fPIC -g -Os
-LDFLAGS:=-lpthread -lusb-1.0 -lz
+CFLAGS:=-Iinclude -fPIC -g -Os -Iredist
+LDFLAGS:=-lpthread -lusb-1.0 -lz -lX11 -lXinerama
+DEBUGSTUFF:=redist/os_generic.o redist/DrawFunctions.o redist/XDriver.o
test : test.c lib/libsurvive.so
gcc -o $@ $^ $(LDFLAGS) $(CFLAGS)
-lib/libsurvive.so : src/survive.o src/survive_usb.o src/survive_data.o src/survive_process.o
+lib/libsurvive.so : src/survive.o src/survive_usb.o src/survive_data.o src/survive_process.o redist/jsmn.o $(DEBUGSTUFF)
gcc -o $@ $^ $(LDFLAGS) -shared
clean :