xref: /titanic_52/usr/src/uts/sun4v/fpc/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
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#
24*7014882cSRichard Lowe
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)
70*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable
71110e73f9Sschwartz
72110e73f9Sschwartz#
73110e73f9Sschwartz# Turn on doubleword alignment for 64 bit registers
74110e73f9Sschwartz#
75110e73f9SschwartzCFLAGS += -dalign
76110e73f9Sschwartz
77110e73f9Sschwartz#
78bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor
79bb25c06cSjg# to investigate and remove these for maximum lint coverage.
80bb25c06cSjg# Please do not carry these forward to new Makefiles.
81bb25c06cSjg#
82bb25c06cSjgLINTTAGS	+= -erroff=E_STATIC_UNUSED
83bb25c06cSjg
84bb25c06cSjg#
85110e73f9Sschwartz#	Default build targets.
86110e73f9Sschwartz#
87110e73f9Sschwartz.KEEP_STATE:
88110e73f9Sschwartz
89110e73f9Sschwartzdef:		$(DEF_DEPS)
90110e73f9Sschwartz
91110e73f9Sschwartzall:		$(ALL_DEPS)
92110e73f9Sschwartz
93110e73f9Sschwartzclean:		$(CLEAN_DEPS)
94110e73f9Sschwartz
95110e73f9Sschwartzclobber:	$(CLOBBER_DEPS)
96110e73f9Sschwartz
97110e73f9Sschwartzlint:		$(LINT_DEPS)
98110e73f9Sschwartz
99110e73f9Sschwartzmodlintlib:	$(MODLINTLIB_DEPS)
100110e73f9Sschwartz
101110e73f9Sschwartzclean.lint:	$(CLEAN_LINT_DEPS)
102110e73f9Sschwartz
103110e73f9Sschwartzinstall:	$(INSTALL_DEPS)
104110e73f9Sschwartz
105110e73f9Sschwartz#
106110e73f9Sschwartz#	Include common targets.
107110e73f9Sschwartz#
108110e73f9Sschwartzinclude $(UTSBASE)/$(PLATFORM)/Makefile.targ
109