diff --git a/compile.sh b/compile.sh index 254c5bd..e787fd2 100755 --- a/compile.sh +++ b/compile.sh @@ -1 +1,5 @@ -gcc -g3 -O0 -DNO_CLOSE -o afterburner src_pc/afterburner.c + +GCOM=`git rev-parse --short HEAD` + + +gcc -g3 -O0 -DNO_CLOSE -DGCOM="\"g${GCOM}\"" -o afterburner src_pc/afterburner.c diff --git a/compile_osx.sh b/compile_osx.sh index fb6020f..8badbc5 100755 --- a/compile_osx.sh +++ b/compile_osx.sh @@ -1,4 +1,7 @@ # path to your Osx cross-compiler CC=~/opt/osxcross/bin/o64-clang -$CC -g3 -O0 -DNO_CLOSE -o afterburner_osx src_pc/afterburner.c +GCOM=`git rev-parse --short HEAD` + + +$CC -g3 -O0 -DNO_CLOSE -DGCOM="\"g${GCOM}\"" -o afterburner_osx src_pc/afterburner.c diff --git a/compile_win64.sh b/compile_win64.sh index 3bc90f4..5dc1049 100755 --- a/compile_win64.sh +++ b/compile_win64.sh @@ -1,4 +1,7 @@ # path to your Win64 cross-compiler CC=~/opt/mingw64/bin/x86_64-w64-mingw32-gcc -$CC -g3 -O0 -o afterburner_w64.exe src_pc/afterburner.c -D_USE_WIN_API_ -DNO_CLOSE +GCOM=`git rev-parse --short HEAD` + +$CC -g3 -O0 -o afterburner_w64.exe src_pc/afterburner.c -D_USE_WIN_API_ -DNO_CLOSE -DGCOM="\"g${GCOM}\"" +