aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d688287..b46a784 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-all : data_recorder test
+all : lib data_recorder test
CFLAGS:=-Iinclude -fPIC -g -Os -Iredist
LDFLAGS:=-lpthread -lusb-1.0 -lz -lX11
@@ -9,6 +9,9 @@ test : test.c lib/libsurvive.so redist/os_generic.o
data_recorder : data_recorder.c lib/libsurvive.so redist/os_generic.o redist/DrawFunctions.o redist/XDriver.o
gcc -o $@ $^ $(LDFLAGS) $(CFLAGS)
+lib:
+ mkdir lib
+
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