3652N/A# CDDL HEADER START
3652N/A#
3652N/A# The contents of this file are subject to the terms of the
3652N/A# Common Development and Distribution License (the "License").
3652N/A# You may not use this file except in compliance with the License.
3652N/A#
3652N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
3652N/A# or http://www.opensolaris.org/os/licensing.
3652N/A# See the License for the specific language governing permissions
3652N/A# and limitations under the License.
3652N/A#
3652N/A# When distributing Covered Code, include this CDDL HEADER in each
3652N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
3652N/A# If applicable, add the following below this CDDL HEADER, with the
3652N/A# fields enclosed by brackets "[]" replaced with your own identifying
3652N/A# information: Portions Copyright [yyyy] [name of copyright owner]
3652N/A#
3652N/A# CDDL HEADER END
3652N/A#
3652N/A
3652N/A#
3652N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
3652N/A# Use is subject to license terms.
3652N/A#
3652N/A
3652N/A#
3652N/A#
3652N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
3652N/A#
3652N/AUTSBASE = ../..
3652N/A
3652N/A#
3652N/A# Define the module and object file sets.
3652N/A#
3652N/AMODULE = nv_sata
3652N/AOBJECTS = $(NV_SATA_OBJS:%=$(OBJS_DIR)/%)
3652N/ALINTS = $(NV_SATA_OBJS:%.o=$(LINTS_DIR)/%.ln)
3652N/AWARLOCK_OUT = $(NV_SATA_OBJS:%.o=%.ll)
3652N/AWARLOCK_OK = $(MODULE).ok
3652N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
3652N/ACONF_SRCDIR = $(UTSBASE)/common/io/sata/adapters/nv_sata
3652N/AWLCMD_DIR = $(UTSBASE)/common/io/warlock
3652N/A
3652N/A#
3652N/A# Include common rules.
3652N/A#
3652N/Ainclude $(UTSBASE)/sparc/Makefile.sparc
3652N/A
3652N/A#
3652N/A# Define targets
3652N/A#
3652N/AALL_TARGET = $(BINARY)
3652N/ALINT_TARGET = $(MODULE).lint
3652N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
3652N/A
3652N/A#
3652N/A# Overrides.
3652N/A#
3652N/ADEBUG_FLGS =
3652N/ADEBUG_DEFS += $(DEBUG_FLGS)
3652N/A
3652N/A#
3652N/A# lint pass one enforcement
3652N/A#
3652N/ACFLAGS += $(CCVERBOSE)
3652N/A
3652N/A#
3652N/A# Default build targets.
3652N/A#
3652N/A.KEEP_STATE:
3652N/A
3652N/Adef: $(DEF_DEPS)
3652N/A
3652N/Aall: $(ALL_DEPS)
3652N/A
3652N/Aclean: $(CLEAN_DEPS)
3652N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
3652N/A
3652N/Aclobber: $(CLOBBER_DEPS)
3652N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
3652N/A
3652N/Alint: $(LINT_DEPS)
3652N/A
3652N/Amodlintlib: $(MODLINTLIB_DEPS)
3652N/A
3652N/Aclean.lint: $(CLEAN_LINT_DEPS)
3652N/A
3652N/Ainstall: $(INSTALL_DEPS)
3652N/A
3652N/ACERRWARN += -_gcc=-Wno-uninitialized
3652N/A
3652N/A#
3652N/A# Include common targets.
3652N/A#
3652N/Ainclude $(UTSBASE)/sparc/Makefile.targ
3652N/A
3652N/A
3652N/A#
3652N/A# Defines for local commands.
3652N/A#
3652N/AWARLOCK = warlock
3652N/AWLCC = wlcc
3652N/ATOUCH = touch
3652N/ATEST = test
3652N/A
3652N/ASD_FILES = $(SD_OBJS:%.o=../sd/%.ll)
3652N/ASATA_FILES = $(SATA_OBJS:%.o=-l ../sata/%.ll)
3652N/ASCSI_FILES = $(SCSI_OBJS:%.o=-l ../scsi/%.ll)
3652N/ACMLB_FILES = $(CMLB_OBJS:%.o=-l ../cmlb/%.ll)
3652N/A
3652N/Awarlock: $(WARLOCK_OK)
3652N/A
3652N/A$(WARLOCK_OK): $(WLCMD_DIR)/nv_sata.wlcmd $(WARLOCK_OUT) warlock_ddi.files \
3652N/A sata.files scsi.files sd.files cmlb.files
3652N/A $(WARLOCK) -c $(WLCMD_DIR)/nv_sata.wlcmd $(WARLOCK_OUT) \
3652N/A $(SD_FILES) \
3652N/A $(SCSI_FILES) \
3652N/A $(CMLB_FILES) \
3652N/A $(SATA_FILES) \
3652N/A -l ../warlock/ddi_dki_impl.ll
3652N/A $(TOUCH) $@
3652N/A
3652N/A%.ll: $(UTSBASE)/common/io/sata/adapters/nv_sata/%.c
3652N/A $(WLCC) $(CPPFLAGS) -D DEBUG -D __sparcv9 -o $@ $<
3652N/A
3652N/Asata.files:
3652N/A @cd ../sata; pwd; $(MAKE) warlock
3652N/A
3652N/Ascsi.files:
3652N/A @cd ../scsi; pwd; $(MAKE) warlock
3652N/A
3652N/Asd.files:
3652N/A @cd ../sd; pwd; $(MAKE) warlock_alone
3652N/A
3652N/Acmlb.files:
3652N/A @cd ../cmlb; pwd; $(MAKE) warlock
3652N/A
3652N/A
3652N/Awarlock_ddi.files:
3652N/A @cd ../warlock; pwd; $(MAKE) warlock