17f0b8309SEdward Pilatowicz# 27f0b8309SEdward Pilatowicz# CDDL HEADER START 37f0b8309SEdward Pilatowicz# 47f0b8309SEdward Pilatowicz# The contents of this file are subject to the terms of the 57f0b8309SEdward Pilatowicz# Common Development and Distribution License (the "License"). 67f0b8309SEdward Pilatowicz# You may not use this file except in compliance with the License. 77f0b8309SEdward Pilatowicz# 87f0b8309SEdward Pilatowicz# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97f0b8309SEdward Pilatowicz# or http://www.opensolaris.org/os/licensing. 107f0b8309SEdward Pilatowicz# See the License for the specific language governing permissions 117f0b8309SEdward Pilatowicz# and limitations under the License. 127f0b8309SEdward Pilatowicz# 137f0b8309SEdward Pilatowicz# When distributing Covered Code, include this CDDL HEADER in each 147f0b8309SEdward Pilatowicz# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157f0b8309SEdward Pilatowicz# If applicable, add the following below this CDDL HEADER, with the 167f0b8309SEdward Pilatowicz# fields enclosed by brackets "[]" replaced with your own identifying 177f0b8309SEdward Pilatowicz# information: Portions Copyright [yyyy] [name of copyright owner] 187f0b8309SEdward Pilatowicz# 197f0b8309SEdward Pilatowicz# CDDL HEADER END 207f0b8309SEdward Pilatowicz# 217f0b8309SEdward Pilatowicz# 227f0b8309SEdward Pilatowicz# uts/i86pc/i86hvm/pv_sd/Makefile 237f0b8309SEdward Pilatowicz# 247f0b8309SEdward Pilatowicz# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 257f0b8309SEdward Pilatowicz# Use is subject to license terms. 267f0b8309SEdward Pilatowicz# 277f0b8309SEdward Pilatowicz# This makefile drives the production of the xdc driver. 287f0b8309SEdward Pilatowicz# 297f0b8309SEdward Pilatowicz# i86pc implementation architecture dependent 307f0b8309SEdward Pilatowicz# 317f0b8309SEdward Pilatowicz 327f0b8309SEdward Pilatowicz# 337f0b8309SEdward Pilatowicz# Path to the base of the uts directory tree (usually /usr/src/uts). 347f0b8309SEdward Pilatowicz# 357f0b8309SEdward PilatowiczUTSBASE = ../../.. 367f0b8309SEdward Pilatowicz 377f0b8309SEdward Pilatowicz# 387f0b8309SEdward Pilatowicz# Define the module and object file sets. 397f0b8309SEdward Pilatowicz# 407f0b8309SEdward PilatowiczMODULE = sd 417f0b8309SEdward PilatowiczOBJECTS = $(PV_SD_OBJS:%=$(OBJS_DIR)/%) 427f0b8309SEdward PilatowiczLINTS = $(PV_SD_OBJS:%.o=$(LINTS_DIR)/%.ln) 437f0b8309SEdward PilatowiczROOTMODULE = $(ROOT_HVM_DRV_DIR)/$(MODULE) 447f0b8309SEdward Pilatowicz 457f0b8309SEdward Pilatowicz# 467f0b8309SEdward Pilatowicz# Include common rules. 477f0b8309SEdward Pilatowicz# 487f0b8309SEdward Pilatowiczinclude $(UTSBASE)/i86pc/i86hvm/Makefile.i86hvm 497f0b8309SEdward Pilatowicz 507f0b8309SEdward Pilatowicz# 517f0b8309SEdward Pilatowicz# When generating lint libraries, we want the name of the lint module 527f0b8309SEdward Pilatowicz# that will be generated to by pv_sd and not sd, so override the 537f0b8309SEdward Pilatowicz# default lint module name here. 547f0b8309SEdward Pilatowicz# 557f0b8309SEdward PilatowiczLINT_MODULE = pv_sd 567f0b8309SEdward Pilatowicz 577f0b8309SEdward Pilatowicz# 587f0b8309SEdward Pilatowicz# Define targets 597f0b8309SEdward Pilatowicz# 607f0b8309SEdward PilatowiczALL_TARGET = $(BINARY) 617f0b8309SEdward PilatowiczLINT_TARGET = $(LINT_MODULE).lint 627f0b8309SEdward PilatowiczINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 637f0b8309SEdward Pilatowicz 647f0b8309SEdward PilatowiczLDFLAGS += -dy -Nmisc/strategy -Nmisc/cmlb -Ndrv/xpvd -Ndrv/xdf 657f0b8309SEdward PilatowiczLDFLAGS += -Nmisc/hvm_sd 667f0b8309SEdward Pilatowicz 677f0b8309SEdward Pilatowicz# 687f0b8309SEdward Pilatowicz# The Xen header files do not lint cleanly. Since the troublesome 697f0b8309SEdward Pilatowicz# structures form part of the externally defined interface to the 707f0b8309SEdward Pilatowicz# hypervisor, we're stuck with the noise. 717f0b8309SEdward Pilatowicz# 727f0b8309SEdward PilatowiczLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 737f0b8309SEdward PilatowiczLINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED 747f0b8309SEdward PilatowiczLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV 757f0b8309SEdward Pilatowicz 76*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 77*7014882cSRichard Lowe 787f0b8309SEdward Pilatowicz# 797f0b8309SEdward Pilatowicz# Default build targets. 807f0b8309SEdward Pilatowicz# 817f0b8309SEdward Pilatowicz.KEEP_STATE: 827f0b8309SEdward Pilatowicz 837f0b8309SEdward Pilatowiczdef: $(DEF_DEPS) 847f0b8309SEdward Pilatowicz 857f0b8309SEdward Pilatowiczall: $(ALL_DEPS) 867f0b8309SEdward Pilatowicz 877f0b8309SEdward Pilatowiczclean: $(CLEAN_DEPS) 887f0b8309SEdward Pilatowicz 897f0b8309SEdward Pilatowiczclobber: $(CLOBBER_DEPS) 907f0b8309SEdward Pilatowicz 917f0b8309SEdward Pilatowiczlint: $(LINT_DEPS) 927f0b8309SEdward Pilatowicz 937f0b8309SEdward Pilatowiczmodlintlib: $(MODLINTLIB_DEPS) 947f0b8309SEdward Pilatowicz 957f0b8309SEdward Pilatowiczclean.lint: $(CLEAN_LINT_DEPS) 967f0b8309SEdward Pilatowicz 977f0b8309SEdward Pilatowiczinstall: $(INSTALL_DEPS) 987f0b8309SEdward Pilatowicz 997f0b8309SEdward Pilatowicz# 1007f0b8309SEdward Pilatowicz# Include common targets. 1017f0b8309SEdward Pilatowicz# 1027f0b8309SEdward Pilatowiczinclude $(UTSBASE)/i86pc/i86hvm/Makefile.targ 103