f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen#
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen# CDDL HEADER START
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen#
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen# The contents of this file are subject to the terms of the
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen# Common Development and Distribution License (the "License").
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen# You may not use this file except in compliance with the License.
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen#
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen# or http://www.opensolaris.org/os/licensing.
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen# See the License for the specific language governing permissions
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen# and limitations under the License.
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen#
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen# When distributing Covered Code, include this CDDL HEADER in each
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen# If applicable, add the following below this CDDL HEADER, with the
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen# fields enclosed by brackets "[]" replaced with your own identifying
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen# information: Portions Copyright [yyyy] [name of copyright owner]
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen#
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen# CDDL HEADER END
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen#
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen#
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen# Use is subject to license terms.
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen#
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen# ident "%Z%%M% %I% %E% SMI"
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen#
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen#
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen# This makefile drives the production of the sun4v ontario default
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen# platform module.
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen#
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen# sun4v implementation architecture dependent
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen#
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen#
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen# Path to the base of the uts directory tree (usually /usr/src/uts).
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen#
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo SirainenUTSBASE = ../../..
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen#
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen# Define the module and object file sets.
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen#
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo SirainenMODULE = platmod
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo SirainenOBJECTS = $(ONTARIO_PLATMOD_OBJS:%=$(OBJS_DIR)/%)
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo SirainenLINTS = $(ONTARIO_PLATMOD_OBJS:%.o=$(LINTS_DIR)/%.ln)
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo SirainenROOTMODULE = $(ROOT_ONTARIO_MISC_DIR)/$(MODULE)
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo SirainenPLAT_DIR = .
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo SirainenHERE = ../platmod
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen#
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen# Include common rules.
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen#
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Siraineninclude $(UTSBASE)/sun4v/ontario/Makefile.ontario
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen
f2e7603c5d53b3dda364e93dd926d74d6047cb25Timo Sirainen#
# Override defaults
#
CLEANFILES += $(PLATLIB) $(SYM_MOD)
#
# Define targets
#
ALL_TARGET = $(SYM_MOD)
LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
#
# Overrides
#
ALL_BUILDS = $(ALL_BUILDSONLY64)
DEF_BUILDS = $(DEF_BUILDSONLY64)
CLEANLINTFILES += $(LINT32_FILES)
#
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
#
# Default build targets.
#
.KEEP_STATE:
def: $(DEF_DEPS)
all: $(ALL_DEPS)
clean: $(CLEAN_DEPS)
clobber: $(CLOBBER_DEPS)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
check:
LINT_LIB_DIR =$(ONTARIO_LINT_LIB_DIR)
$(PLATLIB): $(BINARY)
$(BUILD.SO) $(BINARY)
$(SYM_MOD): $(UNIX_O) $(PLATLIB)
@echo "resolving symbols against unix.o"
@(cd $(UNIX_DIR); pwd; \
PLAT_DIR=$(HERE) SYM_MOD=$(HERE)/$(SYM_MOD) $(MAKE) symcheck)
#
# Include common targets.
#
include $(UTSBASE)/sun4v/ontario/Makefile.targ