10b444a87400224fdb8ed3a329960a27385a96daGordon Ross# This file and its contents are supplied under the terms of the
10b444a87400224fdb8ed3a329960a27385a96daGordon Ross# Common Development and Distribution License ("CDDL"), version 1.0.
10b444a87400224fdb8ed3a329960a27385a96daGordon Ross# You may only use this file in accordance with the terms of version
10b444a87400224fdb8ed3a329960a27385a96daGordon Ross# 1.0 of the CDDL.
10b444a87400224fdb8ed3a329960a27385a96daGordon Ross# A full copy of the text of the CDDL should have accompanied this
10b444a87400224fdb8ed3a329960a27385a96daGordon Ross# source. A copy of the CDDL is also available via the Internet at
10b444a87400224fdb8ed3a329960a27385a96daGordon Ross# Copyright 2014 Nexenta Systems, Inc. All rights reserved.
10b444a87400224fdb8ed3a329960a27385a96daGordon Ross# Use distributed make (dmake) by default.
10b444a87400224fdb8ed3a329960a27385a96daGordon Ross################################################################
10b444a87400224fdb8ed3a329960a27385a96daGordon Ross test -f $SRC/tools/proto/root_i386-nd/opt/onbld/bin/genoffsets ||
10b444a87400224fdb8ed3a329960a27385a96daGordon Ross################################################################
10b444a87400224fdb8ed3a329960a27385a96daGordon Ross test -f $ROOT/usr/include/rpcsvc/daemon_utils.h ||
10b444a87400224fdb8ed3a329960a27385a96daGordon Ross# Need some library headers too...
10b444a87400224fdb8ed3a329960a27385a96daGordon Ross # Should fix the Makefile here so all_h or install_h works.
10b444a87400224fdb8ed3a329960a27385a96daGordon Ross (cd $SRC/lib/libzpool/$cpu && $make ../common/zfs.h)
10b444a87400224fdb8ed3a329960a27385a96daGordon Ross################################################################
10b444a87400224fdb8ed3a329960a27385a96daGordon Ross################################################################
10b444a87400224fdb8ed3a329960a27385a96daGordon Ross# Build all libraries used by the other targets in here.
10b444a87400224fdb8ed3a329960a27385a96daGordon Ross# Run this once (at least) in each new workspace where you
10b444a87400224fdb8ed3a329960a27385a96daGordon Ross# will run "make-zfs install", if you want to avoid linking
10b444a87400224fdb8ed3a329960a27385a96daGordon Ross# against the libraries from your build host.
10b444a87400224fdb8ed3a329960a27385a96daGordon Ross# install all the lib headers
10b444a87400224fdb8ed3a329960a27385a96daGordon Ross# Wow, building libc takes a while. Really want that?
10b444a87400224fdb8ed3a329960a27385a96daGordon Ross################################################################
10b444a87400224fdb8ed3a329960a27385a96daGordon Ross################################################################
10b444a87400224fdb8ed3a329960a27385a96daGordon Ross (cd $SRC/cmd/devfsadm/$cpu && $make SUNW_zfs_link.so \
10b444a87400224fdb8ed3a329960a27385a96daGordon Ross ${ROOT}/usr/lib/devfsadm/linkmod/SUNW_zfs_link.so )
10b444a87400224fdb8ed3a329960a27385a96daGordon Ross(cd $SRC/cmd/syseventd/modules/zfs_mod && $make $1)
10b444a87400224fdb8ed3a329960a27385a96daGordon Ross# Build the MDB modules, WITH the linktest
10b444a87400224fdb8ed3a329960a27385a96daGordon Ross################################################################
10b444a87400224fdb8ed3a329960a27385a96daGordon Ross (cd $SRC/man/man1m && make zdb.1m.check zfs.1m.check zpool.1m.check)
10b444a87400224fdb8ed3a329960a27385a96daGordon Ross (cd $SRC/man/man5 && make zpool-features.5.check)
10b444a87400224fdb8ed3a329960a27385a96daGordon Ross################################################################
10b444a87400224fdb8ed3a329960a27385a96daGordon Ross# This builds $SRC/TAGS (and cscope.files) in a helpful order.
10b444a87400224fdb8ed3a329960a27385a96daGordon Ross find uts/common/fs/zfs -name '*.[ch]' -print |sort
10b444a87400224fdb8ed3a329960a27385a96daGordon Ross exctags -e --langmap=c:+.ndl -h ndl -L - < cscope.files
10b444a87400224fdb8ed3a329960a27385a96daGordon Ross################################################################
10b444a87400224fdb8ed3a329960a27385a96daGordon Ross# This creates a tarfile one can use to update a test machine.
10b444a87400224fdb8ed3a329960a27385a96daGordon Ross (cd $ROOT && tar cfj ../../zfs-${git_rev}.tar.bz2 $files)
10b444a87400224fdb8ed3a329960a27385a96daGordon Ross################################################################
10b444a87400224fdb8ed3a329960a27385a96daGordon Ross echo "Usage: $0 {install|lint|clean|clobber|deplibs|tags|tar}";