Makefile revision 89b43686db1fe9681d80a7cf5662730cb9378cae
98N/A#
98N/A# CDDL HEADER START
98N/A#
98N/A# The contents of this file are subject to the terms of the
908N/A# Common Development and Distribution License (the "License").
733N/A# You may not use this file except in compliance with the License.
98N/A#
98N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
98N/A# or http://www.opensolaris.org/os/licensing.
98N/A# See the License for the specific language governing permissions
98N/A# and limitations under the License.
98N/A#
98N/A# When distributing Covered Code, include this CDDL HEADER in each
98N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
98N/A# If applicable, add the following below this CDDL HEADER, with the
98N/A# fields enclosed by brackets "[]" replaced with your own identifying
98N/A# information: Portions Copyright [yyyy] [name of copyright owner]
98N/A#
98N/A# CDDL HEADER END
98N/A#
98N/A#
98N/A# uts/sparc/ses/Makefile
98N/A#
98N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
98N/A# Use is subject to license terms.
98N/A# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
98N/A#
98N/A# This makefile drives the production of the ses driver kernel module.
98N/A#
98N/A# sparc architecture dependent
98N/A#
98N/A
98N/A#
98N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
235N/A#
156N/AUTSBASE = ../..
156N/A
156N/A#
156N/A# Define the module and object file sets.
98N/A#
98N/AMODULE = ses
98N/AOBJECTS = $(SES_OBJS:%=$(OBJS_DIR)/%)
98N/ALINTS = $(SES_OBJS:%.o=$(LINTS_DIR)/%.ln)
493N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
493N/ACONF_SRCDIR = $(UTSBASE)/sun/io/scsi/targets
98N/AWARLOCK_OUT = $(SES_OBJS:%.o=%.ll)
911N/AWARLOCK_OK = $(MODULE).ok
911N/AWLCMD_DIR = $(UTSBASE)/common/io/warlock
911N/A
911N/A#
98N/A# Include common rules.
235N/A#
493N/Ainclude $(UTSBASE)/sparc/Makefile.sparc
98N/A
98N/A#
98N/A# Define targets
98N/A#
606N/AALL_TARGET = $(BINARY) $(SRC_CONFILE)
98N/ALINT_TARGET = $(MODULE).lint
98N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
98N/ACLEANFILES += $(WARLOCK_TARGETS)
606N/A
606N/A#
98N/A# Define dependency on scsi
493N/A#
493N/ALDFLAGS += -dy -N misc/scsi
493N/A
98N/A#
98N/A# For now, disable these lint checks; maintainers should endeavor
98N/A# to investigate and remove these for maximum lint coverage.
98N/A# Please do not carry these forward to new Makefiles.
908N/A#
591N/ALINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
493N/ALINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
493N/ALINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
493N/A
493N/A#
493N/A# Default build targets.
493N/A#
493N/A.KEEP_STATE:
493N/A
493N/Adef: $(DEF_DEPS)
705N/A
493N/Aall: $(ALL_DEPS)
557N/A
557N/Aclean: $(CLEAN_DEPS)
493N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
493N/A
606N/Aclobber: $(CLOBBER_DEPS)
606N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
851N/A
851N/Amodlintlib: $(MODLINTLIB_DEPS) lint64
851N/A
851N/Aclean.lint: $(CLEAN_LINT_DEPS)
851N/A
851N/Ainstall: $(INSTALL_DEPS)
851N/A
98N/A#
591N/A# Include common targets.
910N/A#
851N/Ainclude $(UTSBASE)/sparc/Makefile.targ
591N/A
910N/A
910N/A#
910N/A# Defines for local commands.
910N/A#
910N/AWARLOCK = warlock
910N/AWLCC = wlcc
98N/ATOUCH = touch
98N/ATEST = test
910N/A
910N/A#
910N/A# Warlock targets
98N/A#
606N/A# XXX FIX ME. this can be improved quite a bit
98N/A
606N/ASES_FILES = $(MODULE).ll
98N/ASCSI_FILES = $(SCSI_OBJS:%.o=-l ../scsi/%.ll)
591N/A
851N/AWARLOCK_TARGETS = $(WARLOCK_OK) warlock_with_esp.ok warlock_with_fas.ok
111N/A$(CLOSED_BUILD)WARLOCK_TARGETS += warlock_with_isp.ok warlock_with_glm.ok
111N/A
111N/Awarlock: $(WARLOCK_TARGETS)
111N/A
111N/A$(WARLOCK_OK): $(WLCMD_DIR)/$(MODULE).wlcmd $(SES_FILES)
606N/A @cd ../warlock; $(MAKE) warlock
851N/A @cd ../scsi; $(MAKE) warlock
851N/A $(WARLOCK) -c $(WLCMD_DIR)/$(MODULE).wlcmd $(SES_FILES) ../warlock/scsi.ll \
851N/A -l ../warlock/ddi_dki_impl.ll \
606N/A $(SCSI_FILES)
98N/A @ $(TOUCH) $@
851N/A
733N/Awarlock_with_esp.ok: $(WLCMD_DIR)/ses_with_esp.wlcmd $(SES_FILES)
733N/A @cd ../warlock; $(MAKE) warlock
733N/A @cd ../scsi; $(MAKE) warlock
733N/A @cd ../esp; $(MAKE) warlock;
733N/A $(WARLOCK) -c $(WLCMD_DIR)/ses_with_esp.wlcmd $(SES_FILES) ../esp/esp \
606N/A ../warlock/scsi.ll \
851N/A -l ../warlock/ddi_dki_impl.ll \
606N/A $(SCSI_FILES)
98N/A @ $(TOUCH) $@
851N/A
851N/Awarlock_with_fas.ok: $(WLCMD_DIR)/ses_with_fas.wlcmd $(SES_FILES)
851N/A @cd ../warlock; $(MAKE) warlock
851N/A @cd ../scsi; $(MAKE) warlock
851N/A @cd ../fas; $(MAKE) warlock;
851N/A $(WARLOCK) -c $(WLCMD_DIR)/ses_with_fas.wlcmd $(SES_FILES) \
851N/A ../fas/fas ../fas/fas_callbacks \
212N/A ../warlock/scsi.ll \
851N/A -l ../warlock/ddi_dki_impl.ll \
606N/A $(SCSI_FILES)
606N/A @ $(TOUCH) $@
606N/A
606N/Awarlock_with_isp.ok: $(WLCMD_DIR)/ses_with_isp.wlcmd $(SES_FILES)
212N/A @cd ../warlock; $(MAKE) warlock
98N/A @cd ../scsi; $(MAKE) warlock
98N/A @cd $(CLOSED)/uts/sparc/isp; $(MAKE) warlock;
98N/A $(WARLOCK) -c $(WLCMD_DIR)/ses_with_isp.wlcmd $(SES_FILES) \
98N/A $(CLOSED)/uts/sparc/isp/isp \
182N/A ../warlock/scsi.ll \
98N/A -l ../warlock/ddi_dki_impl.ll \
908N/A $(SCSI_FILES)
908N/A @ $(TOUCH) $@
908N/A
908N/Awarlock_with_glm.ok: $(WLCMD_DIR)/ses_with_glm.wlcmd $(SES_FILES)
908N/A @cd ../warlock; $(MAKE) warlock
908N/A @cd ../scsi; $(MAKE) warlock
908N/A @cd $(CLOSED)/uts/sparc/glm; $(MAKE) warlock;
908N/A $(WARLOCK) -c $(WLCMD_DIR)/ses_with_glm.wlcmd $(SES_FILES) \
908N/A $(CLOSED)/uts/sparc/glm/glm \
908N/A ../warlock/scsi.ll \
908N/A -l ../warlock/ddi_dki_impl.ll \
908N/A $(SCSI_FILES)
908N/A @ $(TOUCH) $@
908N/A
908N/A%.ll: $(UTSBASE)/common/io/scsi/targets/%.c
908N/A $(WLCC) $(CPPFLAGS) -o $@ $<
908N/A
908N/A
908N/A