From 7796cee51a9a6d503b6307838f3b5b9e4edfc596 Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Thu, 13 Oct 2022 10:41:22 +0200 Subject: [PATCH] Actualizado Makefile --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 99ec3f7..a65c471 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,8 @@ executable = coffee_crisis windows: @echo off if not exist bin\ (mkdir bin) - g++ -std=c++11 -Wall -O2 source/*.cpp -lmingw32 -lSDL2main -lSDL2 -o bin/$(executable).exe + g++ -std=c++11 -Wall -O2 source/*.cpp -lmingw32 -lSDL2main -lSDL2 -ffunction-sections -fdata-sections -Wl,--gc-sections -o bin/$(executable).exe + strip -s -R .comment -R .gnu.version bin/$(executable).exe --strip-unneeded macos: mkdir -p bin g++ source/*.cpp -std=c++11 -Wall -O2 -lSDL2 -o bin/$(executable)_macos