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