Makefile revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff#
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# CDDL HEADER START
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff#
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# The contents of this file are subject to the terms of the
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# Common Development and Distribution License (the "License").
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# You may not use this file except in compliance with the License.
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff#
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# or http://www.opensolaris.org/os/licensing.
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# See the License for the specific language governing permissions
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# and limitations under the License.
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff#
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# When distributing Covered Code, include this CDDL HEADER in each
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a55d0a9080c8ef4117d2fc27f63220a56afb2434Andreas Gustafsson# If applicable, add the following below this CDDL HEADER, with the
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# fields enclosed by brackets "[]" replaced with your own identifying
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# information: Portions Copyright [yyyy] [name of copyright owner]
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff#
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# CDDL HEADER END
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff#
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff#
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# uts/sparc/ms/Makefile
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# Use is subject to license terms.
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff#
a55d0a9080c8ef4117d2fc27f63220a56afb2434Andreas Gustafsson#ident "%Z%%M% %I% %E% SMI"
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff#
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# This makefile drives the production of the ms streams kernel
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# module.
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff#
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# sparc architecture dependent
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff#
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff#
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# Path to the base of the uts directory tree (usually /usr/src/uts).
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff#
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael GraffUTSBASE = ../..
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff#
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# Define the module and object file sets.
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff#
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael GraffMODULE = ms
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael GraffOBJECTS = $(MS_OBJS:%=$(OBJS_DIR)/%)
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael GraffLINTS = $(MS_OBJS:%.o=$(LINTS_DIR)/%.ln)
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael GraffROOTMODULE = $(ROOT_STRMOD_DIR)/$(MODULE)
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff#
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# Include common rules.
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff#
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graffinclude $(UTSBASE)/sparc/Makefile.sparc
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff#
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# Define targets
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff#
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael GraffALL_TARGET = $(BINARY)
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael GraffLINT_TARGET = $(MODULE).lint
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael GraffINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff#
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# Overrides.
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff#
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael GraffCFLAGS += $(CCVERBOSE)
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff#
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# For now, disable these lint checks; maintainers should endeavor
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# to investigate and remove these for maximum lint coverage.
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# Please do not carry these forward to new Makefiles.
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff#
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael GraffLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael GraffLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff#
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# Default build targets.
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff#
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff.KEEP_STATE:
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graffdef: $(DEF_DEPS)
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graffall: $(ALL_DEPS)
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graffclean: $(CLEAN_DEPS)
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graffclobber: $(CLOBBER_DEPS)
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Grafflint: $(LINT_DEPS)
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graffmodlintlib: $(MODLINTLIB_DEPS)
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graffclean.lint: $(CLEAN_LINT_DEPS)
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graffinstall: $(INSTALL_DEPS)
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff#
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# Include common targets.
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff#
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graffinclude $(UTSBASE)/sparc/Makefile.targ
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff