Makefile revision bf56214c0556fa6864189c826d39dbe156bb22a0
20N/A#
20N/A# CDDL HEADER START
20N/A#
20N/A# The contents of this file are subject to the terms of the
20N/A# Common Development and Distribution License (the "License").
20N/A# You may not use this file except in compliance with the License.
20N/A#
20N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
20N/A# or http://www.opensolaris.org/os/licensing.
20N/A# See the License for the specific language governing permissions
20N/A# and limitations under the License.
20N/A#
20N/A# When distributing Covered Code, include this CDDL HEADER in each
20N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
20N/A# If applicable, add the following below this CDDL HEADER, with the
20N/A# fields enclosed by brackets "[]" replaced with your own identifying
20N/A# information: Portions Copyright [yyyy] [name of copyright owner]
20N/A#
20N/A# CDDL HEADER END
20N/A#
20N/A#
20N/A# uts/intel/ses/Makefile
20N/A#
20N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
20N/A# Use is subject to license terms.
20N/A#
20N/A#ident "%Z%%M% %I% %E% SMI"
42N/A#
42N/A# This makefile drives the production of the ses (SCSI enclosure
42N/A# services) driver kernel module.
42N/A#
42N/A# intel implementation architecture dependent
42N/A#
42N/A
42N/A#
42N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
42N/A#
42N/AUTSBASE = ../..
42N/A
42N/A#
42N/A# Define the module and object file sets.
42N/A#
42N/AMODULE = ses
42N/AOBJECTS = $(SES_OBJS:%=$(OBJS_DIR)/%)
42N/ALINTS = $(SES_OBJS:%.o=$(LINTS_DIR)/%.ln)
42N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
20N/ACONF_SRCDIR = $(UTSBASE)/intel/io/scsi/targets
20N/AWARLOCK_OUT = $(SES_OBJS:%.o=%.ll)
42N/AWARLOCK_OK = $(MODULE).ok
42N/AWLCMD_DIR = $(UTSBASE)/common/io/warlock
42N/A
42N/A#
42N/A# Include common rules.
20N/A#
20N/Ainclude $(UTSBASE)/intel/Makefile.intel
20N/A
20N/A#
20N/A# Define targets
20N/A#
20N/AALL_TARGET = $(BINARY) $(SRC_CONFILE)
49N/ALINT_TARGET = $(MODULE).lint
20N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
20N/ACLEANFILES += $(WARLOCK_TARGETS)
20N/A
20N/A#
20N/A# For now, disable these lint checks; maintainers should endeavor
20N/A# to investigate and remove these for maximum lint coverage.
20N/A# Please do not carry these forward to new Makefiles.
20N/A#
20N/ALINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
20N/ALINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
20N/A
20N/A#
20N/A# Default build targets.
20N/A#
20N/A.KEEP_STATE:
20N/A
20N/Adef: $(DEF_DEPS)
20N/A
20N/Aall: $(ALL_DEPS)
20N/A
20N/Aclean: $(CLEAN_DEPS)
20N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
20N/A
20N/Aclobber: $(CLOBBER_DEPS)
20N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
20N/A
20N/Alint: $(LINT_DEPS)
20N/A
20N/Amodlintlib: $(MODLINTLIB_DEPS)
20N/A
20N/Aclean.lint: $(CLEAN_LINT_DEPS)
20N/A
20N/Ainstall: $(INSTALL_DEPS)
38N/A
38N/A#
42N/A# Include common targets.
42N/A#
42N/Ainclude $(UTSBASE)/intel/Makefile.targ
42N/A
38N/A
20N/A#
20N/A# Defines for local commands.
20N/A#
20N/AWARLOCK = warlock
42N/AWLCC = wlcc
42N/ATOUCH = touch
42N/ATEST = test
42N/A
42N/A#
42N/A# Warlock targets
42N/A#
42N/ASCSI_FILES = $(SCSI_OBJS:%.o=-l ../scsi/%.ll)
42N/A
42N/AWARLOCK_TARGETS = $(WARLOCK_OK)
42N/A$(CLOSED_BUILD)WARLOCK_TARGETS += warlock_with_glm
42N/A
42N/Awarlock: $(WARLOCK_TARGETS)
42N/A
42N/A# XXX FIX ME: why only ses.ll?
42N/A
42N/A$(WARLOCK_OK): $(WLCMD_DIR)/$(MODULE).wlcmd $(WARLOCK_OUT)
42N/A @cd ../warlock; $(MAKE) warlock
42N/A @cd ../scsi; $(MAKE) warlock
42N/A $(WARLOCK) -c $(WLCMD_DIR)/$(MODULE).wlcmd ses.ll \
42N/A ../warlock/scsi.ll \
42N/A -l ../warlock/ddi_dki_impl.ll \
42N/A $(SCSI_FILES)
42N/A @ $(TOUCH) $@
42N/A
42N/A%.ll: $(UTSBASE)/common/io/scsi/targets/%.c
42N/A $(WLCC) $(CPPFLAGS) -o $@ $<
42N/A
42N/Awarlock_with_glm: $(WLCMD_DIR)/ses_with_glm.wlcmd $(WARLOCK_OUT) glm_files
42N/A @cd ../warlock; $(MAKE) warlock
42N/A @cd ../scsi; $(MAKE) warlock
42N/A @cd $(CLOSED)/uts/intel/glm; $(MAKE) warlock;
42N/A $(WARLOCK) -c $(WLCMD_DIR)/ses_with_glm.wlcmd ses.ll \
42N/A $(CLOSED)/uts/intel/glm/*.ll \
42N/A $(SCSI_FILES) \
42N/A ../warlock/scsi.ll \
42N/A -l ../warlock/ddi_dki_impl.ll
42N/A
42N/Aglm_files:
42N/A @cd $(CLOSED)/uts/intel/glm; pwd; $(MAKE) warlock
42N/A
42N/Awarlock_ddi.files:
42N/A @cd ../warlock; pwd; $(MAKE) warlock
42N/A
42N/A
42N/A