| ... | ... |
@@ -26,6 +26,7 @@ then |
| 26 | 26 |
fi |
| 27 | 27 |
|
| 28 | 28 |
mkdir -p bin |
| 29 |
+CC="${CC:-cc}"
|
|
| 29 | 30 |
CFLAGS="-std=c89 -Wall -Wno-unknown-pragmas" |
| 30 | 31 |
case "$(uname -s 2>/dev/null)" in |
| 31 | 32 |
MSYS_NT*) # MSYS2 on Windows |
| ... | ... |
@@ -51,9 +52,9 @@ else |
| 51 | 52 |
fi |
| 52 | 53 |
|
| 53 | 54 |
echo "Building.." |
| 54 |
-cc ${CFLAGS} src/uxnasm.c -o bin/uxnasm
|
|
| 55 |
-cc ${CFLAGS} ${CORE} src/devices/file.c src/devices/ppu.c src/devices/apu.c src/uxnemu.c ${UXNEMU_LDFLAGS} -o bin/uxnemu
|
|
| 56 |
-cc ${CFLAGS} ${CORE} src/devices/file.c src/uxncli.c -o bin/uxncli
|
|
| 55 |
+${CC} ${CFLAGS} src/uxnasm.c -o bin/uxnasm
|
|
| 56 |
+${CC} ${CFLAGS} ${CORE} src/devices/file.c src/devices/ppu.c src/devices/apu.c src/uxnemu.c ${UXNEMU_LDFLAGS} -o bin/uxnemu
|
|
| 57 |
+${CC} ${CFLAGS} ${CORE} src/devices/file.c src/uxncli.c -o bin/uxncli
|
|
| 57 | 58 |
|
| 58 | 59 |
if [ -d "$HOME/bin" ] |
| 59 | 60 |
then |