Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
0N/A#
0N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
407N/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
1344N/A#
0N/A#
0N/A# uts/sparc/fas/Makefile
0N/A#
392N/A# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
392N/A# Use is subject to license terms.
392N/A#
392N/A# This makefile drives the production of the fas driver kernel module.
392N/A#
1054N/A# sparc architecture dependent
392N/A#
392N/A#ident "%Z%%M% %I% %E% SMI"
392N/A
427N/A#
392N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
392N/A#
0N/AUTSBASE = ../..
392N/A
0N/A#
0N/A# Define the module and object file sets.
1416N/A#
0N/AMODULE = fas
0N/AOBJECTS = $(FAS_OBJS:%=$(OBJS_DIR)/%)
0N/ALINTS = $(FAS_OBJS:%.o=$(LINTS_DIR)/%.ln)
0N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
1416N/A
202N/A#
1416N/A# Include common rules.
1054N/A#
0N/Ainclude $(UTSBASE)/sparc/Makefile.sparc
972N/A
202N/A#
202N/A# Define targets
202N/A#
0N/AALL_TARGET = $(BINARY)
202N/ALINT_TARGET = $(MODULE).lint
202N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
972N/A
0N/A#
0N/A# lint pass one enforcement
1190N/A#
1054N/ACFLAGS += $(CCVERBOSE)
889N/A
889N/A#
889N/A# Default build targets.
1416N/A#
1416N/A.KEEP_STATE:
889N/A
889N/Aall: $(ALL_DEPS)
889N/A
889N/Adef: $(DEF_DEPS)
889N/A
1054N/Aclean: $(CLEAN_DEPS)
1416N/A
889N/Aclobber: $(CLOBBER_DEPS)
1416N/A
889N/Alint: $(LINT_DEPS)
889N/A
889N/Amodlintlib: $(MODLINTLIB_DEPS)
460N/A
889N/Aclean.lint: $(CLEAN_LINT_DEPS)
889N/A
889N/Ainstall: $(INSTALL_DEPS)
889N/A
889N/A#
1416N/A# Include common targets.
460N/A#
460N/Ainclude $(UTSBASE)/sparc/Makefile.targ
1416N/A
460N/A#
460N/A# Defines for local commands.
0N/A#
1190N/AWARLOCK = warlock
1054N/AWLCC = wlcc
1416N/ATOUCH = touch
972N/ASCCS = sccs
1416N/ATEST = test
972N/A
1416N/A#
0N/A# lock_lint rules
972N/A#
0N/ASCSI_FILES = $(SCSI_OBJS:%.o= -l ../scsi/%.ll)
0N/A
1416N/Awarlock: $(MODULE).ok
0N/A
0N/A%.wlcmd:
1054N/A $(TEST) -f $@ || $(SCCS) get $@
0N/A
972N/Afas.ok: fas.ll fas_callbacks.ll fas.wlcmd warlock_ddi.files \
460N/A scsi.files
972N/A $(WARLOCK) -c fas.wlcmd fas.ll fas_callbacks.ll \
0N/A ../warlock/scsi.ll \
0N/A -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