Makefile revision 7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1f
147N/A#
147N/A# CDDL HEADER START
147N/A#
147N/A# The contents of this file are subject to the terms of the
147N/A# Common Development and Distribution License (the "License").
147N/A# You may not use this file except in compliance with the License.
147N/A#
147N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
147N/A# or http://www.opensolaris.org/os/licensing.
147N/A# See the License for the specific language governing permissions
147N/A# and limitations under the License.
147N/A#
147N/A# When distributing Covered Code, include this CDDL HEADER in each
147N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
147N/A# If applicable, add the following below this CDDL HEADER, with the
147N/A# fields enclosed by brackets "[]" replaced with your own identifying
147N/A# information: Portions Copyright [yyyy] [name of copyright owner]
147N/A#
147N/A# CDDL HEADER END
147N/A#
806N/A#
147N/A# uts/i86pc/i86hvm/pv_sd/Makefile
147N/A#
147N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
147N/A# Use is subject to license terms.
147N/A#
147N/A# This makefile drives the production of the xdc driver.
147N/A#
147N/A# i86pc implementation architecture dependent
147N/A#
147N/A
147N/A#
147N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
147N/A#
147N/AUTSBASE = ../../..
147N/A
147N/A#
147N/A# Define the module and object file sets.
206N/A#
206N/AMODULE = sd
206N/AOBJECTS = $(PV_SD_OBJS:%=$(OBJS_DIR)/%)
206N/ALINTS = $(PV_SD_OBJS:%.o=$(LINTS_DIR)/%.ln)
806N/AROOTMODULE = $(ROOT_HVM_DRV_DIR)/$(MODULE)
806N/A
806N/A#
806N/A# Include common rules.
806N/A#
147N/Ainclude $(UTSBASE)/i86pc/i86hvm/Makefile.i86hvm
147N/A
147N/A#
806N/A# When generating lint libraries, we want the name of the lint module
206N/A# that will be generated to by pv_sd and not sd, so override the
147N/A# default lint module name here.
147N/A#
147N/ALINT_MODULE = pv_sd
147N/A
147N/A#
147N/A# Define targets
147N/A#
147N/AALL_TARGET = $(BINARY)
181N/ALINT_TARGET = $(LINT_MODULE).lint
147N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
181N/A
147N/ALDFLAGS += -dy -Nmisc/strategy -Nmisc/cmlb -Ndrv/xpvd -Ndrv/xdf
147N/ALDFLAGS += -Nmisc/hvm_sd
147N/A
147N/A#
147N/A# The Xen header files do not lint cleanly. Since the troublesome
# structures form part of the externally defined interface to the
# hypervisor, we're stuck with the noise.
#
LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
#
# Default build targets.
#
.KEEP_STATE:
def: $(DEF_DEPS)
all: $(ALL_DEPS)
clean: $(CLEAN_DEPS)
clobber: $(CLOBBER_DEPS)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
#
# Include common targets.
#
include $(UTSBASE)/i86pc/i86hvm/Makefile.targ