From 2e33ce2e2cdd46a27204fbe4e98ea080df4b69fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20=C4=8C=C3=AD=C5=BE?= Date: Mon, 5 Oct 2020 20:15:04 +0200 Subject: [PATCH] Update build script --- make.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/make.sh b/make.sh index d63ec6e..0b85e13 100755 --- a/make.sh +++ b/make.sh @@ -10,17 +10,20 @@ fi clear; clear; -if [ $1 == "sdl" ]; then +C_FLAGS='-x c -Wall -Wextra -fmax-errors=5 -pedantic -O3 -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -o game' +if [ $1 == "sdl" ]; then # PC SDL build, requires: # - g++ # - SDL2 (dev) package - g++ -x c -g -Wall -Wextra -fmax-errors=5 -pedantic -O3 -Wall -Wextra \ - -Wno-unused-parameter -Wno-missing-field-initializers -o game main_sdl.c \ - -lSDL2 2>&1 >/dev/null && ./game -elif [ $1 == "pokitto" ]; then + g++ ${C_FLAGS} main_sdl.c -lSDL2 2>&1 >/dev/null && ./game +elif [ $1 == "terminal" ]; then + # PC terminal build, requires: + # - g++ + g++ ${C_FLAGS} main_terminal.c 2>&1 >/dev/null && ./game +elif [ $1 == "pokitto" ]; then # Pokitto build, requires: # - PokittoLib, in this folder create a symlink named "PokittoLib" to the # "Pokitto" subfolder of PokittoLib @@ -32,7 +35,6 @@ elif [ $1 == "pokitto" ]; then make ./PokittoEmu BUILD/firmware.bin elif [ $1 == "emscripten" ]; then - # emscripten (browser Javascript) build, requires: # - emscripten