2fcbc377041d659446ded306a92901b4b0753b68yt# CDDL HEADER START
2fcbc377041d659446ded306a92901b4b0753b68yt#
2fcbc377041d659446ded306a92901b4b0753b68yt# The contents of this file are subject to the terms of the
2fcbc377041d659446ded306a92901b4b0753b68yt# Common Development and Distribution License (the "License").
2fcbc377041d659446ded306a92901b4b0753b68yt# You may not use this file except in compliance with the License.
2fcbc377041d659446ded306a92901b4b0753b68yt#
2fcbc377041d659446ded306a92901b4b0753b68yt# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2fcbc377041d659446ded306a92901b4b0753b68yt# or http://www.opensolaris.org/os/licensing.
2fcbc377041d659446ded306a92901b4b0753b68yt# See the License for the specific language governing permissions
2fcbc377041d659446ded306a92901b4b0753b68yt# and limitations under the License.
2fcbc377041d659446ded306a92901b4b0753b68yt#
2fcbc377041d659446ded306a92901b4b0753b68yt# When distributing Covered Code, include this CDDL HEADER in each
2fcbc377041d659446ded306a92901b4b0753b68yt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2fcbc377041d659446ded306a92901b4b0753b68yt# If applicable, add the following below this CDDL HEADER, with the
2fcbc377041d659446ded306a92901b4b0753b68yt# fields enclosed by brackets "[]" replaced with your own identifying
2fcbc377041d659446ded306a92901b4b0753b68yt# information: Portions Copyright [yyyy] [name of copyright owner]
2fcbc377041d659446ded306a92901b4b0753b68yt#
2fcbc377041d659446ded306a92901b4b0753b68yt# CDDL HEADER END
2fcbc377041d659446ded306a92901b4b0753b68yt#
2fcbc377041d659446ded306a92901b4b0753b68yt
2fcbc377041d659446ded306a92901b4b0753b68yt#
4e942d8cd27c7f8bb80549d7c2564445f19ba4a3shidokht# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
2fcbc377041d659446ded306a92901b4b0753b68yt# Use is subject to license terms.
2fcbc377041d659446ded306a92901b4b0753b68yt#
2fcbc377041d659446ded306a92901b4b0753b68yt
2fcbc377041d659446ded306a92901b4b0753b68yt#
2fcbc377041d659446ded306a92901b4b0753b68yt# uts/sparc/ahci/Makefile
2fcbc377041d659446ded306a92901b4b0753b68yt#
2fcbc377041d659446ded306a92901b4b0753b68yt# This makefile drives the production of the
2fcbc377041d659446ded306a92901b4b0753b68yt# "/kernel/drv/ahci" kernel module.
2fcbc377041d659446ded306a92901b4b0753b68yt#
2fcbc377041d659446ded306a92901b4b0753b68yt# sparc architecture dependent
2fcbc377041d659446ded306a92901b4b0753b68yt#
2fcbc377041d659446ded306a92901b4b0753b68yt
2fcbc377041d659446ded306a92901b4b0753b68yt#
2fcbc377041d659446ded306a92901b4b0753b68yt# Path to the base of the uts directory tree (usually /usr/src/uts).
2fcbc377041d659446ded306a92901b4b0753b68yt#
2fcbc377041d659446ded306a92901b4b0753b68ytUTSBASE = ../..
2fcbc377041d659446ded306a92901b4b0753b68yt
2fcbc377041d659446ded306a92901b4b0753b68yt#
2fcbc377041d659446ded306a92901b4b0753b68yt# Define the module and object file sets.
2fcbc377041d659446ded306a92901b4b0753b68yt#
2fcbc377041d659446ded306a92901b4b0753b68ytMODULE = ahci
2fcbc377041d659446ded306a92901b4b0753b68ytOBJECTS = $(AHCI_OBJS:%=$(OBJS_DIR)/%)
2fcbc377041d659446ded306a92901b4b0753b68ytLINTS = $(AHCI_OBJS:%.o=$(LINTS_DIR)/%.ln)
2fcbc377041d659446ded306a92901b4b0753b68ytWARLOCK_OUT = $(AHCI_OBJS:%.o=%.ll)
2fcbc377041d659446ded306a92901b4b0753b68ytWARLOCK_OK = $(MODULE).ok
2fcbc377041d659446ded306a92901b4b0753b68ytROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
2fcbc377041d659446ded306a92901b4b0753b68ytCONF_SRCDIR = $(UTSBASE)/common/io/sata/adapters/ahci
2fcbc377041d659446ded306a92901b4b0753b68ytWLCMD_DIR = $(UTSBASE)/common/io/warlock
2fcbc377041d659446ded306a92901b4b0753b68yt
2fcbc377041d659446ded306a92901b4b0753b68yt#
2fcbc377041d659446ded306a92901b4b0753b68yt# Include common rules.
2fcbc377041d659446ded306a92901b4b0753b68yt#
2fcbc377041d659446ded306a92901b4b0753b68ytinclude $(UTSBASE)/sparc/Makefile.sparc
2fcbc377041d659446ded306a92901b4b0753b68yt
2fcbc377041d659446ded306a92901b4b0753b68yt#
2fcbc377041d659446ded306a92901b4b0753b68yt# Define targets
2fcbc377041d659446ded306a92901b4b0753b68yt#
2fcbc377041d659446ded306a92901b4b0753b68ytALL_TARGET = $(BINARY)
2fcbc377041d659446ded306a92901b4b0753b68ytLINT_TARGET = $(MODULE).lint
2fcbc377041d659446ded306a92901b4b0753b68ytINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
2fcbc377041d659446ded306a92901b4b0753b68yt
2fcbc377041d659446ded306a92901b4b0753b68yt#
2fcbc377041d659446ded306a92901b4b0753b68yt# Overrides.
2fcbc377041d659446ded306a92901b4b0753b68yt#
2fcbc377041d659446ded306a92901b4b0753b68ytDEBUG_FLGS =
2fcbc377041d659446ded306a92901b4b0753b68ytDEBUG_DEFS += $(DEBUG_FLGS)
2fcbc377041d659446ded306a92901b4b0753b68yt
2fcbc377041d659446ded306a92901b4b0753b68yt#
2fcbc377041d659446ded306a92901b4b0753b68yt# lint pass one enforcement
2fcbc377041d659446ded306a92901b4b0753b68yt#
2fcbc377041d659446ded306a92901b4b0753b68ytCFLAGS += $(CCVERBOSE)
2fcbc377041d659446ded306a92901b4b0753b68yt
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-parentheses
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-unused-label
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-uninitialized
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
2fcbc377041d659446ded306a92901b4b0753b68yt#
2fcbc377041d659446ded306a92901b4b0753b68yt# Default build targets.
2fcbc377041d659446ded306a92901b4b0753b68yt#
2fcbc377041d659446ded306a92901b4b0753b68yt.KEEP_STATE:
2fcbc377041d659446ded306a92901b4b0753b68yt
2fcbc377041d659446ded306a92901b4b0753b68ytdef: $(DEF_DEPS)
2fcbc377041d659446ded306a92901b4b0753b68yt
2fcbc377041d659446ded306a92901b4b0753b68ytall: $(ALL_DEPS)
2fcbc377041d659446ded306a92901b4b0753b68yt
2fcbc377041d659446ded306a92901b4b0753b68ytclean: $(CLEAN_DEPS)
2fcbc377041d659446ded306a92901b4b0753b68yt $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
2fcbc377041d659446ded306a92901b4b0753b68yt
2fcbc377041d659446ded306a92901b4b0753b68ytclobber: $(CLOBBER_DEPS)
2fcbc377041d659446ded306a92901b4b0753b68yt $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
2fcbc377041d659446ded306a92901b4b0753b68yt
2fcbc377041d659446ded306a92901b4b0753b68ytlint: $(LINT_DEPS)
2fcbc377041d659446ded306a92901b4b0753b68yt
2fcbc377041d659446ded306a92901b4b0753b68ytmodlintlib: $(MODLINTLIB_DEPS)
2fcbc377041d659446ded306a92901b4b0753b68yt
2fcbc377041d659446ded306a92901b4b0753b68ytclean.lint: $(CLEAN_LINT_DEPS)
2fcbc377041d659446ded306a92901b4b0753b68yt
2fcbc377041d659446ded306a92901b4b0753b68ytinstall: $(INSTALL_DEPS)
2fcbc377041d659446ded306a92901b4b0753b68yt
2fcbc377041d659446ded306a92901b4b0753b68yt#
2fcbc377041d659446ded306a92901b4b0753b68yt# Include common targets.
2fcbc377041d659446ded306a92901b4b0753b68yt#
2fcbc377041d659446ded306a92901b4b0753b68ytinclude $(UTSBASE)/sparc/Makefile.targ
2fcbc377041d659446ded306a92901b4b0753b68yt
2fcbc377041d659446ded306a92901b4b0753b68yt
2fcbc377041d659446ded306a92901b4b0753b68yt#
2fcbc377041d659446ded306a92901b4b0753b68yt# Defines for local commands.
2fcbc377041d659446ded306a92901b4b0753b68yt#
2fcbc377041d659446ded306a92901b4b0753b68ytWARLOCK = warlock
2fcbc377041d659446ded306a92901b4b0753b68ytWLCC = wlcc
2fcbc377041d659446ded306a92901b4b0753b68ytTOUCH = touch
2fcbc377041d659446ded306a92901b4b0753b68ytTEST = test
2fcbc377041d659446ded306a92901b4b0753b68yt
2fcbc377041d659446ded306a92901b4b0753b68ytSD_FILES = $(SD_OBJS:%.o=../sd/%.ll)
2fcbc377041d659446ded306a92901b4b0753b68ytSATA_FILES = $(SATA_OBJS:%.o=-l ../sata/%.ll)
2fcbc377041d659446ded306a92901b4b0753b68ytSCSI_FILES = $(SCSI_OBJS:%.o=-l ../scsi/%.ll)
4e942d8cd27c7f8bb80549d7c2564445f19ba4a3shidokhtCMLB_FILES = $(CMLB_OBJS:%.o=-l ../cmlb/%.ll)
2fcbc377041d659446ded306a92901b4b0753b68yt
bf56214c0556fa6864189c826d39dbe156bb22a0stevelwarlock: $(WARLOCK_OK)
2fcbc377041d659446ded306a92901b4b0753b68yt
bf56214c0556fa6864189c826d39dbe156bb22a0stevel$(WARLOCK_OK): $(WLCMD_DIR)/ahci.wlcmd $(WARLOCK_OUT) warlock_ddi.files \
4e942d8cd27c7f8bb80549d7c2564445f19ba4a3shidokht sata.files scsi.files sd.files cmlb.files
2fcbc377041d659446ded306a92901b4b0753b68yt $(WARLOCK) -c $(WLCMD_DIR)/ahci.wlcmd $(WARLOCK_OUT) \
2fcbc377041d659446ded306a92901b4b0753b68yt $(SD_FILES) \
2fcbc377041d659446ded306a92901b4b0753b68yt $(SCSI_FILES) \
4e942d8cd27c7f8bb80549d7c2564445f19ba4a3shidokht $(CMLB_FILES) \
2fcbc377041d659446ded306a92901b4b0753b68yt $(SATA_FILES) \
2fcbc377041d659446ded306a92901b4b0753b68yt -l ../warlock/ddi_dki_impl.ll
2fcbc377041d659446ded306a92901b4b0753b68yt $(TOUCH) $@
2fcbc377041d659446ded306a92901b4b0753b68yt
2fcbc377041d659446ded306a92901b4b0753b68yt%.ll: $(UTSBASE)/common/io/sata/adapters/ahci/%.c
2fcbc377041d659446ded306a92901b4b0753b68yt $(WLCC) $(CPPFLAGS) -D DEBUG -D __sparcv9 -o $@ $<
2fcbc377041d659446ded306a92901b4b0753b68yt
2fcbc377041d659446ded306a92901b4b0753b68ytsata.files:
2fcbc377041d659446ded306a92901b4b0753b68yt @cd ../sata; pwd; $(MAKE) warlock
bf56214c0556fa6864189c826d39dbe156bb22a0stevel
2fcbc377041d659446ded306a92901b4b0753b68ytscsi.files:
2fcbc377041d659446ded306a92901b4b0753b68yt @cd ../scsi; pwd; $(MAKE) warlock
2fcbc377041d659446ded306a92901b4b0753b68yt
2fcbc377041d659446ded306a92901b4b0753b68ytsd.files:
2fcbc377041d659446ded306a92901b4b0753b68yt @cd ../sd; pwd; $(MAKE) warlock_alone
2fcbc377041d659446ded306a92901b4b0753b68yt
4e942d8cd27c7f8bb80549d7c2564445f19ba4a3shidokhtcmlb.files:
4e942d8cd27c7f8bb80549d7c2564445f19ba4a3shidokht @cd ../cmlb; pwd; $(MAKE) warlock
4e942d8cd27c7f8bb80549d7c2564445f19ba4a3shidokht
4e942d8cd27c7f8bb80549d7c2564445f19ba4a3shidokht
2fcbc377041d659446ded306a92901b4b0753b68ytwarlock_ddi.files:
2fcbc377041d659446ded306a92901b4b0753b68yt @cd ../warlock; pwd; $(MAKE) warlock