afterburner/compile_osx.sh
ole00 3b4921daa2 build script for OSX: compile with preprocessor _OSX_
The preprocessor symbol helps to distinguish the serial port
detection rule (OSX/Linux).
2024-03-23 16:16:46 +00:00

8 lines
198 B
Bash
Executable File

# path to your Osx cross-compiler
CC=~/opt/osxcross/bin/o64-clang
GCOM=`git rev-parse --short HEAD`
$CC -g3 -O0 -D_OSX_ -DNO_CLOSE -DGCOM="\"g${GCOM}\"" -o afterburner_osx src_pc/afterburner.c