3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee#
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty# CDDL HEADER START
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty#
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty# The contents of this file are subject to the terms of the
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty# Common Development and Distribution License (the "License").
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty# You may not use this file except in compliance with the License.
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty#
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty# or http://www.opensolaris.org/os/licensing.
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty# See the License for the specific language governing permissions
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty# and limitations under the License.
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty#
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty# When distributing Covered Code, include this CDDL HEADER in each
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty# If applicable, add the following below this CDDL HEADER, with the
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty# fields enclosed by brackets "[]" replaced with your own identifying
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty# information: Portions Copyright [yyyy] [name of copyright owner]
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty#
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty# CDDL HEADER END
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty#
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty#
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee# uts/sparc/cmlb/Makefile
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee#
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee# Use is subject to license terms.
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee#
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee# This makefile drives the production of the cmlb "misc"
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee# kernel module.
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee#
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee#
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee#
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee# Path to the base of the uts directory tree (usually /usr/src/uts).
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee#
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlcleeUTSBASE = ../..
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee#
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee# Define the module and object file sets.
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee#
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlcleeMODULE = cmlb
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlcleeOBJECTS = $(CMLB_OBJS:%=$(OBJS_DIR)/%)
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlcleeLINTS = $(CMLB_OBJS:%.o=$(LINTS_DIR)/%.ln)
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlcleeWARLOCK_OUT = $(CMLB_OBJS:%.o=%.ll)
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlcleeWARLOCK_OK = $(MODULE).ok
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlcleeROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee#
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee# Include common rules.
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee#
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlcleeinclude $(UTSBASE)/sparc/Makefile.sparc
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee#
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee# Define targets
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee#
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlcleeALL_TARGET = $(BINARY)
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlcleeLINT_TARGET = $(MODULE).lint
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlcleeINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee#
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee# Overrides.
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee#
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlcleeDEBUG_FLGS =
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlcleeDEBUG_DEFS += $(DEBUG_FLGS)
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty# Larger than 1TB VTOC
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty
342440ec94087b8c751c580ab9ed6c693d31d418Prasad SingamsettyCPPFLAGS += -D_EXTVTOC
342440ec94087b8c751c580ab9ed6c693d31d418Prasad Singamsetty
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg#
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# For now, disable these lint checks; maintainers should endeavor
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# to investigate and remove these for maximum lint coverage.
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# Please do not carry these forward to new Makefiles.
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg#
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jgLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jgLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jgLINTTAGS += -erroff=E_STATIC_UNUSED
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jgLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-unused-label
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-type-limits
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-parentheses
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-unused-function
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-uninitialized
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee#
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee# Default build targets.
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee#
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee.KEEP_STATE:
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlcleedef: $(DEF_DEPS)
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlcleeall: $(ALL_DEPS)
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee
f1b64740276f67fc6914c1d855f2af601efe99aclcleeclean: $(CLEAN_DEPS)
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee
f1b64740276f67fc6914c1d855f2af601efe99aclcleeclobber: $(CLOBBER_DEPS)
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlcleelint: $(LINT_DEPS)
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlcleemodlintlib: $(MODLINTLIB_DEPS)
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlcleeclean.lint: $(CLEAN_LINT_DEPS)
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlcleeinstall: $(INSTALL_DEPS)
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee#
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee# Include common targets.
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee#
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlcleeinclude $(UTSBASE)/sparc/Makefile.targ
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee#
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee# Defines for local commands.
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee#
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlcleeWLCC = wlcc
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlcleeTOUCH = touch
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlcleeWARLOCK = warlock
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee#
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee# Warlock targets
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee#
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritswarlock: $(WARLOCK_OK)
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits$(WARLOCK_OK): $(WARLOCK_OUT)
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee $(TOUCH) $@
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee%.ll: $(UTSBASE)/common/io/%.c
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<