3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee#
bf56214c0556fa6864189c826d39dbe156bb22a0stevel# CDDL HEADER START
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee#
bf56214c0556fa6864189c826d39dbe156bb22a0stevel# The contents of this file are subject to the terms of the
bf56214c0556fa6864189c826d39dbe156bb22a0stevel# Common Development and Distribution License (the "License").
bf56214c0556fa6864189c826d39dbe156bb22a0stevel# You may not use this file except in compliance with the License.
bf56214c0556fa6864189c826d39dbe156bb22a0stevel#
bf56214c0556fa6864189c826d39dbe156bb22a0stevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
bf56214c0556fa6864189c826d39dbe156bb22a0stevel# or http://www.opensolaris.org/os/licensing.
bf56214c0556fa6864189c826d39dbe156bb22a0stevel# See the License for the specific language governing permissions
bf56214c0556fa6864189c826d39dbe156bb22a0stevel# and limitations under the License.
bf56214c0556fa6864189c826d39dbe156bb22a0stevel#
bf56214c0556fa6864189c826d39dbe156bb22a0stevel# When distributing Covered Code, include this CDDL HEADER in each
bf56214c0556fa6864189c826d39dbe156bb22a0stevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
bf56214c0556fa6864189c826d39dbe156bb22a0stevel# If applicable, add the following below this CDDL HEADER, with the
bf56214c0556fa6864189c826d39dbe156bb22a0stevel# fields enclosed by brackets "[]" replaced with your own identifying
bf56214c0556fa6864189c826d39dbe156bb22a0stevel# information: Portions Copyright [yyyy] [name of copyright owner]
bf56214c0556fa6864189c826d39dbe156bb22a0stevel#
bf56214c0556fa6864189c826d39dbe156bb22a0stevel# CDDL HEADER END
bf56214c0556fa6864189c826d39dbe156bb22a0stevel#
bf56214c0556fa6864189c826d39dbe156bb22a0stevel
bf56214c0556fa6864189c826d39dbe156bb22a0stevel#
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# intel architecture dependent
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)
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsWARLOCK_OUT = $(CMLB_OBJS:%.o=%.ll)
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsWARLOCK_OK = $(MODULE).ok
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlcleeROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee#
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee# Include common rules.
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee#
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlcleeinclude $(UTSBASE)/intel/Makefile.intel
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# enable larger than 1TB VTOC support
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_SUSPICIOUS_COMPARISON
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jgLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jgLINTTAGS += -erroff=E_STATIC_UNUSED
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jgLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
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
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlcleeclean: $(CLEAN_DEPS)
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlcleeclobber: $(CLOBBER_DEPS)
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits $(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)/intel/Makefile.targ
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits#
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# Defines for local commands.
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits#
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsWLCC = wlcc
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsTOUCH = touch
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsWARLOCK = warlock
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits#
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# Warlock targets
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits#
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritswarlock: $(WARLOCK_OK)
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits$(WARLOCK_OK): $(WARLOCK_OUT)
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits $(TOUCH) $@
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits%.ll: $(UTSBASE)/common/io/%.c
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<