1 1.1 mrg #! /bin/sh 2 1.1 mrg # makeg - run "make" with options necessary to make a debuggable executable 3 1.1 mrg # $Xorg: makeg.sh,v 1.3 2000/08/17 19:41:52 cpqbld Exp $ 4 1.1 mrg 5 1.1 mrg # set GDB=1 in your environment if using gdb on Solaris 2. 6 1.1 mrg 7 1.1 mrg make="${MAKE-make}" 8 1.1 mrg flags="CDEBUGFLAGS=-g CXXDEBUGFLAGS=-g" 9 1.1 mrg 10 1.1 mrg # gdb on Solaris needs the stabs included in the executable 11 1.1 mrg test "${GDB+yes}" = yes && flags="$flags -xs" 12 1.1 mrg 13 1.1 mrg exec "$make" $flags LDSTRIPFLAGS= ${1+"$@"} 14