You've already forked smb-decomp
mirror of
https://github.com/encounter/smb-decomp.git
synced 2026-03-30 11:38:28 -07:00
a0214ede7c
* initial work on gcc support * fix more gcc issues * fix ball.c crash when compiled with gcc * fixed white monkey face glitch * no need to support R_PPC_REL32 relocs after all * stop generating .eh_frame and .gnu.attributes sections * fix more instances of undefined behavior
18 lines
253 B
Bash
Executable File
18 lines
253 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Generates a context file for use with decomp.me
|
|
|
|
src_file="$1"
|
|
|
|
if [ -z "$WINE" ]
|
|
then
|
|
WINE=wine
|
|
fi
|
|
|
|
if [ "${2:-}" = "-c" ]; then
|
|
def=-DC_ONLY
|
|
fi
|
|
|
|
"$WINE" mwcc_compiler/1.1/mwcceppc.exe -EP -i src -I- -i include "$def" "$src_file"
|
|
|