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