14249Sschwartz# 24249Sschwartz# CDDL HEADER START 34249Sschwartz# 44249Sschwartz# The contents of this file are subject to the terms of the 54249Sschwartz# Common Development and Distribution License (the "License"). 64249Sschwartz# You may not use this file except in compliance with the License. 74249Sschwartz# 84249Sschwartz# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 94249Sschwartz# or http://www.opensolaris.org/os/licensing. 104249Sschwartz# See the License for the specific language governing permissions 114249Sschwartz# and limitations under the License. 124249Sschwartz# 134249Sschwartz# When distributing Covered Code, include this CDDL HEADER in each 144249Sschwartz# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 154249Sschwartz# If applicable, add the following below this CDDL HEADER, with the 164249Sschwartz# fields enclosed by brackets "[]" replaced with your own identifying 174249Sschwartz# information: Portions Copyright [yyyy] [name of copyright owner] 184249Sschwartz# 194249Sschwartz# CDDL HEADER END 204249Sschwartz# 214249Sschwartz 224249Sschwartz# 23*10738SJames.McPherson@Sun.COM# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 244249Sschwartz# Use is subject to license terms. 254249Sschwartz# 26*10738SJames.McPherson@Sun.COM 274249Sschwartz# 284249Sschwartz# uts/sun4u/chicago/fpc/Makefile 294249Sschwartz# 304249Sschwartz# This makefile drives the production of the sun4u 314249Sschwartz# fire performance counter kernel module 324249Sschwartz# 334249Sschwartz# sun4u implementation architecture dependent 344249Sschwartz# 354249Sschwartz 364249Sschwartz# 374249Sschwartz# Path to the base of the uts directory tree (usually /usr/src/uts). 384249Sschwartz# 394249SschwartzUTSBASE = ../../.. 404249Sschwartz 414249Sschwartz# 424249Sschwartz# Define the module and object file sets. 434249Sschwartz# 444249SschwartzMODULE = fpc 454249SschwartzOBJECTS = $(FPC_OBJS:%=$(OBJS_DIR)/%) 464249SschwartzLINTS = $(FPC_OBJS:%.o=$(LINTS_DIR)/%.ln) 474249SschwartzROOTMODULE = $(ROOT_CHICAGO_DRV_DIR)/$(MODULE) 484249SschwartzCONF_SRCDIR = $(UTSBASE)/sun4/io/fpc 494249Sschwartz 504249SschwartzROOT_BOSTON_DIR = $(ROOT_PLAT_DIR)/SUNW,Sun-Fire-V445 514249SschwartzROOT_BOSTON_MOD_DIR = $(ROOT_BOSTON_DIR)/kernel 524249SschwartzROOT_BOSTON_DRV_DIR_32 = $(ROOT_BOSTON_MOD_DIR)/drv 534249SschwartzROOT_BOSTON_DRV_DIR_64 = $(ROOT_BOSTON_DRV_DIR_32)/$(SUBDIR64) 544249Sschwartz 554249SschwartzROOT_SEATTLE_DIR = $(ROOT_PLAT_DIR)/SUNW,Sun-Fire-V215 564249SschwartzROOT_SEATTLE_MOD_DIR = $(ROOT_SEATTLE_DIR)/kernel 574249SschwartzROOT_SEATTLE_DRV_DIR_32 = $(ROOT_SEATTLE_MOD_DIR)/drv 584249SschwartzROOT_SEATTLE_DRV_DIR_64 = $(ROOT_SEATTLE_DRV_DIR_32)/$(SUBDIR64) 594249Sschwartz 604249SschwartzROOTMODULE_SOFTLINK = $(ROOT_BOSTON_DRV_DIR_64:$(ROOT_BOSTON_DIR)%=../../../../SUNW,A70%/$(MODULE)) 614249Sschwartz 624249SschwartzCONFFILE_SOFTLINK = $(ROOT_BOSTON_DRV_DIR_32:$(ROOT_BOSTON_DIR)%=../../../SUNW,A70%/$(CONFFILE)) 634249Sschwartz 644249SschwartzBOSTON_ROOTMODULE = $(ROOT_BOSTON_DRV_DIR_64)/$(MODULE) 654249SschwartzBOSTON_CONFFILE = $(ROOT_BOSTON_DRV_DIR_32)/$(CONFFILE) 664249Sschwartz 674249SschwartzSEATTLE_ROOTMODULE = $(ROOT_SEATTLE_DRV_DIR_64)/$(MODULE) 684249SschwartzSEATTLE_CONFFILE = $(ROOT_SEATTLE_DRV_DIR_32)/$(CONFFILE) 694249Sschwartz 704249Sschwartz# 714249Sschwartz# Include common rules. 724249Sschwartz# 734249Sschwartzinclude $(UTSBASE)/sun4u/chicago/Makefile.chicago 744249Sschwartz 754249Sschwartz# 764249Sschwartz# Define targets 774249Sschwartz# 784249SschwartzALL_TARGET = $(BINARY) $(SRC_CONFFILE) 794249SschwartzLINT_TARGET = $(MODULE).lint 804249SschwartzINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) \ 814249Sschwartz $(BOSTON_ROOTMODULE) $(BOSTON_CONFFILE) \ 824249Sschwartz $(SEATTLE_ROOTMODULE) $(SEATTLE_CONFFILE) 834249Sschwartz 844249Sschwartz# 854249Sschwartz# Include SUN4 and SUN4U specific headers files 864249Sschwartz# 874249SschwartzINC_PATH += -I$(UTSBASE)/sun4/io/fpc 884249Sschwartz 894249Sschwartz# 904249Sschwartz# lint pass one enforcement 914249Sschwartz# 924249SschwartzCFLAGS += $(CCVERBOSE) 934249Sschwartz 944249Sschwartz# 954249Sschwartz# Turn on doubleword alignment for 64 bit registers 964249Sschwartz# 974249SschwartzCFLAGS += -dalign 984249Sschwartz 994249Sschwartz# 1004249Sschwartz# For now, disable these lint checks; maintainers should endeavor 1014249Sschwartz# to investigate and remove these for maximum lint coverage. 1024249Sschwartz# Please do not carry these forward to new Makefiles. 1034249Sschwartz# 1044249SschwartzLINTTAGS += -erroff=E_STATIC_UNUSED 1054249Sschwartz 1064249Sschwartz# 1074249Sschwartz# Default build targets. 1084249Sschwartz# 1094249Sschwartz.KEEP_STATE: 1104249Sschwartz 1114249Sschwartzdef: $(DEF_DEPS) 1124249Sschwartz 1134249Sschwartzall: $(ALL_DEPS) 1144249Sschwartz 1154249Sschwartzclean: $(CLEAN_DEPS) 1164249Sschwartz 1174249Sschwartzclobber: $(CLOBBER_DEPS) 1184249Sschwartz 1194249Sschwartzlint: $(LINT_DEPS) 1204249Sschwartz 1214249Sschwartzmodlintlib: $(MODLINTLIB_DEPS) 1224249Sschwartz 1234249Sschwartzclean.lint: $(CLEAN_LINT_DEPS) 1244249Sschwartz 1254249Sschwartzinstall: $(INSTALL_DEPS) 1264249Sschwartz 1274249Sschwartz$(ROOT_BOSTON_DIR): $(ROOT_PLAT_DIR) 128*10738SJames.McPherson@Sun.COM -$(INS.dir) 1294249Sschwartz 1304249Sschwartz$(ROOT_BOSTON_MOD_DIR): $(ROOT_BOSTON_DIR) 131*10738SJames.McPherson@Sun.COM -$(INS.dir) 1324249Sschwartz 1334249Sschwartz$(ROOT_BOSTON_DRV_DIR_32): $(ROOT_BOSTON_MOD_DIR) 134*10738SJames.McPherson@Sun.COM -$(INS.dir) 1354249Sschwartz 1364249Sschwartz$(ROOT_BOSTON_DRV_DIR_64): $(ROOT_BOSTON_DRV_DIR_32) 137*10738SJames.McPherson@Sun.COM -$(INS.dir) 1384249Sschwartz 1394249Sschwartz$(ROOT_SEATTLE_DIR): $(ROOT_PLAT_DIR) 140*10738SJames.McPherson@Sun.COM -$(INS.dir) 1414249Sschwartz 1424249Sschwartz$(ROOT_SEATTLE_MOD_DIR): $(ROOT_SEATTLE_DIR) 143*10738SJames.McPherson@Sun.COM -$(INS.dir) 1444249Sschwartz 1454249Sschwartz$(ROOT_SEATTLE_DRV_DIR_32): $(ROOT_SEATTLE_MOD_DIR) 146*10738SJames.McPherson@Sun.COM -$(INS.dir) 1474249Sschwartz 1484249Sschwartz$(ROOT_SEATTLE_DRV_DIR_64): $(ROOT_SEATTLE_DRV_DIR_32) 149*10738SJames.McPherson@Sun.COM -$(INS.dir) 1504249Sschwartz 1514249Sschwartz$(BOSTON_ROOTMODULE): $(ROOTMODULE) $(ROOT_BOSTON_DRV_DIR_64) 1524249Sschwartz $(RM) $@; $(SYMLINK) $(ROOTMODULE_SOFTLINK) $@ 1534249Sschwartz 1544249Sschwartz$(BOSTON_CONFFILE): $(ROOT_CONFFILE) $(ROOT_BOSTON_DRV_DIR_32) 1554249Sschwartz $(RM) $@; $(SYMLINK) $(CONFFILE_SOFTLINK) $@ 1564249Sschwartz 1574249Sschwartz$(SEATTLE_ROOTMODULE): $(ROOTMODULE) $(ROOT_SEATTLE_DRV_DIR_64) 1584249Sschwartz $(RM) $@; $(SYMLINK) $(ROOTMODULE_SOFTLINK) $@ 1594249Sschwartz 1604249Sschwartz$(SEATTLE_CONFFILE): $(ROOT_CONFFILE) $(ROOT_SEATTLE_DRV_DIR_32) 1614249Sschwartz $(RM) $@; $(SYMLINK) $(CONFFILE_SOFTLINK) $@ 1624249Sschwartz 1634249Sschwartz 1644249Sschwartz# 1654249Sschwartz# Include common targets. 1664249Sschwartz# 1674249Sschwartzinclude $(UTSBASE)/sun4u/chicago/Makefile.targ 168