new makefile

This commit is contained in:
2021-09-06 17:29:23 +02:00
parent f70145a0bf
commit b408de5fa0
2 changed files with 1 additions and 58 deletions

View File

@@ -2,8 +2,7 @@ executable = coffee_crisis
macos:
mkdir -p bin
g++ source/*.cpp -std=c++11 -Os -lSDL2 -ffunction-sections -fdata-sections -Wl,--gc-sections -o bin/$(executable)_macos
strip -s -R .comment -R .gnu.version bin/$(executable)_macos --strip-unneeded
g++ -std=c++11 -Wall -O2 source/*.cpp -o bin/$(executable)_macos -lSDL2
linux:
mkdir -p bin
g++ source/*.cpp -std=c++11 -Os -lSDL2 -ffunction-sections -fdata-sections -Wl,--gc-sections -o bin/$(executable)_linux