1b7f45089Sdf157793# 2b7f45089Sdf157793# CDDL HEADER START 3b7f45089Sdf157793# 4b7f45089Sdf157793# The contents of this file are subject to the terms of the 5*02e56f3fSwesolows# Common Development and Distribution License (the "License"). 6*02e56f3fSwesolows# You may not use this file except in compliance with the License. 7b7f45089Sdf157793# 8b7f45089Sdf157793# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9b7f45089Sdf157793# or http://www.opensolaris.org/os/licensing. 10b7f45089Sdf157793# See the License for the specific language governing permissions 11b7f45089Sdf157793# and limitations under the License. 12b7f45089Sdf157793# 13b7f45089Sdf157793# When distributing Covered Code, include this CDDL HEADER in each 14b7f45089Sdf157793# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15b7f45089Sdf157793# If applicable, add the following below this CDDL HEADER, with the 16b7f45089Sdf157793# fields enclosed by brackets "[]" replaced with your own identifying 17b7f45089Sdf157793# information: Portions Copyright [yyyy] [name of copyright owner] 18b7f45089Sdf157793# 19b7f45089Sdf157793# CDDL HEADER END 20*02e56f3fSwesolows# 21*02e56f3fSwesolows 22*02e56f3fSwesolows# 23b7f45089Sdf157793# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 24b7f45089Sdf157793# Use is subject to license terms. 25b7f45089Sdf157793# 26b7f45089Sdf157793# ident "%Z%%M% %I% %E% SMI" 27b7f45089Sdf157793# 28*02e56f3fSwesolows 29*02e56f3fSwesolows# 30b7f45089Sdf157793# This makefile drives the production of the sun4v ontario default 31b7f45089Sdf157793# platform module. 32b7f45089Sdf157793# 33b7f45089Sdf157793# sun4v implementation architecture dependent 34b7f45089Sdf157793# 35b7f45089Sdf157793 36b7f45089Sdf157793# 37b7f45089Sdf157793# Path to the base of the uts directory tree (usually /usr/src/uts). 38b7f45089Sdf157793# 39b7f45089Sdf157793UTSBASE = ../../.. 40b7f45089Sdf157793 41b7f45089Sdf157793# 42b7f45089Sdf157793# Define the module and object file sets. 43b7f45089Sdf157793# 44b7f45089Sdf157793MODULE = platmod 45b7f45089Sdf157793OBJECTS = $(ONTARIO_PLATMOD_OBJS:%=$(OBJS_DIR)/%) 46b7f45089Sdf157793LINTS = $(ONTARIO_PLATMOD_OBJS:%.o=$(LINTS_DIR)/%.ln) 47b7f45089Sdf157793ROOTMODULE = $(ROOT_ONTARIO_MISC_DIR)/$(MODULE) 48b7f45089Sdf157793 49b7f45089Sdf157793PLAT_DIR = . 50b7f45089Sdf157793HERE = ../platmod 51b7f45089Sdf157793 52b7f45089Sdf157793# 53b7f45089Sdf157793# Include common rules. 54b7f45089Sdf157793# 55b7f45089Sdf157793include $(UTSBASE)/sun4v/ontario/Makefile.ontario 56b7f45089Sdf157793 57b7f45089Sdf157793# 58b7f45089Sdf157793# Override defaults 59b7f45089Sdf157793# 60b7f45089Sdf157793CLEANFILES += $(PLATLIB) $(SYM_MOD) 61b7f45089Sdf157793 62b7f45089Sdf157793# 63b7f45089Sdf157793# Define targets 64b7f45089Sdf157793# 65b7f45089Sdf157793ALL_TARGET = $(SYM_MOD) 66b7f45089Sdf157793LINT_TARGET = $(MODULE).lint 67b7f45089Sdf157793INSTALL_TARGET = $(BINARY) $(ROOTMODULE) 68b7f45089Sdf157793 69b7f45089Sdf157793# 70b7f45089Sdf157793# Overrides 71b7f45089Sdf157793# 72b7f45089Sdf157793ALL_BUILDS = $(ALL_BUILDSONLY64) 73b7f45089Sdf157793DEF_BUILDS = $(DEF_BUILDSONLY64) 74b7f45089Sdf157793CLEANLINTFILES += $(LINT32_FILES) 75b7f45089Sdf157793 76b7f45089Sdf157793# 77b7f45089Sdf157793# lint pass one enforcement 78b7f45089Sdf157793# 79b7f45089Sdf157793CFLAGS += $(CCVERBOSE) 80b7f45089Sdf157793 81b7f45089Sdf157793# 82b7f45089Sdf157793# Default build targets. 83b7f45089Sdf157793# 84b7f45089Sdf157793.KEEP_STATE: 85b7f45089Sdf157793 86b7f45089Sdf157793def: $(DEF_DEPS) 87b7f45089Sdf157793 88b7f45089Sdf157793all: $(ALL_DEPS) 89b7f45089Sdf157793 90b7f45089Sdf157793clean: $(CLEAN_DEPS) 91b7f45089Sdf157793 92b7f45089Sdf157793clobber: $(CLOBBER_DEPS) 93b7f45089Sdf157793 94b7f45089Sdf157793lint: $(LINT_DEPS) 95b7f45089Sdf157793 96b7f45089Sdf157793modlintlib: $(MODLINTLIB_DEPS) 97b7f45089Sdf157793 98b7f45089Sdf157793clean.lint: $(CLEAN_LINT_DEPS) 99b7f45089Sdf157793 100b7f45089Sdf157793install: $(INSTALL_DEPS) 101b7f45089Sdf157793 102b7f45089Sdf157793check: 103b7f45089Sdf157793 104b7f45089Sdf157793LINT_LIB_DIR =$(ONTARIO_LINT_LIB_DIR) 105b7f45089Sdf157793 106b7f45089Sdf157793$(PLATLIB): $(BINARY) 107*02e56f3fSwesolows $(BUILD.SO) $(BINARY) 108b7f45089Sdf157793 109b7f45089Sdf157793$(SYM_MOD): $(UNIX_O) $(PLATLIB) 110b7f45089Sdf157793 @echo "resolving symbols against unix.o" 111b7f45089Sdf157793 @(cd $(UNIX_DIR); pwd; \ 112b7f45089Sdf157793 PLAT_DIR=$(HERE) SYM_MOD=$(HERE)/$(SYM_MOD) $(MAKE) symcheck) 113b7f45089Sdf157793 114b7f45089Sdf157793# 115b7f45089Sdf157793# Include common targets. 116b7f45089Sdf157793# 117b7f45089Sdf157793include $(UTSBASE)/sun4v/ontario/Makefile.targ 118