1
0

actualizado Makefile

This commit is contained in:
2024-07-24 11:53:04 +02:00
parent 6f73af6811
commit 82c5e27152

View File

@@ -1,9 +1,12 @@
name = paleta name = paleta
executable = $(name).o executable = $(name)
source = *.cpp source = *.cpp
windows:
g++ $(source) -std=c++11 -Wall -Os -lSDL2 -Wl,-subsystem,windows -static-libstdc++ -o $(executable).exe
linux: linux:
g++ $(source) -std=c++11 -Wall -Os -lSDL2 -o "$(executable)" g++ $(source) -std=c++11 -Wall -Os -lSDL2 -o $(executable).o
macos: macos:
clang++ $(source) -std=c++11 -Wall -Os -lSDL2 -ffunction-sections -fdata-sections -o $(executable) clang++ $(source) -std=c++11 -Wall -Os -lSDL2 -ffunction-sections -fdata-sections -o $(executable).o