Makefile revision 0cfc6e4a9f5ce7c0aa92399e218a7e1ab2000715
4134N/A#
4134N/A# CDDL HEADER START
4134N/A#
4134N/A# The contents of this file are subject to the terms of the
4134N/A# Common Development and Distribution License (the "License").
4134N/A# You may not use this file except in compliance with the License.
4134N/A#
4134N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6983N/A# or http://www.opensolaris.org/os/licensing.
6983N/A# See the License for the specific language governing permissions
4134N/A# and limitations under the License.
4134N/A#
4134N/A# When distributing Covered Code, include this CDDL HEADER in each
4134N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6983N/A# If applicable, add the following below this CDDL HEADER, with the
6983N/A# fields enclosed by brackets "[]" replaced with your own identifying
6983N/A# information: Portions Copyright [yyyy] [name of copyright owner]
6983N/A#
4134N/A# CDDL HEADER END
4134N/A#
4134N/A
4134N/A#
4134N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
4135N/A# Use is subject to license terms.
5866N/A#
4134N/A#
4134N/A
4134N/A#
4134N/A# This makefile drives the production of the
4134N/A# "platform/i86pc/kernel/drv/si3124" kernel module.
4134N/A#
4134N/A# intel architecture dependent
4134N/A#
4134N/A
4134N/A#
4134N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
4134N/A#
4134N/AUTSBASE = ../..
4134N/A
4134N/A#
4134N/A# Define the module and object file sets.
4134N/A#
4134N/AMODULE = si3124
4134N/AOBJECTS = $(SI3124_OBJS:%=$(OBJS_DIR)/%)
4134N/ALINTS = $(SI3124_OBJS:%.o=$(LINTS_DIR)/%.ln)
4134N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
4134N/ACONF_SRCDIR = $(UTSBASE)/common/io/sata/adapters/si3124
4134N/AWARLOCK_OUT = $(SI3124_OBJS:%.o=%.ll)
4134N/AWARLOCK_OK = $(MODULE).ok
4134N/AWLCMD_DIR = $(UTSBASE)/common/io/warlock
4134N/A
4134N/A#
4134N/A# Include common rules.
4134N/A#
4134N/Ainclude $(UTSBASE)/intel/Makefile.intel
4134N/A
4134N/A#
4134N/A# Define targets
4134N/A#
4134N/AALL_TARGET = $(BINARY)
4134N/ALINT_TARGET = $(MODULE).lint
4134N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
4134N/A
4134N/A#
4134N/A# Overrides.
4134N/A#
4134N/ADEBUG_FLGS =
4134N/ADEBUG_DEFS += $(DEBUG_FLGS)
4134N/A
4134N/A#
4134N/A# lint pass one enforcement
4134N/A#
4134N/ACFLAGS += $(CCVERBOSE)
4134N/A
4134N/A#
4134N/A#
4134N/A# we depend on the sata module
4134N/ALDFLAGS += -dy -N misc/sata
4134N/A
4134N/A#
4134N/A# Default build targets.
4134N/A#
4134N/A.KEEP_STATE:
4134N/A
4134N/Adef: $(DEF_DEPS)
4134N/A
4134N/Aall: $(ALL_DEPS)
4134N/A
4134N/Aclean: $(CLEAN_DEPS)
4134N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
4134N/A
4134N/Aclobber: $(CLOBBER_DEPS)
4134N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
4134N/A
4134N/Alint: $(LINT_DEPS)
4134N/A
4134N/Amodlintlib: $(MODLINTLIB_DEPS)
4134N/A
4134N/Aclean.lint: $(CLEAN_LINT_DEPS)
4134N/A
4134N/Ainstall: $(INSTALL_DEPS)
4134N/A
4134N/A#
4134N/A# Include common targets.
4134N/A#
4134N/Ainclude $(UTSBASE)/intel/Makefile.targ
4134N/A
4134N/A
4134N/A#
4134N/A# Defines for local commands.
4134N/A#
4134N/AWARLOCK = warlock
4134N/AWLCC = wlcc
4134N/ATOUCH = touch
4134N/ATEST = test
4134N/A
4134N/ASI3124_FILES = $(MODULE).ll
4134N/ASD_FILES = $(SD_OBJS:%.o=../sd/%.ll)
4134N/ASATA_FILES = $(SATA_OBJS:%.o=-l ../sata/%.ll)
4134N/ASCSI_FILES = $(SCSI_OBJS:%.o=-l ../scsi/%.ll)
4134N/ACMLB_FILES = $(CMLB_OBJS:%.o=-l ../cmlb/%.ll)
4134N/A
4134N/Awarlock: $(WARLOCK_OK)
4134N/A
4134N/A$(WARLOCK_OK): $(WLCMD_DIR)/si3124.wlcmd $(WARLOCK_OUT) warlock_ddi.files \
4134N/A sata.files scsi.files sd.files cmlb.files
4134N/A $(WARLOCK) -c $(WLCMD_DIR)/si3124.wlcmd $(WARLOCK_OUT) \
4134N/A $(SD_FILES) \
4134N/A $(SCSI_FILES) \
4134N/A $(CMLB_FILES) \
4134N/A $(SATA_FILES) \
4134N/A -l ../warlock/ddi_dki_impl.ll
4134N/A $(TOUCH) $@
4134N/A
4134N/A%.ll: $(UTSBASE)/common/io/sata/adapters/si3124/%.c
4134N/A $(WLCC) $(CPPFLAGS) -D DEBUG -o $@ $<
4134N/A
4134N/Asata.files:
4134N/A @cd ../sata; pwd; $(MAKE) warlock
4134N/A
4134N/Ascsi.files:
4134N/A @cd ../scsi; pwd; $(MAKE) warlock
4134N/A
4134N/Asd.files:
4134N/A @cd ../sd; pwd; $(MAKE) warlock_alone
4134N/A
4134N/Acmlb.files:
4134N/A @cd ../cmlb; pwd; $(MAKE) warlock
4134N/A
4134N/Awarlock_ddi.files:
4134N/A @cd ../warlock; pwd; $(MAKE) warlock
4134N/A