xref: /titanic_44/usr/src/uts/i86pc/i86hvm/hvm_sd/Makefile (revision f104f8ab92be3d99031b3ca58c42c2860ee0b9b3)
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/hvm_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 Pilatowicz# Normally when compiling sd there are .conf file definitions and
41*df49e4e4SYuri Pankov# definitions for warlock, but we don't bother with those here.
427f0b8309SEdward Pilatowicz#
437f0b8309SEdward PilatowiczMODULE		= hvm_sd
447f0b8309SEdward PilatowiczOBJECTS		= $(HVM_SD_OBJS:%=$(OBJS_DIR)/%)
457f0b8309SEdward PilatowiczLINTS		= $(HVM_SD_OBJS:%.o=$(LINTS_DIR)/%.ln)
467f0b8309SEdward PilatowiczROOTMODULE	= $(ROOT_HVM_MISC_DIR)/$(MODULE)
477f0b8309SEdward Pilatowicz
487f0b8309SEdward Pilatowicz#
497f0b8309SEdward Pilatowicz#	Include common rules.
507f0b8309SEdward Pilatowicz#
517f0b8309SEdward Pilatowiczinclude $(UTSBASE)/i86pc/i86hvm/Makefile.i86hvm
527f0b8309SEdward Pilatowicz
537f0b8309SEdward Pilatowicz#
547f0b8309SEdward Pilatowicz#	Define targets
557f0b8309SEdward Pilatowicz#
567f0b8309SEdward PilatowiczALL_TARGET	= $(BINARY)
577f0b8309SEdward PilatowiczLINT_TARGET	= $(MODULE).lint
587f0b8309SEdward PilatowiczINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
597f0b8309SEdward Pilatowicz
607f0b8309SEdward PilatowiczINC_PATH	+= -I$(UTSBASE)/intel/io/scsi/targets
617f0b8309SEdward Pilatowicz
627f0b8309SEdward Pilatowicz#
637f0b8309SEdward Pilatowicz# For now, disable these lint checks; maintainers should endeavor
647f0b8309SEdward Pilatowicz# to investigate and remove these for maximum lint coverage.
657f0b8309SEdward Pilatowicz# Please do not carry these forward to new Makefiles.
667f0b8309SEdward Pilatowicz#
677f0b8309SEdward PilatowiczLINTTAGS	+= -erroff=E_SUSPICIOUS_COMPARISON
687f0b8309SEdward PilatowiczLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
697f0b8309SEdward PilatowiczLINTTAGS	+= -erroff=E_STATIC_UNUSED
707f0b8309SEdward PilatowiczLINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW
717f0b8309SEdward PilatowiczLINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
727f0b8309SEdward Pilatowicz
737f0b8309SEdward Pilatowicz#
74*df49e4e4SYuri Pankov#	Depends on scsi and cmlb
75*df49e4e4SYuri Pankov#
76*df49e4e4SYuri PankovLDFLAGS		+= -dy -N misc/scsi -N misc/cmlb
77*df49e4e4SYuri Pankov
78*df49e4e4SYuri Pankov#
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