X-Git-Url: https://git.jankratochvil.net/?p=gnokii.git;a=blobdiff_plain;f=do;h=345f2c09f799f95f0b4cd6d1d3dc243ae6549beb;hp=ec3e05104c2b4e5273764e551d5fefd8b57624f2;hb=c383a7c19fe5db4b7b7ec3b8b5bba21dda7ce3d1;hpb=c7dcdfd34d2bed9cc64c5c9603e51ef8c8271951 diff --git a/do b/do index ec3e051..345f2c0 100755 --- a/do +++ b/do @@ -1,7 +1,8 @@ #! /bin/sh -#target_m68k=1 +target_m68k=1 enable_debug=1 +stackcheck=60000 cfg_port="ttyS0" exec 2>&1 @@ -13,9 +14,14 @@ autoconf if [ -n "$target_m68k" ];then test -n "$CC" || export CC="m68k-pic-coff-gcc" test -n "$AR" || export AR="m68k-pic-coff-ar" + test -n "$AS" || export AS="m68k-pic-coff-as" test -n "$CFLAGS" || export CFLAGS="-O2 -Wall -fPIC" test -n "$CPPFLAGS" || export CPPFLAGS="-DUCCOMPAT=1 $CPPFLAGS" test -n "$LDFLAGS" || export LDFLAGS="gnokii/cleanup.c" + if [ -n "$stackcheck" ];then + export CPPFLAGS="-DSTACKCHECK=$stackcheck $CPPFLAGS" + export CFLAGS="$CFLAGS -fno-omit-frame-pointer" + fi fi export CPPFLAGS="-DUCLINUX=1 $CPPFLAGS" ./configure --with-cfg-model=5110 --with-cfg-port=/dev/"$cfg_port" --without-x \