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