commit 9b220a72d84f8c63addd2a4da6c6d293934ef7f7 parent 6338f8d9a2043672ad58bcf9eb0ea83cf13c8d82 Author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com> Date: Sun, 26 Dec 2021 08:53:52 +0100 build script: arch-specific files: move to EXTRA and only link with uxnemu Diffstat:
M | build.sh | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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" ]