X-Git-Url: http://git.jankratochvil.net/?p=gnokii.git;a=blobdiff_plain;f=do;h=793bde3ec39897a8aac952e2fb49109e9cfa19c0;hp=19234074c0568c69f3293046af2280f61d5dc897;hb=refs%2Fheads%2Fuc;hpb=81b1712d54efa46b3148a5beb42d32d7632ef30c diff --git a/do b/do index 1923407..793bde3 100755 --- a/do +++ b/do @@ -2,7 +2,7 @@ #target_m68k=1 enable_debug=1 -#stack_check=1 +#stackcheck=60000 cfg_port="ttyS0" exec 2>&1 @@ -14,16 +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" - if [ -n "$stack_check" -a -n "$enable_debug" ];then - export CPPFLAGS="-DSTACKCHECK=1 $CPPFLAGS" - fi test -n "$LDFLAGS" || export LDFLAGS="gnokii/cleanup.c" -# if [ -n "$enable_debug" ];then -# export CFLAGS="-pg $CFLAGS" -# export LDFLAGS="gnokii/mcount.c $LDFLAGS" -# fi + 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 \