Makefile revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunnington#
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunnington# CDDL HEADER START
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunnington#
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunnington# The contents of this file are subject to the terms of the
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunnington# Common Development and Distribution License (the "License").
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunnington# You may not use this file except in compliance with the License.
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunnington#
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunnington# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunnington# or http://www.opensolaris.org/os/licensing.
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunnington# See the License for the specific language governing permissions
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunnington# and limitations under the License.
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunnington#
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunnington# When distributing Covered Code, include this CDDL HEADER in each
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunnington# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunnington# If applicable, add the following below this CDDL HEADER, with the
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunnington# fields enclosed by brackets "[]" replaced with your own identifying
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunnington# information: Portions Copyright [yyyy] [name of copyright owner]
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunnington#
6130ebaee2e38cd167fc4c4707a3bb019592666fRich Riley# CDDL HEADER END
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunnington#
16682c615640da7d54591f86528a5eb562e0ab97Craig McDonnell#
9d8eb18c55175a89b87499f5953ba7c780c94636Phill Cunnington# uts/sparc/timod/Makefile
61f4bb8d03701927c71c456f32904bb83092547bPhill Cunnington# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunnington# Use is subject to license terms.
e6b777b91064c2fc873b78052087711348107af3Andrew Forrest#
e6b777b91064c2fc873b78052087711348107af3Andrew Forrest#ident "%Z%%M% %I% %E% SMI"
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunnington#
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunnington# This makefile drives the production of the timod streams kernel
9d8eb18c55175a89b87499f5953ba7c780c94636Phill Cunnington# module.
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunnington#
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunnington# sparc architecture dependent
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunnington#
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunnington
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunnington#
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunnington# Path to the base of the uts directory tree (usually /usr/src/uts).
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunnington#
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill CunningtonUTSBASE = ../..
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunnington
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunnington#
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunnington# Define the module and object file sets.
65aec3bcc15efc129284b5f4b6ea08df488018a9Phill Cunnington#
6130ebaee2e38cd167fc4c4707a3bb019592666fRich RileyMODULE = timod
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill CunningtonOBJECTS = $(TIMOD_OBJS:%=$(OBJS_DIR)/%)
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill CunningtonLINTS = $(TIMOD_OBJS:%.o=$(LINTS_DIR)/%.ln)
13074aafc934bf09a3809b0c852c23f04a0f16fdPhill CunningtonROOTMODULE = $(ROOT_STRMOD_DIR)/$(MODULE)
13074aafc934bf09a3809b0c852c23f04a0f16fdPhill Cunnington
13074aafc934bf09a3809b0c852c23f04a0f16fdPhill Cunnington#
13074aafc934bf09a3809b0c852c23f04a0f16fdPhill Cunnington# Include common rules.
13074aafc934bf09a3809b0c852c23f04a0f16fdPhill Cunnington#
13074aafc934bf09a3809b0c852c23f04a0f16fdPhill Cunningtoninclude $(UTSBASE)/sparc/Makefile.sparc
13074aafc934bf09a3809b0c852c23f04a0f16fdPhill Cunnington
65aec3bcc15efc129284b5f4b6ea08df488018a9Phill Cunnington#
6130ebaee2e38cd167fc4c4707a3bb019592666fRich Riley# Define targets
6130ebaee2e38cd167fc4c4707a3bb019592666fRich Riley#
6130ebaee2e38cd167fc4c4707a3bb019592666fRich RileyALL_TARGET = $(BINARY)
6130ebaee2e38cd167fc4c4707a3bb019592666fRich RileyLINT_TARGET = $(MODULE).lint
6130ebaee2e38cd167fc4c4707a3bb019592666fRich RileyINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
6130ebaee2e38cd167fc4c4707a3bb019592666fRich Riley
6130ebaee2e38cd167fc4c4707a3bb019592666fRich Riley#
13074aafc934bf09a3809b0c852c23f04a0f16fdPhill Cunnington# lint pass one enforcement
13074aafc934bf09a3809b0c852c23f04a0f16fdPhill Cunnington#
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill CunningtonCFLAGS += $(CCVERBOSE)
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunnington
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunnington#
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunnington# For now, disable these lint checks; maintainers should endeavor
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunnington# to investigate and remove these for maximum lint coverage.
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunnington# Please do not carry these forward to new Makefiles.
65aec3bcc15efc129284b5f4b6ea08df488018a9Phill Cunnington#
8ace0598d7efa128bc0a87d3489da0a26a54291bJoe BandenburgLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
8ace0598d7efa128bc0a87d3489da0a26a54291bJoe BandenburgLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
8ace0598d7efa128bc0a87d3489da0a26a54291bJoe Bandenburg
8ace0598d7efa128bc0a87d3489da0a26a54291bJoe Bandenburg#
8ace0598d7efa128bc0a87d3489da0a26a54291bJoe Bandenburg# Default build targets.
8ace0598d7efa128bc0a87d3489da0a26a54291bJoe Bandenburg#
8ace0598d7efa128bc0a87d3489da0a26a54291bJoe Bandenburg.KEEP_STATE:
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunnington
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunningtondef: $(DEF_DEPS)
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunnington
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunningtonall: $(ALL_DEPS)
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunnington
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunningtonclean: $(CLEAN_DEPS)
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunnington
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunningtonclobber: $(CLOBBER_DEPS)
65aec3bcc15efc129284b5f4b6ea08df488018a9Phill Cunnington
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunningtonlint: $(LINT_DEPS)
feb6036520c1ae40dab32694a6162ba0af6bf8e8Phill Cunnington
e6b777b91064c2fc873b78052087711348107af3Andrew Forrestmodlintlib: $(MODLINTLIB_DEPS)
e6b777b91064c2fc873b78052087711348107af3Andrew Forrest
e6b777b91064c2fc873b78052087711348107af3Andrew Forrestclean.lint: $(CLEAN_LINT_DEPS)
e6b777b91064c2fc873b78052087711348107af3Andrew Forrest
e6b777b91064c2fc873b78052087711348107af3Andrew Forrestinstall: $(INSTALL_DEPS)
e6b777b91064c2fc873b78052087711348107af3Andrew Forrest
e6b777b91064c2fc873b78052087711348107af3Andrew Forrest#
e6b777b91064c2fc873b78052087711348107af3Andrew Forrest# Include common targets.
e6b777b91064c2fc873b78052087711348107af3Andrew Forrest#
65aec3bcc15efc129284b5f4b6ea08df488018a9Phill Cunningtoninclude $(UTSBASE)/sparc/Makefile.targ
e6b777b91064c2fc873b78052087711348107af3Andrew Forrest