Makefile revision 4851:5e98cf4c2164
1180867Sdavidxu#
2180867Sdavidxu# CDDL HEADER START
3180867Sdavidxu#
4180867Sdavidxu# The contents of this file are subject to the terms of the
5180867Sdavidxu# Common Development and Distribution License (the "License").
6180867Sdavidxu# You may not use this file except in compliance with the License.
7180867Sdavidxu#
8180867Sdavidxu# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9180867Sdavidxu# or http://www.opensolaris.org/os/licensing.
10180867Sdavidxu# See the License for the specific language governing permissions
11180867Sdavidxu# and limitations under the License.
12180867Sdavidxu#
13180867Sdavidxu# When distributing Covered Code, include this CDDL HEADER in each
14180867Sdavidxu# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15180867Sdavidxu# If applicable, add the following below this CDDL HEADER, with the
16180867Sdavidxu# fields enclosed by brackets "[]" replaced with your own identifying
17180867Sdavidxu# information: Portions Copyright [yyyy] [name of copyright owner]
18180867Sdavidxu#
19180867Sdavidxu# CDDL HEADER END
20180867Sdavidxu#
21180867Sdavidxu
22180867Sdavidxu#
23180867Sdavidxu# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
24180867Sdavidxu# Use is subject to license terms.
25180867Sdavidxu#
26180867Sdavidxu
27180867Sdavidxu#
28180867Sdavidxu#pragma ident	"%Z%%M%	%I%	%E% SMI"
29180867Sdavidxu#
30180867Sdavidxu# This makefile drives the production of SCSI vHCI Driver
31180867Sdavidxu# intel architecture dependent
32180867Sdavidxu#
33180867Sdavidxu
34180867Sdavidxu#
35180867Sdavidxu#	Paths to the base of the uts directory trees
36180867Sdavidxu#
37198788SbruefferUTSBASE   = ../..
38180867Sdavidxu
39180867Sdavidxu#
40180867Sdavidxu# Define the module and object file sets.
41180867Sdavidxu#
42180867SdavidxuMODULE		= scsi_vhci
43180867SdavidxuOBJECTS		= $(SCSI_VHCI_OBJS:%=$(OBJS_DIR)/%)
44180867SdavidxuLINTS		= $(SCSI_VHCI_OBJS:%.o=$(LINTS_DIR)/%.ln)
45180867SdavidxuROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
46180867SdavidxuCONF_SRCDIR	= $(UTSBASE)/common/io/scsi/adapters/scsi_vhci
47180867Sdavidxu
48180867Sdavidxu#
49180867Sdavidxu# Include common rules.
50180867Sdavidxu#
51180867Sdavidxuinclude $(UTSBASE)/intel/Makefile.intel
52180867Sdavidxu
53180867Sdavidxu#
54180867Sdavidxu# Define targets.
55180867Sdavidxu#
56180867SdavidxuALL_TARGET	= $(BINARY) $(SRC_CONFILE)
57180867SdavidxuLINT_TARGET	= $(MODULE).lint
58180867SdavidxuINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
59180867Sdavidxu
60180867Sdavidxu#
61180867Sdavidxu# Note dependancy on misc/scsi.
62180867Sdavidxu#
63180867SdavidxuLDFLAGS += -dy -N"misc/scsi"
64180867Sdavidxu
65180867Sdavidxu#
66180867Sdavidxu# Default build targets.
67180867Sdavidxu#
68180867Sdavidxu.KEEP_STATE:
69180867Sdavidxu
70180867Sdavidxudef:		$(DEF_DEPS)
71180867Sdavidxu
72180867Sdavidxuall:		$(ALL_DEPS)
73180867Sdavidxu
74180867Sdavidxuclean:		$(CLEAN_DEPS)
75180867Sdavidxu
76180867Sdavidxuclobber:	$(CLOBBER_DEPS)
77180867Sdavidxu
78180867Sdavidxulint:		$(LINT_DEPS)
79180867Sdavidxu
80180867Sdavidxumodlintlib:	$(MODLINTLIB_DEPS)
81180867Sdavidxu
82180867Sdavidxuclean.lint:	$(CLEAN_LINT_DEPS)
83180867Sdavidxu
84180867Sdavidxuinstall:	$(INSTALL_DEPS)
85180867Sdavidxu
86180867Sdavidxu#
87180867Sdavidxu# Include common targets.
88180867Sdavidxu#
89180867Sdavidxuinclude $(UTSBASE)/intel/Makefile.targ
90180867Sdavidxu