Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
5d92fff82718cd018f0b61a10b9ad4d2b8064c95rpluem#
bf52162f2d05c1fb1a107c7ef108de73f739b3edpquerna# CDDL HEADER START
9c67ffea79ab184351b5d554b57814e13285e758jim#
9c67ffea79ab184351b5d554b57814e13285e758jim# The contents of this file are subject to the terms of the
e9bf808f770605c1f54a9d0fb1c560115c91fd71sf# Common Development and Distribution License (the "License").
e9bf808f770605c1f54a9d0fb1c560115c91fd71sf# You may not use this file except in compliance with the License.
e9bf808f770605c1f54a9d0fb1c560115c91fd71sf#
575cc52562c51c0c8bb8de0c6eaa55a60f7f895bsf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
575cc52562c51c0c8bb8de0c6eaa55a60f7f895bsf# or http://www.opensolaris.org/os/licensing.
575cc52562c51c0c8bb8de0c6eaa55a60f7f895bsf# See the License for the specific language governing permissions
490993ea2eda52d4fdacff247eb2657296c86f71trawick# and limitations under the License.
490993ea2eda52d4fdacff247eb2657296c86f71trawick#
03502de2853fcebaf853ed3bcfd5033894c238bbjim# When distributing Covered Code, include this CDDL HEADER in each
03502de2853fcebaf853ed3bcfd5033894c238bbjim# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
03502de2853fcebaf853ed3bcfd5033894c238bbjim# If applicable, add the following below this CDDL HEADER, with the
03502de2853fcebaf853ed3bcfd5033894c238bbjim# fields enclosed by brackets "[]" replaced with your own identifying
afee7998d5045107a7673f09bc3448a5dc1b6612jim# information: Portions Copyright [yyyy] [name of copyright owner]
afee7998d5045107a7673f09bc3448a5dc1b6612jim#
6ec154950417d0b32082f6590ffa3acc3e0c3d49sf# CDDL HEADER END
6ec154950417d0b32082f6590ffa3acc3e0c3d49sf#
6ec154950417d0b32082f6590ffa3acc3e0c3d49sf
6ec154950417d0b32082f6590ffa3acc3e0c3d49sf#
b38e1e2f118f67818f88faee827f4b3a2881e908sf# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
3d636d91428f2c0a74012c89a94ec7d5b40aa52esf# Use is subject to license terms.
b38e1e2f118f67818f88faee827f4b3a2881e908sf#
33e53d7c6aa5d004d96ea11d7f3ca35b30e82544trawick# This makefile drives the production of the mr_sas driver kernel module.
33e53d7c6aa5d004d96ea11d7f3ca35b30e82544trawick#
20e0c71be778348516719e1e58a9f55c8e78c570trawick# Sparc implementation architecture dependent
027f7b141f164258b254c38319d06452b25d7660trawick#
027f7b141f164258b254c38319d06452b25d7660trawick
977c4527be5a21182f24fc22a40a79d576a52f86trawick#
977c4527be5a21182f24fc22a40a79d576a52f86trawick# Path to the base of the uts directory tree (usually /usr/src/uts).
977c4527be5a21182f24fc22a40a79d576a52f86trawick#
7fef9f66804ea10d5bf343cdd3d607465e8340cajimUTSBASE = ../..
7fef9f66804ea10d5bf343cdd3d607465e8340cajim
7fef9f66804ea10d5bf343cdd3d607465e8340cajim#
3770ed746d69c7a4111cba9966169bd5d7a509a6poirier# Define the module and object file sets.
3770ed746d69c7a4111cba9966169bd5d7a509a6poirier#
3770ed746d69c7a4111cba9966169bd5d7a509a6poirierMODULE = mr_sas
3770ed746d69c7a4111cba9966169bd5d7a509a6poirierOBJECTS = $(MR_SAS_OBJS:%=$(OBJS_DIR)/%)
3770ed746d69c7a4111cba9966169bd5d7a509a6poirierLINTS = $(MR_SAS_OBJS:%.o=$(LINTS_DIR)/%.ln)
7bd92b29516bc4bf7351d35aa447dbe68f1e8bb4jortonROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
7bd92b29516bc4bf7351d35aa447dbe68f1e8bb4jortonCONF_SRCDIR = $(UTSBASE)/common/io/mr_sas
7bd92b29516bc4bf7351d35aa447dbe68f1e8bb4jorton
a81c0c1ae464b2063a21b45f80c9da8d89bb840ecovener#
a81c0c1ae464b2063a21b45f80c9da8d89bb840ecovener# Include common rules.
a81c0c1ae464b2063a21b45f80c9da8d89bb840ecovener#
ffae06377667a5d8f9699ac7512134de7000a83dminfrininclude $(UTSBASE)/sparc/Makefile.sparc
ffae06377667a5d8f9699ac7512134de7000a83dminfrin
ffae06377667a5d8f9699ac7512134de7000a83dminfrin#
ffae06377667a5d8f9699ac7512134de7000a83dminfrin# Define targets
efc81fe729a2b7401028387da184b4a98f0b854atrawick#
efc81fe729a2b7401028387da184b4a98f0b854atrawickALL_TARGET = $(BINARY) $(CONFMOD)
efc81fe729a2b7401028387da184b4a98f0b854atrawickLINT_TARGET = $(MODULE).lint
efc81fe729a2b7401028387da184b4a98f0b854atrawickINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
9c67ffea79ab184351b5d554b57814e13285e758jim
8f066564bfc0fd6ddc6ca4b2f2410615554597d1jim#
8f066564bfc0fd6ddc6ca4b2f2410615554597d1jim# lint pass one enforcement
4acc1efe19ac2e6f2df0abb4d5bf99bd8ae3c5c6jim#
4acc1efe19ac2e6f2df0abb4d5bf99bd8ae3c5c6jimCFLAGS += $(CCVERBOSE)
4acc1efe19ac2e6f2df0abb4d5bf99bd8ae3c5c6jim
29ecbd9db1622e74964264d078336f7604d65093jimCERRWARN += -_gcc=-Wno-unused-label
29ecbd9db1622e74964264d078336f7604d65093jimCERRWARN += -_gcc=-Wno-switch
29ecbd9db1622e74964264d078336f7604d65093jimCERRWARN += -_gcc=-Wno-uninitialized
a503caacf7ab36d5bc42cb7c78256e1221642656jim
a503caacf7ab36d5bc42cb7c78256e1221642656jim#
da40dfabefd6f8eb8450e9a097c594ee2ab13e3eminfrin# Turn on doubleword alignment for 64 bit registers
da40dfabefd6f8eb8450e9a097c594ee2ab13e3eminfrin#
da40dfabefd6f8eb8450e9a097c594ee2ab13e3eminfrinCFLAGS += -dalign
da40dfabefd6f8eb8450e9a097c594ee2ab13e3eminfrin
59d316b83d42d2a07e25c20d8c35a07b369618bdsf#
59d316b83d42d2a07e25c20d8c35a07b369618bdsf# Kernel Module Dependencies
59d316b83d42d2a07e25c20d8c35a07b369618bdsf#
59d316b83d42d2a07e25c20d8c35a07b369618bdsfLDFLAGS += -dy -Nmisc/scsi
8602c898d4e06a7e7b9d6b7cf4b172a8e7310987sf
8602c898d4e06a7e7b9d6b7cf4b172a8e7310987sf#
8602c898d4e06a7e7b9d6b7cf4b172a8e7310987sf# Overrides
8602c898d4e06a7e7b9d6b7cf4b172a8e7310987sf#
8602c898d4e06a7e7b9d6b7cf4b172a8e7310987sf
4acc1efe19ac2e6f2df0abb4d5bf99bd8ae3c5c6jim#
4acc1efe19ac2e6f2df0abb4d5bf99bd8ae3c5c6jim# Default build targets.
4acc1efe19ac2e6f2df0abb4d5bf99bd8ae3c5c6jim#
4acc1efe19ac2e6f2df0abb4d5bf99bd8ae3c5c6jim.KEEP_STATE:
4acc1efe19ac2e6f2df0abb4d5bf99bd8ae3c5c6jim
4acc1efe19ac2e6f2df0abb4d5bf99bd8ae3c5c6jimdef: $(DEF_DEPS)
3e2582713ed6883683272fbc628a27419d0ed543minfrin
3e2582713ed6883683272fbc628a27419d0ed543minfrinall: $(ALL_DEPS)
3e2582713ed6883683272fbc628a27419d0ed543minfrin
3e2582713ed6883683272fbc628a27419d0ed543minfrinclean: $(CLEAN_DEPS)
2c132b1e3610da2fb9e6b3594a313efa3ff29e22minfrin
2c132b1e3610da2fb9e6b3594a313efa3ff29e22minfrinclobber: $(CLOBBER_DEPS)
2c132b1e3610da2fb9e6b3594a313efa3ff29e22minfrin
a46801e6532423aa7bd184471eb49158d7c9ae62sflint: $(LINT_DEPS)
a46801e6532423aa7bd184471eb49158d7c9ae62sf
a46801e6532423aa7bd184471eb49158d7c9ae62sfmodlintlib: $(MODLINTLIB_DEPS)
808a26d70f28498b9d7252a70d9fb23def781901minfrin
808a26d70f28498b9d7252a70d9fb23def781901minfrinclean.lint: $(CLEAN_LINT_DEPS)
ef12246b88300687bf1faaf56d115dd8d8d82761jorton
6f9bf764bc79571d1da19dfbbd78527fca278a8eminfrininstall: $(INSTALL_DEPS)
6f9bf764bc79571d1da19dfbbd78527fca278a8eminfrin
6f9bf764bc79571d1da19dfbbd78527fca278a8eminfrin#
6f9bf764bc79571d1da19dfbbd78527fca278a8eminfrin# Include common targets.
7d59a9f282af9dce031b61062a0d941641101237rpluem#
7d59a9f282af9dce031b61062a0d941641101237rplueminclude $(UTSBASE)/sparc/Makefile.targ
7d59a9f282af9dce031b61062a0d941641101237rpluem