xref: /titanic_50/usr/src/uts/sun4u/sf/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
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.
2689b43686SBayard Bell# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
273d19cdaeSstevel#
283d19cdaeSstevel#	This makefile drives the production of the sf driver kernel module.
293d19cdaeSstevel#
303d19cdaeSstevel#	sun4u architecture dependent
313d19cdaeSstevel#
323d19cdaeSstevel
333d19cdaeSstevel#
343d19cdaeSstevel#	Path to the base of the uts directory tree (usually /usr/src/uts).
353d19cdaeSstevel#
363d19cdaeSstevelUTSBASE	  = ../..
373d19cdaeSstevel
383d19cdaeSstevel#
393d19cdaeSstevel#	Define the module and object file sets.
403d19cdaeSstevel#
413d19cdaeSstevelMODULE		= sf
423d19cdaeSstevelOBJECTS		= $(SF_OBJS:%=$(OBJS_DIR)/%)
433d19cdaeSstevelLINTS		= $(SF_OBJS:%.o=$(LINTS_DIR)/%.ln)
443d19cdaeSstevelROOTMODULE	= $(ROOT_PSM_DRV_DIR)/$(MODULE)
453d19cdaeSstevelCONF_SRCDIR	= $(UTSBASE)/sun/io/scsi/adapters
463d19cdaeSstevel
473d19cdaeSstevel
483d19cdaeSstevel#
493d19cdaeSstevel#	Include common rules.
503d19cdaeSstevel#
513d19cdaeSstevelinclude $(UTSBASE)/sun4u/Makefile.sun4u
523d19cdaeSstevel
533d19cdaeSstevel#
543d19cdaeSstevel#	Define targets
553d19cdaeSstevel#
563d19cdaeSstevelALL_TARGET	= $(BINARY) $(SRC_CONFFILE)
573d19cdaeSstevelLINT_TARGET	= $(MODULE).lint
583d19cdaeSstevelINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
593d19cdaeSstevel
603d19cdaeSstevel#
613d19cdaeSstevel#	Overrides
623d19cdaeSstevel#
633d19cdaeSstevelCFLAGS		+= $(CCVERBOSE)
643d19cdaeSstevel
653d19cdaeSstevel#
6689b43686SBayard Bell# Define dependency on scsi
6789b43686SBayard Bell#
6889b43686SBayard BellLDFLAGS += -dy -N misc/scsi
6989b43686SBayard Bell
7089b43686SBayard Bell#
71bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor
72bb25c06cSjg# to investigate and remove these for maximum lint coverage.
73bb25c06cSjg# Please do not carry these forward to new Makefiles.
74bb25c06cSjg#
75bb25c06cSjgLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
76bb25c06cSjgLINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW
77bb25c06cSjgLINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
78bb25c06cSjg
79*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-value
80*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
81*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
82*7014882cSRichard Lowe
83bb25c06cSjg#
843d19cdaeSstevel#	Default build targets.
853d19cdaeSstevel#
863d19cdaeSstevel.KEEP_STATE:
873d19cdaeSstevel
883d19cdaeSsteveldef:		$(DEF_DEPS)
893d19cdaeSstevel
903d19cdaeSstevelall:		$(ALL_DEPS)
913d19cdaeSstevel
923d19cdaeSstevelclean:		$(CLEAN_DEPS)
933d19cdaeSstevel
943d19cdaeSstevelclobber:	$(CLOBBER_DEPS)
953d19cdaeSstevel
963d19cdaeSstevellint:		$(LINT_DEPS)
973d19cdaeSstevel
983d19cdaeSstevelmodlintlib:	$(MODLINTLIB_DEPS)
993d19cdaeSstevel
1003d19cdaeSstevelclean.lint:	$(CLEAN_LINT_DEPS)
1013d19cdaeSstevel
1023d19cdaeSstevelinstall:	$(INSTALL_DEPS)
1033d19cdaeSstevel
1043d19cdaeSstevel#
1053d19cdaeSstevel#	Include common targets.
1063d19cdaeSstevel#
1073d19cdaeSstevelinclude $(UTSBASE)/sun4u/Makefile.targ
108