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