16528affbSschwartz# 26528affbSschwartz# CDDL HEADER START 36528affbSschwartz# 46528affbSschwartz# The contents of this file are subject to the terms of the 56528affbSschwartz# Common Development and Distribution License (the "License"). 66528affbSschwartz# You may not use this file except in compliance with the License. 76528affbSschwartz# 86528affbSschwartz# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 96528affbSschwartz# or http://www.opensolaris.org/os/licensing. 106528affbSschwartz# See the License for the specific language governing permissions 116528affbSschwartz# and limitations under the License. 126528affbSschwartz# 136528affbSschwartz# When distributing Covered Code, include this CDDL HEADER in each 146528affbSschwartz# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 156528affbSschwartz# If applicable, add the following below this CDDL HEADER, with the 166528affbSschwartz# fields enclosed by brackets "[]" replaced with your own identifying 176528affbSschwartz# information: Portions Copyright [yyyy] [name of copyright owner] 186528affbSschwartz# 196528affbSschwartz# CDDL HEADER END 206528affbSschwartz# 216528affbSschwartz 226528affbSschwartz# 2348bc00d6Sjmcp# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 246528affbSschwartz# Use is subject to license terms. 256528affbSschwartz# 2648bc00d6Sjmcp 276528affbSschwartz# 286528affbSschwartz# uts/sun4u/chicago/fpc/Makefile 296528affbSschwartz# 306528affbSschwartz# This makefile drives the production of the sun4u 316528affbSschwartz# fire performance counter kernel module 326528affbSschwartz# 336528affbSschwartz# sun4u implementation architecture dependent 346528affbSschwartz# 356528affbSschwartz 366528affbSschwartz# 376528affbSschwartz# Path to the base of the uts directory tree (usually /usr/src/uts). 386528affbSschwartz# 396528affbSschwartzUTSBASE = ../../.. 406528affbSschwartz 416528affbSschwartz# 426528affbSschwartz# Define the module and object file sets. 436528affbSschwartz# 446528affbSschwartzMODULE = fpc 456528affbSschwartzOBJECTS = $(FPC_OBJS:%=$(OBJS_DIR)/%) 466528affbSschwartzLINTS = $(FPC_OBJS:%.o=$(LINTS_DIR)/%.ln) 476528affbSschwartzROOTMODULE = $(ROOT_CHICAGO_DRV_DIR)/$(MODULE) 486528affbSschwartzCONF_SRCDIR = $(UTSBASE)/sun4/io/fpc 496528affbSschwartz 506528affbSschwartzROOT_BOSTON_DIR = $(ROOT_PLAT_DIR)/SUNW,Sun-Fire-V445 516528affbSschwartzROOT_BOSTON_MOD_DIR = $(ROOT_BOSTON_DIR)/kernel 526528affbSschwartzROOT_BOSTON_DRV_DIR_32 = $(ROOT_BOSTON_MOD_DIR)/drv 536528affbSschwartzROOT_BOSTON_DRV_DIR_64 = $(ROOT_BOSTON_DRV_DIR_32)/$(SUBDIR64) 546528affbSschwartz 556528affbSschwartzROOT_SEATTLE_DIR = $(ROOT_PLAT_DIR)/SUNW,Sun-Fire-V215 566528affbSschwartzROOT_SEATTLE_MOD_DIR = $(ROOT_SEATTLE_DIR)/kernel 576528affbSschwartzROOT_SEATTLE_DRV_DIR_32 = $(ROOT_SEATTLE_MOD_DIR)/drv 586528affbSschwartzROOT_SEATTLE_DRV_DIR_64 = $(ROOT_SEATTLE_DRV_DIR_32)/$(SUBDIR64) 596528affbSschwartz 606528affbSschwartzROOTMODULE_SOFTLINK = $(ROOT_BOSTON_DRV_DIR_64:$(ROOT_BOSTON_DIR)%=../../../../SUNW,A70%/$(MODULE)) 616528affbSschwartz 626528affbSschwartzCONFFILE_SOFTLINK = $(ROOT_BOSTON_DRV_DIR_32:$(ROOT_BOSTON_DIR)%=../../../SUNW,A70%/$(CONFFILE)) 636528affbSschwartz 646528affbSschwartzBOSTON_ROOTMODULE = $(ROOT_BOSTON_DRV_DIR_64)/$(MODULE) 656528affbSschwartzBOSTON_CONFFILE = $(ROOT_BOSTON_DRV_DIR_32)/$(CONFFILE) 666528affbSschwartz 676528affbSschwartzSEATTLE_ROOTMODULE = $(ROOT_SEATTLE_DRV_DIR_64)/$(MODULE) 686528affbSschwartzSEATTLE_CONFFILE = $(ROOT_SEATTLE_DRV_DIR_32)/$(CONFFILE) 696528affbSschwartz 706528affbSschwartz# 716528affbSschwartz# Include common rules. 726528affbSschwartz# 736528affbSschwartzinclude $(UTSBASE)/sun4u/chicago/Makefile.chicago 746528affbSschwartz 756528affbSschwartz# 766528affbSschwartz# Define targets 776528affbSschwartz# 786528affbSschwartzALL_TARGET = $(BINARY) $(SRC_CONFFILE) 796528affbSschwartzLINT_TARGET = $(MODULE).lint 806528affbSschwartzINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) \ 816528affbSschwartz $(BOSTON_ROOTMODULE) $(BOSTON_CONFFILE) \ 826528affbSschwartz $(SEATTLE_ROOTMODULE) $(SEATTLE_CONFFILE) 836528affbSschwartz 846528affbSschwartz# 856528affbSschwartz# Include SUN4 and SUN4U specific headers files 866528affbSschwartz# 876528affbSschwartzINC_PATH += -I$(UTSBASE)/sun4/io/fpc 886528affbSschwartz 896528affbSschwartz# 906528affbSschwartz# lint pass one enforcement 916528affbSschwartz# 926528affbSschwartzCFLAGS += $(CCVERBOSE) 936528affbSschwartz 946528affbSschwartz# 956528affbSschwartz# Turn on doubleword alignment for 64 bit registers 966528affbSschwartz# 976528affbSschwartzCFLAGS += -dalign 986528affbSschwartz 996528affbSschwartz# 1006528affbSschwartz# For now, disable these lint checks; maintainers should endeavor 1016528affbSschwartz# to investigate and remove these for maximum lint coverage. 1026528affbSschwartz# Please do not carry these forward to new Makefiles. 1036528affbSschwartz# 1046528affbSschwartzLINTTAGS += -erroff=E_STATIC_UNUSED 1056528affbSschwartz 106*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 107*7014882cSRichard Lowe 1086528affbSschwartz# 1096528affbSschwartz# Default build targets. 1106528affbSschwartz# 1116528affbSschwartz.KEEP_STATE: 1126528affbSschwartz 1136528affbSschwartzdef: $(DEF_DEPS) 1146528affbSschwartz 1156528affbSschwartzall: $(ALL_DEPS) 1166528affbSschwartz 1176528affbSschwartzclean: $(CLEAN_DEPS) 1186528affbSschwartz 1196528affbSschwartzclobber: $(CLOBBER_DEPS) 1206528affbSschwartz 1216528affbSschwartzlint: $(LINT_DEPS) 1226528affbSschwartz 1236528affbSschwartzmodlintlib: $(MODLINTLIB_DEPS) 1246528affbSschwartz 1256528affbSschwartzclean.lint: $(CLEAN_LINT_DEPS) 1266528affbSschwartz 1276528affbSschwartzinstall: $(INSTALL_DEPS) 1286528affbSschwartz 1296528affbSschwartz$(ROOT_BOSTON_DIR): $(ROOT_PLAT_DIR) 13048bc00d6Sjmcp -$(INS.dir) 1316528affbSschwartz 1326528affbSschwartz$(ROOT_BOSTON_MOD_DIR): $(ROOT_BOSTON_DIR) 13348bc00d6Sjmcp -$(INS.dir) 1346528affbSschwartz 1356528affbSschwartz$(ROOT_BOSTON_DRV_DIR_32): $(ROOT_BOSTON_MOD_DIR) 13648bc00d6Sjmcp -$(INS.dir) 1376528affbSschwartz 1386528affbSschwartz$(ROOT_BOSTON_DRV_DIR_64): $(ROOT_BOSTON_DRV_DIR_32) 13948bc00d6Sjmcp -$(INS.dir) 1406528affbSschwartz 1416528affbSschwartz$(ROOT_SEATTLE_DIR): $(ROOT_PLAT_DIR) 14248bc00d6Sjmcp -$(INS.dir) 1436528affbSschwartz 1446528affbSschwartz$(ROOT_SEATTLE_MOD_DIR): $(ROOT_SEATTLE_DIR) 14548bc00d6Sjmcp -$(INS.dir) 1466528affbSschwartz 1476528affbSschwartz$(ROOT_SEATTLE_DRV_DIR_32): $(ROOT_SEATTLE_MOD_DIR) 14848bc00d6Sjmcp -$(INS.dir) 1496528affbSschwartz 1506528affbSschwartz$(ROOT_SEATTLE_DRV_DIR_64): $(ROOT_SEATTLE_DRV_DIR_32) 15148bc00d6Sjmcp -$(INS.dir) 1526528affbSschwartz 1536528affbSschwartz$(BOSTON_ROOTMODULE): $(ROOTMODULE) $(ROOT_BOSTON_DRV_DIR_64) 1546528affbSschwartz $(RM) $@; $(SYMLINK) $(ROOTMODULE_SOFTLINK) $@ 1556528affbSschwartz 1566528affbSschwartz$(BOSTON_CONFFILE): $(ROOT_CONFFILE) $(ROOT_BOSTON_DRV_DIR_32) 1576528affbSschwartz $(RM) $@; $(SYMLINK) $(CONFFILE_SOFTLINK) $@ 1586528affbSschwartz 1596528affbSschwartz$(SEATTLE_ROOTMODULE): $(ROOTMODULE) $(ROOT_SEATTLE_DRV_DIR_64) 1606528affbSschwartz $(RM) $@; $(SYMLINK) $(ROOTMODULE_SOFTLINK) $@ 1616528affbSschwartz 1626528affbSschwartz$(SEATTLE_CONFFILE): $(ROOT_CONFFILE) $(ROOT_SEATTLE_DRV_DIR_32) 1636528affbSschwartz $(RM) $@; $(SYMLINK) $(CONFFILE_SOFTLINK) $@ 1646528affbSschwartz 1656528affbSschwartz 1666528affbSschwartz# 1676528affbSschwartz# Include common targets. 1686528affbSschwartz# 1696528affbSschwartzinclude $(UTSBASE)/sun4u/chicago/Makefile.targ 170