From 5eedd05253b16a207477f03757e883f5d37228c1 Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Thu, 8 Jun 2023 10:40:44 -0700 Subject: [PATCH] Improved build script --- build.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/build.sh b/build.sh index 7662223..f2b106d 100755 --- a/build.sh +++ b/build.sh @@ -26,19 +26,18 @@ mkdir -p bin cc ${RELEASE_FLAGS} src/uxnasm.c -o bin/uxnasm -if [ "${1}" = '--release' ]; +if [ "${1}" = '--debug' ]; then - gcc ${C_FLAGS} ${LD_FLAGS} ${RELEASE_FLAGS} ${EMU_INC} - gcc ${C_FLAGS} ${LD_FLAGS} ${RELEASE_FLAGS} ${CLI_INC} -else gcc ${C_FLAGS} ${LD_FLAGS} ${DEBUG_FLAGS} ${EMU_INC} gcc ${C_FLAGS} ${LD_FLAGS} ${DEBUG_FLAGS} ${CLI_INC} + +else + gcc ${C_FLAGS} ${LD_FLAGS} ${RELEASE_FLAGS} ${EMU_INC} + gcc ${C_FLAGS} ${LD_FLAGS} ${RELEASE_FLAGS} ${CLI_INC} fi if [ "${1}" = '--install' ]; then - gcc ${C_FLAGS} ${LD_FLAGS} ${RELEASE_FLAGS} ${EMU_INC} - gcc ${C_FLAGS} ${LD_FLAGS} ${RELEASE_FLAGS} ${CLI_INC} cp bin/uxn11 bin/uxnemu cp bin/uxnemu bin/uxnasm bin/uxncli $HOME/bin/ fi