Makefile revision 8d4e547db823a866b8f73efc0acdc423e2963caf
4496171313bed39e96f21bc2f9faf2868e267ae3girish#
4496171313bed39e96f21bc2f9faf2868e267ae3girish# CDDL HEADER START
4496171313bed39e96f21bc2f9faf2868e267ae3girish#
4496171313bed39e96f21bc2f9faf2868e267ae3girish# The contents of this file are subject to the terms of the
4496171313bed39e96f21bc2f9faf2868e267ae3girish# Common Development and Distribution License (the "License").
4496171313bed39e96f21bc2f9faf2868e267ae3girish# You may not use this file except in compliance with the License.
4496171313bed39e96f21bc2f9faf2868e267ae3girish#
4496171313bed39e96f21bc2f9faf2868e267ae3girish# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4496171313bed39e96f21bc2f9faf2868e267ae3girish# or http://www.opensolaris.org/os/licensing.
4496171313bed39e96f21bc2f9faf2868e267ae3girish# See the License for the specific language governing permissions
4496171313bed39e96f21bc2f9faf2868e267ae3girish# and limitations under the License.
4496171313bed39e96f21bc2f9faf2868e267ae3girish#
4496171313bed39e96f21bc2f9faf2868e267ae3girish# When distributing Covered Code, include this CDDL HEADER in each
4496171313bed39e96f21bc2f9faf2868e267ae3girish# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4496171313bed39e96f21bc2f9faf2868e267ae3girish# If applicable, add the following below this CDDL HEADER, with the
4496171313bed39e96f21bc2f9faf2868e267ae3girish# fields enclosed by brackets "[]" replaced with your own identifying
4496171313bed39e96f21bc2f9faf2868e267ae3girish# information: Portions Copyright [yyyy] [name of copyright owner]
4496171313bed39e96f21bc2f9faf2868e267ae3girish#
4496171313bed39e96f21bc2f9faf2868e267ae3girish# CDDL HEADER END
4496171313bed39e96f21bc2f9faf2868e267ae3girish#
4496171313bed39e96f21bc2f9faf2868e267ae3girish#
4496171313bed39e96f21bc2f9faf2868e267ae3girish# uts/sun4v/niagara2/Makefile
8d4e547db823a866b8f73efc0acdc423e2963cafae# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
4496171313bed39e96f21bc2f9faf2868e267ae3girish# Use is subject to license terms.
4496171313bed39e96f21bc2f9faf2868e267ae3girish#
4496171313bed39e96f21bc2f9faf2868e267ae3girish#ident "%Z%%M% %I% %E% SMI"
4496171313bed39e96f21bc2f9faf2868e267ae3girish#
4496171313bed39e96f21bc2f9faf2868e267ae3girish# This makefile drives the production of the UltraSPARC-T2 cpu module.
4496171313bed39e96f21bc2f9faf2868e267ae3girish#
4496171313bed39e96f21bc2f9faf2868e267ae3girish# sun4v implementation architecture dependent
4496171313bed39e96f21bc2f9faf2868e267ae3girish#
4496171313bed39e96f21bc2f9faf2868e267ae3girish
4496171313bed39e96f21bc2f9faf2868e267ae3girish#
4496171313bed39e96f21bc2f9faf2868e267ae3girish# Path to the base of the uts directory tree (usually /usr/src/uts).
4496171313bed39e96f21bc2f9faf2868e267ae3girish#
4496171313bed39e96f21bc2f9faf2868e267ae3girishUTSBASE = ../..
4496171313bed39e96f21bc2f9faf2868e267ae3girish
4496171313bed39e96f21bc2f9faf2868e267ae3girish#
4496171313bed39e96f21bc2f9faf2868e267ae3girish# Define the module and object file sets.
4496171313bed39e96f21bc2f9faf2868e267ae3girish#
4496171313bed39e96f21bc2f9faf2868e267ae3girishMODULE = SUNW,UltraSPARC-T2
4496171313bed39e96f21bc2f9faf2868e267ae3girishOBJECTS = $(NIAGARA2CPU_OBJS:%=$(OBJS_DIR)/%)
4496171313bed39e96f21bc2f9faf2868e267ae3girishLINTS = $(NIAGARA2CPU:%.o=$(LINTS_DIR)/%.ln)
4496171313bed39e96f21bc2f9faf2868e267ae3girishROOTMODULE = $(ROOT_PSM_CPU_DIR)/$(MODULE)
4496171313bed39e96f21bc2f9faf2868e267ae3girish
4496171313bed39e96f21bc2f9faf2868e267ae3girishCPU_DIR = .
4496171313bed39e96f21bc2f9faf2868e267ae3girishHERE = ../niagara2
4496171313bed39e96f21bc2f9faf2868e267ae3girish
4496171313bed39e96f21bc2f9faf2868e267ae3girish#
4496171313bed39e96f21bc2f9faf2868e267ae3girish# Include common rules.
4496171313bed39e96f21bc2f9faf2868e267ae3girish#
4496171313bed39e96f21bc2f9faf2868e267ae3girishinclude $(UTSBASE)/sun4v/Makefile.sun4v
4496171313bed39e96f21bc2f9faf2868e267ae3girish
4496171313bed39e96f21bc2f9faf2868e267ae3girish#
4496171313bed39e96f21bc2f9faf2868e267ae3girish# Override defaults
4496171313bed39e96f21bc2f9faf2868e267ae3girish#
4496171313bed39e96f21bc2f9faf2868e267ae3girishCLEANFILES += $(CPULIB) $(SYM_MOD)
4496171313bed39e96f21bc2f9faf2868e267ae3girish
4496171313bed39e96f21bc2f9faf2868e267ae3girish#
4496171313bed39e96f21bc2f9faf2868e267ae3girish# Define targets
4496171313bed39e96f21bc2f9faf2868e267ae3girish#
4496171313bed39e96f21bc2f9faf2868e267ae3girishALL_TARGET = $(SYM_MOD)
4496171313bed39e96f21bc2f9faf2868e267ae3girishLINT_TARGET = $(MODULE).lint
4496171313bed39e96f21bc2f9faf2868e267ae3girishINSTALL_TARGET = def $(BINARY) $(ROOTMODULE)
4496171313bed39e96f21bc2f9faf2868e267ae3girish
4496171313bed39e96f21bc2f9faf2868e267ae3girish#
4496171313bed39e96f21bc2f9faf2868e267ae3girish# lint pass one enforcement
4496171313bed39e96f21bc2f9faf2868e267ae3girish#
4496171313bed39e96f21bc2f9faf2868e267ae3girishCFLAGS += $(CCVERBOSE) -DNIAGARA2_IMPL
4496171313bed39e96f21bc2f9faf2868e267ae3girish
8d4e547db823a866b8f73efc0acdc423e2963cafae# The following is required to support Niagara2 1.0
8d4e547db823a866b8f73efc0acdc423e2963cafaeWORKAROUND_DEFS += -DN2_ERRATUM_49 # %stick_compare{6:0} ignored
8d4e547db823a866b8f73efc0acdc423e2963cafae
4496171313bed39e96f21bc2f9faf2868e267ae3girish#
4496171313bed39e96f21bc2f9faf2868e267ae3girish# cpu-module-specific flags
4496171313bed39e96f21bc2f9faf2868e267ae3girish#
4496171313bed39e96f21bc2f9faf2868e267ae3girishCPPFLAGS += -DCPU_MODULE -DNIAGARA2_IMPL
4496171313bed39e96f21bc2f9faf2868e267ae3girishAS_CPPFLAGS += -DCPU_MODULE -DNIAGARA2_IMPL
4496171313bed39e96f21bc2f9faf2868e267ae3girish
4496171313bed39e96f21bc2f9faf2868e267ae3girish#
4496171313bed39e96f21bc2f9faf2868e267ae3girish# Default build targets.
4496171313bed39e96f21bc2f9faf2868e267ae3girish#
4496171313bed39e96f21bc2f9faf2868e267ae3girish.KEEP_STATE:
4496171313bed39e96f21bc2f9faf2868e267ae3girish
4496171313bed39e96f21bc2f9faf2868e267ae3girishdef: $(DEF_DEPS)
4496171313bed39e96f21bc2f9faf2868e267ae3girish
4496171313bed39e96f21bc2f9faf2868e267ae3girishall: $(ALL_DEPS)
4496171313bed39e96f21bc2f9faf2868e267ae3girish
4496171313bed39e96f21bc2f9faf2868e267ae3girishclean: $(CLEAN_DEPS)
4496171313bed39e96f21bc2f9faf2868e267ae3girish
4496171313bed39e96f21bc2f9faf2868e267ae3girishclobber: $(CLOBBER_DEPS)
4496171313bed39e96f21bc2f9faf2868e267ae3girish
4496171313bed39e96f21bc2f9faf2868e267ae3girishlint: $(LINT_DEPS)
4496171313bed39e96f21bc2f9faf2868e267ae3girish
4496171313bed39e96f21bc2f9faf2868e267ae3girishmodlintlib: $(MODLINTLIB_DEPS)
4496171313bed39e96f21bc2f9faf2868e267ae3girish
4496171313bed39e96f21bc2f9faf2868e267ae3girishclean.lint: $(CLEAN_LINT_DEPS)
4496171313bed39e96f21bc2f9faf2868e267ae3girish
4496171313bed39e96f21bc2f9faf2868e267ae3girishinstall: $(INSTALL_DEPS)
4496171313bed39e96f21bc2f9faf2868e267ae3girish
4496171313bed39e96f21bc2f9faf2868e267ae3girish$(CPULIB): $(BINARY)
4496171313bed39e96f21bc2f9faf2868e267ae3girish $(BUILD.SO) $(BINARY)
4496171313bed39e96f21bc2f9faf2868e267ae3girish
4496171313bed39e96f21bc2f9faf2868e267ae3girish$(SYM_MOD): $(UNIX_O) $(CPULIB)
4496171313bed39e96f21bc2f9faf2868e267ae3girish @echo "resolving symbols against unix.o"
4496171313bed39e96f21bc2f9faf2868e267ae3girish @(cd $(UNIX_DIR); pwd; \
4496171313bed39e96f21bc2f9faf2868e267ae3girish CPU_DIR=$(HERE) SYM_MOD=$(HERE)/$(SYM_MOD) $(MAKE) symcheck)
4496171313bed39e96f21bc2f9faf2868e267ae3girish
4496171313bed39e96f21bc2f9faf2868e267ae3girish# Include common targets.
4496171313bed39e96f21bc2f9faf2868e267ae3girish#
4496171313bed39e96f21bc2f9faf2868e267ae3girishinclude $(UTSBASE)/$(PLATFORM)/Makefile.targ