build.sh: use $CC (default value is still "cc")
This commit is contained in:
parent
e9f0585e0b
commit
428a1da50e
7
build.sh
7
build.sh
|
@ -26,6 +26,7 @@ then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p bin
|
mkdir -p bin
|
||||||
|
CC="${CC:-cc}"
|
||||||
CFLAGS="-std=c89 -Wall -Wno-unknown-pragmas"
|
CFLAGS="-std=c89 -Wall -Wno-unknown-pragmas"
|
||||||
case "$(uname -s 2>/dev/null)" in
|
case "$(uname -s 2>/dev/null)" in
|
||||||
MSYS_NT*) # MSYS2 on Windows
|
MSYS_NT*) # MSYS2 on Windows
|
||||||
|
@ -51,9 +52,9 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Building.."
|
echo "Building.."
|
||||||
cc ${CFLAGS} src/uxnasm.c -o bin/uxnasm
|
${CC} ${CFLAGS} src/uxnasm.c -o bin/uxnasm
|
||||||
cc ${CFLAGS} ${CORE} src/devices/file.c src/devices/ppu.c src/devices/apu.c src/uxnemu.c ${UXNEMU_LDFLAGS} -o bin/uxnemu
|
${CC} ${CFLAGS} ${CORE} src/devices/file.c src/devices/ppu.c src/devices/apu.c src/uxnemu.c ${UXNEMU_LDFLAGS} -o bin/uxnemu
|
||||||
cc ${CFLAGS} ${CORE} src/devices/file.c src/uxncli.c -o bin/uxncli
|
${CC} ${CFLAGS} ${CORE} src/devices/file.c src/uxncli.c -o bin/uxncli
|
||||||
|
|
||||||
if [ -d "$HOME/bin" ]
|
if [ -d "$HOME/bin" ]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in New Issue