From 82c5e27152ffd270d7aecd03192c0607198e723b Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Wed, 24 Jul 2024 11:53:04 +0200 Subject: [PATCH] actualizado Makefile --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 497ddd3..8710629 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,12 @@ name = paleta -executable = $(name).o +executable = $(name) source = *.cpp +windows: + g++ $(source) -std=c++11 -Wall -Os -lSDL2 -Wl,-subsystem,windows -static-libstdc++ -o $(executable).exe + linux: - g++ $(source) -std=c++11 -Wall -Os -lSDL2 -o "$(executable)" + g++ $(source) -std=c++11 -Wall -Os -lSDL2 -o $(executable).o macos: - clang++ $(source) -std=c++11 -Wall -Os -lSDL2 -ffunction-sections -fdata-sections -o $(executable) \ No newline at end of file + clang++ $(source) -std=c++11 -Wall -Os -lSDL2 -ffunction-sections -fdata-sections -o $(executable).o \ No newline at end of file