Makefile revision 02e56f3f1bfc8d9977bafb8cb5202f576dcded27
ce2eda9624349a4c191dca61cb478b039ab00998Christian Maeder# CDDL HEADER START
35597678f1c9da703de8d0b6b66ea63247ebe884Christian Maeder# The contents of this file are subject to the terms of the
97018cf5fa25b494adffd7e9b4e87320dae6bf47Christian Maeder# Common Development and Distribution License (the "License").
ce2eda9624349a4c191dca61cb478b039ab00998Christian Maeder# You may not use this file except in compliance with the License.
ce2eda9624349a4c191dca61cb478b039ab00998Christian Maeder# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
410ff490af511ffa09b52e4de631d36a154b9730Christian Maeder# or http://www.opensolaris.org/os/licensing.
ce2eda9624349a4c191dca61cb478b039ab00998Christian Maeder# See the License for the specific language governing permissions
ad97909f160c13effd3bc73155aaa2c29902a5a1Christian Maeder# and limitations under the License.
ce2eda9624349a4c191dca61cb478b039ab00998Christian Maeder# When distributing Covered Code, include this CDDL HEADER in each
793945d4ac7c0f22760589c87af8e71427c76118Christian Maeder# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b1719ef0353b9eb5a00dec8e5119a99eaad718e0Christian Maeder# If applicable, add the following below this CDDL HEADER, with the
b1719ef0353b9eb5a00dec8e5119a99eaad718e0Christian Maeder# fields enclosed by brackets "[]" replaced with your own identifying
b1719ef0353b9eb5a00dec8e5119a99eaad718e0Christian Maeder# information: Portions Copyright [yyyy] [name of copyright owner]
b1719ef0353b9eb5a00dec8e5119a99eaad718e0Christian Maeder# CDDL HEADER END
0bc67ab104bfc3aa3233035b1c35bb7fa11cd9e3Christian Maeder# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
b1719ef0353b9eb5a00dec8e5119a99eaad718e0Christian Maeder# Use is subject to license terms.
ce2eda9624349a4c191dca61cb478b039ab00998Christian Maeder# ident "%Z%%M% %I% %E% SMI"
ad97909f160c13effd3bc73155aaa2c29902a5a1Christian Maeder# This makefile drives the production of the Starcat specific
ad97909f160c13effd3bc73155aaa2c29902a5a1Christian Maeder# UltraSPARC-III+ driver module.
51754d57079619ec1acfc7962d16478b787d3264Christian Maeder# Path to the base of the uts directory tree (usually /usr/src/uts).
15c12a3ac049a4528da05b1017b78145f308aeb0Christian Maeder# Define the module and object file sets.
c200224a127278d54634ca4a5079591cb989aaf3Christian MaederOBJECTS = $(CHEETAHPLUS_OBJS:%=$(OBJS_DIR)/%)
c200224a127278d54634ca4a5079591cb989aaf3Christian MaederLINTS = $(CHEETAHPLUS_OBJS:%.o=$(LINTS_DIR)/%.ln)
c200224a127278d54634ca4a5079591cb989aaf3Christian MaederROOTMODULE = $(ROOT_STARCAT_CPU_DIR)/$(MODULE)
ad97909f160c13effd3bc73155aaa2c29902a5a1Christian MaederSOFTLINKS = SUNW,UltraSPARC-IV SUNW,UltraSPARC-IV+
950e053ba55ac9c7d9c26a1ab48bd00202b29511Christian MaederROOTSOFTLINKS = $(SOFTLINKS:%=$(ROOT_STARCAT_CPU_DIR)/%)
410ff490af511ffa09b52e4de631d36a154b9730Christian Maeder# Include common rules.
0f0aa53f11a0d1ab08c76428b9de73db5b17c977Christian Maederinclude $(UTSBASE)/sun4u/starcat/Makefile.starcat
410ff490af511ffa09b52e4de631d36a154b9730Christian Maeder# Override defaults
ce2eda9624349a4c191dca61cb478b039ab00998Christian Maeder# Define targets
ce2eda9624349a4c191dca61cb478b039ab00998Christian MaederINSTALL_TARGET = def $(BINARY) $(ROOTMODULE) $(ROOTSOFTLINKS)
ce2eda9624349a4c191dca61cb478b039ab00998Christian Maeder# lint pass one enforcement
ad97909f160c13effd3bc73155aaa2c29902a5a1Christian MaederCFLAGS += $(CCVERBOSE) -DCHEETAH -DCHEETAH_PLUS -DCPU_IMP_L1_CACHE_PARITY \
89dc77946055c0e4cb4671c4a74c3dcd55ed41a1Christian Maeder -DCPU_IMP_ECACHE_ASSOC -DCPU_IMP_DUAL_PAGESIZE -DCPU_IMP_AFSR_EXT
410ff490af511ffa09b52e4de631d36a154b9730Christian MaederASFLAGS += -DCHEETAH -DCHEETAH_PLUS -DCPU_IMP_L1_CACHE_PARITY \
88ece6e49930670e8fd3ee79c89a2e918d2fbd0cChristian Maeder -DCPU_IMP_ECACHE_ASSOC -DCPU_IMP_DUAL_PAGESIZE -DCPU_IMP_AFSR_EXT
36c6cc568751e4235502cfee00ba7b597dae78dcChristian Maeder# cpu-module-specific flags
dc4bfcb8a5092af158e8a5691c8de8d6bc8b8724Christian MaederCPPFLAGS += -DCPU_MODULE -DCHEETAH -DCHEETAH_PLUS -DCPU_IMP_L1_CACHE_PARITY \
e0dba81bd8957764e49d5f15b5e0ab1f9411aadfChristian Maeder -DCPU_IMP_ECACHE_ASSOC -DCPU_IMP_DUAL_PAGESIZE -DCPU_IMP_AFSR_EXT
8338fbf3cfb9cf981261d893286f070bd9fa17efChristian MaederAS_CPPFLAGS += -DCPU_MODULE -DCHEETAH -DCHEETAH_PLUS -DCPU_IMP_L1_CACHE_PARITY \
89dc77946055c0e4cb4671c4a74c3dcd55ed41a1Christian Maeder -DCPU_IMP_ECACHE_ASSOC -DCPU_IMP_DUAL_PAGESIZE -DCPU_IMP_AFSR_EXT
5a13581acc5a76d392c1dec01657bb3efd4dcf2dChristian Maeder# Default build targets.
a18e8529c133e17b95180bdd2bc2abbea232f698Christian Maeder @echo "resolving symbols against unix.o"
a18e8529c133e17b95180bdd2bc2abbea232f698Christian Maeder CPU_DIR=$(HERE) SYM_MOD=$(HERE)/$(SYM_MOD) $(MAKE) symcheck)
a18e8529c133e17b95180bdd2bc2abbea232f698Christian Maeder $(RM) $@; $(SYMLINK) $(MODULE) $@ $(CHOWNLINK) $(CHGRPLINK)
a18e8529c133e17b95180bdd2bc2abbea232f698Christian Maeder# Include common targets.