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