Makefile revision 4df55fde49134f9735f84011f23a767c75e393c7
325N/A#
325N/A# CDDL HEADER START
325N/A#
325N/A# The contents of this file are subject to the terms of the
325N/A# Common Development and Distribution License (the "License").
325N/A# You may not use this file except in compliance with the License.
325N/A#
325N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
325N/A# or http://www.opensolaris.org/os/licensing.
325N/A# See the License for the specific language governing permissions
325N/A# and limitations under the License.
325N/A#
325N/A# When distributing Covered Code, include this CDDL HEADER in each
325N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
325N/A# If applicable, add the following below this CDDL HEADER, with the
325N/A# fields enclosed by brackets "[]" replaced with your own identifying
325N/A# information: Portions Copyright [yyyy] [name of copyright owner]
325N/A#
325N/A# CDDL HEADER END
325N/A#
325N/A#
325N/A# uts/sun4v/kt/Makefile
325N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
325N/A# Use is subject to license terms.
325N/A#
325N/A# This makefile drives the production of the UltraSPARC-KT cpu module.
325N/A#
325N/A# sun4v implementation architecture dependent
325N/A#
325N/A
325N/A#
325N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
325N/A#
325N/AUTSBASE = ../..
325N/A
325N/A#
325N/A# Define the module and object file sets.
325N/A#
325N/AMODULE = SUNW,UltraSPARC-KT
325N/AOBJECTS = $(NIAGARA2CPU_OBJS:%=$(OBJS_DIR)/%)
325N/ALINTS = $(NIAGARA2CPU_OBJS:%.o=$(LINTS_DIR)/%.ln)
325N/AROOTMODULE = $(ROOT_PSM_CPU_DIR)/$(MODULE)
325N/A
325N/ACPU_DIR = .
325N/AHERE = ../kt
325N/A
325N/A#
325N/A# Include common rules.
325N/A#
325N/Ainclude $(UTSBASE)/sun4v/Makefile.sun4v
325N/A
325N/A#
325N/A# Override defaults
325N/A#
325N/ACLEANFILES += $(CPULIB) $(SYM_MOD)
325N/A
325N/A#
325N/A# Define targets
325N/A#
325N/AALL_TARGET = $(SYM_MOD)
325N/ALINT_TARGET = $(MODULE).lint
325N/AINSTALL_TARGET = def $(BINARY) $(ROOTMODULE)
325N/A
325N/A#
325N/A# lint pass one enforcement
325N/A#
325N/ACFLAGS += $(CCVERBOSE) -DKT_IMPL
325N/A
325N/A#
325N/A# The ATOMIC_BO_ENABLE_SHIFT enables backoff in atomic routines.
325N/A# It is also used to scale final limit value w.r.t. number of
325N/A# online cpus.
325N/A#
325N/AATOMIC_BO_FLAG = -DATOMIC_BO_ENABLE_SHIFT=4
325N/ACFLAGS += $(ATOMIC_BO_FLAG)
325N/ACPPFLAGS +=$(ATOMIC_BO_FLAG)
325N/AAS_CPPFLAGS += $(ATOMIC_BO_FLAG)
325N/A
325N/A#
325N/A# cpu-module-specific flags
325N/A#
325N/ACPPFLAGS += -DCPU_MODULE -DKT_IMPL
325N/ACPPFLAGS += -DSUN4V_CONTIG_MEM_PREALLOC_SIZE_MB=68
325N/AAS_CPPFLAGS += -DCPU_MODULE -DKT_IMPL
325N/A
325N/A#
325N/A# Default build targets.
325N/A#
325N/A.KEEP_STATE:
325N/A
325N/Adef: $(DEF_DEPS)
325N/A
325N/Aall: $(ALL_DEPS)
325N/A
325N/Aclean: $(CLEAN_DEPS)
325N/A
325N/Aclobber: $(CLOBBER_DEPS)
325N/A
325N/Alint: $(LINT_DEPS)
325N/A
325N/Amodlintlib: $(MODLINTLIB_DEPS)
325N/A
325N/Aclean.lint: $(CLEAN_LINT_DEPS)
325N/A
325N/Ainstall: $(INSTALL_DEPS)
325N/A
325N/A$(CPULIB): $(BINARY)
325N/A $(BUILD.SO) $(BINARY)
325N/A
325N/A$(SYM_MOD): $(UNIX_O) $(CPULIB)
325N/A @echo "resolving symbols against unix.o"
@(cd $(UNIX_DIR); pwd; \
CPU_DIR=$(HERE) SYM_MOD=$(HERE)/$(SYM_MOD) $(MAKE) symcheck)
# Include common targets.
#
include $(UTSBASE)/$(PLATFORM)/Makefile.targ