Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
2209N/A#
2209N/A# CDDL HEADER START
2209N/A#
2209N/A# The contents of this file are subject to the terms of the
2209N/A# Common Development and Distribution License (the "License").
2209N/A# You may not use this file except in compliance with the License.
2209N/A#
2209N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2209N/A# or http://www.opensolaris.org/os/licensing.
2209N/A# See the License for the specific language governing permissions
2209N/A# and limitations under the License.
2209N/A#
2209N/A# When distributing Covered Code, include this CDDL HEADER in each
2209N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2209N/A# If applicable, add the following below this CDDL HEADER, with the
2209N/A# fields enclosed by brackets "[]" replaced with your own identifying
2209N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2209N/A#
2209N/A# CDDL HEADER END
2209N/A#
5680N/A#
5680N/A# uts/sparc/cmlb/Makefile
5371N/A#
2209N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
2209N/A# Use is subject to license terms.
2209N/A#
2209N/A# This makefile drives the production of the cmlb "misc"
2209N/A# kernel module.
3441N/A#
3441N/A#
3441N/A#
2209N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
2209N/A#
5537N/AUTSBASE = ../..
5537N/A
5537N/A#
5537N/A# Define the module and object file sets.
6982N/A#
5600N/AMODULE = cmlb
2209N/AOBJECTS = $(CMLB_OBJS:%=$(OBJS_DIR)/%)
2209N/ALINTS = $(CMLB_OBJS:%.o=$(LINTS_DIR)/%.ln)
2209N/AWARLOCK_OUT = $(CMLB_OBJS:%.o=%.ll)
2209N/AWARLOCK_OK = $(MODULE).ok
2209N/AROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
6982N/A
2209N/A#
2931N/A# Include common rules.
2209N/A#
6982N/Ainclude $(UTSBASE)/sparc/Makefile.sparc
2899N/A
4368N/A#
4368N/A# Define targets
4368N/A#
4368N/AALL_TARGET = $(BINARY)
4368N/ALINT_TARGET = $(MODULE).lint
4368N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
4368N/A
3062N/A#
2221N/A# Overrides.
2221N/A#
3817N/ADEBUG_FLGS =
3817N/ADEBUG_DEFS += $(DEBUG_FLGS)
3817N/A
3817N/A# Larger than 1TB VTOC
2209N/A
2209N/ACPPFLAGS += -D_EXTVTOC
2209N/A
2209N/A#
2209N/A# For now, disable these lint checks; maintainers should endeavor
2209N/A# to investigate and remove these for maximum lint coverage.
2209N/A# Please do not carry these forward to new Makefiles.
2209N/A#
2209N/ALINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
2209N/ALINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
2209N/ALINTTAGS += -erroff=E_STATIC_UNUSED
2209N/ALINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
2209N/A
4820N/ACERRWARN += -_gcc=-Wno-unused-label
2209N/ACERRWARN += -_gcc=-Wno-type-limits
4820N/ACERRWARN += -_gcc=-Wno-parentheses
2209N/ACERRWARN += -_gcc=-Wno-unused-function
5123N/ACERRWARN += -_gcc=-Wno-uninitialized
5123N/A
5123N/A#
5123N/A# Default build targets.
5123N/A#
2209N/A.KEEP_STATE:
2209N/A
2209N/Adef: $(DEF_DEPS)
2209N/A
2209N/Aall: $(ALL_DEPS)
2209N/A
2209N/Aclean: $(CLEAN_DEPS)
2209N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
6017N/A
2209N/Aclobber: $(CLOBBER_DEPS)
2209N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
2209N/A
2209N/Alint: $(LINT_DEPS)
2209N/A
2209N/Amodlintlib: $(MODLINTLIB_DEPS)
2209N/A
2209N/Aclean.lint: $(CLEAN_LINT_DEPS)
2209N/A
2209N/Ainstall: $(INSTALL_DEPS)
2209N/A
2209N/A#
2209N/A# Include common targets.
2209N/A#
2209N/Ainclude $(UTSBASE)/sparc/Makefile.targ
2221N/A
2221N/A#
2221N/A# Defines for local commands.
2209N/A#
4371N/AWLCC = wlcc
6962N/ATOUCH = touch
4907N/AWARLOCK = warlock
4371N/A
2209N/A#
2209N/A# Warlock targets
2209N/A#
4368N/Awarlock: $(WARLOCK_OK)
2209N/A
4368N/A$(WARLOCK_OK): $(WARLOCK_OUT)
2209N/A $(TOUCH) $@
2209N/A
2209N/A%.ll: $(UTSBASE)/common/io/%.c
2209N/A $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
2209N/A