File: makeg

package info (click to toggle)
xutils-dev 1%3A7.5%2B4
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 4,564 kB
  • ctags: 720
  • sloc: sh: 11,285; ansic: 6,073; makefile: 605; cpp: 517; perl: 74
file content (13 lines) | stat: -rw-r--r-- 417 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
#! /bin/sh
# makeg - run "make" with options necessary to make a debuggable executable
# $Xorg: makeg.sh,v 1.3 2000/08/17 19:41:52 cpqbld Exp $

# set GDB=1 in your environment if using gdb on Solaris 2.

make="${MAKE-make}"
flags="CDEBUGFLAGS=-g CXXDEBUGFLAGS=-g"

# gdb on Solaris needs the stabs included in the executable
test "${GDB+yes}" = yes && flags="$flags -xs"

exec "$make" $flags LDSTRIPFLAGS= ${1+"$@"}