xref: /titanic_50/usr/src/uts/sun4u/sf/Makefile (revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95)
13d19cdaeSstevel#
23d19cdaeSstevel# CDDL HEADER START
33d19cdaeSstevel#
43d19cdaeSstevel# The contents of this file are subject to the terms of the
53d19cdaeSstevel# Common Development and Distribution License (the "License").
63d19cdaeSstevel# You may not use this file except in compliance with the License.
73d19cdaeSstevel#
83d19cdaeSstevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
93d19cdaeSstevel# or http://www.opensolaris.org/os/licensing.
103d19cdaeSstevel# See the License for the specific language governing permissions
113d19cdaeSstevel# and limitations under the License.
123d19cdaeSstevel#
133d19cdaeSstevel# When distributing Covered Code, include this CDDL HEADER in each
143d19cdaeSstevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
153d19cdaeSstevel# If applicable, add the following below this CDDL HEADER, with the
163d19cdaeSstevel# fields enclosed by brackets "[]" replaced with your own identifying
173d19cdaeSstevel# information: Portions Copyright [yyyy] [name of copyright owner]
183d19cdaeSstevel#
193d19cdaeSstevel# CDDL HEADER END
203d19cdaeSstevel#
213d19cdaeSstevel#
223d19cdaeSstevel# uts/sun4u/sf/Makefile
233d19cdaeSstevel#
243d19cdaeSstevel# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
253d19cdaeSstevel# Use is subject to license terms.
263d19cdaeSstevel#
273d19cdaeSstevel#ident	"%Z%%M%	%I%	%E% SMI"
283d19cdaeSstevel#
293d19cdaeSstevel#	This makefile drives the production of the sf driver kernel module.
303d19cdaeSstevel#
313d19cdaeSstevel#	sun4u architecture dependent
323d19cdaeSstevel#
333d19cdaeSstevel
343d19cdaeSstevel#
353d19cdaeSstevel#	Path to the base of the uts directory tree (usually /usr/src/uts).
363d19cdaeSstevel#
373d19cdaeSstevelUTSBASE	  = ../..
383d19cdaeSstevel
393d19cdaeSstevel#
403d19cdaeSstevel#	Define the module and object file sets.
413d19cdaeSstevel#
423d19cdaeSstevelMODULE		= sf
433d19cdaeSstevelOBJECTS		= $(SF_OBJS:%=$(OBJS_DIR)/%)
443d19cdaeSstevelLINTS		= $(SF_OBJS:%.o=$(LINTS_DIR)/%.ln)
453d19cdaeSstevelROOTMODULE	= $(ROOT_PSM_DRV_DIR)/$(MODULE)
463d19cdaeSstevelCONF_SRCDIR	= $(UTSBASE)/sun/io/scsi/adapters
473d19cdaeSstevel
483d19cdaeSstevel
493d19cdaeSstevel#
503d19cdaeSstevel#	Include common rules.
513d19cdaeSstevel#
523d19cdaeSstevelinclude $(UTSBASE)/sun4u/Makefile.sun4u
533d19cdaeSstevel
543d19cdaeSstevel#
553d19cdaeSstevel#	Define targets
563d19cdaeSstevel#
573d19cdaeSstevelALL_TARGET	= $(BINARY) $(SRC_CONFFILE)
583d19cdaeSstevelLINT_TARGET	= $(MODULE).lint
593d19cdaeSstevelINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
603d19cdaeSstevel
613d19cdaeSstevel#
623d19cdaeSstevel#	Overrides
633d19cdaeSstevel#
643d19cdaeSstevelCFLAGS		+= $(CCVERBOSE)
653d19cdaeSstevel
663d19cdaeSstevel#
67*bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor
68*bb25c06cSjg# to investigate and remove these for maximum lint coverage.
69*bb25c06cSjg# Please do not carry these forward to new Makefiles.
70*bb25c06cSjg#
71*bb25c06cSjgLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
72*bb25c06cSjgLINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW
73*bb25c06cSjgLINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
74*bb25c06cSjg
75*bb25c06cSjg#
763d19cdaeSstevel#	Default build targets.
773d19cdaeSstevel#
783d19cdaeSstevel.KEEP_STATE:
793d19cdaeSstevel
803d19cdaeSsteveldef:		$(DEF_DEPS)
813d19cdaeSstevel
823d19cdaeSstevelall:		$(ALL_DEPS)
833d19cdaeSstevel
843d19cdaeSstevelclean:		$(CLEAN_DEPS)
853d19cdaeSstevel
863d19cdaeSstevelclobber:	$(CLOBBER_DEPS)
873d19cdaeSstevel
883d19cdaeSstevellint:		$(LINT_DEPS)
893d19cdaeSstevel
903d19cdaeSstevelmodlintlib:	$(MODLINTLIB_DEPS)
913d19cdaeSstevel
923d19cdaeSstevelclean.lint:	$(CLEAN_LINT_DEPS)
933d19cdaeSstevel
943d19cdaeSstevelinstall:	$(INSTALL_DEPS)
953d19cdaeSstevel
963d19cdaeSstevel#
973d19cdaeSstevel#	Include common targets.
983d19cdaeSstevel#
993d19cdaeSstevelinclude $(UTSBASE)/sun4u/Makefile.targ
100