Makefile revision f07f0fb66492a2792d4da5e0a6f9a92b4c581ab3
2N/A# The contents of this file are subject to the terms of the 2N/A# Common Development and Distribution License (the "License"). 2N/A# You may not use this file except in compliance with the License. 2N/A# See the License for the specific language governing permissions 2N/A# and limitations under the License. 2N/A# When distributing Covered Code, include this CDDL HEADER in each 2N/A# If applicable, add the following below this CDDL HEADER, with the 2N/A# fields enclosed by brackets "[]" replaced with your own identifying 2N/A# information: Portions Copyright [yyyy] [name of copyright owner] 2N/A# Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved. 2N/A# Copyright (c) 2012 by Delphix. All rights reserved. 2N/A# Copyright 2014 Garrett D'Amore <garrett@damore.org> 2N/A# 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 # 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. # 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 # The stage-licenses target causes the license files needed for # packaging to be pulled from $(SRC) and $(CLOSED) and staged in $(ECHO) "Error: ON_CLOSED_BINS must point to closed" \
$(ECHO) "root_$(MACH)$${RELEASE_BUILD+-nd} is not" \
# 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 # trees w/o usr/closed), this also depends on the closedbins target (above) # 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. # /var/mail/:saved is a special case because of the colon in the name. # Cross-reference customization: skip all of the subdirectories that # don't contain actual source code. # Targets for reporting compiler versions; nightly uses these. $(EGREP) '^(cw|cc|gcc|primary|shadow)'; \
$(EGREP) '^(cw|cc|gcc|primary|shadow)'; \
@
if [ -x
"$(JAVAC)" ];
then \