9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith#
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith# CDDL HEADER START
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith#
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith# The contents of this file are subject to the terms of the
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith# Common Development and Distribution License (the "License").
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith# You may not use this file except in compliance with the License.
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith#
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith# or http://www.opensolaris.org/os/licensing.
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith# See the License for the specific language governing permissions
daa301d2a0f17b5c1b04d777de3acf969b9b63d2Luke Smith# and limitations under the License.
daa301d2a0f17b5c1b04d777de3acf969b9b63d2Luke Smith#
daa301d2a0f17b5c1b04d777de3acf969b9b63d2Luke Smith# When distributing Covered Code, include this CDDL HEADER in each
daa301d2a0f17b5c1b04d777de3acf969b9b63d2Luke Smith# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
daa301d2a0f17b5c1b04d777de3acf969b9b63d2Luke Smith# If applicable, add the following below this CDDL HEADER, with the
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith# fields enclosed by brackets "[]" replaced with your own identifying
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith# information: Portions Copyright [yyyy] [name of copyright owner]
daa301d2a0f17b5c1b04d777de3acf969b9b63d2Luke Smith#
daa301d2a0f17b5c1b04d777de3acf969b9b63d2Luke Smith# CDDL HEADER END
daa301d2a0f17b5c1b04d777de3acf969b9b63d2Luke Smith#
daa301d2a0f17b5c1b04d777de3acf969b9b63d2Luke Smith
daa301d2a0f17b5c1b04d777de3acf969b9b63d2Luke Smith#
9563d8a01a40e508f7697d9c674c164512940371Luke Smith# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
daa301d2a0f17b5c1b04d777de3acf969b9b63d2Luke Smith# Use is subject to license terms.
daa301d2a0f17b5c1b04d777de3acf969b9b63d2Luke Smith#
daa301d2a0f17b5c1b04d777de3acf969b9b63d2Luke Smith# ident "%Z%%M% %I% %E% SMI"
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith#
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith#
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith# This makefile drives the production of the sun4v ontario default
daa301d2a0f17b5c1b04d777de3acf969b9b63d2Luke Smith# platform module.
daa301d2a0f17b5c1b04d777de3acf969b9b63d2Luke Smith#
daa301d2a0f17b5c1b04d777de3acf969b9b63d2Luke Smith# sun4v implementation architecture dependent
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith#
daa301d2a0f17b5c1b04d777de3acf969b9b63d2Luke Smith
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith#
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith# Path to the base of the uts directory tree (usually /usr/src/uts).
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith#
daa301d2a0f17b5c1b04d777de3acf969b9b63d2Luke SmithUTSBASE = ../../..
daa301d2a0f17b5c1b04d777de3acf969b9b63d2Luke Smith
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith#
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith# Define the module and object file sets.
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith#
daa301d2a0f17b5c1b04d777de3acf969b9b63d2Luke SmithMODULE = platmod
9533104fb7447a0765dc2aafec105c729d2c1be7Luke SmithOBJECTS = $(ONTARIO_PLATMOD_OBJS:%=$(OBJS_DIR)/%)
9533104fb7447a0765dc2aafec105c729d2c1be7Luke SmithLINTS = $(ONTARIO_PLATMOD_OBJS:%.o=$(LINTS_DIR)/%.ln)
daa301d2a0f17b5c1b04d777de3acf969b9b63d2Luke SmithROOTMODULE = $(ROOT_ONTARIO_MISC_DIR)/$(MODULE)
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith
9533104fb7447a0765dc2aafec105c729d2c1be7Luke SmithPLAT_DIR = .
9533104fb7447a0765dc2aafec105c729d2c1be7Luke SmithHERE = ../platmod
daa301d2a0f17b5c1b04d777de3acf969b9b63d2Luke Smith
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith#
daa301d2a0f17b5c1b04d777de3acf969b9b63d2Luke Smith# Include common rules.
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith#
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smithinclude $(UTSBASE)/sun4v/ontario/Makefile.ontario
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith#
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith# Override defaults
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith#
9533104fb7447a0765dc2aafec105c729d2c1be7Luke SmithCLEANFILES += $(PLATLIB) $(SYM_MOD)
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith#
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith# Define targets
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith#
9533104fb7447a0765dc2aafec105c729d2c1be7Luke SmithALL_TARGET = $(SYM_MOD)
9533104fb7447a0765dc2aafec105c729d2c1be7Luke SmithLINT_TARGET = $(MODULE).lint
9533104fb7447a0765dc2aafec105c729d2c1be7Luke SmithINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith#
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith# Overrides
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith#
9533104fb7447a0765dc2aafec105c729d2c1be7Luke SmithALL_BUILDS = $(ALL_BUILDSONLY64)
9533104fb7447a0765dc2aafec105c729d2c1be7Luke SmithDEF_BUILDS = $(DEF_BUILDSONLY64)
9533104fb7447a0765dc2aafec105c729d2c1be7Luke SmithCLEANLINTFILES += $(LINT32_FILES)
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith#
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith# lint pass one enforcement
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith#
9563d8a01a40e508f7697d9c674c164512940371Luke SmithCFLAGS += $(CCVERBOSE)
daa301d2a0f17b5c1b04d777de3acf969b9b63d2Luke Smith
ef820a2b98579b004dc187276f739fd5774a791fLuke Smith#
9563d8a01a40e508f7697d9c674c164512940371Luke Smith# Default build targets.
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith#
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith.KEEP_STATE:
9563d8a01a40e508f7697d9c674c164512940371Luke Smith
9563d8a01a40e508f7697d9c674c164512940371Luke Smithdef: $(DEF_DEPS)
ef820a2b98579b004dc187276f739fd5774a791fLuke Smith
ef820a2b98579b004dc187276f739fd5774a791fLuke Smithall: $(ALL_DEPS)
9563d8a01a40e508f7697d9c674c164512940371Luke Smith
9563d8a01a40e508f7697d9c674c164512940371Luke Smithclean: $(CLEAN_DEPS)
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smithclobber: $(CLOBBER_DEPS)
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith
9563d8a01a40e508f7697d9c674c164512940371Luke Smithlint: $(LINT_DEPS)
9563d8a01a40e508f7697d9c674c164512940371Luke Smith
9563d8a01a40e508f7697d9c674c164512940371Luke Smithmodlintlib: $(MODLINTLIB_DEPS)
9563d8a01a40e508f7697d9c674c164512940371Luke Smith
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smithclean.lint: $(CLEAN_LINT_DEPS)
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith
ef820a2b98579b004dc187276f739fd5774a791fLuke Smithinstall: $(INSTALL_DEPS)
daa301d2a0f17b5c1b04d777de3acf969b9b63d2Luke Smith
9563d8a01a40e508f7697d9c674c164512940371Luke Smithcheck:
9563d8a01a40e508f7697d9c674c164512940371Luke Smith
9563d8a01a40e508f7697d9c674c164512940371Luke SmithLINT_LIB_DIR =$(ONTARIO_LINT_LIB_DIR)
daa301d2a0f17b5c1b04d777de3acf969b9b63d2Luke Smith
daa301d2a0f17b5c1b04d777de3acf969b9b63d2Luke Smith$(PLATLIB): $(BINARY)
daa301d2a0f17b5c1b04d777de3acf969b9b63d2Luke Smith $(BUILD.SO) $(BINARY)
daa301d2a0f17b5c1b04d777de3acf969b9b63d2Luke Smith
daa301d2a0f17b5c1b04d777de3acf969b9b63d2Luke Smith$(SYM_MOD): $(UNIX_O) $(PLATLIB)
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith @echo "resolving symbols against unix.o"
daa301d2a0f17b5c1b04d777de3acf969b9b63d2Luke Smith @(cd $(UNIX_DIR); pwd; \
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith PLAT_DIR=$(HERE) SYM_MOD=$(HERE)/$(SYM_MOD) $(MAKE) symcheck)
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith
daa301d2a0f17b5c1b04d777de3acf969b9b63d2Luke Smith#
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith# Include common targets.
9533104fb7447a0765dc2aafec105c729d2c1be7Luke Smith#
daa301d2a0f17b5c1b04d777de3acf969b9b63d2Luke Smithinclude $(UTSBASE)/sun4v/ontario/Makefile.targ
daa301d2a0f17b5c1b04d777de3acf969b9b63d2Luke Smith