Makefile revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff#
615f17d0171dd807c6803b25a255a8ea2051fbd4David Lawrence# CDDL HEADER START
615f17d0171dd807c6803b25a255a8ea2051fbd4David Lawrence#
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.
615f17d0171dd807c6803b25a255a8ea2051fbd4David Lawrence# See the License for the specific language governing permissions
d3498432822fb487e58f8f72bb5f880dd8307d7dMichael Sawyer# and limitations under the License.
d3498432822fb487e58f8f72bb5f880dd8307d7dMichael Sawyer#
d3498432822fb487e58f8f72bb5f880dd8307d7dMichael Sawyer# When distributing Covered Code, include this CDDL HEADER in each
d3498432822fb487e58f8f72bb5f880dd8307d7dMichael Sawyer# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d3498432822fb487e58f8f72bb5f880dd8307d7dMichael Sawyer# If applicable, add the following below this CDDL HEADER, with the
d3498432822fb487e58f8f72bb5f880dd8307d7dMichael Sawyer# fields enclosed by brackets "[]" replaced with your own identifying
615f17d0171dd807c6803b25a255a8ea2051fbd4David Lawrence# information: Portions Copyright [yyyy] [name of copyright owner]
95be83b467e2384d414693982318a5c06cccf1d7Andreas Gustafsson#
f9354808d122036e66e9f007a4bb12d4aa936aaeAndreas Gustafsson# CDDL HEADER END
f9354808d122036e66e9f007a4bb12d4aa936aaeAndreas Gustafsson#
f9354808d122036e66e9f007a4bb12d4aa936aaeAndreas Gustafsson#
f9354808d122036e66e9f007a4bb12d4aa936aaeAndreas Gustafsson# uts/sparc/ttcompat/Makefile
b1d234eb75e2804e09d89178a76df39c321db51bBrian Wellington# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
b1d234eb75e2804e09d89178a76df39c321db51bBrian Wellington# Use is subject to license terms.
58007c5fde59b756174280d26916eb27f593e6ccBob Halley#
58007c5fde59b756174280d26916eb27f593e6ccBob Halley#ident "%Z%%M% %I% %E% SMI"
58007c5fde59b756174280d26916eb27f593e6ccBob Halley#
58007c5fde59b756174280d26916eb27f593e6ccBob Halley# This makefile drives the production of the ttcompat streams kernel
58007c5fde59b756174280d26916eb27f593e6ccBob Halley# module.
58007c5fde59b756174280d26916eb27f593e6ccBob Halley#
58007c5fde59b756174280d26916eb27f593e6ccBob Halley# sparc architecture dependent
58007c5fde59b756174280d26916eb27f593e6ccBob Halley#
58007c5fde59b756174280d26916eb27f593e6ccBob Halley
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#
a55d0a9080c8ef4117d2fc27f63220a56afb2434Andreas Gustafsson# Define the module and object file sets.
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff#
353dcaf1cc77d122d9b4b750bbbfc4c96b4b292bAndreas GustafssonMODULE = ttcompat
615f17d0171dd807c6803b25a255a8ea2051fbd4David LawrenceOBJECTS = $(TTCOMPAT_OBJS:%=$(OBJS_DIR)/%)
615f17d0171dd807c6803b25a255a8ea2051fbd4David LawrenceLINTS = $(TTCOMPAT_OBJS:%.o=$(LINTS_DIR)/%.ln)
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael GraffROOTMODULE = $(ROOT_STRMOD_DIR)/$(MODULE)
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff
58007c5fde59b756174280d26916eb27f593e6ccBob Halley#
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# Include common rules.
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff#
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graffinclude $(UTSBASE)/sparc/Makefile.sparc
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff#
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# Define targets
a55d0a9080c8ef4117d2fc27f63220a56afb2434Andreas Gustafsson#
7e4d75a5daeaaf8a7f559f9bd7fbf540184e235cMark AndrewsALL_TARGET = $(BINARY)
353dcaf1cc77d122d9b4b750bbbfc4c96b4b292bAndreas GustafssonLINT_TARGET = $(MODULE).lint
615f17d0171dd807c6803b25a255a8ea2051fbd4David LawrenceINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
615f17d0171dd807c6803b25a255a8ea2051fbd4David Lawrence
615f17d0171dd807c6803b25a255a8ea2051fbd4David Lawrence#
615f17d0171dd807c6803b25a255a8ea2051fbd4David Lawrence# Overrides.
615f17d0171dd807c6803b25a255a8ea2051fbd4David Lawrence#
615f17d0171dd807c6803b25a255a8ea2051fbd4David LawrenceCFLAGS += $(CCVERBOSE)
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff
615f17d0171dd807c6803b25a255a8ea2051fbd4David Lawrence#
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# For now, disable these lint checks; maintainers should endeavor
58007c5fde59b756174280d26916eb27f593e6ccBob Halley# to investigate and remove these for maximum lint coverage.
582952026017aee8b5fb8ada625165c579f7807bDavid Lawrence# Please do not carry these forward to new Makefiles.
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff#
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael GraffLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael GraffLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff#
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# Default build targets.
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff#
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff.KEEP_STATE:
615f17d0171dd807c6803b25a255a8ea2051fbd4David Lawrence
615f17d0171dd807c6803b25a255a8ea2051fbd4David Lawrencedef: $(DEF_DEPS)
615f17d0171dd807c6803b25a255a8ea2051fbd4David Lawrence
58007c5fde59b756174280d26916eb27f593e6ccBob Halleyall: $(ALL_DEPS)
58007c5fde59b756174280d26916eb27f593e6ccBob Halley
58007c5fde59b756174280d26916eb27f593e6ccBob Halleyclean: $(CLEAN_DEPS)
615f17d0171dd807c6803b25a255a8ea2051fbd4David Lawrence
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graffclobber: $(CLOBBER_DEPS)
b3e3e95537943deeb232e0b0475a726b54b868bcBrian Wellington
b3e3e95537943deeb232e0b0475a726b54b868bcBrian Wellingtonlint: $(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#
58007c5fde59b756174280d26916eb27f593e6ccBob Halley# Include common targets.
58007c5fde59b756174280d26916eb27f593e6ccBob Halley#
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graffinclude $(UTSBASE)/sparc/Makefile.targ
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff