Files
smb-decomp/make_context.sh
camthesaxman a0214ede7c Allow compiling with gcc (#35)
* 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
2022-06-05 20:38:16 -05:00

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"