Makefile revision 89b43686db1fe9681d80a7cf5662730cb9378cae
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu#
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu# CDDL HEADER START
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu#
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu# The contents of this file are subject to the terms of the
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu# Common Development and Distribution License (the "License").
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu# You may not use this file except in compliance with the License.
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu#
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu# or http://www.opensolaris.org/os/licensing.
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu# See the License for the specific language governing permissions
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu# and limitations under the License.
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu#
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu# When distributing Covered Code, include this CDDL HEADER in each
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu# If applicable, add the following below this CDDL HEADER, with the
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu# fields enclosed by brackets "[]" replaced with your own identifying
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu# information: Portions Copyright [yyyy] [name of copyright owner]
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu#
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu# CDDL HEADER END
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu#
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu#
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu# uts/sparc/raid/Makefile
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu# Use is subject to license terms.
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu#
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu# This makefile drives the production of the SLVM's raid misc module.
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu#
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu# sparc implementation architecture dependent
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu#
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu#
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu# Path to the base of the uts directory tree (usually /usr/src/uts).
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu#
c7e03d0708369f944b6f235057b39142a21599f2Mihai CodescuUTSBASE = ../..
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu#
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu# Define the module and object file sets.
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu#
c7e03d0708369f944b6f235057b39142a21599f2Mihai CodescuMODULE = md_raid
c7e03d0708369f944b6f235057b39142a21599f2Mihai CodescuOBJECTS = $(RAID_OBJS:%=$(OBJS_DIR)/%)
c7e03d0708369f944b6f235057b39142a21599f2Mihai CodescuLINTS = $(RAID_OBJS:%.o=$(LINTS_DIR)/%.ln)
c7e03d0708369f944b6f235057b39142a21599f2Mihai CodescuROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu#
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu# Include common rules.
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu#
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescuinclude $(UTSBASE)/sparc/Makefile.sparc
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu#
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu# Define targets
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu#
c7e03d0708369f944b6f235057b39142a21599f2Mihai CodescuALL_TARGET = $(BINARY)
c7e03d0708369f944b6f235057b39142a21599f2Mihai CodescuLINT_TARGET = $(MODULE).lint
c7e03d0708369f944b6f235057b39142a21599f2Mihai CodescuINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu#
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu# Overrides.
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu#
c7e03d0708369f944b6f235057b39142a21599f2Mihai CodescuCFLAGS += $(CCVERBOSE)
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu#
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu# Define dependency on md
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu#
c7e03d0708369f944b6f235057b39142a21599f2Mihai CodescuLDFLAGS += -dy -N drv/md
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu#
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu# For now, disable these lint checks; maintainers should endeavor
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu# to investigate and remove these for maximum lint coverage.
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu# Please do not carry these forward to new Makefiles.
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu#
c7e03d0708369f944b6f235057b39142a21599f2Mihai CodescuLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
c7e03d0708369f944b6f235057b39142a21599f2Mihai CodescuLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
c7e03d0708369f944b6f235057b39142a21599f2Mihai CodescuLINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
c7e03d0708369f944b6f235057b39142a21599f2Mihai CodescuLINTTAGS += -erroff=E_STATIC_UNUSED
c7e03d0708369f944b6f235057b39142a21599f2Mihai CodescuLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
c7e03d0708369f944b6f235057b39142a21599f2Mihai CodescuLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu#
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu# Default build targets.
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu#
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu.KEEP_STATE:
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescudef: $(DEF_DEPS)
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescuall: $(ALL_DEPS)
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescuclean: $(CLEAN_DEPS)
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescuclobber: $(CLOBBER_DEPS)
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codesculint: $(LINT_DEPS)
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescumodlintlib: $(MODLINTLIB_DEPS)
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescuclean.lint: $(CLEAN_LINT_DEPS)
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescuinstall: $(INSTALL_DEPS)
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu#
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu# Include common targets.
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu#
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescuinclude $(UTSBASE)/sparc/Makefile.targ
c7e03d0708369f944b6f235057b39142a21599f2Mihai Codescu