14 if [ -n "$target_m68k" ];then
15 test -n "$CC" || export CC="m68k-pic-coff-gcc"
16 test -n "$AR" || export AR="m68k-pic-coff-ar"
17 test -n "$CFLAGS" || export CFLAGS="-O2 -Wall -fPIC"
18 test -n "$CPPFLAGS" || export CPPFLAGS="-DUCCOMPAT=1 $CPPFLAGS"
19 if [ -n "$stack_check" -a -n "$enable_debug" ];then
20 export CPPFLAGS="-DSTACKCHECK=1 $CPPFLAGS"
22 test -n "$LDFLAGS" || export LDFLAGS="gnokii/cleanup.c"
23 # if [ -n "$enable_debug" ];then
24 # export CFLAGS="-pg $CFLAGS"
25 # export LDFLAGS="gnokii/mcount.c $LDFLAGS"
28 export CPPFLAGS="-DUCLINUX=1 $CPPFLAGS"
29 ./configure --with-cfg-model=5110 --with-cfg-port=/dev/"$cfg_port" --without-x \
30 `if [ -n "$enable_debug" ];then echo "--enable-debug --enable-xdebug";fi`