110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# CDDL HEADER START
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# The contents of this file are subject to the terms of the
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# Common Development and Distribution License (the "License").
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# You may not use this file except in compliance with the License.
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# or http://www.opensolaris.org/os/licensing.
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# See the License for the specific language governing permissions
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# and limitations under the License.
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# When distributing Covered Code, include this CDDL HEADER in each
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# If applicable, add the following below this CDDL HEADER, with the
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# fields enclosed by brackets "[]" replaced with your own identifying
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# information: Portions Copyright [yyyy] [name of copyright owner]
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# CDDL HEADER END
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# Use is subject to license terms.
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# uts/sun4v/fpc/Makefile
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# This makefile drives the production of the sun4v
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# fire performance counter kernel module
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# sun4v implementation architecture dependent
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# Path to the base of the uts directory tree (usually /usr/src/uts).
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzUTSBASE = ../..
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# Define the module and object file sets.
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzMODULE = fpc
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzOBJECTS = $(FPC_OBJS:%=$(OBJS_DIR)/%)
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzLINTS = $(FPC_OBJS:%.o=$(LINTS_DIR)/%.ln)
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE)
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzCONF_SRCDIR = $(UTSBASE)/sun4/io/fpc
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# Include common rules.
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzinclude $(UTSBASE)/sun4v/Makefile.sun4v
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# Define targets
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzALL_TARGET = $(BINARY) $(SRC_CONFFILE)
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzLINT_TARGET = $(MODULE).lint
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# Include SUN4 and SUN4V specific headers files
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzINC_PATH += -I$(UTSBASE)/sun4/io/fpc
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzINC_PATH += -I$(UTSBASE)/sun4v/io/fpc
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# lint pass one enforcement
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzCFLAGS += $(CCVERBOSE)
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-unused-variable
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# Turn on doubleword alignment for 64 bit registers
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzCFLAGS += -dalign
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg#
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# For now, disable these lint checks; maintainers should endeavor
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# to investigate and remove these for maximum lint coverage.
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# Please do not carry these forward to new Makefiles.
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg#
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jgLINTTAGS += -erroff=E_STATIC_UNUSED
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# Default build targets.
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz.KEEP_STATE:
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzdef: $(DEF_DEPS)
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzall: $(ALL_DEPS)
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzclean: $(CLEAN_DEPS)
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzclobber: $(CLOBBER_DEPS)
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzlint: $(LINT_DEPS)
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzmodlintlib: $(MODLINTLIB_DEPS)
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzclean.lint: $(CLEAN_LINT_DEPS)
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzinstall: $(INSTALL_DEPS)
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# Include common targets.
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzinclude $(UTSBASE)/$(PLATFORM)/Makefile.targ