xref: /titanic_44/usr/src/uts/sun4v/kt_pcbe/Makefile (revision 6a634c9dca3093f3922e4b7ab826d7bdf17bf78e)
14df55fdeSJanie Lu#
24df55fdeSJanie Lu# CDDL HEADER START
34df55fdeSJanie Lu#
44df55fdeSJanie Lu# The contents of this file are subject to the terms of the
54df55fdeSJanie Lu# Common Development and Distribution License (the "License").
64df55fdeSJanie Lu# You may not use this file except in compliance with the License.
74df55fdeSJanie Lu#
84df55fdeSJanie Lu# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
94df55fdeSJanie Lu# or http://www.opensolaris.org/os/licensing.
104df55fdeSJanie Lu# See the License for the specific language governing permissions
114df55fdeSJanie Lu# and limitations under the License.
124df55fdeSJanie Lu#
134df55fdeSJanie Lu# When distributing Covered Code, include this CDDL HEADER in each
144df55fdeSJanie Lu# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
154df55fdeSJanie Lu# If applicable, add the following below this CDDL HEADER, with the
164df55fdeSJanie Lu# fields enclosed by brackets "[]" replaced with your own identifying
174df55fdeSJanie Lu# information: Portions Copyright [yyyy] [name of copyright owner]
184df55fdeSJanie Lu#
194df55fdeSJanie Lu# CDDL HEADER END
204df55fdeSJanie Lu#
214df55fdeSJanie Lu#
22*c4c6ba57SVivek Gavaskar# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
234df55fdeSJanie Lu#
24*c4c6ba57SVivek Gavaskar# This Makefile builds the SPARC-T3 Performance Counter BackEnd (PCBE).
254df55fdeSJanie Lu#
264df55fdeSJanie Lu
274df55fdeSJanie LuUTSBASE = ../..
284df55fdeSJanie Lu
294df55fdeSJanie Lu#
304df55fdeSJanie Lu#	Define module and object file sets.
314df55fdeSJanie Lu#
32*c4c6ba57SVivek GavaskarMODULE		= pcbe.SPARC-T3
334df55fdeSJanie LuOBJECTS		= $(N2_PCBE_OBJS:%=$(OBJS_DIR)/%)
344df55fdeSJanie LuLINTS		= $(N2_PCBE_OBJS:%.o=$(LINTS_DIR)/%.ln)
354df55fdeSJanie LuROOTMODULE	= $(ROOT_PSM_PCBE_DIR)/$(MODULE)
364df55fdeSJanie Lu
374df55fdeSJanie Lu#
384df55fdeSJanie Lu#	Include common rules.
394df55fdeSJanie Lu#
404df55fdeSJanie Luinclude $(UTSBASE)/sun4v/Makefile.sun4v
414df55fdeSJanie Lu
424df55fdeSJanie Lu#
434df55fdeSJanie Lu#	Define targets.
444df55fdeSJanie Lu#
454df55fdeSJanie LuALL_TARGET	= $(BINARY)
464df55fdeSJanie LuLINT_MODULE	= kt_pcbe
474df55fdeSJanie LuLINT_TARGET	= $(LINT_MODULE).lint
484df55fdeSJanie LuINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
494df55fdeSJanie Lu
504df55fdeSJanie Lu#
514df55fdeSJanie Lu# lint pass one enforcement
524df55fdeSJanie Lu#
534df55fdeSJanie LuCFLAGS += -DKT_IMPL
544df55fdeSJanie Lu
554df55fdeSJanie Lu#
564df55fdeSJanie Lu# KT-specific flags
574df55fdeSJanie Lu#
584df55fdeSJanie LuCPPFLAGS += -DKT_IMPL
594df55fdeSJanie LuAS_CPPFLAGS += -DKT_IMPL
604df55fdeSJanie Lu
614df55fdeSJanie Lu#
624df55fdeSJanie Lu#	Default build targets.
634df55fdeSJanie Lu#
644df55fdeSJanie Lu.KEEP_STATE:
654df55fdeSJanie Lu
664df55fdeSJanie Ludef:		$(DEF_DEPS)
674df55fdeSJanie Lu
684df55fdeSJanie Luall:		$(ALL_DEPS)
694df55fdeSJanie Lu
704df55fdeSJanie Luclean:		$(CLEAN_DEPS)
714df55fdeSJanie Lu
724df55fdeSJanie Luclobber:	$(CLOBBER_DEPS)
734df55fdeSJanie Lu
744df55fdeSJanie Lulint:		$(LINT_DEPS)
754df55fdeSJanie Lu
764df55fdeSJanie Lumodlintlib:	$(MODLINTLIB_DEPS)
774df55fdeSJanie Lu
784df55fdeSJanie Luclean.lint:	$(CLEAN_LINT_DEPS)
794df55fdeSJanie Lu
804df55fdeSJanie Luinstall:	$(INSTALL_DEPS)
814df55fdeSJanie Lu
824df55fdeSJanie Lu#
834df55fdeSJanie Lu#	Include common targets.
844df55fdeSJanie Lu#
854df55fdeSJanie Luinclude $(UTSBASE)/sun4v/Makefile.targ
86