c7f70672ae8d9989596a3cf0395cae3f64b5ac01vboxsync# CDDL HEADER START
c7f70672ae8d9989596a3cf0395cae3f64b5ac01vboxsync# The contents of this file are subject to the terms of the
c7f70672ae8d9989596a3cf0395cae3f64b5ac01vboxsync# Common Development and Distribution License (the "License").
c7f70672ae8d9989596a3cf0395cae3f64b5ac01vboxsync# You may not use this file except in compliance with the License.
c7f70672ae8d9989596a3cf0395cae3f64b5ac01vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c7f70672ae8d9989596a3cf0395cae3f64b5ac01vboxsync# See the License for the specific language governing permissions
c7f70672ae8d9989596a3cf0395cae3f64b5ac01vboxsync# and limitations under the License.
c7f70672ae8d9989596a3cf0395cae3f64b5ac01vboxsync# When distributing Covered Code, include this CDDL HEADER in each
c7f70672ae8d9989596a3cf0395cae3f64b5ac01vboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c7f70672ae8d9989596a3cf0395cae3f64b5ac01vboxsync# If applicable, add the following below this CDDL HEADER, with the
c7f70672ae8d9989596a3cf0395cae3f64b5ac01vboxsync# fields enclosed by brackets "[]" replaced with your own identifying
c7f70672ae8d9989596a3cf0395cae3f64b5ac01vboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
c7f70672ae8d9989596a3cf0395cae3f64b5ac01vboxsync# CDDL HEADER END
c7f70672ae8d9989596a3cf0395cae3f64b5ac01vboxsync# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
c7f70672ae8d9989596a3cf0395cae3f64b5ac01vboxsync# Use is subject to license terms.
d5afba4eec453049d8164029471d2d1df0b394e0vboxsync# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
23179f1443b03947d85eccc81cbc6b5153a4abf3vboxsync# This makefile drives the production of the sd driver kernel module.
c7f70672ae8d9989596a3cf0395cae3f64b5ac01vboxsync# sparc architecture dependent
788efbc10d2ab4252b5e73ca20f82d63e19fe578vboxsync# Path to the base of the uts directory tree (usually /usr/src/uts).
c7f70672ae8d9989596a3cf0395cae3f64b5ac01vboxsync# Define the module and object file sets.
c7f70672ae8d9989596a3cf0395cae3f64b5ac01vboxsync# Include common rules.
c7f70672ae8d9989596a3cf0395cae3f64b5ac01vboxsync# Define targets
ea5fccddae90a8c2dd31216288ab6d01a0778d07vboxsyncINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
b5e852fe286f938722f7d8eb6ab96cced98237e4vboxsync# lint pass one enforcement
c7f70672ae8d9989596a3cf0395cae3f64b5ac01vboxsync# Define dependencies on scsi and cmlb
ea5fccddae90a8c2dd31216288ab6d01a0778d07vboxsync# For now, disable these lint checks; maintainers should endeavor
ea5fccddae90a8c2dd31216288ab6d01a0778d07vboxsync# to investigate and remove these for maximum lint coverage.
c7f70672ae8d9989596a3cf0395cae3f64b5ac01vboxsync# Please do not carry these forward to new Makefiles.
fb4b0f4ca593a27c7fbec391aa8fce062a75b9c7vboxsync# Default build targets.
c7f70672ae8d9989596a3cf0395cae3f64b5ac01vboxsync# Include common targets.
c7f70672ae8d9989596a3cf0395cae3f64b5ac01vboxsync# Defines for local commands.
c7f70672ae8d9989596a3cf0395cae3f64b5ac01vboxsync# Warlock targets
a18c323c2fdfe8f00c8f927dc13561e0186be513vboxsync# Note that in warlock_with_{esp,isp} it is important to load sd.ll
4b34a2a15d6421e86cd192dfe63b817d1dab38a1vboxsync# before {isp,esp}.ll; the reason is that both have _init/_info/_fini
a18c323c2fdfe8f00c8f927dc13561e0186be513vboxsync# and warlock can only handle one extern function by a given name;
1b1dbe76c7e01191389b65cc293ebc200b0f0c6bvboxsync# any loaded after the first are ignored.
697b8309e21216b853769cc2bca8b8138ce6a6d6vboxsyncWARLOCK_TARGETS = warlock_alone warlock_with_esp warlock_with_fas
c7f70672ae8d9989596a3cf0395cae3f64b5ac01vboxsync$(WARLOCK_OK): $(WLCMD_DIR)/sd.wlcmd $(WARLOCK_OUT) scsi_files \
b59bd0ad4449e3e8a9a524775d8f9c4245baf2e8vboxsync $(WARLOCK) -c $(WLCMD_DIR)/sd.wlcmd $(WARLOCK_OUT) $(SCSI_FILES) \
c7f70672ae8d9989596a3cf0395cae3f64b5ac01vboxsyncwarlock_with_esp: $(WLCMD_DIR)/sd_with_esp.wlcmd $(WARLOCK_OUT) scsi_files \
c7f70672ae8d9989596a3cf0395cae3f64b5ac01vboxsync $(WARLOCK_OUT) ../esp/esp $(SCSI_FILES) $(CMLB_FILES) \