build script: arch-specific files: move to EXTRA and only link with uxnemu
This commit is contained in:
parent
6338f8d9a2
commit
9b220a72d8
4
build.sh
4
build.sh
|
@ -56,12 +56,12 @@ else
|
||||||
CORE='src/uxn-fast.c'
|
CORE='src/uxn-fast.c'
|
||||||
ARCH=`${CC} -dumpmachine 2> /dev/null || echo nope`
|
ARCH=`${CC} -dumpmachine 2> /dev/null || echo nope`
|
||||||
ARCH=${ARCH%%-*}
|
ARCH=${ARCH%%-*}
|
||||||
CORE="${CORE} `find src -name *_${ARCH}.c 2> /dev/null || true`"
|
EXTRA=`find src -name *_${ARCH}.c 2> /dev/null || true`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Building.."
|
echo "Building.."
|
||||||
${CC} ${CFLAGS} src/uxnasm.c -o bin/uxnasm
|
${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
|
${CC} ${CFLAGS} ${CORE} src/devices/file.c src/uxncli.c -o bin/uxncli
|
||||||
|
|
||||||
if [ -d "$HOME/bin" ]
|
if [ -d "$HOME/bin" ]
|
||||||
|
|
Loading…
Reference in New Issue