Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
ec79b29695b183f794264bbb578c51e93d1f9b1emartin# CDDL HEADER START
ee508128c414648982d1cca7801f63b01a0a4f8aminfrin# The contents of this file are subject to the terms of the
ce26c909953968ede7c5097e508d37b2fa91ea3arpluem# Common Development and Distribution License (the "License").
ce26c909953968ede7c5097e508d37b2fa91ea3arpluem# You may not use this file except in compliance with the License.
ce26c909953968ede7c5097e508d37b2fa91ea3arpluem# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c7eeb0a294d58c75aee6ed86f73c6e1e8cf600a3rpluem# See the License for the specific language governing permissions
c7eeb0a294d58c75aee6ed86f73c6e1e8cf600a3rpluem# and limitations under the License.
9a60abfb324ea66f9d7089b856f315efeb7056b4trawick# When distributing Covered Code, include this CDDL HEADER in each
9a60abfb324ea66f9d7089b856f315efeb7056b4trawick# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9a60abfb324ea66f9d7089b856f315efeb7056b4trawick# If applicable, add the following below this CDDL HEADER, with the
9a60abfb324ea66f9d7089b856f315efeb7056b4trawick# fields enclosed by brackets "[]" replaced with your own identifying
686ce4eade942e515b1725d0c9751da36b759a6ctrawick# information: Portions Copyright [yyyy] [name of copyright owner]
686ce4eade942e515b1725d0c9751da36b759a6ctrawick# CDDL HEADER END
886f0852a0b7e9f0b6414b157ea9dc403d282e3erpluem# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
886f0852a0b7e9f0b6414b157ea9dc403d282e3erpluem# Use is subject to license terms.
fafad9231a6b47368d4b690346f90698542caa50trawick# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
fafad9231a6b47368d4b690346f90698542caa50trawick# This makefile drives the production of the sd
b1bb7fe353e0f1759febb0c67e517195137275d3rpluem# kernel module.
4bd465052c4a0c8d41e573ee7a90c312d980355fchrisd# Path to the base of the uts directory tree (usually /usr/src/uts).
4bd465052c4a0c8d41e573ee7a90c312d980355fchrisd# Define the module and object file sets.
a87e2a23083aa62229307482afbb3b802a0c2105mturk# Include common rules.
6d8d07c0167960873d449b217da08faab50c410dmjc# Define targets
260825f41ee3fb517a5c5ecd675f5f58de9ea0b7rpluemINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
188befd3a49e3a126bd801d7dc5a7f6e63ad4332mturk# Overrides.
534611d341a1a48b93c7a1fd5e333dbd261527d3rpluem# For now, disable these lint checks; maintainers should endeavor
534611d341a1a48b93c7a1fd5e333dbd261527d3rpluem# to investigate and remove these for maximum lint coverage.
e99dfd55d29a7b4209b814efc7270d0b74ccee74niq# Please do not carry these forward to new Makefiles.
4f15e478033a94d4b2eb3c9cb55c4008806ecd18wrowe# Depends on scsi and cmlb
7e5a8c14bf68438e4098f74999e154d157e33eb7wrowe# Default build targets.
3ec4328f079d8867cc323155e59678ad9437914frooneg# Include common targets.
de0d0b50c96fae59c28e09fed61b0d15cfa4147bchrisd# Defines for local commands.
95817edd05387a5276f51fcd5db79fc21b89b55brooneg# Warlock targets
95817edd05387a5276f51fcd5db79fc21b89b55brooneg# Note that in warlock_with_{esp,isp} it is important to load sd.ll
63689d77e084e36b8194fb6df5adfc0344965e01trawick# before {isp,esp}.ll; the reason is that both have _init/_info/_fini
63689d77e084e36b8194fb6df5adfc0344965e01trawick# and warlock can only handle one extern function by a given name;
63689d77e084e36b8194fb6df5adfc0344965e01trawick# any loaded after the first are ignored.
69c36bbae91de0e99a682aaae9d6fa61fceb2771bnicholes$(CLOSED_BUILD)WARLOCK_TARGETS += warlock_with_mpt warlock_with_glm
69c36bbae91de0e99a682aaae9d6fa61fceb2771bnicholes$(WARLOCK_OK): $(WLCMD_DIR)/sd.wlcmd $(WARLOCK_OUT) scsi_files \
a1a615ca49b162d71d88089210395c9a9cfeb539rpluem $(WARLOCK) -c $(WLCMD_DIR)/sd.wlcmd $(WARLOCK_OUT) $(SCSI_FILES) \
69c36bbae91de0e99a682aaae9d6fa61fceb2771bnicholeswarlock_with_glm: $(WLCMD_DIR)/sd_with_glm.wlcmd $(WARLOCK_OUT) scsi_files \