125cf1a30Sjl139090# 225cf1a30Sjl139090# CDDL HEADER START 325cf1a30Sjl139090# 425cf1a30Sjl139090# The contents of this file are subject to the terms of the 525cf1a30Sjl139090# Common Development and Distribution License (the "License"). 625cf1a30Sjl139090# You may not use this file except in compliance with the License. 725cf1a30Sjl139090# 825cf1a30Sjl139090# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 925cf1a30Sjl139090# or http://www.opensolaris.org/os/licensing. 1025cf1a30Sjl139090# See the License for the specific language governing permissions 1125cf1a30Sjl139090# and limitations under the License. 1225cf1a30Sjl139090# 1325cf1a30Sjl139090# When distributing Covered Code, include this CDDL HEADER in each 1425cf1a30Sjl139090# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1525cf1a30Sjl139090# If applicable, add the following below this CDDL HEADER, with the 1625cf1a30Sjl139090# fields enclosed by brackets "[]" replaced with your own identifying 1725cf1a30Sjl139090# information: Portions Copyright [yyyy] [name of copyright owner] 1825cf1a30Sjl139090# 1925cf1a30Sjl139090# CDDL HEADER END 2025cf1a30Sjl139090# 2125cf1a30Sjl139090# 22e98fafb9Sjl139090# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 2325cf1a30Sjl139090# Use is subject to license terms. 2425cf1a30Sjl139090# 25*7014882cSRichard Lowe 2625cf1a30Sjl139090# 2725cf1a30Sjl139090# uts/sun4u/opl_pcbe/Makefile 2825cf1a30Sjl139090# 2925cf1a30Sjl139090# This Makefile builds the SPARC64 VI Performance Counter BackEnd (PCBE). 3025cf1a30Sjl139090# 3125cf1a30Sjl139090 3225cf1a30Sjl139090UTSBASE = ../.. 3325cf1a30Sjl139090 3425cf1a30Sjl139090# 3525cf1a30Sjl139090# Define module and object file sets. 3625cf1a30Sjl139090# 3725cf1a30Sjl139090MODULE = pcbe.4.6 3825cf1a30Sjl139090OBJECTS = $(OPL_PCBE_OBJS:%=$(OBJS_DIR)/%) 3925cf1a30Sjl139090LINTS = $(OPL_PCBE_OBJS:%.o=$(LINTS_DIR)/%.ln) 4025cf1a30Sjl139090ROOTMODULE = $(USR_PCBE_DIR)/$(MODULE) 41e98fafb9Sjl139090ROOTLINK = $(USR_PCBE_DIR)/pcbe.4.7 4225cf1a30Sjl139090 4325cf1a30Sjl139090# 4425cf1a30Sjl139090# Include common rules. 4525cf1a30Sjl139090# 4625cf1a30Sjl139090include $(UTSBASE)/sun4u/Makefile.sun4u 4725cf1a30Sjl139090 4825cf1a30Sjl139090# 4925cf1a30Sjl139090# Define targets. 5025cf1a30Sjl139090# 5125cf1a30Sjl139090ALL_TARGET = $(BINARY) 5225cf1a30Sjl139090LINT_MODULE = opl_pcbe 5325cf1a30Sjl139090LINT_TARGET = $(LINT_MODULE).lint 54e98fafb9Sjl139090INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK) 5525cf1a30Sjl139090 5625cf1a30Sjl139090# 5725cf1a30Sjl139090# lint pass one enforcement 5825cf1a30Sjl139090# 5925cf1a30Sjl139090CFLAGS += $(CCVERBOSE) 6025cf1a30Sjl139090 6125cf1a30Sjl139090# 62bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor 63bb25c06cSjg# to investigate and remove these for maximum lint coverage. 64bb25c06cSjg# Please do not carry these forward to new Makefiles. 65bb25c06cSjg# 66bb25c06cSjgLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON 67bb25c06cSjgLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV 68bb25c06cSjg 69*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-type-limits 70*7014882cSRichard Lowe 71bb25c06cSjg# 7225cf1a30Sjl139090# Default build targets. 7325cf1a30Sjl139090# 7425cf1a30Sjl139090.KEEP_STATE: 7525cf1a30Sjl139090 7625cf1a30Sjl139090all: $(ALL_DEPS) 7725cf1a30Sjl139090 7825cf1a30Sjl139090def: $(DEF_DEPS) 7925cf1a30Sjl139090 8025cf1a30Sjl139090clean: $(CLEAN_DEPS) 8125cf1a30Sjl139090 8225cf1a30Sjl139090clobber: $(CLOBBER_DEPS) 8325cf1a30Sjl139090 8425cf1a30Sjl139090lint: $(LINT_DEPS) 8525cf1a30Sjl139090 8625cf1a30Sjl139090modlintlib: $(MODLINTLIB_DEPS) 8725cf1a30Sjl139090 8825cf1a30Sjl139090clean.lint: $(CLEAN_LINT_DEPS) 8925cf1a30Sjl139090 9025cf1a30Sjl139090install: $(INSTALL_DEPS) 9125cf1a30Sjl139090 92e98fafb9Sjl139090$(ROOTLINK): $(ROOTMODULE) 93e98fafb9Sjl139090 -$(RM) $@; ln $(ROOTMODULE) $@ 94e98fafb9Sjl139090 9525cf1a30Sjl139090# 9625cf1a30Sjl139090# Include common targets. 9725cf1a30Sjl139090# 9825cf1a30Sjl139090include $(UTSBASE)/sun4u/Makefile.targ 99