Makefile revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
4506N/A#
4506N/A# CDDL HEADER START
4506N/A#
4506N/A# The contents of this file are subject to the terms of the
4506N/A# Common Development and Distribution License (the "License").
4506N/A# You may not use this file except in compliance with the License.
4506N/A#
4506N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4506N/A# or http://www.opensolaris.org/os/licensing.
4506N/A# See the License for the specific language governing permissions
4506N/A# and limitations under the License.
4506N/A#
4506N/A# When distributing Covered Code, include this CDDL HEADER in each
4506N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4506N/A# If applicable, add the following below this CDDL HEADER, with the
4506N/A# fields enclosed by brackets "[]" replaced with your own identifying
4506N/A# information: Portions Copyright [yyyy] [name of copyright owner]
4506N/A#
4506N/A# CDDL HEADER END
4506N/A#
4506N/A#
4506N/A# uts/sparc/fas/Makefile
4506N/A#
4506N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
4506N/A# Use is subject to license terms.
4506N/A#
4506N/A# This makefile drives the production of the fas driver kernel module.
4506N/A#
4506N/A# sparc architecture dependent
4506N/A#
4506N/A#ident "%Z%%M% %I% %E% SMI"
4506N/A
6033N/A#
6033N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
6033N/A#
6033N/AUTSBASE = ../..
6033N/A
4506N/A#
4506N/A# Define the module and object file sets.
4506N/A#
4506N/AMODULE = fas
4506N/AOBJECTS = $(FAS_OBJS:%=$(OBJS_DIR)/%)
4506N/ALINTS = $(FAS_OBJS:%.o=$(LINTS_DIR)/%.ln)
4506N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
4506N/AWARLOCK_OUT = $(FAS_OBJS:%.o=%.ll)
4506N/AWARLOCK_OK = $(MODULE).ok
4506N/A
4506N/A#
4506N/A# Include common rules.
4506N/A#
4506N/Ainclude $(UTSBASE)/sparc/Makefile.sparc
4506N/A
4506N/A#
4506N/A# Define targets
4506N/A#
4506N/AALL_TARGET = $(BINARY)
4506N/ALINT_TARGET = $(MODULE).lint
4506N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
4506N/A
4506N/A#
4506N/A# lint pass one enforcement
4506N/A#
4506N/ACFLAGS += $(CCVERBOSE)
4506N/A
4506N/A#
4506N/A# For now, disable these lint checks; maintainers should endeavor
4506N/A# to investigate and remove these for maximum lint coverage.
4506N/A# Please do not carry these forward to new Makefiles.
4506N/A#
4506N/ALINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
4506N/ALINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
4506N/ALINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
4506N/A
4506N/A#
4506N/A# Default build targets.
4506N/A#
4506N/A.KEEP_STATE:
4506N/A
4506N/Aall: $(ALL_DEPS)
4506N/A
4506N/Adef: $(DEF_DEPS)
4506N/A
4506N/Aclean: $(CLEAN_DEPS); \
4506N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
4506N/A
4506N/Aclobber: $(CLOBBER_DEPS); \
4506N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
4506N/A
4506N/Alint: $(LINT_DEPS)
4506N/A
4506N/Amodlintlib: $(MODLINTLIB_DEPS)
4506N/A
4506N/Aclean.lint: $(CLEAN_LINT_DEPS)
4506N/A
install: $(INSTALL_DEPS)
#
# Include common targets.
#
include $(UTSBASE)/sparc/Makefile.targ
#
# Defines for local commands.
#
WARLOCK = warlock
WLCC = wlcc
TOUCH = touch
SCCS = sccs
TEST = test
#
# lock_lint rules
#
SCSI_FILES = $(SCSI_OBJS:%.o= -l ../scsi/%.ll)
warlock: $(MODULE).ok
%.wlcmd:
$(TEST) -f $@ || $(SCCS) get $@
fas.ok: fas.ll fas_callbacks.ll fas.wlcmd warlock_ddi.files \
scsi.files
$(WARLOCK) -c fas.wlcmd fas.ll fas_callbacks.ll \
../warlock/scsi.ll \
-l ../warlock/ddi_dki_impl.ll \
$(SCSI_FILES)
$(TOUCH) $@
%.ll: $(UTSBASE)/sun/io/scsi/adapters/%.c
$(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
warlock_ddi.files:
@cd ../warlock; pwd; $(MAKE) warlock
scsi.files:
@cd ../scsi; pwd; $(MAKE) warlock