xref: /illumos-gate/usr/src/uts/intel/mega_sas/Makefile (revision 7014882c)
16029a2d8Ssusans#
26029a2d8Ssusans# CDDL HEADER START
36029a2d8Ssusans#
46029a2d8Ssusans# The contents of this file are subject to the terms of the
56029a2d8Ssusans# Common Development and Distribution License (the "License").
66029a2d8Ssusans# You may not use this file except in compliance with the License.
76029a2d8Ssusans#
86029a2d8Ssusans# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
96029a2d8Ssusans# or http://www.opensolaris.org/os/licensing.
106029a2d8Ssusans# See the License for the specific language governing permissions
116029a2d8Ssusans# and limitations under the License.
126029a2d8Ssusans#
136029a2d8Ssusans# When distributing Covered Code, include this CDDL HEADER in each
146029a2d8Ssusans# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
156029a2d8Ssusans# If applicable, add the following below this CDDL HEADER, with the
166029a2d8Ssusans# fields enclosed by brackets "[]" replaced with your own identifying
176029a2d8Ssusans# information: Portions Copyright [yyyy] [name of copyright owner]
186029a2d8Ssusans#
196029a2d8Ssusans# CDDL HEADER END
206029a2d8Ssusans#
216029a2d8Ssusans# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
226029a2d8Ssusans# Use is subject to license terms.
236029a2d8Ssusans#
24*7014882cSRichard Lowe
256029a2d8Ssusans#
266029a2d8Ssusans# uts/intel/mega_sas/Makefile
276029a2d8Ssusans#
286029a2d8Ssusans#	This makefile drives the production of the mega_sas driver kernel module.
296029a2d8Ssusans#
306029a2d8Ssusans#	intel implementation architecture dependent
316029a2d8Ssusans#
326029a2d8Ssusans
336029a2d8Ssusans#
346029a2d8Ssusans#	Path to the base of the uts directory tree (usually /usr/src/uts).
356029a2d8Ssusans#
366029a2d8SsusansUTSBASE	= ../..
376029a2d8Ssusans
386029a2d8Ssusans#
396029a2d8Ssusans#	Define the module and object file sets.
406029a2d8Ssusans#
416029a2d8SsusansMODULE		= mega_sas
426029a2d8SsusansOBJECTS		= $(MEGA_SAS_OBJS:%=$(OBJS_DIR)/%)
436029a2d8SsusansLINTS		= $(MEGA_SAS_OBJS:%.o=$(LINTS_DIR)/%.ln)
446029a2d8SsusansROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
456029a2d8SsusansCONF_SRCDIR     = $(UTSBASE)/common/io/mega_sas
466029a2d8Ssusans
476029a2d8Ssusans#
486029a2d8Ssusans#	Include common rules.
496029a2d8Ssusans#
506029a2d8Ssusansinclude $(UTSBASE)/intel/Makefile.intel
516029a2d8Ssusans
526029a2d8Ssusans#
536029a2d8Ssusans#	Define targets
546029a2d8Ssusans#
556029a2d8SsusansALL_TARGET	= $(BINARY) $(CONFMOD)
566029a2d8SsusansLINT_TARGET	= $(MODULE).lint
576029a2d8SsusansINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
586029a2d8Ssusans
596029a2d8Ssusans#
606029a2d8Ssusans# 	Kernel Module Dependencies
616029a2d8Ssusans#
626029a2d8SsusansLDFLAGS		+= -dy -Nmisc/scsi
636029a2d8Ssusans
64*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
65*7014882cSRichard Lowe
666029a2d8Ssusans#
676029a2d8Ssusans#	Default build targets.
686029a2d8Ssusans#
696029a2d8Ssusans.KEEP_STATE:
706029a2d8Ssusans
716029a2d8Ssusansdef:		$(DEF_DEPS)
726029a2d8Ssusans
736029a2d8Ssusansall:		$(ALL_DEPS)
746029a2d8Ssusans
756029a2d8Ssusansclean:		$(CLEAN_DEPS)
766029a2d8Ssusans
776029a2d8Ssusansclobber:	$(CLOBBER_DEPS)
786029a2d8Ssusans
796029a2d8Ssusanslint:		$(LINT_DEPS)
806029a2d8Ssusans
816029a2d8Ssusansmodlintlib:	$(MODLINTLIB_DEPS)
826029a2d8Ssusans
836029a2d8Ssusansclean.lint:	$(CLEAN_LINT_DEPS)
846029a2d8Ssusans
856029a2d8Ssusansinstall:	$(INSTALL_DEPS)
866029a2d8Ssusans
876029a2d8Ssusans#
886029a2d8Ssusans#	Include common targets.
896029a2d8Ssusans#
906029a2d8Ssusansinclude $(UTSBASE)/intel/Makefile.targ
91