home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / x11r6.1 / bin / makeg < prev    next >
Encoding:
Text File  |  1996-10-17  |  404 b   |  14 lines

  1. #! /bin/sh
  2. # makeg - run "make" with options necessary to make a debuggable executable
  3. # $XConsortium: makeg,v 1.3 95/10/16 19:17:42 gildea Exp $
  4.  
  5. # set GDB=1 in your environment if using gdb on Solaris 2.
  6.  
  7. make="${MAKE-make}"
  8. flags="CDEBUGFLAGS=-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.