xref: /illumos-gate/usr/src/uts/intel/mega_sas/Makefile (revision b6b206fc7fb36f7b13b01acf70ed6e676e405998)
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*b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc.
257014882cSRichard Lowe
266029a2d8Ssusans#
276029a2d8Ssusans# uts/intel/mega_sas/Makefile
286029a2d8Ssusans#
296029a2d8Ssusans#	This makefile drives the production of the mega_sas driver kernel module.
306029a2d8Ssusans#
316029a2d8Ssusans#	intel implementation architecture dependent
326029a2d8Ssusans#
336029a2d8Ssusans
346029a2d8Ssusans#
356029a2d8Ssusans#	Path to the base of the uts directory tree (usually /usr/src/uts).
366029a2d8Ssusans#
376029a2d8SsusansUTSBASE	= ../..
386029a2d8Ssusans
396029a2d8Ssusans#
406029a2d8Ssusans#	Define the module and object file sets.
416029a2d8Ssusans#
426029a2d8SsusansMODULE		= mega_sas
436029a2d8SsusansOBJECTS		= $(MEGA_SAS_OBJS:%=$(OBJS_DIR)/%)
446029a2d8SsusansLINTS		= $(MEGA_SAS_OBJS:%.o=$(LINTS_DIR)/%.ln)
456029a2d8SsusansROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
466029a2d8SsusansCONF_SRCDIR     = $(UTSBASE)/common/io/mega_sas
476029a2d8Ssusans
486029a2d8Ssusans#
496029a2d8Ssusans#	Include common rules.
506029a2d8Ssusans#
516029a2d8Ssusansinclude $(UTSBASE)/intel/Makefile.intel
526029a2d8Ssusans
536029a2d8Ssusans#
546029a2d8Ssusans#	Define targets
556029a2d8Ssusans#
566029a2d8SsusansALL_TARGET	= $(BINARY) $(CONFMOD)
576029a2d8SsusansLINT_TARGET	= $(MODULE).lint
586029a2d8SsusansINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
596029a2d8Ssusans
606029a2d8Ssusans#
616029a2d8Ssusans# 	Kernel Module Dependencies
626029a2d8Ssusans#
636029a2d8SsusansLDFLAGS		+= -dy -Nmisc/scsi
646029a2d8Ssusans
657014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
667014882cSRichard Lowe
67*b6b206fcSJohn Levon# needs work
68*b6b206fcSJohn Levon$(OBJS_DIR)/megaraid_sas.o := SMOFF += snprintf_overflow,all_func_returns
69*b6b206fcSJohn Levon
706029a2d8Ssusans#
716029a2d8Ssusans#	Default build targets.
726029a2d8Ssusans#
736029a2d8Ssusans.KEEP_STATE:
746029a2d8Ssusans
756029a2d8Ssusansdef:		$(DEF_DEPS)
766029a2d8Ssusans
776029a2d8Ssusansall:		$(ALL_DEPS)
786029a2d8Ssusans
796029a2d8Ssusansclean:		$(CLEAN_DEPS)
806029a2d8Ssusans
816029a2d8Ssusansclobber:	$(CLOBBER_DEPS)
826029a2d8Ssusans
836029a2d8Ssusanslint:		$(LINT_DEPS)
846029a2d8Ssusans
856029a2d8Ssusansmodlintlib:	$(MODLINTLIB_DEPS)
866029a2d8Ssusans
876029a2d8Ssusansclean.lint:	$(CLEAN_LINT_DEPS)
886029a2d8Ssusans
896029a2d8Ssusansinstall:	$(INSTALL_DEPS)
906029a2d8Ssusans
916029a2d8Ssusans#
926029a2d8Ssusans#	Include common targets.
936029a2d8Ssusans#
946029a2d8Ssusansinclude $(UTSBASE)/intel/Makefile.targ
95