Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
6ca0e6973c8176100f4a426444823ae5e777e28fsascha#
ce8d7a0627c0f246376cccd980463f8250a6a97ebjh# CDDL HEADER START
cb5d3f2f217d457dada4883addb1dc9f3f17bb85fielding#
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# The contents of this file are subject to the terms of the
6ded37e63424e43b00ca7c9055d355e071d6a444rbb# Common Development and Distribution License (the "License").
ce3da141a81ef0e22f46e496675f602e3c483b88rbb# You may not use this file except in compliance with the License.
5a65270617de7ed4d14b193fdd6deb2d4890e1a6jorton#
65d743d7fbb53143636ee2dec8fe8d8a1a581a6bjerenkrantz# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# or http://www.opensolaris.org/os/licensing.
56ab8639aed4d3b2f031d9c1160c5f40af01bdebjerenkrantz# See the License for the specific language governing permissions
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# and limitations under the License.
6ca0e6973c8176100f4a426444823ae5e777e28fsascha#
87a87c1e1afc7eb004bc10594a9de98411866a20jerenkrantz# When distributing Covered Code, include this CDDL HEADER in each
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1b92a71f5cbda8da4aa13af1034aab30b85bcd99minfrin# If applicable, add the following below this CDDL HEADER, with the
1b92a71f5cbda8da4aa13af1034aab30b85bcd99minfrin# fields enclosed by brackets "[]" replaced with your own identifying
b20fd88fb62a14780223a39488dba735d3643fdcwrowe# information: Portions Copyright [yyyy] [name of copyright owner]
11fc305f8a8a1264c398d80a30983db92514e068jerenkrantz#
11fc305f8a8a1264c398d80a30983db92514e068jerenkrantz# CDDL HEADER END
cb5d3f2f217d457dada4883addb1dc9f3f17bb85fielding#
8f9e3d3dc602155a189ed2f30ad4707af56a8368striker
ab86c68ce36c715e93f403dde41d0b9c1522c8b0sf#
88ecd979f1112454432371f55a1420240fae3743trawick# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
ad1400ab704db9a0d0813670b183a699cea77333jorton# Use is subject to license terms.
cac72a53f6327cd144ce5b26ce753f7a7ceb85a7jim#
1fb1fa8713de956400293b715f191ae8675bfaf1fielding
1fb1fa8713de956400293b715f191ae8675bfaf1fielding#
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# This makefile drives the production of the sgen driver.
1ddf25b77b03f7f4fd7a7676b62755da90cd3e0crbb# sparc architecture dependent
2795c373a9fb112dc77576c1dfc23119f02d598amanoj#
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
6ca0e6973c8176100f4a426444823ae5e777e28fsascha#
aa01f2bd8a4fc8a417b77d6fab108174f9ee1458jorton# Path to the base of the uts directory tree (usually /usr/src/uts).
aa01f2bd8a4fc8a417b77d6fab108174f9ee1458jorton#
aa01f2bd8a4fc8a417b77d6fab108174f9ee1458jortonUTSBASE = ../..
aa01f2bd8a4fc8a417b77d6fab108174f9ee1458jorton
49f79e02c1ca9aaf51f0c1fb06eeb1aa72cb1843gregames#
49f79e02c1ca9aaf51f0c1fb06eeb1aa72cb1843gregames# Define the module and object file sets.
49f79e02c1ca9aaf51f0c1fb06eeb1aa72cb1843gregames#
49f79e02c1ca9aaf51f0c1fb06eeb1aa72cb1843gregamesMODULE = sgen
49f79e02c1ca9aaf51f0c1fb06eeb1aa72cb1843gregamesOBJECTS = $(SGEN_OBJS:%=$(OBJS_DIR)/%)
49f79e02c1ca9aaf51f0c1fb06eeb1aa72cb1843gregamesLINTS = $(SGEN_OBJS:%.o=$(LINTS_DIR)/%.ln)
49f79e02c1ca9aaf51f0c1fb06eeb1aa72cb1843gregamesROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
e34761145134f5cfce7821fb60a06ec82b3b9650rjungCONF_SRCDIR = $(UTSBASE)/common/io/scsi/targets
8e5d996e323397bbcc56710e856475911930a93bjerenkrantz
92c4ce31c526bc9e6272bc1157b496132c13d848rbb#
92c4ce31c526bc9e6272bc1157b496132c13d848rbb# Include common rules.
92c4ce31c526bc9e6272bc1157b496132c13d848rbb#
92c4ce31c526bc9e6272bc1157b496132c13d848rbbinclude $(UTSBASE)/sparc/Makefile.sparc
92c4ce31c526bc9e6272bc1157b496132c13d848rbb
9ed3fee22fa1888a70ac42b7b6b8ea475fad0a6dfuankg#
92c4ce31c526bc9e6272bc1157b496132c13d848rbb# Define targets.
92c4ce31c526bc9e6272bc1157b496132c13d848rbb#
92c4ce31c526bc9e6272bc1157b496132c13d848rbbALL_TARGET = $(BINARY) $(SRC_CONFILE)
92c4ce31c526bc9e6272bc1157b496132c13d848rbbLINT_TARGET = $(MODULE).lint
92c4ce31c526bc9e6272bc1157b496132c13d848rbbINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
92c4ce31c526bc9e6272bc1157b496132c13d848rbb
9ed3fee22fa1888a70ac42b7b6b8ea475fad0a6dfuankg#
92c4ce31c526bc9e6272bc1157b496132c13d848rbb# Note dependancy on misc/scsi.
92c4ce31c526bc9e6272bc1157b496132c13d848rbb#
2b1f314755d8bf35d3e734339c8363c1cb57b3a3rjungLDFLAGS += -dy -N"misc/scsi"
2b1f314755d8bf35d3e734339c8363c1cb57b3a3rjung
2b1f314755d8bf35d3e734339c8363c1cb57b3a3rjung#
2b1f314755d8bf35d3e734339c8363c1cb57b3a3rjung# Overrides.
2b1f314755d8bf35d3e734339c8363c1cb57b3a3rjung#
2b1f314755d8bf35d3e734339c8363c1cb57b3a3rjungCFLAGS += $(CCVERBOSE)
2b1f314755d8bf35d3e734339c8363c1cb57b3a3rjung
2b1f314755d8bf35d3e734339c8363c1cb57b3a3rjung#
2b1f314755d8bf35d3e734339c8363c1cb57b3a3rjung# For now, disable these lint checks; maintainers should endeavor
2b1f314755d8bf35d3e734339c8363c1cb57b3a3rjung# to investigate and remove these for maximum lint coverage.
92c4ce31c526bc9e6272bc1157b496132c13d848rbb# Please do not carry these forward to new Makefiles.
92c4ce31c526bc9e6272bc1157b496132c13d848rbb#
dc12feb05fcd9f7afbe6c5d830898f028370cafbsfLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
fb333f30ae01a1f14b2afaa8a92c99192abf883erjungLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
0a2212da6843659e65c378c5201e6612be625731sf
fb333f30ae01a1f14b2afaa8a92c99192abf883erjungCERRWARN += -_gcc=-Wno-unused-label
0a2212da6843659e65c378c5201e6612be625731sfCERRWARN += -_gcc=-Wno-uninitialized
fb333f30ae01a1f14b2afaa8a92c99192abf883erjung
fb333f30ae01a1f14b2afaa8a92c99192abf883erjung#
fb333f30ae01a1f14b2afaa8a92c99192abf883erjung# Default build targets.
c9e0a2dddde6e561c529fa5ac3c384c136781570rjung#
c9e0a2dddde6e561c529fa5ac3c384c136781570rjung.KEEP_STATE:
c9e0a2dddde6e561c529fa5ac3c384c136781570rjung
c9e0a2dddde6e561c529fa5ac3c384c136781570rjungdef: $(DEF_DEPS)
c9e0a2dddde6e561c529fa5ac3c384c136781570rjung
c9e0a2dddde6e561c529fa5ac3c384c136781570rjungall: $(ALL_DEPS)
c9e0a2dddde6e561c529fa5ac3c384c136781570rjung
c9e0a2dddde6e561c529fa5ac3c384c136781570rjungclean: $(CLEAN_DEPS)
c9e0a2dddde6e561c529fa5ac3c384c136781570rjung
c9e0a2dddde6e561c529fa5ac3c384c136781570rjungclobber: $(CLOBBER_DEPS)
c9e0a2dddde6e561c529fa5ac3c384c136781570rjung
c9e0a2dddde6e561c529fa5ac3c384c136781570rjunglint: $(LINT_DEPS)
92c4ce31c526bc9e6272bc1157b496132c13d848rbb
92c4ce31c526bc9e6272bc1157b496132c13d848rbbmodlintlib: $(MODLINTLIB_DEPS)
92c4ce31c526bc9e6272bc1157b496132c13d848rbb
92c4ce31c526bc9e6272bc1157b496132c13d848rbbclean.lint: $(CLEAN_LINT_DEPS)
92c4ce31c526bc9e6272bc1157b496132c13d848rbb
9ed3fee22fa1888a70ac42b7b6b8ea475fad0a6dfuankginstall: $(INSTALL_DEPS)
92c4ce31c526bc9e6272bc1157b496132c13d848rbb
92c4ce31c526bc9e6272bc1157b496132c13d848rbb#
945a9b081610f2b57759231e4cfad7aed62c9326slive# Include common targets.
945a9b081610f2b57759231e4cfad7aed62c9326slive#
8e5d996e323397bbcc56710e856475911930a93bjerenkrantzinclude $(UTSBASE)/sparc/Makefile.targ
945a9b081610f2b57759231e4cfad7aed62c9326slive