Makefile revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt#
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# CDDL HEADER START
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt#
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# The contents of this file are subject to the terms of the
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# Common Development and Distribution License (the "License").
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# You may not use this file except in compliance with the License.
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt#
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# or http://www.opensolaris.org/os/licensing.
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# See the License for the specific language governing permissions
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# and limitations under the License.
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt#
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# When distributing Covered Code, include this CDDL HEADER in each
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# If applicable, add the following below this CDDL HEADER, with the
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# fields enclosed by brackets "[]" replaced with your own identifying
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# information: Portions Copyright [yyyy] [name of copyright owner]
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt#
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# CDDL HEADER END
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt#
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt#
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# uts/sparc/bufmod/Makefile
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# Use is subject to license terms.
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt#
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt#ident "%Z%%M% %I% %E% SMI"
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt#
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# This makefile drives the production of the streams buffer module.
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt#
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# sparc architecture dependent
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt#
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt#
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# Path to the base of the uts directory tree (usually /usr/src/uts).
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt#
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntUTSBASE = ../..
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt#
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# Define the module and object file sets.
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt#
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntMODULE = bufmod
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntOBJECTS = $(BUFMOD_OBJS:%=$(OBJS_DIR)/%)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntLINTS = $(BUFMOD_OBJS:%.o=$(LINTS_DIR)/%.ln)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntROOTMODULE = $(ROOT_STRMOD_DIR)/$(MODULE)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt#
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# Include common rules.
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt#
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Huntinclude $(UTSBASE)/sparc/Makefile.sparc
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt#
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# Define targets
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt#
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntALL_TARGET = $(BINARY)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntLINT_TARGET = $(MODULE).lint
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt#
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# Overrides.
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt#
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntCFLAGS += $(CCVERBOSE)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt#
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# For now, disable these lint checks; maintainers should endeavor
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# to investigate and remove these for maximum lint coverage.
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# Please do not carry these forward to new Makefiles.
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt#
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt#
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# Default build targets.
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt#
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt.KEEP_STATE:
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Huntdef: $(DEF_DEPS)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Huntall: $(ALL_DEPS)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Huntclean: $(CLEAN_DEPS)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Huntclobber: $(CLOBBER_DEPS)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Huntlint: $(LINT_DEPS)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Huntmodlintlib: $(MODLINTLIB_DEPS)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Huntclean.lint: $(CLEAN_LINT_DEPS)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Huntinstall: $(INSTALL_DEPS)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt#
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt# Include common targets.
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt#
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Huntinclude $(UTSBASE)/sparc/Makefile.targ
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt