Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
98N/A#
98N/A# CDDL HEADER START
98N/A#
98N/A# The contents of this file are subject to the terms of the
1265N/A# Common Development and Distribution License (the "License").
98N/A# You may not use this file except in compliance with the License.
98N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A#
919N/A# uts/intel/md/Makefile
919N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
919N/A# Use is subject to license terms.
98N/A# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
98N/A#
98N/A# This makefile drives the production of the md driver
98N/A#
98N/A# architecture independent
98N/A#
1265N/A
493N/A#
98N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
911N/A#
1265N/AUTSBASE = ../..
1265N/A
1265N/A#
911N/A# Define the module and object file sets.
98N/A#
235N/AMODULE = md
493N/AOBJECTS = $(MD_OBJS:%=$(OBJS_DIR)/%)
98N/AOBJECTS += $(MD_COMMON_OBJS:%=$(OBJS_DIR)/%)
916N/AOBJECTS += $(MD_DERIVED_OBJS:%=$(OBJS_DIR)/%)
916N/ALINTS = $(MD_OBJS:%.o=$(LINTS_DIR)/%.ln)
916N/ALINTS += $(MD_COMMON_OBJS:%.o=$(LINTS_DIR)/%.ln)
916N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
970N/ACONF_SRCDIR = $(UTSBASE)/common/io/lvm/md
970N/A
970N/A#
970N/A# Include common rules.
970N/A#
970N/Ainclude $(UTSBASE)/intel/Makefile.intel
970N/A
970N/A#
970N/A# For now, disable these lint checks; maintainers should endeavor
970N/A# to investigate and remove these for maximum lint coverage.
970N/A# Please do not carry these forward to new Makefiles.
970N/A#
970N/ALINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
970N/ALINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
970N/ALINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
970N/ALINTTAGS += -erroff=E_STATIC_UNUSED
970N/ALINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
970N/ALINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
970N/A
970N/ACERRWARN += -_gcc=-Wno-uninitialized
970N/ACERRWARN += -_gcc=-Wno-unused-variable
970N/ACERRWARN += -_gcc=-Wno-unused-function
970N/ACERRWARN += -_gcc=-Wno-unused-label
970N/ACERRWARN += -_gcc=-Wno-parentheses
970N/A
1029N/A#
1029N/A# Define targets
1124N/A#
1124N/AALL_TARGET = $(BINARY) $(SRC_CONFILE)
1124N/ALINT_TARGET = $(MODULE).lint
1124N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
1124N/A
1124N/A#
970N/A# Depends on rpcmod
98N/A#
98N/ALDFLAGS += -dy -N strmod/rpcmod
1265N/A
1124N/A#
1124N/A# Default build targets.
1124N/A#
1265N/A.KEEP_STATE:
1265N/A
1265N/Adef: derived_h .WAIT $(DEF_DEPS)
1124N/A
98N/Aall: derived_h .WAIT $(ALL_DEPS)
493N/A
98N/Aclean: derived_h .WAIT $(CLEAN_DEPS)
970N/A
970N/Aclobber: derived_h .WAIT $(CLOBBER_DEPS)
970N/A
1026N/Alint: $(LINT_DEPS)
970N/A
970N/Amodlintlib: derived_h .WAIT $(MODLINTLIB_DEPS)
1026N/A
1124N/Aclean.lint: derived_h .WAIT $(CLEAN_LINT_DEPS)
1003N/A
98N/Ainstall: derived_h .WAIT $(INSTALL_DEPS)
98N/A
98N/Aderived_h:
908N/A cd $(UTSBASE)/common/sys/lvm; pwd; $(MAKE) $(TARGET)
591N/A
493N/A#
493N/A# Include common targets.
1201N/A#
1201N/Ainclude $(UTSBASE)/intel/Makefile.targ
1201N/A