From 68740c70e4c95c439db7854524e670bc9fd451e6 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Sat, 6 Aug 2016 16:19:04 +0300 Subject: [PATCH] Stripping executables on release to reduce file size --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 0559bedc..6a1a55f3 100644 --- a/Makefile +++ b/Makefile @@ -103,6 +103,9 @@ $(BIN)/Sameboy.app: $(BIN)/Sameboy.app/Contents/MacOS/Sameboy \ $(BIN)/Sameboy.app/Contents/MacOS/Sameboy: $(CORE_OBJECTS) $(COCOA_OBJECTS) -@mkdir -p $(dir $@) $(CC) $^ -o $@ $(LDFLAGS) -framework OpenGL -framework AudioUnit +ifeq ($(CONF), release) + strip $@ +endif $(BIN)/Sameboy.app/Contents/Resources/Base.lproj/%.nib: Cocoa/%.xib ibtool --compile $@ $^ @@ -110,6 +113,9 @@ $(BIN)/Sameboy.app/Contents/Resources/Base.lproj/%.nib: Cocoa/%.xib $(BIN)/sdl/sameboy: $(CORE_OBJECTS) $(SDL_OBJECTS) -@mkdir -p $(dir $@) $(CC) $^ -o $@ $(LDFLAGS) $(SDL_LDFLAGS) +ifeq ($(CONF), release) + strip $@ +endif $(BIN)/BootROMs/%.bin: BootROMs/%.asm -@mkdir -p $(dir $@)