0N/A#
0N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
3516N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
0N/A#
3516N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# or http://www.opensolaris.org/os/licensing.
3516N/A# See the License for the specific language governing permissions
3516N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
4986N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
4986N/A# CDDL HEADER END
4986N/A#
4986N/A#
0N/A# uts/i86pc/i86hvm/Makefile
0N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
0N/A# Use is subject to license terms.
3516N/A#
0N/A#ident "%Z%%M% %I% %E% SMI"
0N/A#
3516N/A# This makefile drives the production of the i86hvm platform modules.
3516N/A#
0N/A# i86pc implementation architecture dependent
3516N/A#
4986N/A
5056N/A#
4986N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
4986N/A#
0N/AUTSBASE = ../..
3516N/A
4986N/A#
4986N/A# Include common rules.
3516N/A#
5056N/Ainclude $(UTSBASE)/i86pc/i86hvm/Makefile.i86hvm
0N/A
3516N/Adef := TARGET= def
4986N/Aall := TARGET= all
4986N/Ainstall := TARGET= install
4986N/Ainstall_h := TARGET= install_h
4986N/Aclean := TARGET= clean
0N/Aclobber := TARGET= clobber
5056N/Alint := TARGET= lint
4986N/Alintlib := TARGET= lintlib
4986N/Amodlintlib := TARGET= modlintlib
4986N/Amodlist := TARGET= modlist
5056N/Amodlist := NO_STATE= -K $$MODSTATE$$$$
4986N/Aclean.lint := TARGET= clean.lint
4986N/Acheck := TARGET= check
4986N/A
4986N/A#
4986N/A# Default build targets.
4986N/A#
4986N/A.KEEP_STATE:
5056N/A
4986N/A.PARALLEL: $(HVM_KMODS)
0N/A
0N/Adef all clean clobber clean.lint modlist modlintlib: $(HVM_KMODS)
4986N/A
4986N/Ainstall: install_implementations .WAIT \
4986N/A $(HVM_KMODS)
0N/A
3516N/Ainstall_implementations: \
0N/A $(ROOT_HVM_DIR) \
0N/A $(ROOT_HVM_DRV_DIR) \
0N/A $(ROOT_HVM_MISC_DIR) \
5056N/A $(USR_HVM_DIR)
0N/A
0N/A$(HVM_KMODS): FRC
0N/A @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
0N/A
0N/Ainstall_h check: FRC
0N/A
3516N/Alintlib lint: modlintlib .WAIT $(LINT_DEPS)
0N/A
0N/A#
0N/A# The 'lint.platmod' target lints the i86hvm platform modules against the i86pc
0N/A# kernel. This ends up doing all the kernel cross-checks.
0N/A#
0N/ALINT_TARGET = lint.platmod
0N/AINTEL_LIB_DIR = $(UTSBASE)/intel/lint-libs/$(OBJS_DIR)
0N/AINTEL_LINTS = genunix
0N/ALINT_LIBS = $(LINT_LIB) \
0N/A -L$(HVM_LINT_LIB_DIR) \
0N/A -L$(LINT_LIB_DIR) \
0N/A $(GENUNIX_KMODS:%=-l%) \
0N/A $(PARALLEL_KMODS:%=-l%) \
0N/A $(CLOSED_KMODS:%=-l%) \
0N/A -L$(INTEL_LIB_DIR) \
0N/A $(INTEL_LINTS:%=-l%)
0N/A
0N/A# workaround for multiply defined errors
0N/Alint.platmod := LINTFLAGS += -erroff=E_NAME_MULTIPLY_DEF2
0N/A
0N/Alint.platmod: modlintlib
0N/A @-$(ECHO) "\ni86hvm platform-dependent module: global crosschecks:"
0N/A @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
3516N/A
0N/A#
0N/A# Include common targets.
0N/A#
0N/Ainclude $(UTSBASE)/$(PLATFORM)/i86hvm/Makefile.targ
0N/A