Makefile revision e98fafb9956429b59c817d4fbd27720c73879203
9N/A#
9N/A# CDDL HEADER START
9N/A#
9N/A# The contents of this file are subject to the terms of the
9N/A# Common Development and Distribution License (the "License").
9N/A# You may not use this file except in compliance with the License.
9N/A#
9N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9N/A# or http://www.opensolaris.org/os/licensing.
9N/A# See the License for the specific language governing permissions
9N/A# and limitations under the License.
9N/A#
9N/A# When distributing Covered Code, include this CDDL HEADER in each
9N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9N/A# If applicable, add the following below this CDDL HEADER, with the
9N/A# fields enclosed by brackets "[]" replaced with your own identifying
9N/A# information: Portions Copyright [yyyy] [name of copyright owner]
9N/A#
9N/A# CDDL HEADER END
9N/A#
9N/A#
9N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
9N/A# Use is subject to license terms.
9N/A#
9N/A#ident "%Z%%M% %I% %E% SMI"
16N/A#
16N/A# uts/sun4u/opl_pcbe/Makefile
16N/A#
16N/A# This Makefile builds the SPARC64 VI Performance Counter BackEnd (PCBE).
16N/A#
16N/A
16N/AUTSBASE = ../..
16N/A
9N/A#
16N/A# Define module and object file sets.
16N/A#
16N/AMODULE = pcbe.4.6
16N/AOBJECTS = $(OPL_PCBE_OBJS:%=$(OBJS_DIR)/%)
16N/ALINTS = $(OPL_PCBE_OBJS:%.o=$(LINTS_DIR)/%.ln)
16N/AROOTMODULE = $(USR_PCBE_DIR)/$(MODULE)
16N/AROOTLINK = $(USR_PCBE_DIR)/pcbe.4.7
16N/A
#
# Include common rules.
#
include $(UTSBASE)/sun4u/Makefile.sun4u
#
# Define targets.
#
ALL_TARGET = $(BINARY)
LINT_MODULE = opl_pcbe
LINT_TARGET = $(LINT_MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK)
#
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
#
LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
#
# Default build targets.
#
.KEEP_STATE:
all: $(ALL_DEPS)
def: $(DEF_DEPS)
clean: $(CLEAN_DEPS)
clobber: $(CLOBBER_DEPS)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
$(ROOTLINK): $(ROOTMODULE)
-$(RM) $@; ln $(ROOTMODULE) $@
#
# Include common targets.
#
include $(UTSBASE)/sun4u/Makefile.targ