Makefile revision 4ebb14b236958cfe1ef4ff3b7a50216d9e51f997
5253N/A#
5253N/A# CDDL HEADER START
5253N/A#
5253N/A# The contents of this file are subject to the terms of the
5253N/A# Common Development and Distribution License (the "License").
5253N/A# You may not use this file except in compliance with the License.
5253N/A#
5253N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5253N/A# or http://www.opensolaris.org/os/licensing.
5253N/A# See the License for the specific language governing permissions
5253N/A# and limitations under the License.
5253N/A#
5253N/A# When distributing Covered Code, include this CDDL HEADER in each
5253N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5253N/A# If applicable, add the following below this CDDL HEADER, with the
5253N/A# fields enclosed by brackets "[]" replaced with your own identifying
5253N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5253N/A#
5253N/A# CDDL HEADER END
5253N/A#
5253N/A#
5253N/A# uts/intel/io/scsi/Makefile
5343N/A#
5253N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
5253N/A# Use is subject to license terms.
5254N/A#
5254N/A#ident "%Z%%M% %I% %E% SMI"
5254N/A#
6917N/A# This makefile drives the production of the scsi kernel module.
6917N/A#
5253N/A# intel architecture dependent
5253N/A#
6917N/A
6917N/A#
5786N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
5253N/A#
7307N/AUTSBASE = ../..
5253N/A
5253N/A#
6917N/A# Define the module and object file sets.
6917N/A#
5253N/AMODULE = scsi
7307N/AOBJECTS = $(SCSI_OBJS:%=$(OBJS_DIR)/%)
5253N/ALINTS = $(SCSI_OBJS:%.o=$(LINTS_DIR)/%.ln)
5253N/AROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
5253N/AWARLOCK_OUT = $(SCSI_OBJS:%.o=%.ll)
5253N/AWARLOCK_OK = $(MODULE).ok
7307N/AWLCMD_DIR = $(UTSBASE)/sparc/$(MODULE)
5253N/A
7307N/A#
5253N/A# Include common rules.
5253N/A#
5253N/Ainclude $(UTSBASE)/intel/Makefile.intel
5253N/A
5256N/A#
5256N/A# Define targets
5256N/A#
5256N/AALL_TARGET = $(BINARY)
5525N/ALINT_TARGET = $(MODULE).lint
5256N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
7307N/A
6973N/A#
5253N/A# Overrides.
5253N/A#
5253N/ADEBUG_FLGS =
5253N/ADEBUG_DEFS += $(DEBUG_FLGS)
5253N/A
6917N/A#
6917N/A# For now, disable these lint checks; maintainers should endeavor
5578N/A# to investigate and remove these for maximum lint coverage.
6917N/A# Please do not carry these forward to new Makefiles.
5253N/A#
5253N/ALINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
5253N/ALINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
5784N/ALINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
5253N/A
5253N/A#
6917N/A# Default build targets.
5253N/A#
5305N/A.KEEP_STATE:
5305N/A
5253N/Adef: $(DEF_DEPS)
5305N/A
5305N/Aall: $(ALL_DEPS)
5305N/A
5305N/Aclean: $(CLEAN_DEPS)
5305N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
5305N/A
5305N/Aclobber: $(CLOBBER_DEPS)
5305N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
5305N/A
5305N/Alint: $(LINT_DEPS)
5305N/A
5305N/Amodlintlib: $(MODLINTLIB_DEPS)
5305N/A
6917N/Aclean.lint: $(CLEAN_LINT_DEPS)
5305N/A
5305N/Ainstall: $(INSTALL_DEPS)
5305N/A
5305N/A#
5305N/A# Include common targets.
5305N/A#
6917N/Ainclude $(UTSBASE)/intel/Makefile.targ
5305N/A
6917N/A#
5305N/A# Defines for local commands.
5305N/A#
5305N/AWLCC = wlcc
5525N/ATOUCH = touch
5525N/A
5253N/A#
5525N/A# Warlock targets
5525N/A#
5525N/Awarlock: $(MODULE).ok
5253N/A
6917N/A%.ok: $(WARLOCK_OUT)
6917N/A $(TOUCH) $@
6917N/A
6917N/A%.ll: $(UTSBASE)/common/io/scsi/impl/%.c
6917N/A $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
5253N/A
5253N/A%.ll: $(UTSBASE)/common/io/scsi/conf/%.c
5525N/A $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
5525N/A