Makefile revision d291d9f21e8c0417aec99de243dd48bc400002d0
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync#
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync# CDDL HEADER START
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync#
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync# The contents of this file are subject to the terms of the
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync# Common Development and Distribution License, Version 1.0 only
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync# (the "License"). You may not use this file except in compliance
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync# with the License.
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync#
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync# or http://www.opensolaris.org/os/licensing.
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync# See the License for the specific language governing permissions
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync# and limitations under the License.
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync#
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync# When distributing Covered Code, include this CDDL HEADER in each
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync# If applicable, add the following below this CDDL HEADER, with the
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync# fields enclosed by brackets "[]" replaced with your own identifying
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync#
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync# CDDL HEADER END
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync#
8bf8c6b1914c9e7e60b1547888400668f1774497vboxsync#
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync# uts/sparc/fas/Makefile
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync#
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync# Use is subject to license terms.
8bf8c6b1914c9e7e60b1547888400668f1774497vboxsync#
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync# This makefile drives the production of the fas driver kernel module.
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync#
8bf8c6b1914c9e7e60b1547888400668f1774497vboxsync# sparc architecture dependent
8bf8c6b1914c9e7e60b1547888400668f1774497vboxsync#
8bf8c6b1914c9e7e60b1547888400668f1774497vboxsync#ident "%Z%%M% %I% %E% SMI"
8bf8c6b1914c9e7e60b1547888400668f1774497vboxsync
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync#
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync# Path to the base of the uts directory tree (usually /usr/src/uts).
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync#
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsyncUTSBASE = ../..
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync#
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync# Define the module and object file sets.
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync#
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsyncMODULE = fas
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsyncOBJECTS = $(FAS_OBJS:%=$(OBJS_DIR)/%)
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsyncLINTS = $(FAS_OBJS:%.o=$(LINTS_DIR)/%.ln)
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsyncROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsyncWARLOCK_OUT = $(FAS_OBJS:%.o=%.ll)
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsyncWARLOCK_OK = $(MODULE).ok
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync#
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync# Include common rules.
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync#
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsyncinclude $(UTSBASE)/sparc/Makefile.sparc
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync#
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync# Define targets
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync#
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsyncALL_TARGET = $(BINARY)
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsyncLINT_TARGET = $(MODULE).lint
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsyncINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync#
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync# lint pass one enforcement
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync#
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsyncCFLAGS += $(CCVERBOSE)
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync#
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync# Default build targets.
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync#
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync.KEEP_STATE:
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsyncall: $(ALL_DEPS)
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsyncdef: $(DEF_DEPS)
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsyncclean: $(CLEAN_DEPS); \
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsyncclobber: $(CLOBBER_DEPS); \
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsynclint: $(LINT_DEPS)
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsyncmodlintlib: $(MODLINTLIB_DEPS)
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsyncclean.lint: $(CLEAN_LINT_DEPS)
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsyncinstall: $(INSTALL_DEPS)
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync#
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync# Include common targets.
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync#
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsyncinclude $(UTSBASE)/sparc/Makefile.targ
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync#
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync# Defines for local commands.
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync#
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsyncWARLOCK = warlock
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsyncWLCC = wlcc
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsyncTOUCH = touch
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsyncSCCS = sccs
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsyncTEST = test
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync#
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync# lock_lint rules
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync#
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsyncSCSI_FILES = $(SCSI_OBJS:%.o= -l ../scsi/%.ll)
e4f39b88642e679d6ac9a770165b1ebc1d9e5dd9vboxsync
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