forked from jaildesigner-jailgames/jaildoctors_dilemma
Actualizado Makefile
This commit is contained in:
9
Makefile
9
Makefile
@@ -1,5 +1,6 @@
|
||||
executable = jaildoctors_dilemma
|
||||
source = source/*.cpp source/common/*.cpp
|
||||
macosBundle = ../jaildoctors_dilemma_release/jaildoctors_dilemma.app/Contents/
|
||||
|
||||
windows:
|
||||
@echo off
|
||||
@@ -7,8 +8,16 @@ windows:
|
||||
g++ $(source) -std=c++11 -Wall -O2 -lmingw32 -lSDL2main -lSDL2 -ffunction-sections -fdata-sections -Wl,--gc-sections -static-libstdc++ -Wl,-subsystem,windows -o $(executable).exe
|
||||
strip -s -R .comment -R .gnu.version $(executable).exe --strip-unneeded
|
||||
macos:
|
||||
rm -rdf data/config
|
||||
mkdir -p data/config
|
||||
g++ $(source) -std=c++11 -Wall -O2 -lSDL2 -ffunction-sections -fdata-sections -o $(executable)_macos
|
||||
macos_f:
|
||||
rm -rdf data/config
|
||||
mkdir -p data/config
|
||||
cp data $(macosBundle)Resources
|
||||
cp $(macosBundle)/Frameworks .
|
||||
clang++ $(source) -std=c++11 -Wall -O2 -framework SDL2 -F ./Frameworks -ffunction-sections -fdata-sections -o $(macosBundle)MacOS/$(executable) -rpath @executable_path/../Frameworks/ -target x86_64-apple-macos10.12
|
||||
rm -rdf ./Frameworks
|
||||
linux:
|
||||
mkdir -p data/config
|
||||
g++ $(source) -std=c++11 -Wall -Os -lSDL2 -ffunction-sections -fdata-sections -Wl,--gc-sections -o $(executable)_linux
|
||||
|
||||
Reference in New Issue
Block a user