make-gss revision 10b444a87400224fdb8ed3a329960a27385a96da
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source. A copy of the CDDL is also available via the Internet at
#
#
# Copyright 2014 Nexenta Systems, Inc. All rights reserved.
#
# Use distributed make (dmake) by default.
export CLOSED_IS_PRESENT
# Do this if you want to use dbx or gdb
# export SOURCEDEBUG=yes
[ -n "$SRC" ] || {
echo "SRC not set. Run 'ws' or 'bldenv' first."
exit 1
}
i386)
x=intel
mdb_arch="ia32 amd64"
;;
x=sparc
;;
*) echo "Huh?" ; exit 1;;
esac
################################################################
test -f $SRC/tools/proto/root_i386-nd/opt/onbld/bin/genoffsets ||
}
}
################################################################
targ=$1
then
fi
then
# Just the parts of "make sgs" we need, and
# skip them if they appear to be done.
# ... stuff under $SRC
test -f $SRC/uts/common/sys/priv_names.h ||
test -f $SRC/head/rpcsvc/nispasswd.h ||
# ... stuff under $ROOT (proto area)
test -f $ROOT/usr/include/rpcsvc/daemon_utils.h ||
# system headers
fi
# Need some library headers too...
libgss \
do
done
}
################################################################
case $1 in
lint) targ=modlintlib ;;
*) targ=$1 ;;
esac
( unset SOURCEDEBUG ;
}
################################################################
do
done
# For some reason, mech_krb5 does not build for debug.
# It also takes forever to lint. skip that.
if [ "$1" != "lint" ]; then
(cd $SRC/lib/gss_mechs/mech_spnego && $make $1)
fi
}
################################################################
}
################################################################
# This builds $SRC/TAGS (and cscope.files) in a helpful order.
(cd $SRC ;
) > $SRC/cscope.files
(cd $SRC ;
exctags -e --langmap=c:+.ndl -h ndl -L - < cscope.files
cscope -b )
}
################################################################
# This creates a tarfile one can use to update a test machine.
files="
"
}
################################################################
if [ "$1" = "" ]; then
set '?' # force usage
fi
set -x
for arg
do
set -e
;;
lint)
;;
;;
;;
tags)
;;
tar)
;;
*)
echo "Usage: $0 {build|lint|clean|clobber|tags|tar}";
exit 1;
;;
esac
done