Makefile revision 66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync#
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync# CDDL HEADER START
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync#
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync# The contents of this file are subject to the terms of the
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync# Common Development and Distribution License (the "License").
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync# You may not use this file except in compliance with the License.
1207f59aa62006952dbb0bf7700decf34d8caeb2vboxsync#
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync# or http://www.opensolaris.org/os/licensing.
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync# See the License for the specific language governing permissions
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync# and limitations under the License.
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync#
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync# When distributing Covered Code, include this CDDL HEADER in each
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync# If applicable, add the following below this CDDL HEADER, with the
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync# fields enclosed by brackets "[]" replaced with your own identifying
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync#
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync# CDDL HEADER END
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync#
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync#
23179f1443b03947d85eccc81cbc6b5153a4abf3vboxsync# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync# Use is subject to license terms.
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync#
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync# ident "%Z%%M% %I% %E% SMI"
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync#
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync#
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync# uts/intel/io/sata/Makefile
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync#
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync# This makefile drives the production of the sata "misc"
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync# kernel module.
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync#
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync# intel architecture dependent
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync#
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync#
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync# Path to the base of the uts directory tree (usually /usr/src/uts).
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync#
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsyncUTSBASE = ../..
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync#
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync# Define the module and object file sets.
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync#
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsyncMODULE = sata
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsyncOBJECTS = $(SATA_OBJS:%=$(OBJS_DIR)/%)
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsyncLINTS = $(SATA_OBJS:%.o=$(LINTS_DIR)/%.ln)
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsyncROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync#
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync# Include common rules.
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync#
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsyncinclude $(UTSBASE)/intel/Makefile.intel
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync#
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync# Define targets
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync#
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsyncALL_TARGET = $(BINARY)
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsyncLINT_TARGET = $(MODULE).lint
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsyncINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync#
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync# Overrides.
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync#
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsyncDEBUG_FLGS =
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsyncDEBUG_DEFS += $(DEBUG_FLGS)
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync#
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync# lint pass one enforcement
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync#
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsyncCFLAGS += $(CCVERBOSE)
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync#
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync# dependency on scsi module
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync#
d056279b935642d0fc1ddf89c17cab3bc6c30b83vboxsyncLDFLAGS += -dy -Nmisc/scsi
d056279b935642d0fc1ddf89c17cab3bc6c30b83vboxsync
d056279b935642d0fc1ddf89c17cab3bc6c30b83vboxsync#
d056279b935642d0fc1ddf89c17cab3bc6c30b83vboxsync# Default build targets.
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync#
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync.KEEP_STATE:
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsyncdef: $(DEF_DEPS)
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsyncall: $(ALL_DEPS)
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsyncclean: $(CLEAN_DEPS)
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsyncclobber: $(CLOBBER_DEPS)
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsynclint: $(LINT_DEPS)
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsyncmodlintlib: $(MODLINTLIB_DEPS)
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsyncclean.lint: $(CLEAN_LINT_DEPS)
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsyncinstall: $(INSTALL_DEPS)
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync#
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync# Include common targets.
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync#
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsyncinclude $(UTSBASE)/intel/Makefile.targ
44f5ccf2fcaeb82406c544f69d7fe951e3ca5167vboxsync