xref: /titanic_44/usr/src/uts/sparc/mr_sas/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
134841cc2SYu Wu - Sun Microsystems - Beijing China#
234841cc2SYu Wu - Sun Microsystems - Beijing China# CDDL HEADER START
334841cc2SYu Wu - Sun Microsystems - Beijing China#
434841cc2SYu Wu - Sun Microsystems - Beijing China# The contents of this file are subject to the terms of the
534841cc2SYu Wu - Sun Microsystems - Beijing China# Common Development and Distribution License (the "License").
634841cc2SYu Wu - Sun Microsystems - Beijing China# You may not use this file except in compliance with the License.
734841cc2SYu Wu - Sun Microsystems - Beijing China#
834841cc2SYu Wu - Sun Microsystems - Beijing China# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
934841cc2SYu Wu - Sun Microsystems - Beijing China# or http://www.opensolaris.org/os/licensing.
1034841cc2SYu Wu - Sun Microsystems - Beijing China# See the License for the specific language governing permissions
1134841cc2SYu Wu - Sun Microsystems - Beijing China# and limitations under the License.
1234841cc2SYu Wu - Sun Microsystems - Beijing China#
1334841cc2SYu Wu - Sun Microsystems - Beijing China# When distributing Covered Code, include this CDDL HEADER in each
1434841cc2SYu Wu - Sun Microsystems - Beijing China# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1534841cc2SYu Wu - Sun Microsystems - Beijing China# If applicable, add the following below this CDDL HEADER, with the
1634841cc2SYu Wu - Sun Microsystems - Beijing China# fields enclosed by brackets "[]" replaced with your own identifying
1734841cc2SYu Wu - Sun Microsystems - Beijing China# information: Portions Copyright [yyyy] [name of copyright owner]
1834841cc2SYu Wu - Sun Microsystems - Beijing China#
1934841cc2SYu Wu - Sun Microsystems - Beijing China# CDDL HEADER END
2034841cc2SYu Wu - Sun Microsystems - Beijing China#
2134841cc2SYu Wu - Sun Microsystems - Beijing China
2234841cc2SYu Wu - Sun Microsystems - Beijing China#
2334841cc2SYu Wu - Sun Microsystems - Beijing China# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
2434841cc2SYu Wu - Sun Microsystems - Beijing China# Use is subject to license terms.
2534841cc2SYu Wu - Sun Microsystems - Beijing China#
2634841cc2SYu Wu - Sun Microsystems - Beijing China#	This makefile drives the production of the mr_sas driver kernel module.
2734841cc2SYu Wu - Sun Microsystems - Beijing China#
2834841cc2SYu Wu - Sun Microsystems - Beijing China#	Sparc implementation architecture dependent
2934841cc2SYu Wu - Sun Microsystems - Beijing China#
3034841cc2SYu Wu - Sun Microsystems - Beijing China
3134841cc2SYu Wu - Sun Microsystems - Beijing China#
3234841cc2SYu Wu - Sun Microsystems - Beijing China#	Path to the base of the uts directory tree (usually /usr/src/uts).
3334841cc2SYu Wu - Sun Microsystems - Beijing China#
3434841cc2SYu Wu - Sun Microsystems - Beijing ChinaUTSBASE	= ../..
3534841cc2SYu Wu - Sun Microsystems - Beijing China
3634841cc2SYu Wu - Sun Microsystems - Beijing China#
3734841cc2SYu Wu - Sun Microsystems - Beijing China#	Define the module and object file sets.
3834841cc2SYu Wu - Sun Microsystems - Beijing China#
3934841cc2SYu Wu - Sun Microsystems - Beijing ChinaMODULE		= mr_sas
4034841cc2SYu Wu - Sun Microsystems - Beijing ChinaOBJECTS		= $(MR_SAS_OBJS:%=$(OBJS_DIR)/%)
4134841cc2SYu Wu - Sun Microsystems - Beijing ChinaLINTS		= $(MR_SAS_OBJS:%.o=$(LINTS_DIR)/%.ln)
4234841cc2SYu Wu - Sun Microsystems - Beijing ChinaROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
4334841cc2SYu Wu - Sun Microsystems - Beijing ChinaCONF_SRCDIR	= $(UTSBASE)/common/io/mr_sas
4434841cc2SYu Wu - Sun Microsystems - Beijing China
4534841cc2SYu Wu - Sun Microsystems - Beijing China#
4634841cc2SYu Wu - Sun Microsystems - Beijing China#	Include common rules.
4734841cc2SYu Wu - Sun Microsystems - Beijing China#
4834841cc2SYu Wu - Sun Microsystems - Beijing Chinainclude $(UTSBASE)/sparc/Makefile.sparc
4934841cc2SYu Wu - Sun Microsystems - Beijing China
5034841cc2SYu Wu - Sun Microsystems - Beijing China#
5134841cc2SYu Wu - Sun Microsystems - Beijing China#	Define targets
5234841cc2SYu Wu - Sun Microsystems - Beijing China#
5334841cc2SYu Wu - Sun Microsystems - Beijing ChinaALL_TARGET	= $(BINARY) $(CONFMOD)
5434841cc2SYu Wu - Sun Microsystems - Beijing ChinaLINT_TARGET	= $(MODULE).lint
5534841cc2SYu Wu - Sun Microsystems - Beijing ChinaINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
5634841cc2SYu Wu - Sun Microsystems - Beijing China
5734841cc2SYu Wu - Sun Microsystems - Beijing China#
5834841cc2SYu Wu - Sun Microsystems - Beijing China# lint pass one enforcement
5934841cc2SYu Wu - Sun Microsystems - Beijing China#
6034841cc2SYu Wu - Sun Microsystems - Beijing ChinaCFLAGS		+= $(CCVERBOSE)
6134841cc2SYu Wu - Sun Microsystems - Beijing China
62*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-label
63*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
64*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
65*7014882cSRichard Lowe
6634841cc2SYu Wu - Sun Microsystems - Beijing China#
6734841cc2SYu Wu - Sun Microsystems - Beijing China# Turn on doubleword alignment for 64 bit registers
6834841cc2SYu Wu - Sun Microsystems - Beijing China#
6934841cc2SYu Wu - Sun Microsystems - Beijing ChinaCFLAGS		+= -dalign
7034841cc2SYu Wu - Sun Microsystems - Beijing China
7134841cc2SYu Wu - Sun Microsystems - Beijing China#
7234841cc2SYu Wu - Sun Microsystems - Beijing China# 	Kernel Module Dependencies
7334841cc2SYu Wu - Sun Microsystems - Beijing China#
7434841cc2SYu Wu - Sun Microsystems - Beijing ChinaLDFLAGS		+= -dy -Nmisc/scsi
7534841cc2SYu Wu - Sun Microsystems - Beijing China
7634841cc2SYu Wu - Sun Microsystems - Beijing China#
7734841cc2SYu Wu - Sun Microsystems - Beijing China# 	Overrides
7834841cc2SYu Wu - Sun Microsystems - Beijing China#
7934841cc2SYu Wu - Sun Microsystems - Beijing China
8034841cc2SYu Wu - Sun Microsystems - Beijing China#
8134841cc2SYu Wu - Sun Microsystems - Beijing China#	Default build targets.
8234841cc2SYu Wu - Sun Microsystems - Beijing China#
8334841cc2SYu Wu - Sun Microsystems - Beijing China.KEEP_STATE:
8434841cc2SYu Wu - Sun Microsystems - Beijing China
8534841cc2SYu Wu - Sun Microsystems - Beijing Chinadef:		$(DEF_DEPS)
8634841cc2SYu Wu - Sun Microsystems - Beijing China
8734841cc2SYu Wu - Sun Microsystems - Beijing Chinaall:		$(ALL_DEPS)
8834841cc2SYu Wu - Sun Microsystems - Beijing China
8934841cc2SYu Wu - Sun Microsystems - Beijing Chinaclean:		$(CLEAN_DEPS)
9034841cc2SYu Wu - Sun Microsystems - Beijing China
9134841cc2SYu Wu - Sun Microsystems - Beijing Chinaclobber:	$(CLOBBER_DEPS)
9234841cc2SYu Wu - Sun Microsystems - Beijing China
9334841cc2SYu Wu - Sun Microsystems - Beijing Chinalint:		$(LINT_DEPS)
9434841cc2SYu Wu - Sun Microsystems - Beijing China
9534841cc2SYu Wu - Sun Microsystems - Beijing Chinamodlintlib:	$(MODLINTLIB_DEPS)
9634841cc2SYu Wu - Sun Microsystems - Beijing China
9734841cc2SYu Wu - Sun Microsystems - Beijing Chinaclean.lint:	$(CLEAN_LINT_DEPS)
9834841cc2SYu Wu - Sun Microsystems - Beijing China
9934841cc2SYu Wu - Sun Microsystems - Beijing Chinainstall:	$(INSTALL_DEPS)
10034841cc2SYu Wu - Sun Microsystems - Beijing China
10134841cc2SYu Wu - Sun Microsystems - Beijing China#
10234841cc2SYu Wu - Sun Microsystems - Beijing China#	Include common targets.
10334841cc2SYu Wu - Sun Microsystems - Beijing China#
10434841cc2SYu Wu - Sun Microsystems - Beijing Chinainclude $(UTSBASE)/sparc/Makefile.targ
105