12 lines
417 B
Bash
12 lines
417 B
Bash
#!/bin/sh
|
|
if [ -z "$BIZHAWKBUILD_HOME" ]; then export BIZHAWKBUILD_HOME="$(realpath "$(dirname "$0")/../..")"; fi
|
|
if [ -z "$CC" ]; then export CXX="clang"; fi
|
|
|
|
mkdir -p build
|
|
$CC -std=c11 -O3 -fvisibility=hidden -fPIC -shared -s vr6502.c -o build/vrEmu6502.so
|
|
|
|
cp build/vrEmu6502.so "$BIZHAWKBUILD_HOME/Assets/dll"
|
|
if [ -e "$BIZHAWKBUILD_HOME/output" ]; then
|
|
cp build/vrEmu6502.so "$BIZHAWKBUILD_HOME/output/dll"
|
|
fi
|