Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt#
19c7b1a0293498a3e36692c59646ed6e15ffc8d0Tinderbox User# CDDL HEADER START
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt#
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# The contents of this file are subject to the terms of the
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# Common Development and Distribution License, Version 1.0 only
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# (the "License"). You may not use this file except in compliance
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# with the License.
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt#
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# or http://www.opensolaris.org/os/licensing.
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# See the License for the specific language governing permissions
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# and limitations under the License.
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt#
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# When distributing Covered Code, include this CDDL HEADER in each
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User# If applicable, add the following below this CDDL HEADER, with the
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# fields enclosed by brackets "[]" replaced with your own identifying
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# information: Portions Copyright [yyyy] [name of copyright owner]
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# CDDL HEADER END
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# uts/sparc/md_hotspares/Makefile
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# Use is subject to license terms.
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt#
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# This makefile drives the production of the SLVM's hotspares misc module.
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt#
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# sparc implementation architecture dependent
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt#
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt#
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# Path to the base of the uts directory tree (usually /usr/src/uts).
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt#
351b62535d4c4f89883bfdba025999dd32490266Evan HuntUTSBASE = ../..
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt#
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# Define the module and object file sets.
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt#
938440694b33cd752e9e4b71a526368b4811c177Tinderbox UserMODULE = md_hotspares
19c7b1a0293498a3e36692c59646ed6e15ffc8d0Tinderbox UserOBJECTS = $(HOTSPARES_OBJS:%=$(OBJS_DIR)/%)
351b62535d4c4f89883bfdba025999dd32490266Evan HuntLINTS = $(HOTSPARES_OBJS:%.o=$(LINTS_DIR)/%.ln)
351b62535d4c4f89883bfdba025999dd32490266Evan HuntROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt#
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# Include common rules.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
46bc64f4b1a0e84ab0397943453fe83a17baf2c4Evan Huntinclude $(UTSBASE)/sparc/Makefile.sparc
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCERRWARN += -_gcc=-Wno-uninitialized
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
46bc64f4b1a0e84ab0397943453fe83a17baf2c4Evan Hunt# Define targets
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
351b62535d4c4f89883bfdba025999dd32490266Evan HuntALL_TARGET = $(BINARY)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntLINT_TARGET = $(MODULE).lint
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Overrides.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCFLAGS += $(CCVERBOSE)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
b67b58ebe73b98f2907d7f3ea02e69a7fa8ba35eFrancis Dupont#
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# Define dependency on md
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt#
351b62535d4c4f89883bfdba025999dd32490266Evan HuntLDFLAGS += -dy -N drv/md
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
46bc64f4b1a0e84ab0397943453fe83a17baf2c4Evan Hunt# Default build targets.
46bc64f4b1a0e84ab0397943453fe83a17baf2c4Evan Hunt#
d51e441520ac756af17e4b5589e31e8eac60d1e2Evan Hunt.KEEP_STATE:
46bc64f4b1a0e84ab0397943453fe83a17baf2c4Evan Hunt
46bc64f4b1a0e84ab0397943453fe83a17baf2c4Evan Huntdef: $(DEF_DEPS)
46bc64f4b1a0e84ab0397943453fe83a17baf2c4Evan Hunt
46bc64f4b1a0e84ab0397943453fe83a17baf2c4Evan Huntall: $(ALL_DEPS)
46bc64f4b1a0e84ab0397943453fe83a17baf2c4Evan Hunt
46bc64f4b1a0e84ab0397943453fe83a17baf2c4Evan Huntclean: $(CLEAN_DEPS)
46bc64f4b1a0e84ab0397943453fe83a17baf2c4Evan Hunt
46bc64f4b1a0e84ab0397943453fe83a17baf2c4Evan Huntclobber: $(CLOBBER_DEPS)
46bc64f4b1a0e84ab0397943453fe83a17baf2c4Evan Hunt
46bc64f4b1a0e84ab0397943453fe83a17baf2c4Evan Huntlint: $(LINT_DEPS)
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt
351b62535d4c4f89883bfdba025999dd32490266Evan Huntmodlintlib: $(MODLINTLIB_DEPS)
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt
46bc64f4b1a0e84ab0397943453fe83a17baf2c4Evan Huntclean.lint: $(CLEAN_LINT_DEPS)
46bc64f4b1a0e84ab0397943453fe83a17baf2c4Evan Hunt
46bc64f4b1a0e84ab0397943453fe83a17baf2c4Evan Huntinstall: $(INSTALL_DEPS)
e9a9bb6b14df7dd5f86ea869e51a03387b64e0e2Evan Hunt
46bc64f4b1a0e84ab0397943453fe83a17baf2c4Evan Hunt#
46bc64f4b1a0e84ab0397943453fe83a17baf2c4Evan Hunt# Include common targets.
46bc64f4b1a0e84ab0397943453fe83a17baf2c4Evan Hunt#
46bc64f4b1a0e84ab0397943453fe83a17baf2c4Evan Huntinclude $(UTSBASE)/sparc/Makefile.targ
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt