build script: arch-specific files: move to EXTRA and only link with uxnemu

This commit is contained in:
Sigrid Solveig Haflínudóttir 2021-12-26 08:53:52 +01:00
parent 6338f8d9a2
commit 9b220a72d8
1 changed files with 2 additions and 2 deletions

View File

@ -56,12 +56,12 @@ else
CORE='src/uxn-fast.c'
ARCH=`${CC} -dumpmachine 2> /dev/null || echo nope`
ARCH=${ARCH%%-*}
CORE="${CORE} `find src -name *_${ARCH}.c 2> /dev/null || true`"
EXTRA=`find src -name *_${ARCH}.c 2> /dev/null || true`
fi
echo "Building.."
${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 ${EXTRA} ${UXNEMU_LDFLAGS} -o bin/uxnemu
${CC} ${CFLAGS} ${CORE} src/devices/file.c src/uxncli.c -o bin/uxncli
if [ -d "$HOME/bin" ]