From 90e040f780859208f64f7fb9b5af5e032dfb96e5 Mon Sep 17 00:00:00 2001 From: Tom Sullivan Date: Mon, 25 Jul 2022 17:32:30 +1000 Subject: [PATCH] `strip` built executable After building, strip the executable (both `playback` and `playback.exe`) to reduce the size. For a test video, I have the following size reduction: * `playback`: 83,000 -> 82,600 (-400) * `playback.exe`: 286,957 -> 84,992 (-201,965) --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index abebbd2..f59fb29 100644 --- a/Makefile +++ b/Makefile @@ -8,9 +8,11 @@ data.h: playback: playback.c data.h gcc $(CFLAGS) -o playback playback.c + strip $(@) playback.exe: playback.c data.h i686-w64-mingw32-gcc $(CFLAGS) -o playback.exe playback.c + i686-w64-mingw32-strip $(@) clean: rm -f data