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