1fd845fc0Sks34972# 2fd845fc0Sks34972# CDDL HEADER START 3fd845fc0Sks34972# 4fd845fc0Sks34972# The contents of this file are subject to the terms of the 5fd845fc0Sks34972# Common Development and Distribution License (the "License"). 6fd845fc0Sks34972# You may not use this file except in compliance with the License. 7fd845fc0Sks34972# 8fd845fc0Sks34972# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9fd845fc0Sks34972# or http://www.opensolaris.org/os/licensing. 10fd845fc0Sks34972# See the License for the specific language governing permissions 11fd845fc0Sks34972# and limitations under the License. 12fd845fc0Sks34972# 13fd845fc0Sks34972# When distributing Covered Code, include this CDDL HEADER in each 14fd845fc0Sks34972# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15fd845fc0Sks34972# If applicable, add the following below this CDDL HEADER, with the 16fd845fc0Sks34972# fields enclosed by brackets "[]" replaced with your own identifying 17fd845fc0Sks34972# information: Portions Copyright [yyyy] [name of copyright owner] 18fd845fc0Sks34972# 19fd845fc0Sks34972# CDDL HEADER END 20fd845fc0Sks34972# 21fd845fc0Sks34972# 22fd845fc0Sks34972# uts/sun4v/montoya/Makefile 23*6b288faaSmcwalter# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 24fd845fc0Sks34972# Use is subject to license terms. 25fd845fc0Sks34972# 26fd845fc0Sks34972# This makefile drives the production of the sun4v montoya platform 27fd845fc0Sks34972# modules. 28fd845fc0Sks34972# 29fd845fc0Sks34972# sun4v montoya implementation architecture dependent 30fd845fc0Sks34972# 31fd845fc0Sks34972 32fd845fc0Sks34972# 33fd845fc0Sks34972# Path to the base of the uts directory tree (usually /usr/src/uts). 34fd845fc0Sks34972# 35fd845fc0Sks34972UTSBASE = ../.. 36fd845fc0Sks34972 37fd845fc0Sks34972# 38fd845fc0Sks34972# Include common rules. 39fd845fc0Sks34972# 40fd845fc0Sks34972include $(UTSBASE)/sun4v/montoya/Makefile.montoya 41fd845fc0Sks34972 42fd845fc0Sks34972def := TARGET= def 43fd845fc0Sks34972all := TARGET= all 44fd845fc0Sks34972install := TARGET= install 45fd845fc0Sks34972install_h := TARGET= install_h 46fd845fc0Sks34972clean := TARGET= clean 47fd845fc0Sks34972clobber := TARGET= clobber 48fd845fc0Sks34972lint := TARGET= lint 49fd845fc0Sks34972lintlib := TARGET= lintlib 50fd845fc0Sks34972modlintlib := TARGET= modlintlib 51fd845fc0Sks34972modlist := TARGET= modlist 52fd845fc0Sks34972modlist := NO_STATE= -K $$MODSTATE$$$$ 53fd845fc0Sks34972clean.lint := TARGET= clean.lint 54fd845fc0Sks34972check := TARGET= check 55fd845fc0Sks34972 56fd845fc0Sks34972# 57fd845fc0Sks34972# Default build targets. 58fd845fc0Sks34972# 59fd845fc0Sks34972.KEEP_STATE: 60fd845fc0Sks34972 61fd845fc0Sks34972def all clean clobber clean.lint modlist: $(MONTOYA_KMODS) 62fd845fc0Sks34972 63fd845fc0Sks34972lintlib: unix 64fd845fc0Sks34972 65fd845fc0Sks34972modlintlib: $(MONTOYA_KMODS) 66fd845fc0Sks34972 67fd845fc0Sks34972IMPLEMENTED_PLATFORM = SUNW,Netra-CP3060 68fd845fc0Sks34972 69fd845fc0Sks34972install: $(ROOT_MONTOYA_DIR) $(USR_MONTOYA_DIR) \ 70fd845fc0Sks34972 $(USR_MONTOYA_LIB_DIR) \ 71fd845fc0Sks34972 $(ROOT_MONTOYA_LIB_DIR) \ 72*6b288faaSmcwalter $(USR_MONTOYA_SBIN_DIR) \ 73*6b288faaSmcwalter $(USR_MONTOYA_SBIN_LINKS) \ 74fd845fc0Sks34972 .WAIT $(MONTOYA_KMODS) 75fd845fc0Sks34972 76fd845fc0Sks34972$(MONTOYA_KMODS): FRC 77fd845fc0Sks34972 @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET) 78fd845fc0Sks34972 79fd845fc0Sks34972install_h check: FRC 80fd845fc0Sks34972 81fd845fc0Sks34972lint: modlintlib .WAIT $(LINT_DEPS) 82fd845fc0Sks34972 83fd845fc0Sks34972LINT_LIBS = $(LINT_LIB) \ 84fd845fc0Sks34972 -L$(MONTOYA_LINT_LIB_DIR) \ 85fd845fc0Sks34972 -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \ 86fd845fc0Sks34972 $(CLOSED_LINT_KMODS:%=-l%) \ 87fd845fc0Sks34972 -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%) 88fd845fc0Sks34972 89fd845fc0Sks34972lint.platmod: modlintlib 90fd845fc0Sks34972 @-$(ECHO) "\n$(IMPLEMENTED_PLATFORM) platform-dependent module: global crosschecks:" 91fd845fc0Sks34972 @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2) 92fd845fc0Sks34972 93fd845fc0Sks34972# 94fd845fc0Sks34972# Include common targets. 95fd845fc0Sks34972# 96fd845fc0Sks34972include $(UTSBASE)/$(PLATFORM)/montoya/Makefile.targ 97