makeg revision 5afa940d
1#! /bin/sh
2# makeg - run "make" with options necessary to make a debuggable executable
3
4# set GDB=1 in your environment if using gdb on Solaris 2.
5
6make="${MAKE-make}"
7flags="CDEBUGFLAGS=-g CXXDEBUGFLAGS=-g"
8
9# gdb on Solaris needs the stabs included in the executable
10test "${GDB+yes}" = yes && flags="$flags -xs"
11
12exec "$make" $flags LDSTRIPFLAGS= ${1+"$@"}
13