aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorcnlohr <lohr85@gmail.com>2017-02-16 14:44:54 -0500
committercnlohr <lohr85@gmail.com>2017-02-16 14:44:54 -0500
commitf2d014016d73f067c224ee222bc3eab910848914 (patch)
treee98df6e5d4e85f8bd35c184b0136968c7e07af90 /Makefile
parentf782146df94b3b54965c2aed696d49e86870046d (diff)
parent05ff11b162145e327ba5839f77be09df5289f4d1 (diff)
downloadlibsurvive-f2d014016d73f067c224ee222bc3eab910848914.tar.gz
libsurvive-f2d014016d73f067c224ee222bc3eab910848914.tar.bz2
Merge branch 'axlecrusher-master'
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index dbd4869..797c257 100644
--- a/Makefile
+++ b/Makefile
@@ -1,18 +1,23 @@
-all : lib data_recorder test
+all : lib data_recorder test calibrate
CFLAGS:=-Iinclude -fPIC -g -Os -Iredist -flto
LDFLAGS:=-lpthread -lusb-1.0 -lz -lX11 -flto
+# unused: redist/crc32.c
+
test : test.c lib/libsurvive.so redist/os_generic.o
gcc -o $@ $^ $(LDFLAGS) $(CFLAGS)
data_recorder : data_recorder.c lib/libsurvive.so redist/os_generic.o redist/DrawFunctions.o redist/XDriver.o
gcc -o $@ $^ $(LDFLAGS) $(CFLAGS)
+calibrate : calibrate.c lib/libsurvive.so redist/os_generic.c redist/DrawFunctions.c redist/XDriver.c
+ 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)
+lib/libsurvive.so : src/survive.o src/survive_usb.o src/survive_data.o src/survive_process.o redist/jsmn.o src/survive_cal.o src/ootx_decoder.o $(DEBUGSTUFF)
gcc -o $@ $^ $(LDFLAGS) -shared
clean :