Makefile revision 77c29b8ee88bf82021ff549b17b44e17f2ef7d7b
40N/A# The contents of this file are subject to the terms of the 1276N/A# Common Development and Distribution License (the "License"). 40N/A# You may not use this file except in compliance with the License. 919N/A# See the License for the specific language governing permissions 919N/A# and limitations under the License. 919N/A# When distributing Covered Code, include this CDDL HEADER in each 919N/A# If applicable, add the following below this CDDL HEADER, with the 919N/A# fields enclosed by brackets "[]" replaced with your own identifying 919N/A# information: Portions Copyright [yyyy] [name of copyright owner] 919N/A# Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved. 40N/A# Makefile for system source 40N/A# include global definitions 40N/A# it defines TARGETDIRS and ROOTDIRS. 40N/A# sparc needs to build stand before psm 493N/A# UCB headers are bug-for-bug compatible and not checkable against the header 493N/A# Headers that can be built in parallel 70N/A# Directories that can be built in parallel 970N/A# 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: if closed sources are not present," \
"ON_CLOSED_BINS must point to closed binaries."; \
$(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. # each xmod target depends on a corresponding MACH-specific pseudotarget # before doing common xmod work # Cross-reference customization: skip all of the subdirectories that # don't contain actual source code. sed -e
"/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
sed -e
"/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
sed -e
"/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
sed -e
"/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
sed -e
"/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
# Targets for reporting compiler versions; nightly uses these. $(EGREP) '^(cw|cc|gcc|primary|shadow)'; \
$(EGREP) '^(cw|cc|gcc|primary|shadow)'; \
@
if [ -x
"$(JAVAC)" ];
then \