1*110e73f9Sschwartz# 2*110e73f9Sschwartz# CDDL HEADER START 3*110e73f9Sschwartz# 4*110e73f9Sschwartz# The contents of this file are subject to the terms of the 5*110e73f9Sschwartz# Common Development and Distribution License (the "License"). 6*110e73f9Sschwartz# You may not use this file except in compliance with the License. 7*110e73f9Sschwartz# 8*110e73f9Sschwartz# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*110e73f9Sschwartz# or http://www.opensolaris.org/os/licensing. 10*110e73f9Sschwartz# See the License for the specific language governing permissions 11*110e73f9Sschwartz# and limitations under the License. 12*110e73f9Sschwartz# 13*110e73f9Sschwartz# When distributing Covered Code, include this CDDL HEADER in each 14*110e73f9Sschwartz# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*110e73f9Sschwartz# If applicable, add the following below this CDDL HEADER, with the 16*110e73f9Sschwartz# fields enclosed by brackets "[]" replaced with your own identifying 17*110e73f9Sschwartz# information: Portions Copyright [yyyy] [name of copyright owner] 18*110e73f9Sschwartz# 19*110e73f9Sschwartz# CDDL HEADER END 20*110e73f9Sschwartz# 21*110e73f9Sschwartz# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 22*110e73f9Sschwartz# Use is subject to license terms. 23*110e73f9Sschwartz# 24*110e73f9Sschwartz# ident "%Z%%M% %I% %E% SMI" 25*110e73f9Sschwartz# 26*110e73f9Sschwartz# uts/sun4v/fpc/Makefile 27*110e73f9Sschwartz# 28*110e73f9Sschwartz# This makefile drives the production of the sun4v 29*110e73f9Sschwartz# fire performance counter kernel module 30*110e73f9Sschwartz# 31*110e73f9Sschwartz# sun4v implementation architecture dependent 32*110e73f9Sschwartz# 33*110e73f9Sschwartz 34*110e73f9Sschwartz# 35*110e73f9Sschwartz# Path to the base of the uts directory tree (usually /usr/src/uts). 36*110e73f9Sschwartz# 37*110e73f9SschwartzUTSBASE = ../.. 38*110e73f9Sschwartz 39*110e73f9Sschwartz# 40*110e73f9Sschwartz# Define the module and object file sets. 41*110e73f9Sschwartz# 42*110e73f9SschwartzMODULE = fpc 43*110e73f9SschwartzOBJECTS = $(FPC_OBJS:%=$(OBJS_DIR)/%) 44*110e73f9SschwartzLINTS = $(FPC_OBJS:%.o=$(LINTS_DIR)/%.ln) 45*110e73f9SschwartzROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) 46*110e73f9SschwartzCONF_SRCDIR = $(UTSBASE)/sun4/io/fpc 47*110e73f9Sschwartz 48*110e73f9Sschwartz# 49*110e73f9Sschwartz# Include common rules. 50*110e73f9Sschwartz# 51*110e73f9Sschwartzinclude $(UTSBASE)/sun4v/Makefile.sun4v 52*110e73f9Sschwartz 53*110e73f9Sschwartz# 54*110e73f9Sschwartz# Define targets 55*110e73f9Sschwartz# 56*110e73f9SschwartzALL_TARGET = $(BINARY) $(SRC_CONFFILE) 57*110e73f9SschwartzLINT_TARGET = $(MODULE).lint 58*110e73f9SschwartzINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 59*110e73f9Sschwartz 60*110e73f9Sschwartz# 61*110e73f9Sschwartz# Include SUN4 and SUN4V specific headers files 62*110e73f9Sschwartz# 63*110e73f9SschwartzINC_PATH += -I$(UTSBASE)/sun4/io/fpc 64*110e73f9SschwartzINC_PATH += -I$(UTSBASE)/sun4v/io/fpc 65*110e73f9Sschwartz 66*110e73f9Sschwartz# 67*110e73f9Sschwartz# lint pass one enforcement 68*110e73f9Sschwartz# 69*110e73f9SschwartzCFLAGS += $(CCVERBOSE) 70*110e73f9Sschwartz 71*110e73f9Sschwartz# 72*110e73f9Sschwartz# Turn on doubleword alignment for 64 bit registers 73*110e73f9Sschwartz# 74*110e73f9SschwartzCFLAGS += -dalign 75*110e73f9Sschwartz 76*110e73f9Sschwartz# 77*110e73f9Sschwartz# Default build targets. 78*110e73f9Sschwartz# 79*110e73f9Sschwartz.KEEP_STATE: 80*110e73f9Sschwartz 81*110e73f9Sschwartzdef: $(DEF_DEPS) 82*110e73f9Sschwartz 83*110e73f9Sschwartzall: $(ALL_DEPS) 84*110e73f9Sschwartz 85*110e73f9Sschwartzclean: $(CLEAN_DEPS) 86*110e73f9Sschwartz 87*110e73f9Sschwartzclobber: $(CLOBBER_DEPS) 88*110e73f9Sschwartz 89*110e73f9Sschwartzlint: $(LINT_DEPS) 90*110e73f9Sschwartz 91*110e73f9Sschwartzmodlintlib: $(MODLINTLIB_DEPS) 92*110e73f9Sschwartz 93*110e73f9Sschwartzclean.lint: $(CLEAN_LINT_DEPS) 94*110e73f9Sschwartz 95*110e73f9Sschwartzinstall: $(INSTALL_DEPS) 96*110e73f9Sschwartz 97*110e73f9Sschwartz# 98*110e73f9Sschwartz# Include common targets. 99*110e73f9Sschwartz# 100*110e73f9Sschwartzinclude $(UTSBASE)/$(PLATFORM)/Makefile.targ 101