Browse code

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

Sigrid Solveig Haflínudóttir authored on 26/12/2021 07:53:52
Showing 1 changed files
... ...
@@ -56,12 +56,12 @@ else
56 56
 	CORE='src/uxn-fast.c'
57 57
 	ARCH=`${CC} -dumpmachine 2> /dev/null || echo nope`
58 58
 	ARCH=${ARCH%%-*}
59
-	CORE="${CORE} `find src -name *_${ARCH}.c 2> /dev/null || true`"
59
+	EXTRA=`find src -name *_${ARCH}.c 2> /dev/null || true`
60 60
 fi
61 61
 
62 62
 echo "Building.."
63 63
 ${CC} ${CFLAGS} src/uxnasm.c -o bin/uxnasm
64
-${CC} ${CFLAGS} ${CORE} src/devices/file.c src/devices/ppu.c src/devices/apu.c src/uxnemu.c ${UXNEMU_LDFLAGS} -o bin/uxnemu
64
+${CC} ${CFLAGS} ${CORE} src/devices/file.c src/devices/ppu.c src/devices/apu.c src/uxnemu.c ${EXTRA} ${UXNEMU_LDFLAGS} -o bin/uxnemu
65 65
 ${CC} ${CFLAGS} ${CORE} src/devices/file.c src/uxncli.c -o bin/uxncli
66 66
 
67 67
 if [ -d "$HOME/bin" ]