mirror of
https://gitlab.com/drummyfish/anarch.git
synced 2025-02-16 07:00:11 -05:00
Update build script
This commit is contained in:
parent
a2c9302603
commit
95e12e5fc0
2
game.h
2
game.h
@ -4510,7 +4510,7 @@ void SFG_draw()
|
|||||||
RCL_Unit headBobOffset = 0;
|
RCL_Unit headBobOffset = 0;
|
||||||
|
|
||||||
#if SFG_HEADBOB_SHEAR != 0
|
#if SFG_HEADBOB_SHEAR != 0
|
||||||
int16_t headBobShearOffset;
|
int16_t headBobShearOffset = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (SFG_game.state != SFG_GAME_STATE_LOSE)
|
if (SFG_game.state != SFG_GAME_STATE_LOSE)
|
||||||
|
16
make.sh
16
make.sh
@ -1,4 +1,4 @@
|
|||||||
# Build script for Anarch.
|
# Optional helper build script for Anarch.
|
||||||
# by drummyfish, released under CC0 1.0, public domain
|
# by drummyfish, released under CC0 1.0, public domain
|
||||||
#
|
#
|
||||||
# usage:
|
# usage:
|
||||||
@ -22,17 +22,27 @@ if [ $# -eq 2 ]; then
|
|||||||
COMPILER=$2
|
COMPILER=$2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "compiling"
|
||||||
|
|
||||||
if [ $1 == "sdl" ]; then
|
if [ $1 == "sdl" ]; then
|
||||||
# PC SDL build, requires:
|
# PC SDL build, requires:
|
||||||
# - g++
|
# - g++
|
||||||
# - SDL2 (dev) package
|
# - SDL2 (dev) package
|
||||||
|
|
||||||
${COMPILER} ${C_FLAGS} main_sdl.c -lSDL2 2>&1 >/dev/null && ./game
|
COMMAND="${COMPILER} ${C_FLAGS} main_sdl.c -lSDL2"
|
||||||
|
|
||||||
|
echo ${COMMAND}
|
||||||
|
|
||||||
|
${COMMAND} && ./game
|
||||||
elif [ $1 == "terminal" ]; then
|
elif [ $1 == "terminal" ]; then
|
||||||
# PC terminal build, requires:
|
# PC terminal build, requires:
|
||||||
# - g++
|
# - g++
|
||||||
|
|
||||||
${COMPILER} ${C_FLAGS} main_terminal.c 2>&1 >/dev/null && ./game
|
COMMAND="${COMPILER} ${C_FLAGS} main_terminal.c"
|
||||||
|
|
||||||
|
echo ${COMMAND}
|
||||||
|
|
||||||
|
${COMMAND} && ./game
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user