1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# CDDL HEADER START
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# The contents of this file are subject to the terms of the
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# Common Development and Distribution License, Version 1.0 only
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# (the "License"). You may not use this file except in compliance
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# with the License.
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# or http://www.opensolaris.org/os/licensing.
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# See the License for the specific language governing permissions
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# and limitations under the License.
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# When distributing Covered Code, include this CDDL HEADER in each
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# If applicable, add the following below this CDDL HEADER, with the
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# fields enclosed by brackets "[]" replaced with your own identifying
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# information: Portions Copyright [yyyy] [name of copyright owner]
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# CDDL HEADER END
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# Use is subject to license terms.
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#pragma ident "%Z%%M% %I% %E% SMI"
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# uts/sun4u/schumacher/platmod/Makefile
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# This makefile drives the production of the sun4u schumacher platform module.
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# sun4u implementation architecture dependent
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# Path to the base of the uts directory tree (usually /usr/src/uts).
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelsonUTSBASE = ../../..
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# Define the module and object file sets.
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelsonMODULE = platmod
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelsonOBJECTS = $(SCHUMACHER_OBJS:%=$(OBJS_DIR)/%)
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelsonLINTS = $(SCHUMACHER_OBJS:%.o=$(LINTS_DIR)/%.ln)
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelsonROOTMODULE = $(ROOT_SCHUMACHER_MISC_DIR)/$(MODULE)
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelsonPLAT_DIR = .
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelsonHERE = ../schumacher/platmod
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# Include common rules.
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelsoninclude $(UTSBASE)/sun4u/schumacher/Makefile.schumacher
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# Override defaults
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelsonCLEANFILES += $(PLATLIB) $(SYM_MOD)
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# Define targets
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelsonALL_TARGET = $(SYM_MOD)
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelsonLINT_TARGET = $(MODULE).lint
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelsonINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# lint pass one enforcement
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelsonCFLAGS += $(CCVERBOSE)
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# Default build targets.
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson.KEEP_STATE:
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelsondef: $(DEF_DEPS)
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelsonall: $(ALL_DEPS)
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelsonclean: $(CLEAN_DEPS)
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelsonclobber: $(CLOBBER_DEPS)
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelsonlint: $(LINT_DEPS)
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelsonmodlintlib: $(MODLINTLIB_DEPS)
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelsonclean.lint: $(CLEAN_LINT_DEPS)
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelsoninstall: $(INSTALL_DEPS)
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelsoncheck:
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelsonLINT_LIB_DIR = $(SCHUMACHER_LINT_LIB_DIR)
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson$(PLATLIB): $(BINARY)
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson ${LD} -o $(PLATLIB) -G $(BINARY)
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson$(SYM_MOD): $(UNIX_O) $(PLATLIB)
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson @echo "resolving symbols against unix.o"
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson @(cd $(UNIX_DIR); pwd; \
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson PLAT_DIR=$(HERE) SYM_MOD=$(HERE)/$(SYM_MOD) $(MAKE) symcheck)
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson# Include common targets.
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelson#
1cb6af97c6f66f456d4f726ef056e1ebc0f73305wnelsoninclude $(UTSBASE)/sun4u/schumacher/Makefile.targ