xref: /illumos-gate/usr/src/uts/intel/mega_sas/Makefile (revision 6029a2d88c01674debfd7c2e16c941a97302b739)
1*6029a2d8Ssusans#
2*6029a2d8Ssusans# CDDL HEADER START
3*6029a2d8Ssusans#
4*6029a2d8Ssusans# The contents of this file are subject to the terms of the
5*6029a2d8Ssusans# Common Development and Distribution License (the "License").
6*6029a2d8Ssusans# You may not use this file except in compliance with the License.
7*6029a2d8Ssusans#
8*6029a2d8Ssusans# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*6029a2d8Ssusans# or http://www.opensolaris.org/os/licensing.
10*6029a2d8Ssusans# See the License for the specific language governing permissions
11*6029a2d8Ssusans# and limitations under the License.
12*6029a2d8Ssusans#
13*6029a2d8Ssusans# When distributing Covered Code, include this CDDL HEADER in each
14*6029a2d8Ssusans# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*6029a2d8Ssusans# If applicable, add the following below this CDDL HEADER, with the
16*6029a2d8Ssusans# fields enclosed by brackets "[]" replaced with your own identifying
17*6029a2d8Ssusans# information: Portions Copyright [yyyy] [name of copyright owner]
18*6029a2d8Ssusans#
19*6029a2d8Ssusans# CDDL HEADER END
20*6029a2d8Ssusans#
21*6029a2d8Ssusans# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
22*6029a2d8Ssusans# Use is subject to license terms.
23*6029a2d8Ssusans#
24*6029a2d8Ssusans# ident	"%Z%%M%	%I%	%E% SMI"
25*6029a2d8Ssusans#
26*6029a2d8Ssusans# uts/intel/mega_sas/Makefile
27*6029a2d8Ssusans#
28*6029a2d8Ssusans#	This makefile drives the production of the mega_sas driver kernel module.
29*6029a2d8Ssusans#
30*6029a2d8Ssusans#	intel implementation architecture dependent
31*6029a2d8Ssusans#
32*6029a2d8Ssusans
33*6029a2d8Ssusans#
34*6029a2d8Ssusans#	Path to the base of the uts directory tree (usually /usr/src/uts).
35*6029a2d8Ssusans#
36*6029a2d8SsusansUTSBASE	= ../..
37*6029a2d8Ssusans
38*6029a2d8Ssusans#
39*6029a2d8Ssusans#	Define the module and object file sets.
40*6029a2d8Ssusans#
41*6029a2d8SsusansMODULE		= mega_sas
42*6029a2d8SsusansOBJECTS		= $(MEGA_SAS_OBJS:%=$(OBJS_DIR)/%)
43*6029a2d8SsusansLINTS		= $(MEGA_SAS_OBJS:%.o=$(LINTS_DIR)/%.ln)
44*6029a2d8SsusansROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
45*6029a2d8SsusansCONF_SRCDIR     = $(UTSBASE)/common/io/mega_sas
46*6029a2d8Ssusans
47*6029a2d8Ssusans#
48*6029a2d8Ssusans#	Include common rules.
49*6029a2d8Ssusans#
50*6029a2d8Ssusansinclude $(UTSBASE)/intel/Makefile.intel
51*6029a2d8Ssusans
52*6029a2d8Ssusans#
53*6029a2d8Ssusans#	Define targets
54*6029a2d8Ssusans#
55*6029a2d8SsusansALL_TARGET	= $(BINARY) $(CONFMOD)
56*6029a2d8SsusansLINT_TARGET	= $(MODULE).lint
57*6029a2d8SsusansINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
58*6029a2d8Ssusans
59*6029a2d8Ssusans#
60*6029a2d8Ssusans# 	Kernel Module Dependencies
61*6029a2d8Ssusans#
62*6029a2d8SsusansLDFLAGS		+= -dy -Nmisc/scsi
63*6029a2d8Ssusans
64*6029a2d8Ssusans#
65*6029a2d8Ssusans#	Default build targets.
66*6029a2d8Ssusans#
67*6029a2d8Ssusans.KEEP_STATE:
68*6029a2d8Ssusans
69*6029a2d8Ssusansdef:		$(DEF_DEPS)
70*6029a2d8Ssusans
71*6029a2d8Ssusansall:		$(ALL_DEPS)
72*6029a2d8Ssusans
73*6029a2d8Ssusansclean:		$(CLEAN_DEPS)
74*6029a2d8Ssusans
75*6029a2d8Ssusansclobber:	$(CLOBBER_DEPS)
76*6029a2d8Ssusans
77*6029a2d8Ssusanslint:		$(LINT_DEPS)
78*6029a2d8Ssusans
79*6029a2d8Ssusansmodlintlib:	$(MODLINTLIB_DEPS)
80*6029a2d8Ssusans
81*6029a2d8Ssusansclean.lint:	$(CLEAN_LINT_DEPS)
82*6029a2d8Ssusans
83*6029a2d8Ssusansinstall:	$(INSTALL_DEPS)
84*6029a2d8Ssusans
85*6029a2d8Ssusans#
86*6029a2d8Ssusans#	Include common targets.
87*6029a2d8Ssusans#
88*6029a2d8Ssusansinclude $(UTSBASE)/intel/Makefile.targ
89