Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
48c0c81cd6fabac9d3386406d97633780365b839coar#
45b0e1c775c1cfed6473c9e5304179ccb9609f53stoddard# CDDL HEADER START
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# The contents of this file are subject to the terms of the
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# Common Development and Distribution License, Version 1.0 only
d8028365066fca602bf35d014530a1802114378crbb# (the "License"). You may not use this file except in compliance
c25203fdca093d4504c51b4cd974ff60d5aa4fb1wrowe# with the License.
c25203fdca093d4504c51b4cd974ff60d5aa4fb1wrowe#
c25203fdca093d4504c51b4cd974ff60d5aa4fb1wrowe# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d89c116f82699294ca744125723651c554bc5925wrowe# or http://www.opensolaris.org/os/licensing.
4214e98fc9045e5010e66f9a967bd6d68f40d342aaron# See the License for the specific language governing permissions
8721697e2aece27b0e738519329f7976c72b27bfjerenkrantz# and limitations under the License.
c25203fdca093d4504c51b4cd974ff60d5aa4fb1wrowe#
91cacb801f6c0215b38322f6d2fc58cbfedfecfbjerenkrantz# When distributing Covered Code, include this CDDL HEADER in each
91cacb801f6c0215b38322f6d2fc58cbfedfecfbjerenkrantz# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
df14f0d3a5191cdd7c4bb5b03acd135d43a6f51brbb# If applicable, add the following below this CDDL HEADER, with the
df14f0d3a5191cdd7c4bb5b03acd135d43a6f51brbb# fields enclosed by brackets "[]" replaced with your own identifying
ab71b233b3a36489e44a7b061c48293be0b17788jwoolley# information: Portions Copyright [yyyy] [name of copyright owner]
571760de5e60c0b459cb11be45507b923cd023eejwoolley#
571760de5e60c0b459cb11be45507b923cd023eejwoolley# CDDL HEADER END
9180a5933673ffb1af633c255ceee029340f3b1erbb#
bcb6e1be6041dfeb549c8ea8d37f97ad4e90a0c3rbb#
9bd71e35f5d26d26d23fe3a677401828e842ed72wrowe# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
2900ab946a2d76b73a14cebfe2985d253f01c967stoddard# Use is subject to license terms.
a548c09e6a8ca1b059d0e93b5256c6ccb2b3c3cdrbb#
a548c09e6a8ca1b059d0e93b5256c6ccb2b3c3cdrbb#pragma ident "%Z%%M% %I% %E% SMI"
a548c09e6a8ca1b059d0e93b5256c6ccb2b3c3cdrbb#
b876b7bcf0ce3d232da723246d709e8dbbfe8762rbb# This makefile drives the production of the trapstat kernel module.
cf6bf6c34c936e6a6fe731dbce4a5c3c8bf8e9a3gstein#
35330e0d79ceb8027223bbb8330a381b1f989d6etrawick# sun4v implementation architecture dependent
6f6f4a4bca281779d196acbdd5c017bb90858305trawick#
8dd4618c4709236b4ea297d7250d282e463ce2d8rbb
09bd86d0db1114ee23eda0a6eb76ca055877a1cftrawick#
2deb319e6b3de239f45c16a3e9e836d44f1f7108rbb# Path to the base of the uts directory tree (usually /usr/src/uts).
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb#
70f6f32765cfaadd6da8de6f0fea97ddd72d8fadmanojUTSBASE = ../..
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj
af4c982a7cf4515f124935f99a329744035fc699slive#
af4c982a7cf4515f124935f99a329744035fc699slive# Define the module and object file sets.
af4c982a7cf4515f124935f99a329744035fc699slive#
af4c982a7cf4515f124935f99a329744035fc699sliveMODULE = trapstat
af4c982a7cf4515f124935f99a329744035fc699sliveOBJECTS = $(TRAPSTAT_OBJS:%=$(OBJS_DIR)/%)
af4c982a7cf4515f124935f99a329744035fc699sliveLINTS = $(TRAPSTAT_OBJS:%.o=$(LINTS_DIR)/%.ln)
af4c982a7cf4515f124935f99a329744035fc699sliveROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE)
10270f6f94b2069d0d357805c140a9897449b9ccianhCONF_SRCDIR = $(UTSBASE)/sun4/io
4b62424416882687387923b3130b96241503cbe0jerenkrantz
5ca8e11fadb6f7a8d9d0367c1800205c99d4bcd6jerenkrantz#
f9b8e29cfca92cf0a996e8ab17fa1a1f447cecc7stoddard# Include common rules.
5ca8e11fadb6f7a8d9d0367c1800205c99d4bcd6jerenkrantz#
45b0e1c775c1cfed6473c9e5304179ccb9609f53stoddardinclude $(UTSBASE)/sun4v/Makefile.sun4v
f9b8e29cfca92cf0a996e8ab17fa1a1f447cecc7stoddard
f9b8e29cfca92cf0a996e8ab17fa1a1f447cecc7stoddard#
4b62424416882687387923b3130b96241503cbe0jerenkrantz# Define targets
f9b8e29cfca92cf0a996e8ab17fa1a1f447cecc7stoddard#
f9b8e29cfca92cf0a996e8ab17fa1a1f447cecc7stoddardALL_TARGET = $(BINARY) $(SRC_CONFFILE)
f9b8e29cfca92cf0a996e8ab17fa1a1f447cecc7stoddardLINT_TARGET = $(MODULE).lint
f49387f556886ad6a6b4efc724ed9aa1d3412228jerenkrantzINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz#
2fb49a1d25f38421a68d31b4cbb5d9293fdeafbewrowe# lint pass one enforcement
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz#
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantzCFLAGS += $(CCVERBOSE)
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz
2fb49a1d25f38421a68d31b4cbb5d9293fdeafbewrowe#
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz# Default build targets.
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz#
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz.KEEP_STATE:
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantzdef: $(DEF_DEPS)
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantzall: $(ALL_DEPS)
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantzclean: $(CLEAN_DEPS)
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantzclobber: $(CLOBBER_DEPS)
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz
2fb49a1d25f38421a68d31b4cbb5d9293fdeafbewrowelint: $(LINT_DEPS)
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantzmodlintlib: $(MODLINTLIB_DEPS)
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantzclean.lint: $(CLEAN_LINT_DEPS)
bcca8071772ad81c16009aea3a7da3ef9da41173trawick
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantzinstall: $(INSTALL_DEPS)
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz
1b3f48fd6b1ccb8745f908e40156c5a85ca3c347jerenkrantz#
f9b8e29cfca92cf0a996e8ab17fa1a1f447cecc7stoddard# Include common targets.
f9b8e29cfca92cf0a996e8ab17fa1a1f447cecc7stoddard#
f9b8e29cfca92cf0a996e8ab17fa1a1f447cecc7stoddardinclude $(UTSBASE)/$(PLATFORM)/Makefile.targ
a23b1c5a74208b03884c09a6f9dd5d6c97fa6415trawick