39c7699ec0799d394d3f67145d4a12ed82f587b8jorton#
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton# CDDL HEADER START
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton#
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton# The contents of this file are subject to the terms of the
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton# Common Development and Distribution License (the "License").
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton# You may not use this file except in compliance with the License.
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton#
11e076839c8d5a82d55e710194d0daac51390dbdsf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton# or http://www.opensolaris.org/os/licensing.
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton# See the License for the specific language governing permissions
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton# and limitations under the License.
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton#
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton# When distributing Covered Code, include this CDDL HEADER in each
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton# If applicable, add the following below this CDDL HEADER, with the
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton# fields enclosed by brackets "[]" replaced with your own identifying
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton# information: Portions Copyright [yyyy] [name of copyright owner]
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton#
292707b9868335763d6f2bb74a263134eeeb8cadkbrand# CDDL HEADER END
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton#
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton#
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton# Use is subject to license terms.
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton#
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton#
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton# This makefile drives the production of the xpvd nexus driver
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton#
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton# i86pc implementation architecture dependent
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton#
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton#
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton# Path to the base of the uts directory tree (usually /usr/src/uts).
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton#
39c7699ec0799d394d3f67145d4a12ed82f587b8jortonUTSBASE = ../../..
5bfaaf573bacb45c1cf290ce85ecc676587e8a64jim
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton#
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton# Define the module and object file sets.
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton#
39c7699ec0799d394d3f67145d4a12ed82f587b8jortonMODULE = xpvd
39c7699ec0799d394d3f67145d4a12ed82f587b8jortonOBJECTS = $(XPVD_OBJS:%=$(OBJS_DIR)/%)
39c7699ec0799d394d3f67145d4a12ed82f587b8jortonLINTS = $(XPVD_OBJS:%.o=$(LINTS_DIR)/%.ln)
39c7699ec0799d394d3f67145d4a12ed82f587b8jortonROOTMODULE = $(ROOT_HVM_DRV_DIR)/$(MODULE)
5bfaaf573bacb45c1cf290ce85ecc676587e8a64jimCONF_SRCDIR = $(UTSBASE)/common/xen/io
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton#
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton# Include common rules.
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton#
39c7699ec0799d394d3f67145d4a12ed82f587b8jortoninclude $(UTSBASE)/i86pc/i86hvm/Makefile.i86hvm
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton#
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton# Define targets
5bfaaf573bacb45c1cf290ce85ecc676587e8a64jim#
39c7699ec0799d394d3f67145d4a12ed82f587b8jortonALL_TARGET = $(BINARY) $(CONFMOD)
39c7699ec0799d394d3f67145d4a12ed82f587b8jortonLINT_TARGET = $(MODULE).lint
39c7699ec0799d394d3f67145d4a12ed82f587b8jortonINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton
39c7699ec0799d394d3f67145d4a12ed82f587b8jortonCPPFLAGS += -DHVMPV_XPVD_VERS=1
39c7699ec0799d394d3f67145d4a12ed82f587b8jortonLDFLAGS += -dy -Ndrv/xpv
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton
39c7699ec0799d394d3f67145d4a12ed82f587b8jortonLINTTAGS += -erroff=E_STATIC_UNUSED
39c7699ec0799d394d3f67145d4a12ed82f587b8jortonLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
7b7430e701e9a31ce809da7c220bb8dfcf68c86etrawickLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton
39c7699ec0799d394d3f67145d4a12ed82f587b8jortonCERRWARN += -_gcc=-Wno-uninitialized
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton
5bfaaf573bacb45c1cf290ce85ecc676587e8a64jim#
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton# Default build targets.
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton#
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton.KEEP_STATE:
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton
39c7699ec0799d394d3f67145d4a12ed82f587b8jortondef: $(DEF_DEPS)
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton
39c7699ec0799d394d3f67145d4a12ed82f587b8jortonall: $(ALL_DEPS)
185aa71728867671e105178b4c66fbc22b65ae26sf
39c7699ec0799d394d3f67145d4a12ed82f587b8jortonclean: $(CLEAN_DEPS)
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton
39c7699ec0799d394d3f67145d4a12ed82f587b8jortonclobber: $(CLOBBER_DEPS)
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton
39c7699ec0799d394d3f67145d4a12ed82f587b8jortonlint: $(LINT_DEPS)
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton
5bfaaf573bacb45c1cf290ce85ecc676587e8a64jimmodlintlib: $(MODLINTLIB_DEPS)
185aa71728867671e105178b4c66fbc22b65ae26sf
39c7699ec0799d394d3f67145d4a12ed82f587b8jortonclean.lint: $(CLEAN_LINT_DEPS)
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton
39c7699ec0799d394d3f67145d4a12ed82f587b8jortoninstall: $(INSTALL_DEPS)
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton#
185aa71728867671e105178b4c66fbc22b65ae26sf# Include common targets.
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton#
39c7699ec0799d394d3f67145d4a12ed82f587b8jortoninclude $(UTSBASE)/i86pc/i86hvm/Makefile.targ
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton