Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest#
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# CDDL HEADER START
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest#
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# The contents of this file are subject to the terms of the
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# Common Development and Distribution License, Version 1.0 only
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# (the "License"). You may not use this file except in compliance
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# with the License.
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest#
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# or http://www.opensolaris.org/os/licensing.
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# See the License for the specific language governing permissions
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# and limitations under the License.
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest#
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# When distributing Covered Code, include this CDDL HEADER in each
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# If applicable, add the following below this CDDL HEADER, with the
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# fields enclosed by brackets "[]" replaced with your own identifying
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# information: Portions Copyright [yyyy] [name of copyright owner]
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest#
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# CDDL HEADER END
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest#
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest#
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# uts/intel/md_hotspares/Makefile
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# Copyright (c) 1999, 2000 by Sun Microsystems, Inc.
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# All rights reserved.
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest#
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest#ident "%Z%%M% %I% %E% SMI"
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest#
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# This makefile drives the production of the md_hotspares module
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest#
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# architecture independent
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest#
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest#
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# Path to the base of the uts directory tree (usually /usr/src/uts).
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest#
74478f22726009d623b143d2b017f2e3a0884916Andrew ForrestUTSBASE = ../..
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest#
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# Define the module and object file sets.
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest#
74478f22726009d623b143d2b017f2e3a0884916Andrew ForrestMODULE = md_hotspares
74478f22726009d623b143d2b017f2e3a0884916Andrew ForrestOBJECTS = $(HOTSPARES_OBJS:%=$(OBJS_DIR)/%)
74478f22726009d623b143d2b017f2e3a0884916Andrew ForrestLINTS = $(HOTSPARES_OBJS:%.o=$(LINTS_DIR)/%.ln)
74478f22726009d623b143d2b017f2e3a0884916Andrew ForrestROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest#
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# Include common rules.
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest#
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrestinclude $(UTSBASE)/intel/Makefile.intel
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest#
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# Define targets
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest#
74478f22726009d623b143d2b017f2e3a0884916Andrew ForrestALL_TARGET = $(BINARY)
74478f22726009d623b143d2b017f2e3a0884916Andrew ForrestLINT_TARGET = $(MODULE).lint
74478f22726009d623b143d2b017f2e3a0884916Andrew ForrestINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest#
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# Default build targets.
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest#
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest.KEEP_STATE:
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrestdef: $(DEF_DEPS)
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrestall: $(ALL_DEPS)
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrestclean: $(CLEAN_DEPS)
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrestclobber: $(CLOBBER_DEPS)
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrestlint: $(LINT_DEPS)
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrestmodlintlib: $(MODLINTLIB_DEPS)
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrestclean.lint: $(CLEAN_LINT_DEPS)
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrestinstall: $(INSTALL_DEPS)
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest#
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest# Include common targets.
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest#
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrestinclude $(UTSBASE)/intel/Makefile.targ
74478f22726009d623b143d2b017f2e3a0884916Andrew Forrest