Makefile revision bf56214c0556fa6864189c826d39dbe156bb22a0
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# CDDL HEADER START
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# The contents of this file are subject to the terms of the
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# Common Development and Distribution License (the "License").
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# You may not use this file except in compliance with the License.
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# or http://www.opensolaris.org/os/licensing.
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# See the License for the specific language governing permissions
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# and limitations under the License.
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# When distributing Covered Code, include this CDDL HEADER in each
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# If applicable, add the following below this CDDL HEADER, with the
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# fields enclosed by brackets "[]" replaced with your own identifying
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# information: Portions Copyright [yyyy] [name of copyright owner]
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# CDDL HEADER END
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# Use is subject to license terms.
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov#ident "%Z%%M% %I% %E% SMI"
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# This makefile drives the production of the scsa2usb driver
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# kernel module. intel architecture dependent
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# Path to the base of the uts directory tree (usually /usr/src/uts).
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# Define the module and object file sets.
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai KondrashovOBJECTS = $(SCSA2USB_OBJS:%=$(OBJS_DIR)/%)
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai KondrashovLINTS = $(SCSA2USB_OBJS:%.o=$(LINTS_DIR)/%.ln)
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai KondrashovCONF_SRCDIR = $(UTSBASE)/common/io/usb/scsa2usb
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# Include common rules.
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# Define targets
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai KondrashovINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# Override defaults to build a unique, local modstubs.o.
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# For now, disable these lint checks; maintainers should endeavor
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# to investigate and remove these for maximum lint coverage.
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# Please do not carry these forward to new Makefiles.
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai KondrashovLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# Default build targets.
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# Include common targets.
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# Defines for local commands.
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# lock_lint rules
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai KondrashovUSBA_FILES = $(USBA_OBJS:%.o=../usba/%.ll)
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai KondrashovUHCI_FILES = $(UHCI_OBJS:%.o=../uhci/%.ll)
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai KondrashovOHCI_FILES = $(OHCI_OBJS:%.o=../ohci/%.ll)
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai KondrashovEHCI_FILES = $(EHCI_OBJS:%.o=../ehci/%.ll)
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai KondrashovSCSI_FILES = $(SCSI_OBJS:%.o= -l ../scsi/%.ll)
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai KondrashovCMLB_FILES = $(CMLB_OBJS:%.o=-l ../cmlb/%.ll)
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov$(WARLOCK_OK): $(WARLOCK_OUT) $(WLCMD_DIR)/scsa2usb.wlcmd warlock_ddi.files \
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov $(WARLOCK) -c $(WLCMD_DIR)/scsa2usb.wlcmd $(WARLOCK_OUT) \
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov%.ll: $(UTSBASE)/common/io/usb/scsa2usb/%.c \
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov $(UTSBASE)/common/sys/usb/clients/mass_storage/usb_bulkonly.h \
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov $(UTSBASE)/common/sys/usb/clients/mass_storage/usb_cbi.h \
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov $(UTSBASE)/common/sys/usb/scsa2usb/scsa2usb.h
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashovwarlock_with_usba: $(WLCMD_DIR)/scsa2usb_with_usba.wlcmd \
8ef1a136c1406bd1bab66e4ebf75b9375090cd86Nikolai Kondrashov ohci_files ehci_files uhci_files warlock_ddi.files sd.files st.files \
8ef1a136c1406bd1bab66e4ebf75b9375090cd86Nikolai Kondrashov $(WARLOCK) -c $(WLCMD_DIR)/scsa2usb_with_usba.wlcmd \