#!/bin/ksh
#
# This script should be used to make WDB for HP-UX, rather than using
# "make" directly.  Among other things, this script ensures that HP's
# compilers are used to build WDB.  If you wish to build using GNU tools,
# then this script may not be necessary.
###
set -hu
CDPATH=; EDITOR=
typeset -r myname=${0##*/}
typeset -r mybin=${0%%*([!/])}
export PATH=$mybin:/bin:/usr/bin:/usr/atria/bin

status=0

#set -o xtrace
#set -o verbose

###
### The following ensure that HP's tools are used to build WDB for
### HP-UX.
###
MAKE=/bin/make;         export MAKE
CC=/opt/ansic/bin/cc;   export CC

###
### The following account for oddities using HP's tools to build
### these sources for HP-UX.
###
EXTRA_OFILES=alloca.o;  export EXTRA_OFILES

###
### Build it!
###
${MAKE}
