Improved build script

This commit is contained in:
Devine Lu Linvega 2023-06-08 10:40:44 -07:00
parent fe4104fb9f
commit 5eedd05253
1 changed files with 5 additions and 6 deletions

View File

@ -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