xref: /illumos-gate/usr/src/uts/intel/mega_sas/Makefile (revision 82d0151a)
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#
24efe51d0cSJohn Levon# Copyright 2019 Joyent, Inc.
256029a2d8Ssusans#
266029a2d8Ssusans
276029a2d8Ssusans#
286029a2d8Ssusans#	Path to the base of the uts directory tree (usually /usr/src/uts).
296029a2d8Ssusans#
306029a2d8SsusansUTSBASE	= ../..
316029a2d8Ssusans
326029a2d8Ssusans#
336029a2d8Ssusans#	Define the module and object file sets.
346029a2d8Ssusans#
356029a2d8SsusansMODULE		= mega_sas
366029a2d8SsusansOBJECTS		= $(MEGA_SAS_OBJS:%=$(OBJS_DIR)/%)
376029a2d8SsusansROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
386029a2d8SsusansCONF_SRCDIR     = $(UTSBASE)/common/io/mega_sas
396029a2d8Ssusans
406029a2d8Ssusans#
416029a2d8Ssusans#	Include common rules.
426029a2d8Ssusans#
436029a2d8Ssusansinclude $(UTSBASE)/intel/Makefile.intel
446029a2d8Ssusans
456029a2d8Ssusans#
466029a2d8Ssusans#	Define targets
476029a2d8Ssusans#
486029a2d8SsusansALL_TARGET	= $(BINARY) $(CONFMOD)
496029a2d8SsusansINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
506029a2d8Ssusans
516029a2d8Ssusans#
526029a2d8Ssusans#	Kernel Module Dependencies
536029a2d8Ssusans#
54*82d0151aSRichard LoweLDFLAGS		+= -Nmisc/scsi
556029a2d8Ssusans
56d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
577014882cSRichard Lowe
58b6b206fcSJohn Levon# needs work
59efe51d0cSJohn Levon$(OBJS_DIR)/megaraid_sas.o := SMOFF += snprintf_overflow,all_func_returns,index_overflow
60b6b206fcSJohn Levon
616029a2d8Ssusans#
626029a2d8Ssusans#	Default build targets.
636029a2d8Ssusans#
646029a2d8Ssusans.KEEP_STATE:
656029a2d8Ssusans
666029a2d8Ssusansdef:		$(DEF_DEPS)
676029a2d8Ssusans
686029a2d8Ssusansall:		$(ALL_DEPS)
696029a2d8Ssusans
706029a2d8Ssusansclean:		$(CLEAN_DEPS)
716029a2d8Ssusans
726029a2d8Ssusansclobber:	$(CLOBBER_DEPS)
736029a2d8Ssusans
746029a2d8Ssusansinstall:	$(INSTALL_DEPS)
756029a2d8Ssusans
766029a2d8Ssusans#
776029a2d8Ssusans#	Include common targets.
786029a2d8Ssusans#
796029a2d8Ssusansinclude $(UTSBASE)/intel/Makefile.targ
80