From 79d610a7d9e8b8c4c8102b9c2f47d6c7727bb77e Mon Sep 17 00:00:00 2001 From: Sergio Valor Martinez Date: Tue, 22 Nov 2022 12:42:25 +0100 Subject: [PATCH] Actualizado Makefile --- Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Makefile b/Makefile index a774b25..c717848 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,11 @@ macosAppleSiliconRelease = $(executable)-$(version)-macos-apple-silicon.dmg linuxRelease = $(executable)-$(version)-linux.tar.gz windows: + @echo off + g++ $(source) -std=c++11 -Wall -Os -lmingw32 -lws2_32 -lSDL2main -lSDL2 -ffunction-sections -fdata-sections -Wl,--gc-sections -static-libstdc++ -Wl,-subsystem,windows -o $(executable).exe + strip -s -R .comment -R .gnu.version $(executable).exe --strip-unneeded + +windows_debug: @echo off g++ $(source) -D DEBUG -std=c++11 -Wall -Os -lmingw32 -lws2_32 -lSDL2main -lSDL2 -ffunction-sections -fdata-sections -Wl,--gc-sections -static-libstdc++ -Wl,-subsystem,windows -o $(executable).exe strip -s -R .comment -R .gnu.version $(executable).exe --strip-unneeded @@ -50,6 +55,9 @@ windows_release: powershell if (Test-Path $(releaseFolder)) {Remove-Item $(releaseFolder) -Recurse -Force} macos: + clang++ $(source) -std=c++11 -Wall -Os -lSDL2 -ffunction-sections -fdata-sections -o $(executable)_macos + +macos_debug: clang++ $(source) -D DEBUG -std=c++11 -Wall -Os -lSDL2 -ffunction-sections -fdata-sections -o $(executable)_macos macos_release: @@ -106,6 +114,10 @@ macos_release: rm -rdf "$(releaseFolder)" linux: + g++ $(source) -std=c++11 -Wall -Os -lSDL2 -ffunction-sections -fdata-sections -Wl,--gc-sections -o $(executable)_linux + strip -s -R .comment -R .gnu.version $(executable)_linux --strip-unneeded + +linux_debug: g++ $(source) -D DEBUG -std=c++11 -Wall -Os -lSDL2 -ffunction-sections -fdata-sections -Wl,--gc-sections -o $(executable)_linux strip -s -R .comment -R .gnu.version $(executable)_linux --strip-unneeded