Makefile revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
159N/A#
159N/A# CDDL HEADER START
159N/A#
159N/A# The contents of this file are subject to the terms of the
159N/A# Common Development and Distribution License (the "License").
159N/A# You may not use this file except in compliance with the License.
159N/A#
159N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
159N/A# or http://www.opensolaris.org/os/licensing.
159N/A# See the License for the specific language governing permissions
159N/A# and limitations under the License.
159N/A#
159N/A# When distributing Covered Code, include this CDDL HEADER in each
159N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
159N/A# If applicable, add the following below this CDDL HEADER, with the
159N/A# fields enclosed by brackets "[]" replaced with your own identifying
159N/A# information: Portions Copyright [yyyy] [name of copyright owner]
159N/A#
159N/A# CDDL HEADER END
159N/A#
159N/A#
159N/A# uts/sparc/fas/Makefile
159N/A#
159N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
159N/A# Use is subject to license terms.
159N/A#
159N/A# This makefile drives the production of the fas driver kernel module.
159N/A#
159N/A# sparc architecture dependent
159N/A#
159N/A#ident "%Z%%M% %I% %E% SMI"
159N/A
159N/A#
159N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
159N/A#
159N/AUTSBASE = ../..
159N/A
159N/A#
159N/A# Define the module and object file sets.
159N/A#
159N/AMODULE = fas
159N/AOBJECTS = $(FAS_OBJS:%=$(OBJS_DIR)/%)
159N/ALINTS = $(FAS_OBJS:%.o=$(LINTS_DIR)/%.ln)
159N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
159N/AWARLOCK_OUT = $(FAS_OBJS:%.o=%.ll)
159N/AWARLOCK_OK = $(MODULE).ok
159N/A
159N/A#
159N/A# Include common rules.
159N/A#
159N/Ainclude $(UTSBASE)/sparc/Makefile.sparc
159N/A
159N/A#
159N/A# Define targets
159N/A#
159N/AALL_TARGET = $(BINARY)
159N/ALINT_TARGET = $(MODULE).lint
159N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
159N/A
#
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
#
LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
#
# Default build targets.
#
.KEEP_STATE:
all: $(ALL_DEPS)
def: $(DEF_DEPS)
clean: $(CLEAN_DEPS); \
$(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
clobber: $(CLOBBER_DEPS); \
$(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
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