Makefile revision b6805bf78d2bbbeeaea8909a05623587b42d58b3
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# CDDL HEADER START
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# The contents of this file are subject to the terms of the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Common Development and Distribution License (the "License").
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# You may not use this file except in compliance with the License.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# See the License for the specific language governing permissions
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# and limitations under the License.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# When distributing Covered Code, include this CDDL HEADER in each
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# If applicable, add the following below this CDDL HEADER, with the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# fields enclosed by brackets "[]" replaced with your own identifying
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# information: Portions Copyright [yyyy] [name of copyright owner]
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# CDDL HEADER END
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Copyright (c) 2012 by Delphix. All rights reserved.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Makefile for system source
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# include global definitions
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# the Targetdirs file is the AT&T target.dirs file in a makefile format.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# it defines TARGETDIRS and ROOTDIRS.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# sparc needs to build stand before psm
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# UCB headers are bug-for-bug compatible and not checkable against the header
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# standards.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Headers that can be built in parallel
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinPARALLEL_HEADERS = sysheaders userheaders libheaders cmdheaders
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Directories that can be built in parallel
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# The check target also causes smf(5) service manifests to be validated.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Note: install does not cause a build in pkg. To build packages,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# cd pkg and do a 'make install'
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# The _msg build is a two-step process. First, the _msg dependency
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# causes recursive makes in $(MSGSUBDIRS), which stages raw message
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# files in $(ROOT)/catalog. Second, the action from the install
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# target rule causes those messages to be post-processed from where
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# they were staged in $(ROOT)/catalog, and the results placed into the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# proto area.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# The stage-licenses target causes the license files needed for
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# packaging to be pulled from $(SRC) and $(CLOSED) and staged in
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# $(ROOT)/licenses.
if [ ! -d "$$CLOSED_ROOT" ]; then \
"present in $$ON_CLOSED_BINS."; \
(cd $$CLOSED_ROOT; \
# headers, tools and generated mapfiles. For open-only builds (i.e.: source
$(INS.dir)
$(XREF) -f -x $@
FRC:
if [ -z "$$__COMPILER" ]; then \
if [ -z "$$__COMPILER" ]; then \