Improved build script
This commit is contained in:
parent
fe4104fb9f
commit
5eedd05253
11
build.sh
11
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
|
||||
|
|
Loading…
Reference in New Issue