#
# 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 and smbsrv headers (we need to build libsmb)
fi
# Need some library headers too...
libads \
libbsm \
libdevid \
libgss \
libkrb5 \
libldap5 \
libidmap \
libsmbfs \
do
done
}
################################################################
case $1 in
lint) targ=modlintlib ;;
*) targ=$1 ;;
esac
( unset SOURCEDEBUG ;
}
################################################################
libavl \
libldap5 \
libuutil \
libidmap \
libads \
libsmbfs \
do
done
}
################################################################
}
################################################################
# 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