From 9b220a72d84f8c63addd2a4da6c6d293934ef7f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sigrid=20Solveig=20Hafl=C3=ADnud=C3=B3ttir?= Date: Sun, 26 Dec 2021 08:53:52 +0100 Subject: [PATCH] build script: arch-specific files: move to EXTRA and only link with uxnemu --- build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 1bca221..3c63ee3 100755 --- a/build.sh +++ b/build.sh @@ -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" ]