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