Makefile revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
af062818b47340eef15700d2f0211576ba3506eevboxsync#
af062818b47340eef15700d2f0211576ba3506eevboxsync# CDDL HEADER START
af062818b47340eef15700d2f0211576ba3506eevboxsync#
af062818b47340eef15700d2f0211576ba3506eevboxsync# The contents of this file are subject to the terms of the
af062818b47340eef15700d2f0211576ba3506eevboxsync# Common Development and Distribution License (the "License").
af062818b47340eef15700d2f0211576ba3506eevboxsync# You may not use this file except in compliance with the License.
af062818b47340eef15700d2f0211576ba3506eevboxsync#
af062818b47340eef15700d2f0211576ba3506eevboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
af062818b47340eef15700d2f0211576ba3506eevboxsync# or http://www.opensolaris.org/os/licensing.
af062818b47340eef15700d2f0211576ba3506eevboxsync# See the License for the specific language governing permissions
af062818b47340eef15700d2f0211576ba3506eevboxsync# and limitations under the License.
af062818b47340eef15700d2f0211576ba3506eevboxsync#
af062818b47340eef15700d2f0211576ba3506eevboxsync# When distributing Covered Code, include this CDDL HEADER in each
af062818b47340eef15700d2f0211576ba3506eevboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
af062818b47340eef15700d2f0211576ba3506eevboxsync# If applicable, add the following below this CDDL HEADER, with the
af062818b47340eef15700d2f0211576ba3506eevboxsync# fields enclosed by brackets "[]" replaced with your own identifying
af062818b47340eef15700d2f0211576ba3506eevboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync#
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync# CDDL HEADER END
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync#
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync#
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync# uts/sparc/md/Makefile
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync# Use is subject to license terms.
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync#
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync#ident "%Z%%M% %I% %E% SMI"
ee6bcfc59fe3b0230aad85e2ef63d0402b7719b2vboxsync#
af062818b47340eef15700d2f0211576ba3506eevboxsync# This makefile drives the production of the SLVM's md driver module.
af062818b47340eef15700d2f0211576ba3506eevboxsync#
af062818b47340eef15700d2f0211576ba3506eevboxsync# sparc implementation architecture dependent
af062818b47340eef15700d2f0211576ba3506eevboxsync#
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync#
af062818b47340eef15700d2f0211576ba3506eevboxsync# Path to the base of the uts directory tree (usually /usr/src/uts).
af062818b47340eef15700d2f0211576ba3506eevboxsync#
af062818b47340eef15700d2f0211576ba3506eevboxsyncUTSBASE = ../..
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync#
af062818b47340eef15700d2f0211576ba3506eevboxsync# Define the module and object file sets.
af062818b47340eef15700d2f0211576ba3506eevboxsync#
af062818b47340eef15700d2f0211576ba3506eevboxsyncMODULE = md
af062818b47340eef15700d2f0211576ba3506eevboxsyncOBJECTS = $(MD_OBJS:%=$(OBJS_DIR)/%)
af062818b47340eef15700d2f0211576ba3506eevboxsyncOBJECTS += $(MD_COMMON_OBJS:%=$(OBJS_DIR)/%)
af062818b47340eef15700d2f0211576ba3506eevboxsyncOBJECTS += $(MD_DERIVED_OBJS:%=$(OBJS_DIR)/%)
af062818b47340eef15700d2f0211576ba3506eevboxsyncLINTS = $(MD_OBJS:%.o=$(LINTS_DIR)/%.ln)
af062818b47340eef15700d2f0211576ba3506eevboxsyncLINTS += $(MD_COMMON_OBJS:%.o=$(LINTS_DIR)/%.ln)
af062818b47340eef15700d2f0211576ba3506eevboxsyncROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
af062818b47340eef15700d2f0211576ba3506eevboxsyncCONF_SRCDIR = $(UTSBASE)/common/io/lvm/md
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync#
af062818b47340eef15700d2f0211576ba3506eevboxsync# Include common rules.
af062818b47340eef15700d2f0211576ba3506eevboxsync#
af062818b47340eef15700d2f0211576ba3506eevboxsyncinclude $(UTSBASE)/sparc/Makefile.sparc
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync#
af062818b47340eef15700d2f0211576ba3506eevboxsync# Define targets
af062818b47340eef15700d2f0211576ba3506eevboxsync#
af062818b47340eef15700d2f0211576ba3506eevboxsyncALL_TARGET = $(BINARY)
af062818b47340eef15700d2f0211576ba3506eevboxsyncLINT_TARGET = $(MODULE).lint
af062818b47340eef15700d2f0211576ba3506eevboxsyncINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
af062818b47340eef15700d2f0211576ba3506eevboxsync
#
# Overrides.
#
CFLAGS += $(CCVERBOSE)
#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
#
LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
LINTTAGS += -erroff=E_STATIC_UNUSED
LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
#
# Default build targets.
#
.KEEP_STATE:
def: derived_h .WAIT $(DEF_DEPS)
all: derived_h .WAIT $(ALL_DEPS)
clean: derived_h .WAIT $(CLEAN_DEPS)
clobber: derived_h .WAIT $(CLOBBER_DEPS)
lint: $(LINT_DEPS)
modlintlib: derived_h .WAIT $(MODLINTLIB_DEPS)
clean.lint: derived_h .WAIT $(CLEAN_LINT_DEPS)
install: derived_h .WAIT $(INSTALL_DEPS)
derived_h:
cd $(UTSBASE)/common/sys/lvm; pwd; $(MAKE) $(TARGET)
#
# Include common targets.
#
include $(UTSBASE)/sparc/Makefile.targ