xref: /titanic_50/usr/src/uts/sparc/sgen/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
19a016c63Sstevel#
29a016c63Sstevel# CDDL HEADER START
39a016c63Sstevel#
49a016c63Sstevel# The contents of this file are subject to the terms of the
59a016c63Sstevel# Common Development and Distribution License (the "License").
69a016c63Sstevel# You may not use this file except in compliance with the License.
79a016c63Sstevel#
89a016c63Sstevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
99a016c63Sstevel# or http://www.opensolaris.org/os/licensing.
109a016c63Sstevel# See the License for the specific language governing permissions
119a016c63Sstevel# and limitations under the License.
129a016c63Sstevel#
139a016c63Sstevel# When distributing Covered Code, include this CDDL HEADER in each
149a016c63Sstevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
159a016c63Sstevel# If applicable, add the following below this CDDL HEADER, with the
169a016c63Sstevel# fields enclosed by brackets "[]" replaced with your own identifying
179a016c63Sstevel# information: Portions Copyright [yyyy] [name of copyright owner]
189a016c63Sstevel#
199a016c63Sstevel# CDDL HEADER END
209a016c63Sstevel#
219a016c63Sstevel
229a016c63Sstevel#
239a016c63Sstevel# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
249a016c63Sstevel# Use is subject to license terms.
259a016c63Sstevel#
269a016c63Sstevel
279a016c63Sstevel#
289a016c63Sstevel# This makefile drives the production of the sgen driver.
299a016c63Sstevel# sparc architecture dependent
309a016c63Sstevel#
319a016c63Sstevel
329a016c63Sstevel#
339a016c63Sstevel# Path to the base of the uts directory tree (usually /usr/src/uts).
349a016c63Sstevel#
359a016c63SstevelUTSBASE   = ../..
369a016c63Sstevel
379a016c63Sstevel#
389a016c63Sstevel# Define the module and object file sets.
399a016c63Sstevel#
409a016c63SstevelMODULE		= sgen
419a016c63SstevelOBJECTS		= $(SGEN_OBJS:%=$(OBJS_DIR)/%)
429a016c63SstevelLINTS		= $(SGEN_OBJS:%.o=$(LINTS_DIR)/%.ln)
439a016c63SstevelROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
449a016c63SstevelCONF_SRCDIR	= $(UTSBASE)/common/io/scsi/targets
459a016c63Sstevel
469a016c63Sstevel#
479a016c63Sstevel# Include common rules.
489a016c63Sstevel#
499a016c63Sstevelinclude $(UTSBASE)/sparc/Makefile.sparc
509a016c63Sstevel
519a016c63Sstevel#
529a016c63Sstevel# Define targets.
539a016c63Sstevel#
549a016c63SstevelALL_TARGET	= $(BINARY) $(SRC_CONFILE)
559a016c63SstevelLINT_TARGET	= $(MODULE).lint
569a016c63SstevelINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
579a016c63Sstevel
589a016c63Sstevel#
599a016c63Sstevel# Note dependancy on misc/scsi.
609a016c63Sstevel#
619a016c63SstevelLDFLAGS += -dy -N"misc/scsi"
629a016c63Sstevel
639a016c63Sstevel#
649a016c63Sstevel# Overrides.
659a016c63Sstevel#
669a016c63SstevelCFLAGS += $(CCVERBOSE)
679a016c63Sstevel
689a016c63Sstevel#
69bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor
70bb25c06cSjg# to investigate and remove these for maximum lint coverage.
71bb25c06cSjg# Please do not carry these forward to new Makefiles.
72bb25c06cSjg#
73bb25c06cSjgLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
74bb25c06cSjgLINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
75bb25c06cSjg
76*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-label
77*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
78*7014882cSRichard Lowe
79bb25c06cSjg#
809a016c63Sstevel# Default build targets.
819a016c63Sstevel#
829a016c63Sstevel.KEEP_STATE:
839a016c63Sstevel
849a016c63Ssteveldef:		$(DEF_DEPS)
859a016c63Sstevel
869a016c63Sstevelall:		$(ALL_DEPS)
879a016c63Sstevel
889a016c63Sstevelclean:		$(CLEAN_DEPS)
899a016c63Sstevel
909a016c63Sstevelclobber:	$(CLOBBER_DEPS)
919a016c63Sstevel
929a016c63Sstevellint:		$(LINT_DEPS)
939a016c63Sstevel
949a016c63Sstevelmodlintlib:	$(MODLINTLIB_DEPS)
959a016c63Sstevel
969a016c63Sstevelclean.lint:	$(CLEAN_LINT_DEPS)
979a016c63Sstevel
989a016c63Sstevelinstall:	$(INSTALL_DEPS)
999a016c63Sstevel
1009a016c63Sstevel#
1019a016c63Sstevel# Include common targets.
1029a016c63Sstevel#
1039a016c63Sstevelinclude $(UTSBASE)/sparc/Makefile.targ
104