Makefile revision 843e19887f64dde75055cf8842fc4db2171eff45
843e19887f64dde75055cf8842fc4db2171eff45johnlev# CDDL HEADER START
843e19887f64dde75055cf8842fc4db2171eff45johnlev# The contents of this file are subject to the terms of the
843e19887f64dde75055cf8842fc4db2171eff45johnlev# Common Development and Distribution License (the "License").
843e19887f64dde75055cf8842fc4db2171eff45johnlev# You may not use this file except in compliance with the License.
843e19887f64dde75055cf8842fc4db2171eff45johnlev# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
843e19887f64dde75055cf8842fc4db2171eff45johnlev# See the License for the specific language governing permissions
843e19887f64dde75055cf8842fc4db2171eff45johnlev# and limitations under the License.
843e19887f64dde75055cf8842fc4db2171eff45johnlev# When distributing Covered Code, include this CDDL HEADER in each
843e19887f64dde75055cf8842fc4db2171eff45johnlev# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
843e19887f64dde75055cf8842fc4db2171eff45johnlev# If applicable, add the following below this CDDL HEADER, with the
843e19887f64dde75055cf8842fc4db2171eff45johnlev# fields enclosed by brackets "[]" replaced with your own identifying
843e19887f64dde75055cf8842fc4db2171eff45johnlev# information: Portions Copyright [yyyy] [name of copyright owner]
843e19887f64dde75055cf8842fc4db2171eff45johnlev# CDDL HEADER END
843e19887f64dde75055cf8842fc4db2171eff45johnlev# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
843e19887f64dde75055cf8842fc4db2171eff45johnlev# Use is subject to license terms.
843e19887f64dde75055cf8842fc4db2171eff45johnlev# ident "%Z%%M% %I% %E% SMI"
843e19887f64dde75055cf8842fc4db2171eff45johnlev# This makefile drives the production of all implementation architecture
843e19887f64dde75055cf8842fc4db2171eff45johnlev# dependent modules for the i86xpv architecture.
843e19887f64dde75055cf8842fc4db2171eff45johnlev# The following are x86 specific (rather than i86pc) specific modules
843e19887f64dde75055cf8842fc4db2171eff45johnlev# which are required for the i86pc kernel to completely lint. They are
843e19887f64dde75055cf8842fc4db2171eff45johnlev# not involved in the build in any other way. In order to minimize
843e19887f64dde75055cf8842fc4db2171eff45johnlev# build time, it is assumed that they are up to date.
843e19887f64dde75055cf8842fc4db2171eff45johnlevINTEL_LIB_DIR = $(UTSBASE)/intel/lint-libs/$(OBJS_DIR)
843e19887f64dde75055cf8842fc4db2171eff45johnlev.PARALLEL: $(PARALLEL_KMODS) $(CLOSED_KMODS) $(XMODS) $(CLOSED_XMODS) \
843e19887f64dde75055cf8842fc4db2171eff45johnlevdef all clean clobber clean.lint: setup genassym unix .WAIT \
843e19887f64dde75055cf8842fc4db2171eff45johnlevinstall: install_platforms setup genassym unix .WAIT \
843e19887f64dde75055cf8842fc4db2171eff45johnlev# list the modules under i86xpv.
843e19887f64dde75055cf8842fc4db2171eff45johnlevmodlist: unix $(KMODS) $(CLOSED_KMODS) $(XMODS) $(CLOSED_XMODS)
843e19887f64dde75055cf8842fc4db2171eff45johnlev# list the modules for Install -k i86xpv.
843e19887f64dde75055cf8842fc4db2171eff45johnlev @cd $(SRC)/uts/intel; pwd; $(MAKE) $(NO_STATE) modlist
843e19887f64dde75055cf8842fc4db2171eff45johnlev @if [ -f $@/Makefile ]; then \
843e19887f64dde75055cf8842fc4db2171eff45johnlev cd $(CLOSED)/uts/i86xpv/$@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
843e19887f64dde75055cf8842fc4db2171eff45johnlev# Definitions for the /platform directory aliases.
843e19887f64dde75055cf8842fc4db2171eff45johnlev# Currently none for i86xpv.
843e19887f64dde75055cf8842fc4db2171eff45johnlev# Make the /platform directories. This is hardwired here because
843e19887f64dde75055cf8842fc4db2171eff45johnlev# the first stage of the project (KBI) only implements the userland
843e19887f64dde75055cf8842fc4db2171eff45johnlev# changes, but the only reasonable place to record the aliases is
843e19887f64dde75055cf8842fc4db2171eff45johnlev# here in kernel land.
843e19887f64dde75055cf8842fc4db2171eff45johnlev# Full kernel lint target.
843e19887f64dde75055cf8842fc4db2171eff45johnlev# workaround for multiply defined errors
843e19887f64dde75055cf8842fc4db2171eff45johnlevgloballint := LINTFLAGS += -erroff=E_NAME_MULTIPLY_DEF2
843e19887f64dde75055cf8842fc4db2171eff45johnlev @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
843e19887f64dde75055cf8842fc4db2171eff45johnlevlint: lintlib .WAIT modlintlib .WAIT $(INTEL_LINTS) $(LINT_DEPS)
843e19887f64dde75055cf8842fc4db2171eff45johnlev# Cross-reference customization: build a cross-reference over all of the
843e19887f64dde75055cf8842fc4db2171eff45johnlev# i86pc-related directories.
843e19887f64dde75055cf8842fc4db2171eff45johnlevSHARED_XRDIRS = ../i86xpv ../i86pc ../intel ../common
843e19887f64dde75055cf8842fc4db2171eff45johnlevCLOSED_XRDIRS1 = $(SHARED_XRDIRS:../%=../% ../../../closed/uts/%)
843e19887f64dde75055cf8842fc4db2171eff45johnlevCLOSED_XRDIRS2 = $(CLOSED_XRDIRS1:../../../closed/uts/i86pc=)