mirror of
https://gitlab.com/drummyfish/anarch.git
synced 2024-11-21 16:35:08 -05:00
Update script
This commit is contained in:
parent
1cfd3f21eb
commit
0002cd8244
8
make.sh
8
make.sh
@ -14,7 +14,7 @@ fi
|
|||||||
|
|
||||||
clear; clear;
|
clear; clear;
|
||||||
|
|
||||||
C_FLAGS='-x c -Wall -Wextra -fmax-errors=5 -pedantic -O3 -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -o game'
|
C_FLAGS='-x c -Wall -Wextra -fmax-errors=5 -pedantic -O3 -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -o anarch'
|
||||||
|
|
||||||
COMPILER='g++'
|
COMPILER='g++'
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ if [ $1 == "sdl" ]; then
|
|||||||
|
|
||||||
echo ${COMMAND}
|
echo ${COMMAND}
|
||||||
|
|
||||||
${COMMAND} && ./game
|
${COMMAND} && ./anarch
|
||||||
elif [ $1 == "terminal" ]; then
|
elif [ $1 == "terminal" ]; then
|
||||||
# PC terminal build, requires:
|
# PC terminal build, requires:
|
||||||
# - g++
|
# - g++
|
||||||
@ -48,7 +48,7 @@ elif [ $1 == "terminal" ]; then
|
|||||||
|
|
||||||
echo ${COMMAND}
|
echo ${COMMAND}
|
||||||
|
|
||||||
${COMMAND} && sudo ./game
|
${COMMAND} && sudo ./anarch
|
||||||
elif [ $1 == "pokitto" ]; then
|
elif [ $1 == "pokitto" ]; then
|
||||||
# Pokitto build, requires:
|
# Pokitto build, requires:
|
||||||
# - PokittoLib, in this folder create a symlink named "PokittoLib" to the
|
# - PokittoLib, in this folder create a symlink named "PokittoLib" to the
|
||||||
@ -64,7 +64,7 @@ elif [ $1 == "emscripten" ]; then
|
|||||||
# emscripten (browser Javascript) build, requires:
|
# emscripten (browser Javascript) build, requires:
|
||||||
# - emscripten
|
# - emscripten
|
||||||
|
|
||||||
../emsdk/upstream/emscripten/emcc ./main_sdl.c -s USE_SDL=2 -O3 -lopenal --shell-file HTMLshell.html -o game.html -s EXPORTED_FUNCTIONS='["_main","_webButton"]' -s EXPORTED_RUNTIME_METHODS='["ccall","cwrap"]'
|
../emsdk/upstream/emscripten/emcc ./main_sdl.c -s USE_SDL=2 -O3 -lopenal --shell-file HTMLshell.html -o anarch.html -s EXPORTED_FUNCTIONS='["_main","_webButton"]' -s EXPORTED_RUNTIME_METHODS='["ccall","cwrap"]'
|
||||||
else
|
else
|
||||||
echo "unknown parameter: $1"
|
echo "unknown parameter: $1"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user