xref: /titanic_41/usr/src/uts/sun4v/vfalls_pcbe/Makefile (revision 59ac0c1669407488b67ae9e273667a340dccc611)
1*59ac0c16Sdavemq#
2*59ac0c16Sdavemq# CDDL HEADER START
3*59ac0c16Sdavemq#
4*59ac0c16Sdavemq# The contents of this file are subject to the terms of the
5*59ac0c16Sdavemq# Common Development and Distribution License (the "License").
6*59ac0c16Sdavemq# You may not use this file except in compliance with the License.
7*59ac0c16Sdavemq#
8*59ac0c16Sdavemq# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*59ac0c16Sdavemq# or http://www.opensolaris.org/os/licensing.
10*59ac0c16Sdavemq# See the License for the specific language governing permissions
11*59ac0c16Sdavemq# and limitations under the License.
12*59ac0c16Sdavemq#
13*59ac0c16Sdavemq# When distributing Covered Code, include this CDDL HEADER in each
14*59ac0c16Sdavemq# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*59ac0c16Sdavemq# If applicable, add the following below this CDDL HEADER, with the
16*59ac0c16Sdavemq# fields enclosed by brackets "[]" replaced with your own identifying
17*59ac0c16Sdavemq# information: Portions Copyright [yyyy] [name of copyright owner]
18*59ac0c16Sdavemq#
19*59ac0c16Sdavemq# CDDL HEADER END
20*59ac0c16Sdavemq#
21*59ac0c16Sdavemq#
22*59ac0c16Sdavemq# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23*59ac0c16Sdavemq# Use is subject to license terms.
24*59ac0c16Sdavemq#
25*59ac0c16Sdavemq#ident	"%Z%%M%	%I%	%E% SMI"
26*59ac0c16Sdavemq#
27*59ac0c16Sdavemq# This Makefile builds the UltraSPARC-T2+ Performance Counter BackEnd (PCBE).
28*59ac0c16Sdavemq#
29*59ac0c16Sdavemq
30*59ac0c16SdavemqUTSBASE = ../..
31*59ac0c16Sdavemq
32*59ac0c16Sdavemq#
33*59ac0c16Sdavemq#	Define module and object file sets.
34*59ac0c16Sdavemq#
35*59ac0c16SdavemqMODULE		= pcbe.SUNW,UltraSPARC-T2+
36*59ac0c16SdavemqOBJECTS		= $(N2_PCBE_OBJS:%=$(OBJS_DIR)/%)
37*59ac0c16SdavemqLINTS		= $(N2_PCBE_OBJS:%.o=$(LINTS_DIR)/%.ln)
38*59ac0c16SdavemqROOTMODULE	= $(ROOT_PSM_PCBE_DIR)/$(MODULE)
39*59ac0c16Sdavemq
40*59ac0c16Sdavemq#
41*59ac0c16Sdavemq#	Include common rules.
42*59ac0c16Sdavemq#
43*59ac0c16Sdavemqinclude $(UTSBASE)/sun4v/Makefile.sun4v
44*59ac0c16Sdavemq
45*59ac0c16Sdavemq#
46*59ac0c16Sdavemq#	Define targets.
47*59ac0c16Sdavemq#
48*59ac0c16SdavemqALL_TARGET	= $(BINARY)
49*59ac0c16SdavemqLINT_MODULE	= vfalls_pcbe
50*59ac0c16SdavemqLINT_TARGET	= $(LINT_MODULE).lint
51*59ac0c16SdavemqINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
52*59ac0c16Sdavemq
53*59ac0c16Sdavemq#
54*59ac0c16Sdavemq# lint pass one enforcement
55*59ac0c16Sdavemq#
56*59ac0c16SdavemqCFLAGS += -DVFALLS_IMPL
57*59ac0c16Sdavemq
58*59ac0c16Sdavemq#
59*59ac0c16Sdavemq# vfalls-specific flags
60*59ac0c16Sdavemq#
61*59ac0c16SdavemqCPPFLAGS += -DVFALLS_IMPL
62*59ac0c16SdavemqAS_CPPFLAGS += -DVFALLS_IMPL
63*59ac0c16Sdavemq
64*59ac0c16Sdavemq#
65*59ac0c16Sdavemq#	Default build targets.
66*59ac0c16Sdavemq#
67*59ac0c16Sdavemq.KEEP_STATE:
68*59ac0c16Sdavemq
69*59ac0c16Sdavemqdef:		$(DEF_DEPS)
70*59ac0c16Sdavemq
71*59ac0c16Sdavemqall:		$(ALL_DEPS)
72*59ac0c16Sdavemq
73*59ac0c16Sdavemqclean:		$(CLEAN_DEPS)
74*59ac0c16Sdavemq
75*59ac0c16Sdavemqclobber:	$(CLOBBER_DEPS)
76*59ac0c16Sdavemq
77*59ac0c16Sdavemqlint:		$(LINT_DEPS)
78*59ac0c16Sdavemq
79*59ac0c16Sdavemqmodlintlib:	$(MODLINTLIB_DEPS)
80*59ac0c16Sdavemq
81*59ac0c16Sdavemqclean.lint:	$(CLEAN_LINT_DEPS)
82*59ac0c16Sdavemq
83*59ac0c16Sdavemqinstall:	$(INSTALL_DEPS)
84*59ac0c16Sdavemq
85*59ac0c16Sdavemq#
86*59ac0c16Sdavemq#	Include common targets.
87*59ac0c16Sdavemq#
88*59ac0c16Sdavemqinclude $(UTSBASE)/sun4v/Makefile.targ
89