Makefile revision e8fb11a1575b42dcd5c49341c588d9f6cd636135
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# CDDL HEADER START
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# The contents of this file are subject to the terms of the
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# Common Development and Distribution License (the "License").
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# You may not use this file except in compliance with the License.
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# or http://www.opensolaris.org/os/licensing.
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# See the License for the specific language governing permissions
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# and limitations under the License.
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# When distributing Covered Code, include this CDDL HEADER in each
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# If applicable, add the following below this CDDL HEADER, with the
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# fields enclosed by brackets "[]" replaced with your own identifying
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# information: Portions Copyright [yyyy] [name of copyright owner]
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# CDDL HEADER END
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# Use is subject to license terms.
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland#ident "%Z%%M% %I% %E% SMI"
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# This makefile drives the production of the sd
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# kernel module.
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# Path to the base of the uts directory tree (usually /usr/src/uts).
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# Define the module and object file sets.
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah WaterlandCONF_SRCDIR = $(UTSBASE)/intel/io/scsi/targets
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# Include common rules.
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# Define targets
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah WaterlandINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah WaterlandINC_PATH += -I$(UTSBASE)/intel/io/scsi/targets
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# For now, disable these lint checks; maintainers should endeavor
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# to investigate and remove these for maximum lint coverage.
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# Please do not carry these forward to new Makefiles.
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# Default build targets.
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# Include common targets.
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# Defines for local commands.
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# Warlock targets
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# Note that in warlock_with_{esp,isp} it is important to load sd.ll
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# before {isp,esp}.ll; the reason is that both have _init/_info/_fini
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# and warlock can only handle one extern function by a given name;
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# any loaded after the first are ignored.
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah WaterlandSCSI_FILES = $(SCSI_OBJS:%.o=-l ../scsi/%.ll)
%.wlcmd:
$(CMLB_FILES) \
$(TOUCH) $@
$(WARLOCK_OUT) \
$(WARLOCK_OUT) \