Makefile revision d291d9f21e8c0417aec99de243dd48bc400002d0
493N/A#
0N/A# CDDL HEADER START
606N/A#
731N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License, Version 1.0 only
0N/A# (the "License"). You may not use this file except in compliance
0N/A# with the License.
0N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
0N/A# CDDL HEADER END
0N/A#
0N/A#
0N/A# uts/sparc/ses/Makefile
0N/A#
0N/A# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
0N/A# Use is subject to license terms.
0N/A#
0N/A#ident "%Z%%M% %I% %E% SMI"
0N/A#
0N/A# This makefile drives the production of the ses driver kernel module.
851N/A#
0N/A# sparc architecture dependent
0N/A#
0N/A
0N/A#
0N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
0N/A#
0N/AUTSBASE = ../..
0N/A
0N/A#
0N/A# Define the module and object file sets.
0N/A#
561N/AMODULE = ses
561N/AOBJECTS = $(SES_OBJS:%=$(OBJS_DIR)/%)
0N/ALINTS = $(SES_OBJS:%.o=$(LINTS_DIR)/%.ln)
0N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
0N/ACONF_SRCDIR = $(UTSBASE)/sun/io/scsi/targets
0N/A
0N/AWARLOCK_OUT = $(SES_OBJS:%.o=%.ll)
493N/AWARLOCK_OK = $(MODULE).ok
493N/A
493N/A#
0N/A# Include common rules.
493N/A#
493N/Ainclude $(UTSBASE)/sparc/Makefile.sparc
0N/A
493N/A#
837N/A# Define targets
837N/A#
837N/AALL_TARGET = $(BINARY) $(SRC_CONFILE)
837N/ALINT_TARGET = $(MODULE).lint
837N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
837N/ACLEANFILES += $(WARLOCK_TARGETS)
837N/A
837N/A#
837N/A# Default build targets.
837N/A#
837N/A.KEEP_STATE:
837N/A
837N/Adef: $(DEF_DEPS)
837N/A
837N/Aall: $(ALL_DEPS)
837N/A
837N/Aclean: $(CLEAN_DEPS)
837N/A
837N/Aclean: $(CLEAN_DEPS); \
837N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
837N/A
837N/Aclobber: $(CLOBBER_DEPS); \
837N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
837N/A
837N/Amodlintlib: $(MODLINTLIB_DEPS) lint64
837N/A
837N/Aclean.lint: $(CLEAN_LINT_DEPS)
837N/A
791N/Ainstall: $(INSTALL_DEPS)
837N/A
837N/A#
837N/A# Include common targets.
653N/A#
837N/Ainclude $(UTSBASE)/sparc/Makefile.targ
837N/A
837N/A
837N/A#
837N/A# Defines for local commands.
837N/A#
837N/AWARLOCK = warlock
837N/AWLCC = wlcc
837N/ATOUCH = touch
837N/ASCCS = sccs
837N/ATEST = test
837N/A
851N/A#
837N/A# Warlock targets
837N/A#
837N/ASES_FILES = $(MODULE).ll
837N/ASCSI_FILES = $(SCSI_OBJS:%.o=-l ../scsi/%.ll)
837N/A
837N/AWARLOCK_TARGETS = warlock.ok warlock_with_esp.ok warlock_with_fas.ok \
837N/A warlock_with_isp.ok warlock_with_glm.ok
837N/A
837N/Awarlock: $(WARLOCK_TARGETS)
837N/A
837N/Awarlock.ok: $(MODULE).wlcmd $(SES_FILES)
837N/A @cd ../warlock; $(MAKE) warlock
837N/A @cd ../scsi; $(MAKE) warlock
837N/A $(WARLOCK) -c ./$(MODULE).wlcmd $(SES_FILES) ../warlock/scsi.ll \
837N/A -l ../warlock/ddi_dki_impl.ll \
837N/A $(SCSI_FILES)
837N/A @ $(TOUCH) $@
837N/A
837N/Awarlock_with_esp.ok: ses_with_esp.wlcmd $(SES_FILES)
837N/A @cd ../warlock; $(MAKE) warlock
731N/A @cd ../scsi; $(MAKE) warlock
493N/A @cd ../esp; $(MAKE) warlock;
493N/A $(WARLOCK) -c ./ses_with_esp.wlcmd $(SES_FILES) ../esp/esp \
493N/A ../warlock/scsi.ll \
763N/A -l ../warlock/ddi_dki_impl.ll \
0N/A $(SCSI_FILES)
0N/A @ $(TOUCH) $@
0N/A
0N/Awarlock_with_fas.ok: ses_with_fas.wlcmd $(SES_FILES)
561N/A @cd ../warlock; $(MAKE) warlock
561N/A @cd ../scsi; $(MAKE) warlock
561N/A @cd ../fas; $(MAKE) warlock;
561N/A $(WARLOCK) -c ./ses_with_fas.wlcmd $(SES_FILES) \
0N/A ../fas/fas ../fas/fas_callbacks \
561N/A ../warlock/scsi.ll \
561N/A -l ../warlock/ddi_dki_impl.ll \
561N/A $(SCSI_FILES)
561N/A @ $(TOUCH) $@
561N/A
493N/Awarlock_with_isp.ok: ses_with_isp.wlcmd $(SES_FILES)
493N/A @cd ../warlock; $(MAKE) warlock
493N/A @cd ../scsi; $(MAKE) warlock
493N/A @cd ../isp; $(MAKE) warlock;
493N/A $(WARLOCK) -c ./ses_with_isp.wlcmd $(SES_FILES) ../isp/isp \
493N/A ../warlock/scsi.ll \
493N/A -l ../warlock/ddi_dki_impl.ll \
493N/A $(SCSI_FILES)
493N/A @ $(TOUCH) $@
0N/A
493N/Awarlock_with_glm.ok: ses_with_glm.wlcmd $(SES_FILES)
493N/A @cd ../warlock; $(MAKE) warlock
493N/A @cd ../scsi; $(MAKE) warlock
493N/A @cd ../glm; $(MAKE) warlock;
493N/A $(WARLOCK) -c ./ses_with_glm.wlcmd $(SES_FILES) ../glm/glm \
493N/A ../warlock/scsi.ll \
606N/A -l ../warlock/ddi_dki_impl.ll \
606N/A $(SCSI_FILES)
606N/A @ $(TOUCH) $@
606N/A
606N/A%.ll: $(UTSBASE)/common/io/scsi/targets/%.c
606N/A $(WLCC) $(CPPFLAGS) -o $@ $<
606N/A
606N/A
606N/A