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 4 1.1 mrg # set GDB=1 in your environment if using gdb on Solaris 2. 5 1.1 mrg 6 1.1 mrg make="${MAKE-make}" 7 1.1 mrg flags="CDEBUGFLAGS=-g CXXDEBUGFLAGS=-g" 8 1.1 mrg 9 1.1 mrg # gdb on Solaris needs the stabs included in the executable 10 1.1 mrg test "${GDB+yes}" = yes && flags="$flags -xs" 11 1.1 mrg 12 1.1 mrg exec "$make" $flags LDSTRIPFLAGS= ${1+"$@"} 13