From eb185755c2c2db56ab3cef7b9138cd95a867809e Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Mon, 10 Oct 2022 09:10:49 +0200 Subject: [PATCH] Actualizado Makefile --- Makefile | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 3ba3397..99f5ad9 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,17 @@ +executable = volcano_2022 + +windows: + @echo off + if not exist bin\ (mkdir bin) + g++ -std=c++11 -Wall -O2 source/*.cpp -lmingw32 -lSDL2main -lSDL2 -o bin/$(executable).exe macos: mkdir -p bin - g++ source/*.cpp -std=c++11 -Wall -O2 -lSDL2 -o bin/volcano_macos + g++ source/*.cpp -std=c++11 -Wall -O2 -lSDL2 -o bin/$(executable)_macos linux: mkdir -p bin - g++ source/*.cpp -std=c++11 -Wall -O2 -lSDL2 -o bin/volcano_linux \ No newline at end of file + g++ source/*.cpp -std=c++11 -Wall -Os -lSDL2 -ffunction-sections -fdata-sections -Wl,--gc-sections -o bin/$(executable)_linux + strip -s -R .comment -R .gnu.version bin/$(executable)_linux --strip-unneeded +opendingux: + mkdir -p bin + /opt/gcw0-toolchain/usr/bin/mipsel-linux-gcc -D GCWZERO -O2 -std=c++11 -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL2 -D_GNU_SOURCE=1 -D_REENTRANT -lSDL2 -lSDL2_mixer -lstdc++ source/*.cpp -o bin/$(executable)_opendingux + /opt/gcw0-toolchain/usr/bin/mksquashfs ./default.gcw0.desktop ./icon.png ./bin ./data ./media coffee_crisis.opk -all-root -noappend -no-exports -no-xattrs \ No newline at end of file