xref: /titanic_41/usr/src/uts/sun4v/fpc/Makefile (revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95)
1110e73f9Sschwartz#
2110e73f9Sschwartz# CDDL HEADER START
3110e73f9Sschwartz#
4110e73f9Sschwartz# The contents of this file are subject to the terms of the
5110e73f9Sschwartz# Common Development and Distribution License (the "License").
6110e73f9Sschwartz# You may not use this file except in compliance with the License.
7110e73f9Sschwartz#
8110e73f9Sschwartz# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9110e73f9Sschwartz# or http://www.opensolaris.org/os/licensing.
10110e73f9Sschwartz# See the License for the specific language governing permissions
11110e73f9Sschwartz# and limitations under the License.
12110e73f9Sschwartz#
13110e73f9Sschwartz# When distributing Covered Code, include this CDDL HEADER in each
14110e73f9Sschwartz# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15110e73f9Sschwartz# If applicable, add the following below this CDDL HEADER, with the
16110e73f9Sschwartz# fields enclosed by brackets "[]" replaced with your own identifying
17110e73f9Sschwartz# information: Portions Copyright [yyyy] [name of copyright owner]
18110e73f9Sschwartz#
19110e73f9Sschwartz# CDDL HEADER END
20110e73f9Sschwartz#
21110e73f9Sschwartz# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
22110e73f9Sschwartz# Use is subject to license terms.
23110e73f9Sschwartz#
24110e73f9Sschwartz# ident	"%Z%%M%	%I%	%E% SMI"
25110e73f9Sschwartz#
26110e73f9Sschwartz#	uts/sun4v/fpc/Makefile
27110e73f9Sschwartz#
28110e73f9Sschwartz#	This makefile drives the production of the sun4v
29110e73f9Sschwartz#	fire performance counter kernel module
30110e73f9Sschwartz#
31110e73f9Sschwartz#	sun4v implementation architecture dependent
32110e73f9Sschwartz#
33110e73f9Sschwartz
34110e73f9Sschwartz#
35110e73f9Sschwartz#	Path to the base of the uts directory tree (usually /usr/src/uts).
36110e73f9Sschwartz#
37110e73f9SschwartzUTSBASE	= ../..
38110e73f9Sschwartz
39110e73f9Sschwartz#
40110e73f9Sschwartz#	Define the module and object file sets.
41110e73f9Sschwartz#
42110e73f9SschwartzMODULE		= fpc
43110e73f9SschwartzOBJECTS		= $(FPC_OBJS:%=$(OBJS_DIR)/%)
44110e73f9SschwartzLINTS		= $(FPC_OBJS:%.o=$(LINTS_DIR)/%.ln)
45110e73f9SschwartzROOTMODULE	= $(ROOT_PSM_DRV_DIR)/$(MODULE)
46110e73f9SschwartzCONF_SRCDIR	= $(UTSBASE)/sun4/io/fpc
47110e73f9Sschwartz
48110e73f9Sschwartz#
49110e73f9Sschwartz#	Include common rules.
50110e73f9Sschwartz#
51110e73f9Sschwartzinclude $(UTSBASE)/sun4v/Makefile.sun4v
52110e73f9Sschwartz
53110e73f9Sschwartz#
54110e73f9Sschwartz#	Define targets
55110e73f9Sschwartz#
56110e73f9SschwartzALL_TARGET	= $(BINARY) $(SRC_CONFFILE)
57110e73f9SschwartzLINT_TARGET	= $(MODULE).lint
58110e73f9SschwartzINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
59110e73f9Sschwartz
60110e73f9Sschwartz#
61110e73f9Sschwartz#	Include SUN4 and SUN4V specific headers files
62110e73f9Sschwartz#
63110e73f9SschwartzINC_PATH	+= -I$(UTSBASE)/sun4/io/fpc
64110e73f9SschwartzINC_PATH	+= -I$(UTSBASE)/sun4v/io/fpc
65110e73f9Sschwartz
66110e73f9Sschwartz#
67110e73f9Sschwartz# lint pass one enforcement
68110e73f9Sschwartz#
69110e73f9SschwartzCFLAGS += $(CCVERBOSE)
70110e73f9Sschwartz
71110e73f9Sschwartz#
72110e73f9Sschwartz# Turn on doubleword alignment for 64 bit registers
73110e73f9Sschwartz#
74110e73f9SschwartzCFLAGS += -dalign
75110e73f9Sschwartz
76110e73f9Sschwartz#
77*bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor
78*bb25c06cSjg# to investigate and remove these for maximum lint coverage.
79*bb25c06cSjg# Please do not carry these forward to new Makefiles.
80*bb25c06cSjg#
81*bb25c06cSjgLINTTAGS	+= -erroff=E_STATIC_UNUSED
82*bb25c06cSjg
83*bb25c06cSjg#
84110e73f9Sschwartz#	Default build targets.
85110e73f9Sschwartz#
86110e73f9Sschwartz.KEEP_STATE:
87110e73f9Sschwartz
88110e73f9Sschwartzdef:		$(DEF_DEPS)
89110e73f9Sschwartz
90110e73f9Sschwartzall:		$(ALL_DEPS)
91110e73f9Sschwartz
92110e73f9Sschwartzclean:		$(CLEAN_DEPS)
93110e73f9Sschwartz
94110e73f9Sschwartzclobber:	$(CLOBBER_DEPS)
95110e73f9Sschwartz
96110e73f9Sschwartzlint:		$(LINT_DEPS)
97110e73f9Sschwartz
98110e73f9Sschwartzmodlintlib:	$(MODLINTLIB_DEPS)
99110e73f9Sschwartz
100110e73f9Sschwartzclean.lint:	$(CLEAN_LINT_DEPS)
101110e73f9Sschwartz
102110e73f9Sschwartzinstall:	$(INSTALL_DEPS)
103110e73f9Sschwartz
104110e73f9Sschwartz#
105110e73f9Sschwartz#	Include common targets.
106110e73f9Sschwartz#
107110e73f9Sschwartzinclude $(UTSBASE)/$(PLATFORM)/Makefile.targ
108