Makefile revision c0e7977a434048a8bc7386ea0e8befaa77a646cf
4632N/A#
4632N/A# CDDL HEADER START
4632N/A#
4632N/A# The contents of this file are subject to the terms of the
4632N/A# Common Development and Distribution License (the "License").
4632N/A# You may not use this file except in compliance with the License.
4632N/A#
4632N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4632N/A# or http://www.opensolaris.org/os/licensing.
4632N/A# See the License for the specific language governing permissions
4632N/A# and limitations under the License.
4632N/A#
4632N/A# When distributing Covered Code, include this CDDL HEADER in each
4632N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4632N/A# If applicable, add the following below this CDDL HEADER, with the
4632N/A# fields enclosed by brackets "[]" replaced with your own identifying
4632N/A# information: Portions Copyright [yyyy] [name of copyright owner]
4632N/A#
4632N/A# CDDL HEADER END
4632N/A#
4632N/A#
4632N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
4632N/A# Use is subject to license terms.
4632N/A#
4632N/A# Copyright 2013 Nexenta Systems, Inc. All rights reserved.
4632N/A#
4632N/A# This makefile drives the production of all implementation architecture
4632N/A# dependent modules for the i86xpv architecture.
4632N/A#
4632N/A
4632N/AUTSBASE = ..
4632N/A
4632N/Ainclude Makefile.i86xpv
4632N/A
4632N/A#
4632N/A# The following are x86 specific (rather than i86pc) specific modules
4632N/A# which are required for the i86pc kernel to completely lint. They are
4632N/A# not involved in the build in any other way. In order to minimize
4632N/A# build time, it is assumed that they are up to date.
4632N/A#
4632N/AINTEL_LIB_DIR = $(UTSBASE)/intel/lint-libs/$(OBJS_DIR)
4632N/A
4632N/AINTEL_LINTS = genunix
4632N/A
4632N/ALINT_LIBS = \
4632N/A $(GENUNIX_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) \
4632N/A $(PARALLEL_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) \
4632N/A $(INTEL_LINTS:%=$(INTEL_LIB_DIR)/llib-l%.ln)
4632N/A
4632N/AI86XPV_LINTS = xdb xnb xnbe xnbo xnbu xpvtap
4632N/A
4632N/A#
4632N/A#
4632N/A#
4632N/Adef := TARGET= def
4632N/Aall := TARGET= all
4632N/Ainstall := TARGET= install
4632N/Aclean := TARGET= clean
4632N/Aclobber := TARGET= clobber
4632N/Alint := TARGET= lint
4632N/Alintlib := TARGET= lintlib
4632N/Amachmodlintlib := TARGET= modlintlib
4632N/Amodlist := TARGET= modlist
4632N/Amodlist modlist.intel := NO_STATE= -K $$MODSTATE$$$$
4632N/Aclean.lint := TARGET= clean.lint
4632N/Acheck := TARGET= check
4632N/A
4632N/A.KEEP_STATE:
4632N/A
4632N/A.PARALLEL: $(PARALLEL_KMODS) $(XMODS) modlist modlist.intel
4632N/A
4632N/AINITIAL_TARGETS = \
4632N/A genassym \
4632N/A unix \
4632N/A cpu/scripts
4632N/A
4632N/Adef all clean clobber clean.lint: setup genassym unix .WAIT \
4632N/A $(KMODS) $(XMODS)
4632N/A
4632N/Ainstall: install_platforms setup genassym unix .WAIT \
4632N/A $(KMODS) $(XMODS)
4632N/A
4632N/A# Need to clean in here too because of lint.
4632N/Aclean: $(I86XPV_LINTS)
4632N/A
4632N/A# list the modules under i86xpv.
4632N/Amodlist: unix $(KMODS) $(XMODS)
4632N/A
4632N/A# list the modules for Install -k i86xpv.
4632N/Amodlist.karch: modlist modlist.intel
4632N/A
4632N/Amodlist.intel:
4632N/A @cd $(SRC)/uts/intel; pwd; $(MAKE) $(NO_STATE) modlist
4632N/A
4632N/Alintlib: unix
4632N/A
4632N/Amodlintlib: $(KMODS)
4632N/A
4632N/Agenassym unix $(KMODS): FRC
4632N/A @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
4632N/A
4632N/Asetup: FRC
4632N/A @cd cpu/scripts; pwd; $(MAKE) $(TARGET)
4632N/A
4632N/A$(XMODS): FRC
4632N/A @if [ -f $@/Makefile ]; then \
4632N/A cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET); \
4632N/A else \
4632N/A true; \
4632N/A fi
4632N/A
4632N/Ainstall_h check: FRC
4632N/A @cd sys; pwd; $(MAKE) $(TARGET)
4632N/A
4632N/A#
4632N/A# Definitions for the /platform directory aliases.
4632N/A# Currently none for i86xpv.
4632N/A#
4632N/APLAT_LINKS =
4632N/A
4632N/A#
4632N/A# Make the /platform directories. This is hardwired here because
4632N/A# the first stage of the project (KBI) only implements the userland
4632N/A# changes, but the only reasonable place to record the aliases is
4632N/A# here in kernel land.
4632N/A#
4632N/Ainstall_platforms: $(ROOT_PSM_DIR) $(USR_PSM_DIR) \
4632N/A $(ROOT_PLAT_LINKS) $(USR_PLAT_LINKS) \
4632N/A $(OEM_USR_PLAT_LINKS)
4632N/A
4632N/A#
4632N/A# Full kernel lint target.
4632N/A#
4632N/ALINT_TARGET = globallint
4632N/A
4632N/A# workaround for multiply defined errors
4632N/Agloballint := LINTFLAGS += -erroff=E_NAME_MULTIPLY_DEF2
4632N/A
4632N/Agloballint:
4632N/A @-$(ECHO) "\nFULL KERNEL: global crosschecks:"
4632N/A @-$(LINT) $(LINTFLAGS) $(LINT_LIB) $(LINT_LIBS) 2>&1 | $(LGREP.2)
4632N/A
4632N/Alint: lintlib .WAIT modlintlib .WAIT $(INTEL_LINTS) $(LINT_DEPS)
4632N/A
4632N/A$(INTEL_LINTS): FRC
4632N/A @cd $(UTSBASE)/intel/$@; pwd; $(MAKE) modlintlib
4632N/A
4632N/AFRC:
4632N/A
4632N/Ainclude ../Makefile.targ
4632N/A
4632N/A#
4632N/A# Cross-reference customization: build a cross-reference over all of the
4632N/A# i86pc-related directories.
4632N/A#
4632N/AXRDIRS = ../i86xpv ../i86pc ../intel ../common
4632N/AXRPRUNE = sun4v sun4u sun4 sfmmu sparc
4632N/A
4632N/Acscope.out tags: FRC
4632N/A $(XREF) -x $@
4632N/A