|
|
@ -748,15 +748,14 @@ make_cflags_and_ldflags() {
|
|
|
|
OBJS_SUBDIR="release"
|
|
|
|
OBJS_SUBDIR="release"
|
|
|
|
if [ "$os" = "OSX" ]; then
|
|
|
|
if [ "$os" = "OSX" ]; then
|
|
|
|
# these compilerflags makes the app run as fast as possible without making the app unstable. It works on G3 or newer
|
|
|
|
# these compilerflags makes the app run as fast as possible without making the app unstable. It works on G3 or newer
|
|
|
|
CFLAGS="$CFLAGS -O3 -funroll-loops -fsched-interblock -falign-loops=16 -falign-jumps=16 -falign-functions=16 -falign-jumps-max-skip=15 -falign-loops-max-skip=15 -mdynamic-no-pic"
|
|
|
|
CFLAGS="-O3 -funroll-loops -fsched-interblock -falign-loops=16 -falign-jumps=16 -falign-functions=16 -falign-jumps-max-skip=15 -falign-loops-max-skip=15 -mdynamic-no-pic $CFLAGS"
|
|
|
|
else
|
|
|
|
else
|
|
|
|
if [ "$os" = "MORPHOS" ]; then
|
|
|
|
if [ "$os" = "MORPHOS" ]; then
|
|
|
|
CFLAGS="$CFLAGS -I/gg/os-include -noixemul -fstrict-aliasing -fexpensive-optimizations"
|
|
|
|
CFLAGS="-I/gg/os-include -noixemul -fstrict-aliasing -fexpensive-optimizations -mcpu=604 -fno-inline -mstring -mmultiple $CFLAGS"
|
|
|
|
CFLAGS="$CFLAGS -mcpu=604 -fno-inline -mstring -mmultiple"
|
|
|
|
|
|
|
|
LDFLAGS="$LDFLAGS -noixemul"
|
|
|
|
LDFLAGS="$LDFLAGS -noixemul"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
CFLAGS="$CFLAGS -O2 -fomit-frame-pointer"
|
|
|
|
CFLAGS="-O2 -fomit-frame-pointer $CFLAGS"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
else
|
|
|
|
OBJS_SUBDIR="debug"
|
|
|
|
OBJS_SUBDIR="debug"
|
|
|
|