25cf1a301a396c38e8adf52c15f537b80d2483f7jl#
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# CDDL HEADER START
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# The contents of this file are subject to the terms of the
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# Common Development and Distribution License (the "License").
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# You may not use this file except in compliance with the License.
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# or http://www.opensolaris.org/os/licensing.
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# See the License for the specific language governing permissions
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# and limitations under the License.
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# When distributing Covered Code, include this CDDL HEADER in each
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# If applicable, add the following below this CDDL HEADER, with the
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# fields enclosed by brackets "[]" replaced with your own identifying
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# information: Portions Copyright [yyyy] [name of copyright owner]
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# CDDL HEADER END
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# Use is subject to license terms.
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# This makefile drives the production of the opl_cfg Jupiter Bus
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# Configurator
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# sun4u implementation architecture dependent
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#
25cf1a301a396c38e8adf52c15f537b80d2483f7jl
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# Path to the base of the uts directory tree (usually /usr/src/uts).
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#
25cf1a301a396c38e8adf52c15f537b80d2483f7jlUTSBASE = ../..
25cf1a301a396c38e8adf52c15f537b80d2483f7jl
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# Define the module and object file sets.
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#
25cf1a301a396c38e8adf52c15f537b80d2483f7jlMODULE = opl_cfg
25cf1a301a396c38e8adf52c15f537b80d2483f7jlOBJECTS = $(OPLCFG_OBJS:%=$(OBJS_DIR)/%)
25cf1a301a396c38e8adf52c15f537b80d2483f7jlLINTS = $(OPLCFG_OBJS:%.o=$(LINTS_DIR)/%.ln)
25cf1a301a396c38e8adf52c15f537b80d2483f7jlROOTMODULE = $(ROOT_PSM_MISC_DIR)/$(MODULE)
25cf1a301a396c38e8adf52c15f537b80d2483f7jl
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# Include common rules.
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#
25cf1a301a396c38e8adf52c15f537b80d2483f7jlinclude $(UTSBASE)/sun4u/Makefile.sun4u
25cf1a301a396c38e8adf52c15f537b80d2483f7jl
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# Define targets
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#
25cf1a301a396c38e8adf52c15f537b80d2483f7jlALL_TARGET = $(BINARY)
25cf1a301a396c38e8adf52c15f537b80d2483f7jlLINT_TARGET = $(MODULE).lint
25cf1a301a396c38e8adf52c15f537b80d2483f7jlINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
25cf1a301a396c38e8adf52c15f537b80d2483f7jl
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# lint pass one enforcement
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#
25cf1a301a396c38e8adf52c15f537b80d2483f7jlCFLAGS += $(CCVERBOSE)
25cf1a301a396c38e8adf52c15f537b80d2483f7jl
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# module dependencies
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#
25cf1a301a396c38e8adf52c15f537b80d2483f7jlLDFLAGS += -dy -Nmisc/fcodem -Nmisc/busra
25cf1a301a396c38e8adf52c15f537b80d2483f7jl
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# OPL specific header files
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#
25cf1a301a396c38e8adf52c15f537b80d2483f7jlINC_PATH += -I$(UTSBASE)/sun4u/opl/
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# Turn on doubleword alignment for 64 bit registers
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#
25cf1a301a396c38e8adf52c15f537b80d2483f7jlCFLAGS += -dalign
25cf1a301a396c38e8adf52c15f537b80d2483f7jl
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg#
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# For now, disable these lint checks; maintainers should endeavor
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# to investigate and remove these for maximum lint coverage.
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# Please do not carry these forward to new Makefiles.
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg#
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jgLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-uninitialized
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# Default build targets.
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#
25cf1a301a396c38e8adf52c15f537b80d2483f7jl.KEEP_STATE:
25cf1a301a396c38e8adf52c15f537b80d2483f7jl
25cf1a301a396c38e8adf52c15f537b80d2483f7jldef: $(DEF_DEPS)
25cf1a301a396c38e8adf52c15f537b80d2483f7jl
25cf1a301a396c38e8adf52c15f537b80d2483f7jlall: $(ALL_DEPS)
25cf1a301a396c38e8adf52c15f537b80d2483f7jl
25cf1a301a396c38e8adf52c15f537b80d2483f7jlclean: $(CLEAN_DEPS)
25cf1a301a396c38e8adf52c15f537b80d2483f7jl
25cf1a301a396c38e8adf52c15f537b80d2483f7jlclobber: $(CLOBBER_DEPS)
25cf1a301a396c38e8adf52c15f537b80d2483f7jl
25cf1a301a396c38e8adf52c15f537b80d2483f7jllint: $(LINT_DEPS)
25cf1a301a396c38e8adf52c15f537b80d2483f7jl
25cf1a301a396c38e8adf52c15f537b80d2483f7jlmodlintlib: $(MODLINTLIB_DEPS)
25cf1a301a396c38e8adf52c15f537b80d2483f7jl
25cf1a301a396c38e8adf52c15f537b80d2483f7jlclean.lint: $(CLEAN_LINT_DEPS)
25cf1a301a396c38e8adf52c15f537b80d2483f7jl
25cf1a301a396c38e8adf52c15f537b80d2483f7jlinstall: $(INSTALL_DEPS)
25cf1a301a396c38e8adf52c15f537b80d2483f7jl
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# Include common targets.
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#
25cf1a301a396c38e8adf52c15f537b80d2483f7jlinclude $(UTSBASE)/sun4u/Makefile.targ