Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
107N/A#
107N/A# CDDL HEADER START
107N/A#
107N/A# The contents of this file are subject to the terms of the
107N/A# Common Development and Distribution License (the "License").
107N/A# You may not use this file except in compliance with the License.
107N/A#
107N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
107N/A# or http://www.opensolaris.org/os/licensing.
107N/A# See the License for the specific language governing permissions
107N/A# and limitations under the License.
107N/A#
107N/A# When distributing Covered Code, include this CDDL HEADER in each
107N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
107N/A# If applicable, add the following below this CDDL HEADER, with the
107N/A# fields enclosed by brackets "[]" replaced with your own identifying
107N/A# information: Portions Copyright [yyyy] [name of copyright owner]
107N/A#
107N/A# CDDL HEADER END
107N/A#
107N/A#
107N/A# uts/intel/cmdk/Makefile
107N/A#
107N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
107N/A# Use is subject to license terms.
107N/A#
107N/A# This makefile drives the production of the cmdk driver
107N/A# kernel module.
107N/A#
107N/A# intel architecture dependent
107N/A#
107N/A
107N/A#
107N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
107N/A#
107N/AUTSBASE = ../..
107N/A
107N/A#
107N/A# Define the module and object file sets.
107N/A#
107N/AMODULE = cmdk
107N/AOBJECTS = $(CMDK_OBJS:%=$(OBJS_DIR)/%)
107N/ALINTS = $(CMDK_OBJS:%.o=$(LINTS_DIR)/%.ln)
107N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
107N/ACONF_SRCDIR = $(UTSBASE)/intel/io/dktp/disk
107N/A
107N/A#
107N/A# Include common rules.
107N/A#
107N/Ainclude $(UTSBASE)/intel/Makefile.intel
107N/A
107N/A#
107N/A# Define targets
107N/A#
107N/AALL_TARGET = $(BINARY) $(CONFMOD)
107N/ALINT_TARGET = $(MODULE).lint
107N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
107N/A
151N/A#
107N/A# Overrides.
107N/A#
107N/ADEBUG_FLGS =
107N/ADEBUG_DEFS += $(DEBUG_FLGS)
107N/ALDFLAGS += -dy -Nmisc/dadk -Nmisc/strategy -Nmisc/cmlb
181N/A
181N/A# Larger than 1TB VTOC support
107N/ACPPFLAGS += -D_EXTVTOC
107N/A
107N/ACERRWARN += -_gcc=-Wno-unused-function
107N/ACERRWARN += -_gcc=-Wno-uninitialized
CERRWARN += -_gcc=-Wno-parentheses
CERRWARN += -_gcc=-Wno-type-limits
#
# 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_PTRDIFF_OVERFLOW
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
LINTTAGS += -erroff=E_STATIC_UNUSED
#
# Default build targets.
#
.KEEP_STATE:
def: $(DEF_DEPS)
all: $(ALL_DEPS)
clean: $(CLEAN_DEPS)
clobber: $(CLOBBER_DEPS)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
#
# Include common targets.
#
include $(UTSBASE)/intel/Makefile.targ