xref: /titanic_51/usr/src/uts/sun4v/niagara2_pcbe/Makefile (revision 59ac0c1669407488b67ae9e273667a340dccc611)
144961713Sgirish#
244961713Sgirish# CDDL HEADER START
344961713Sgirish#
444961713Sgirish# The contents of this file are subject to the terms of the
544961713Sgirish# Common Development and Distribution License (the "License").
644961713Sgirish# You may not use this file except in compliance with the License.
744961713Sgirish#
844961713Sgirish# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
944961713Sgirish# or http://www.opensolaris.org/os/licensing.
1044961713Sgirish# See the License for the specific language governing permissions
1144961713Sgirish# and limitations under the License.
1244961713Sgirish#
1344961713Sgirish# When distributing Covered Code, include this CDDL HEADER in each
1444961713Sgirish# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1544961713Sgirish# If applicable, add the following below this CDDL HEADER, with the
1644961713Sgirish# fields enclosed by brackets "[]" replaced with your own identifying
1744961713Sgirish# information: Portions Copyright [yyyy] [name of copyright owner]
1844961713Sgirish#
1944961713Sgirish# CDDL HEADER END
2044961713Sgirish#
2144961713Sgirish#
22*59ac0c16Sdavemq# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
2344961713Sgirish# Use is subject to license terms.
2444961713Sgirish#
2544961713Sgirish#ident	"%Z%%M%	%I%	%E% SMI"
2644961713Sgirish#
2744961713Sgirish# This Makefile builds the UltraSPARC-T2 Performance Counter BackEnd (PCBE).
2844961713Sgirish#
2944961713Sgirish
3044961713SgirishUTSBASE = ../..
3144961713Sgirish
3244961713Sgirish#
3344961713Sgirish#	Define module and object file sets.
3444961713Sgirish#
3544961713SgirishMODULE		= pcbe.SUNW,UltraSPARC-T2
3644961713SgirishOBJECTS		= $(N2_PCBE_OBJS:%=$(OBJS_DIR)/%)
3744961713SgirishLINTS		= $(N2_PCBE_OBJS:%.o=$(LINTS_DIR)/%.ln)
3844961713SgirishROOTMODULE	= $(ROOT_PSM_PCBE_DIR)/$(MODULE)
3944961713Sgirish
4044961713Sgirish#
4144961713Sgirish#	Include common rules.
4244961713Sgirish#
4344961713Sgirishinclude $(UTSBASE)/sun4v/Makefile.sun4v
4444961713Sgirish
4544961713Sgirish#
4644961713Sgirish#	Define targets.
4744961713Sgirish#
4844961713SgirishALL_TARGET	= $(BINARY)
4944961713SgirishLINT_MODULE	= niagara2_pcbe
5044961713SgirishLINT_TARGET	= $(LINT_MODULE).lint
5144961713SgirishINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
5244961713Sgirish
5344961713Sgirish#
54*59ac0c16Sdavemq# lint pass one enforcement
55*59ac0c16Sdavemq#
56*59ac0c16SdavemqCFLAGS += -DNIAGARA2_IMPL
57*59ac0c16Sdavemq
58*59ac0c16Sdavemq#
59*59ac0c16Sdavemq# niagara2-specific flags
60*59ac0c16Sdavemq#
61*59ac0c16SdavemqCPPFLAGS += -DNIAGARA2_IMPL
62*59ac0c16SdavemqAS_CPPFLAGS += -DNIAGARA2_IMPL
63*59ac0c16Sdavemq
64*59ac0c16Sdavemq#
6544961713Sgirish#	Default build targets.
6644961713Sgirish#
6744961713Sgirish.KEEP_STATE:
6844961713Sgirish
6944961713Sgirishdef:		$(DEF_DEPS)
7044961713Sgirish
7144961713Sgirishall:		$(ALL_DEPS)
7244961713Sgirish
7344961713Sgirishclean:		$(CLEAN_DEPS)
7444961713Sgirish
7544961713Sgirishclobber:	$(CLOBBER_DEPS)
7644961713Sgirish
7744961713Sgirishlint:		$(LINT_DEPS)
7844961713Sgirish
7944961713Sgirishmodlintlib:	$(MODLINTLIB_DEPS)
8044961713Sgirish
8144961713Sgirishclean.lint:	$(CLEAN_LINT_DEPS)
8244961713Sgirish
8344961713Sgirishinstall:	$(INSTALL_DEPS)
8444961713Sgirish
8544961713Sgirish#
8644961713Sgirish#	Include common targets.
8744961713Sgirish#
8844961713Sgirishinclude $(UTSBASE)/sun4v/Makefile.targ
89