aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorcnlohr <lohr85@gmail.com>2016-12-20 02:37:52 -0500
committercnlohr <lohr85@gmail.com>2016-12-20 02:37:52 -0500
commit0fb1ec7b12f5c0dbe8e82d7d029e900751fc6c6a (patch)
tree2f569e83c5049240fb1c4e313be4a1574bae564d /Makefile
parent689ab79972b969f6eff4adcfca71fec567006e93 (diff)
downloadlibsurvive-0fb1ec7b12f5c0dbe8e82d7d029e900751fc6c6a.tar.gz
libsurvive-0fb1ec7b12f5c0dbe8e82d7d029e900751fc6c6a.tar.bz2
fix cleaning objects in makefile, add -flto
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index b46a784..dbd4869 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
all : lib data_recorder test
-CFLAGS:=-Iinclude -fPIC -g -Os -Iredist
-LDFLAGS:=-lpthread -lusb-1.0 -lz -lX11
+CFLAGS:=-Iinclude -fPIC -g -Os -Iredist -flto
+LDFLAGS:=-lpthread -lusb-1.0 -lz -lX11 -flto
test : test.c lib/libsurvive.so redist/os_generic.o
gcc -o $@ $^ $(LDFLAGS) $(CFLAGS)
@@ -16,7 +16,7 @@ lib/libsurvive.so : src/survive.o src/survive_usb.o src/survive_data.o src/survi
gcc -o $@ $^ $(LDFLAGS) -shared
clean :
- rm -rf *.o src/*.o *~ src/*~ test libsurvive.so
+ rm -rf *.o src/*.o *~ src/*~ test data_recorder lib/libsurvive.so