BizHawk/ExternalProjects/vrEmu6502/build_linux.sh

12 lines
417 B
Bash
Raw Permalink Normal View History

2024-11-02 10:58:35 +00:00
#!/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
2024-11-03 00:04:20 +00:00
$CC -std=c11 -O3 -fvisibility=hidden -fPIC -shared -s vr6502.c -o build/vrEmu6502.so
2024-11-02 10:58:35 +00:00
2024-11-03 00:04:20 +00:00
cp build/vrEmu6502.so "$BIZHAWKBUILD_HOME/Assets/dll"
2024-11-02 10:58:35 +00:00
if [ -e "$BIZHAWKBUILD_HOME/output" ]; then
2024-11-03 00:04:20 +00:00
cp build/vrEmu6502.so "$BIZHAWKBUILD_HOME/output/dll"
2024-11-02 10:58:35 +00:00
fi