aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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 :