File: makeg

package info (click to toggle)
xutils-dev 1%3A7.7%2B6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,832 kB
  • sloc: sh: 16,256; ansic: 6,015; cpp: 392; makefile: 373; perl: 74
file content (12 lines) | stat: -rw-r--r-- 360 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
#! /bin/sh
# makeg - run "make" with options necessary to make a debuggable executable

# 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+"$@"}