Makefile revision ff0e937b36dcde1a47ff7b00aa76a491c0dc07a8
823N/A#
823N/A# CDDL HEADER START
823N/A#
823N/A# The contents of this file are subject to the terms of the
823N/A# Common Development and Distribution License (the "License").
823N/A# You may not use this file except in compliance with the License.
823N/A#
823N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
823N/A# or http://www.opensolaris.org/os/licensing.
823N/A# See the License for the specific language governing permissions
823N/A# and limitations under the License.
823N/A#
823N/A# When distributing Covered Code, include this CDDL HEADER in each
823N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
823N/A# If applicable, add the following below this CDDL HEADER, with the
823N/A# fields enclosed by brackets "[]" replaced with your own identifying
823N/A# information: Portions Copyright [yyyy] [name of copyright owner]
823N/A#
873N/A# CDDL HEADER END
823N/A#
823N/A#
823N/A# uts/sparc/uwba/Makefile
823N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
823N/A# Use is subject to license terms.
823N/A#
823N/A#
823N/A# This makefile drives the production of the uwba kernel module.
823N/A# sparc architecture dependent
823N/A#
823N/A
823N/A#
823N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
997N/A#
823N/AUTSBASE = ../..
878N/A
823N/A#
823N/A# Define the module and object file sets.
823N/A#
823N/AMODULE = uwba
897N/AOBJECTS = $(UWBA_OBJS:%=$(OBJS_DIR)/%)
823N/ALINTS = $(UWBA_OBJS:%.o=$(LINTS_DIR)/%.ln)
823N/AROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
823N/AWARLOCK_OUT = $(UWBA_OBJS:%.o=%.ll)
823N/AWARLOCK_OK = $(MODULE).ok
823N/A
878N/A#
823N/A# Include common rules.
823N/A#
823N/Ainclude $(UTSBASE)/sparc/Makefile.sparc
823N/A
878N/A#
823N/A# lint pass one enforcement
823N/A#
823N/ACFLAGS += $(CCVERBOSE)
823N/A
878N/A#
897N/A# Define targets
897N/A#
897N/AALL_TARGET = $(BINARY)
823N/ALINT_TARGET = $(MODULE).lint
878N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
823N/A
823N/A#
823N/A# For now, disable these lint checks; maintainers should endeavor
823N/A# to investigate and remove these for maximum lint coverage.
878N/A# Please do not carry these forward to new Makefiles.
897N/A#
897N/ALINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
897N/ALINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
897N/ALINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
897N/ALINTTAGS += -erroff=E_STATIC_UNUSED
897N/A
897N/A#
897N/A# Default build targets.
897N/A#
897N/A.KEEP_STATE:
897N/A
897N/Adef: $(DEF_DEPS)
897N/A
897N/Aall: $(ALL_DEPS)
897N/A
897N/Aclean: $(CLEAN_DEPS)
897N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
897N/A
897N/Aclobber: $(CLOBBER_DEPS)
897N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
897N/A
897N/Alint: $(LINT_DEPS)
897N/A
897N/Amodlintlib: $(MODLINTLIB_DEPS)
897N/A
897N/Aclean.lint: $(CLEAN_LINT_DEPS)
897N/A
897N/Ainstall: $(INSTALL_DEPS)
897N/A
897N/A#
897N/A# Include common targets.
897N/A#
897N/Ainclude $(UTSBASE)/sparc/Makefile.targ
897N/A
823N/A#
823N/A# Defines for local commands.
823N/A#
823N/AWLCC = wlcc
823N/ATOUCH = touch
897N/AWARLOCK = warlock
897N/A
897N/A#
897N/A# Warlock targets
897N/A#
897N/Awarlock: $(WARLOCK_OK)
897N/A
897N/A$(WARLOCK_OK): $(WARLOCK_OUT)
897N/A $(TOUCH) $@
897N/A
897N/A%.ll: $(UTSBASE)/common/io/uwb/uwba/%.c
897N/A $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
897N/A