From 0fb1ec7b12f5c0dbe8e82d7d029e900751fc6c6a Mon Sep 17 00:00:00 2001 From: cnlohr Date: Tue, 20 Dec 2016 02:37:52 -0500 Subject: fix cleaning objects in makefile, add -flto --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3