#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright (c) 2012 by Delphix. All rights reserved.
# Copyright 2014 Garrett D'Amore <garrett@damore.org>
# Copyright 2015 OmniTI Computer Consulting, Inc. All rights reserved.
# Copyright 2016 Toomas Soome <tsoome@me.com>
#
#
# Makefile for system source
#
# include global definitions
#
# the Targetdirs file is the AT&T target.dirs file in a makefile format.
# it defines TARGETDIRS and ROOTDIRS.
#
# sparc needs to build stand before psm
#
# UCB headers are bug-for-bug compatible and not checkable against the header
# standards.
#
#
# Headers that can be built in parallel
#
#
# Directories that can be built in parallel
#
# The check target also causes smf(5) service manifests to be validated.
# And man page formats
DOMAINS= \
#
# Note: install does not cause a build in pkg. To build packages,
# cd pkg and do a 'make install'
#
#
# The _msg build is a two-step process. First, the _msg dependency
# causes recursive makes in $(MSGSUBDIRS), which stages raw message
# files in $(ROOT)/catalog. Second, the action from the install
# target rule causes those messages to be post-processed from where
# they were staged in $(ROOT)/catalog, and the results placed into the
# proto area.
#
# The stage-licenses target causes the license files needed for
# packaging to be pulled from $(SRC) and $(CLOSED) and staged in
# $(ROOT)/licenses.
#
@for m in $(MSGSUBDIRS); do \
done
# If the tarballs are included inside ON_CLOSED_BINS, use those to extract and
# preserve the permissions (in case a distro ships them).
$(ECHO) "Extracting tarball $$ON_CLOSED_BINS/on-closed-bins$${RELEASE_BUILD+-nd}.$(MACH).tar.bz2"; \
fi; \
if [ ! -d "$$CLOSED_ROOT" ]; then \
$(ECHO) "Error: ON_CLOSED_BINS must point to closed" \
"binaries."; \
"present in $$ON_CLOSED_BINS."; \
exit 1; \
fi; \
$(ECHO) "Copying closed binaries from $$CLOSED_ROOT"; \
(cd $$CLOSED_ROOT; \
#
# Declare what parts can be built in parallel
# DUMMY at the end is used in case macro expansion produces an empty string to
# prevent everything going in parallel
#
# librpcsvc has a dependency on headers installed by
# userheaders, hence the .WAIT before libheaders.
#
# Top-level setup target to setup the development environment that includes
# headers, tools and generated mapfiles. For open-only builds (i.e.: source
# in order to properly seed the proto area. Note, although the tools are
# dependent on a number of constant mapfiles, the tools themselves are
# required to build the generated mapfiles.
#
#
$(MAKE) -f Makefile.lint
$(INS.dir)
#
# Cross-reference customization: skip all of the subdirectories that
# don't contain actual source code.
#
$(XREF) -f -x $@
FRC:
#
# Targets for reporting compiler versions; nightly uses these.
#
$(EGREP) '^(cw|cc|gcc|primary|shadow)'; \
else \
if [ -z "$$__COMPILER" ]; then \
exit 1; \
else \
$(ECHO) $$__COMPILER; \
fi; \
fi
$(EGREP) '^(cw|cc|gcc|primary|shadow)'; \
else \
if [ -z "$$__COMPILER" ]; then \
exit 1; \
else \
$(ECHO) $$__COMPILER; \
fi; \
fi
else \
exit 1; \
fi