Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
1c42de6d020629af774dd9e9fc81be3f3ed9398egd#
1c42de6d020629af774dd9e9fc81be3f3ed9398egd# CDDL HEADER START
1c42de6d020629af774dd9e9fc81be3f3ed9398egd#
1c42de6d020629af774dd9e9fc81be3f3ed9398egd# The contents of this file are subject to the terms of the
1c42de6d020629af774dd9e9fc81be3f3ed9398egd# Common Development and Distribution License (the "License").
1c42de6d020629af774dd9e9fc81be3f3ed9398egd# You may not use this file except in compliance with the License.
1c42de6d020629af774dd9e9fc81be3f3ed9398egd#
1c42de6d020629af774dd9e9fc81be3f3ed9398egd# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1c42de6d020629af774dd9e9fc81be3f3ed9398egd# or http://www.opensolaris.org/os/licensing.
1c42de6d020629af774dd9e9fc81be3f3ed9398egd# See the License for the specific language governing permissions
1c42de6d020629af774dd9e9fc81be3f3ed9398egd# and limitations under the License.
1c42de6d020629af774dd9e9fc81be3f3ed9398egd#
1c42de6d020629af774dd9e9fc81be3f3ed9398egd# When distributing Covered Code, include this CDDL HEADER in each
1c42de6d020629af774dd9e9fc81be3f3ed9398egd# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1c42de6d020629af774dd9e9fc81be3f3ed9398egd# If applicable, add the following below this CDDL HEADER, with the
1c42de6d020629af774dd9e9fc81be3f3ed9398egd# fields enclosed by brackets "[]" replaced with your own identifying
1c42de6d020629af774dd9e9fc81be3f3ed9398egd# information: Portions Copyright [yyyy] [name of copyright owner]
1c42de6d020629af774dd9e9fc81be3f3ed9398egd#
1c42de6d020629af774dd9e9fc81be3f3ed9398egd# CDDL HEADER END
1c42de6d020629af774dd9e9fc81be3f3ed9398egd#
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
1c42de6d020629af774dd9e9fc81be3f3ed9398egd#
1c42de6d020629af774dd9e9fc81be3f3ed9398egd# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
1c42de6d020629af774dd9e9fc81be3f3ed9398egd# Use is subject to license terms.
1c42de6d020629af774dd9e9fc81be3f3ed9398egd#
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
1c42de6d020629af774dd9e9fc81be3f3ed9398egd#
1c42de6d020629af774dd9e9fc81be3f3ed9398egd# This makefile drives the production of the cpu portion of
1c42de6d020629af774dd9e9fc81be3f3ed9398egd# of the Safari Configurator.
1c42de6d020629af774dd9e9fc81be3f3ed9398egd#
1c42de6d020629af774dd9e9fc81be3f3ed9398egd# sun4u implementation architecture dependent
1c42de6d020629af774dd9e9fc81be3f3ed9398egd#
1c42de6d020629af774dd9e9fc81be3f3ed9398egd
1c42de6d020629af774dd9e9fc81be3f3ed9398egd#
1c42de6d020629af774dd9e9fc81be3f3ed9398egd# Path to the base of the uts directory tree (usually /usr/src/uts).
1c42de6d020629af774dd9e9fc81be3f3ed9398egd#
1c42de6d020629af774dd9e9fc81be3f3ed9398egdUTSBASE = ../..
1c42de6d020629af774dd9e9fc81be3f3ed9398egd
1c42de6d020629af774dd9e9fc81be3f3ed9398egd#
1c42de6d020629af774dd9e9fc81be3f3ed9398egd# Define the module and object file sets.
1c42de6d020629af774dd9e9fc81be3f3ed9398egd#
1c42de6d020629af774dd9e9fc81be3f3ed9398egdMODULE = gptwo_cpu
1c42de6d020629af774dd9e9fc81be3f3ed9398egdOBJECTS = $(GPTWO_CPU_OBJS:%=$(OBJS_DIR)/%)
1c42de6d020629af774dd9e9fc81be3f3ed9398egdLINTS = $(GPTWO_CPU_OBJS:%.o=$(LINTS_DIR)/%.ln)
1c42de6d020629af774dd9e9fc81be3f3ed9398egdROOTMODULE = $(ROOT_PSM_MISC_DIR)/$(MODULE)
1c42de6d020629af774dd9e9fc81be3f3ed9398egd
1c42de6d020629af774dd9e9fc81be3f3ed9398egd#
1c42de6d020629af774dd9e9fc81be3f3ed9398egd# Include common rules.
1c42de6d020629af774dd9e9fc81be3f3ed9398egd#
1c42de6d020629af774dd9e9fc81be3f3ed9398egdinclude $(UTSBASE)/sun4u/Makefile.sun4u
1c42de6d020629af774dd9e9fc81be3f3ed9398egd
1c42de6d020629af774dd9e9fc81be3f3ed9398egd#
1c42de6d020629af774dd9e9fc81be3f3ed9398egd# Define targets
1c42de6d020629af774dd9e9fc81be3f3ed9398egd#
1c42de6d020629af774dd9e9fc81be3f3ed9398egdALL_TARGET = $(BINARY)
1c42de6d020629af774dd9e9fc81be3f3ed9398egdLINT_TARGET = $(MODULE).lint
1c42de6d020629af774dd9e9fc81be3f3ed9398egdINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
1c42de6d020629af774dd9e9fc81be3f3ed9398egd
1c42de6d020629af774dd9e9fc81be3f3ed9398egd
1c42de6d020629af774dd9e9fc81be3f3ed9398egd# Turn this on once compiler understands v9 in it's backend
1c42de6d020629af774dd9e9fc81be3f3ed9398egd#INLINES += $(UTSBASE)/sun4u/io/gptwo_cpu.il
1c42de6d020629af774dd9e9fc81be3f3ed9398egd
1c42de6d020629af774dd9e9fc81be3f3ed9398egd#
1c42de6d020629af774dd9e9fc81be3f3ed9398egd# lint pass one enforcement
1c42de6d020629af774dd9e9fc81be3f3ed9398egd#
1c42de6d020629af774dd9e9fc81be3f3ed9398egdCFLAGS += $(CCVERBOSE)
1c42de6d020629af774dd9e9fc81be3f3ed9398egd
1c42de6d020629af774dd9e9fc81be3f3ed9398egd#
1c42de6d020629af774dd9e9fc81be3f3ed9398egd# Turn on doubleword alignment for 64 bit registers
1c42de6d020629af774dd9e9fc81be3f3ed9398egd#
1c42de6d020629af774dd9e9fc81be3f3ed9398egdCFLAGS += -dalign
1c42de6d020629af774dd9e9fc81be3f3ed9398egd
1c42de6d020629af774dd9e9fc81be3f3ed9398egd#
1c42de6d020629af774dd9e9fc81be3f3ed9398egd# Pick up defines in cheetahregs.h.
1c42de6d020629af774dd9e9fc81be3f3ed9398egd#
1c42de6d020629af774dd9e9fc81be3f3ed9398egdCFLAGS += -DCHEETAH_PLUS
1c42de6d020629af774dd9e9fc81be3f3ed9398egdLINTFLAGS += -DCHEETAH_PLUS
1c42de6d020629af774dd9e9fc81be3f3ed9398egd
1c42de6d020629af774dd9e9fc81be3f3ed9398egd#
1c42de6d020629af774dd9e9fc81be3f3ed9398egd# module dependencies
1c42de6d020629af774dd9e9fc81be3f3ed9398egd#
1c42de6d020629af774dd9e9fc81be3f3ed9398egdLDFLAGS += -dy -Nmisc/gptwocfg
1c42de6d020629af774dd9e9fc81be3f3ed9398egd
1c42de6d020629af774dd9e9fc81be3f3ed9398egd#
1c42de6d020629af774dd9e9fc81be3f3ed9398egd# For now, disable these lint checks; maintainers should endeavor
1c42de6d020629af774dd9e9fc81be3f3ed9398egd# to investigate and remove these for maximum lint coverage.
1c42de6d020629af774dd9e9fc81be3f3ed9398egd# Please do not carry these forward to new Makefiles.
1c42de6d020629af774dd9e9fc81be3f3ed9398egd#
1c42de6d020629af774dd9e9fc81be3f3ed9398egdLINTTAGS += -erroff=E_STATIC_UNUSED
1c42de6d020629af774dd9e9fc81be3f3ed9398egd
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-parentheses
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-unused-function
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
1c42de6d020629af774dd9e9fc81be3f3ed9398egd#
1c42de6d020629af774dd9e9fc81be3f3ed9398egd# Default build targets.
1c42de6d020629af774dd9e9fc81be3f3ed9398egd#
1c42de6d020629af774dd9e9fc81be3f3ed9398egd.KEEP_STATE:
1c42de6d020629af774dd9e9fc81be3f3ed9398egd
1c42de6d020629af774dd9e9fc81be3f3ed9398egddef: $(DEF_DEPS)
1c42de6d020629af774dd9e9fc81be3f3ed9398egd
1c42de6d020629af774dd9e9fc81be3f3ed9398egdall: $(ALL_DEPS)
1c42de6d020629af774dd9e9fc81be3f3ed9398egd
1c42de6d020629af774dd9e9fc81be3f3ed9398egdclean: $(CLEAN_DEPS)
1c42de6d020629af774dd9e9fc81be3f3ed9398egd
1c42de6d020629af774dd9e9fc81be3f3ed9398egdclobber: $(CLOBBER_DEPS)
1c42de6d020629af774dd9e9fc81be3f3ed9398egd
1c42de6d020629af774dd9e9fc81be3f3ed9398egdlint: $(LINT_DEPS)
1c42de6d020629af774dd9e9fc81be3f3ed9398egd
1c42de6d020629af774dd9e9fc81be3f3ed9398egdmodlintlib: $(MODLINTLIB_DEPS)
1c42de6d020629af774dd9e9fc81be3f3ed9398egd
1c42de6d020629af774dd9e9fc81be3f3ed9398egdclean.lint: $(CLEAN_LINT_DEPS)
1c42de6d020629af774dd9e9fc81be3f3ed9398egd
1c42de6d020629af774dd9e9fc81be3f3ed9398egdinstall: $(INSTALL_DEPS)
1c42de6d020629af774dd9e9fc81be3f3ed9398egd
1c42de6d020629af774dd9e9fc81be3f3ed9398egd#
1c42de6d020629af774dd9e9fc81be3f3ed9398egd# Include common targets.
1c42de6d020629af774dd9e9fc81be3f3ed9398egd#
1c42de6d020629af774dd9e9fc81be3f3ed9398egdinclude $(UTSBASE)/sun4u/Makefile.targ