diff options
author | cnlohr <lohr85@gmail.com> | 2016-12-20 02:37:52 -0500 |
---|---|---|
committer | cnlohr <lohr85@gmail.com> | 2016-12-20 02:37:52 -0500 |
commit | 0fb1ec7b12f5c0dbe8e82d7d029e900751fc6c6a (patch) | |
tree | 2f569e83c5049240fb1c4e313be4a1574bae564d /Makefile | |
parent | 689ab79972b969f6eff4adcfca71fec567006e93 (diff) | |
download | libsurvive-0fb1ec7b12f5c0dbe8e82d7d029e900751fc6c6a.tar.gz libsurvive-0fb1ec7b12f5c0dbe8e82d7d029e900751fc6c6a.tar.bz2 |
fix cleaning objects in makefile, add -flto
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |