1*1cb6af97Swnelson# 2*1cb6af97Swnelson# CDDL HEADER START 3*1cb6af97Swnelson# 4*1cb6af97Swnelson# The contents of this file are subject to the terms of the 5*1cb6af97Swnelson# Common Development and Distribution License, Version 1.0 only 6*1cb6af97Swnelson# (the "License"). You may not use this file except in compliance 7*1cb6af97Swnelson# with the License. 8*1cb6af97Swnelson# 9*1cb6af97Swnelson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*1cb6af97Swnelson# or http://www.opensolaris.org/os/licensing. 11*1cb6af97Swnelson# See the License for the specific language governing permissions 12*1cb6af97Swnelson# and limitations under the License. 13*1cb6af97Swnelson# 14*1cb6af97Swnelson# When distributing Covered Code, include this CDDL HEADER in each 15*1cb6af97Swnelson# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*1cb6af97Swnelson# If applicable, add the following below this CDDL HEADER, with the 17*1cb6af97Swnelson# fields enclosed by brackets "[]" replaced with your own identifying 18*1cb6af97Swnelson# information: Portions Copyright [yyyy] [name of copyright owner] 19*1cb6af97Swnelson# 20*1cb6af97Swnelson# CDDL HEADER END 21*1cb6af97Swnelson# 22*1cb6af97Swnelson# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 23*1cb6af97Swnelson# Use is subject to license terms. 24*1cb6af97Swnelson# 25*1cb6af97Swnelson#pragma ident "%Z%%M% %I% %E% SMI" 26*1cb6af97Swnelson# 27*1cb6af97Swnelson# uts/sun4u/schumacher/platmod/Makefile 28*1cb6af97Swnelson# 29*1cb6af97Swnelson# This makefile drives the production of the sun4u schumacher platform module. 30*1cb6af97Swnelson# 31*1cb6af97Swnelson# sun4u implementation architecture dependent 32*1cb6af97Swnelson# 33*1cb6af97Swnelson 34*1cb6af97Swnelson# 35*1cb6af97Swnelson# Path to the base of the uts directory tree (usually /usr/src/uts). 36*1cb6af97Swnelson# 37*1cb6af97SwnelsonUTSBASE = ../../.. 38*1cb6af97Swnelson 39*1cb6af97Swnelson# 40*1cb6af97Swnelson# Define the module and object file sets. 41*1cb6af97Swnelson# 42*1cb6af97SwnelsonMODULE = platmod 43*1cb6af97SwnelsonOBJECTS = $(SCHUMACHER_OBJS:%=$(OBJS_DIR)/%) 44*1cb6af97SwnelsonLINTS = $(SCHUMACHER_OBJS:%.o=$(LINTS_DIR)/%.ln) 45*1cb6af97SwnelsonROOTMODULE = $(ROOT_SCHUMACHER_MISC_DIR)/$(MODULE) 46*1cb6af97Swnelson 47*1cb6af97SwnelsonPLAT_DIR = . 48*1cb6af97SwnelsonHERE = ../schumacher/platmod 49*1cb6af97Swnelson 50*1cb6af97Swnelson# 51*1cb6af97Swnelson# Include common rules. 52*1cb6af97Swnelson# 53*1cb6af97Swnelsoninclude $(UTSBASE)/sun4u/schumacher/Makefile.schumacher 54*1cb6af97Swnelson 55*1cb6af97Swnelson# 56*1cb6af97Swnelson# Override defaults 57*1cb6af97Swnelson# 58*1cb6af97SwnelsonCLEANFILES += $(PLATLIB) $(SYM_MOD) 59*1cb6af97Swnelson 60*1cb6af97Swnelson# 61*1cb6af97Swnelson# Define targets 62*1cb6af97Swnelson# 63*1cb6af97SwnelsonALL_TARGET = $(SYM_MOD) 64*1cb6af97SwnelsonLINT_TARGET = $(MODULE).lint 65*1cb6af97SwnelsonINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 66*1cb6af97Swnelson 67*1cb6af97Swnelson# 68*1cb6af97Swnelson# lint pass one enforcement 69*1cb6af97Swnelson# 70*1cb6af97SwnelsonCFLAGS += $(CCVERBOSE) 71*1cb6af97Swnelson 72*1cb6af97Swnelson# 73*1cb6af97Swnelson# Default build targets. 74*1cb6af97Swnelson# 75*1cb6af97Swnelson.KEEP_STATE: 76*1cb6af97Swnelson 77*1cb6af97Swnelsondef: $(DEF_DEPS) 78*1cb6af97Swnelson 79*1cb6af97Swnelsonall: $(ALL_DEPS) 80*1cb6af97Swnelson 81*1cb6af97Swnelsonclean: $(CLEAN_DEPS) 82*1cb6af97Swnelson 83*1cb6af97Swnelsonclobber: $(CLOBBER_DEPS) 84*1cb6af97Swnelson 85*1cb6af97Swnelsonlint: $(LINT_DEPS) 86*1cb6af97Swnelson 87*1cb6af97Swnelsonmodlintlib: $(MODLINTLIB_DEPS) 88*1cb6af97Swnelson 89*1cb6af97Swnelsonclean.lint: $(CLEAN_LINT_DEPS) 90*1cb6af97Swnelson 91*1cb6af97Swnelsoninstall: $(INSTALL_DEPS) 92*1cb6af97Swnelson 93*1cb6af97Swnelsoncheck: 94*1cb6af97Swnelson 95*1cb6af97SwnelsonLINT_LIB_DIR = $(SCHUMACHER_LINT_LIB_DIR) 96*1cb6af97Swnelson 97*1cb6af97Swnelson$(PLATLIB): $(BINARY) 98*1cb6af97Swnelson ${LD} -o $(PLATLIB) -G $(BINARY) 99*1cb6af97Swnelson 100*1cb6af97Swnelson$(SYM_MOD): $(UNIX_O) $(PLATLIB) 101*1cb6af97Swnelson @echo "resolving symbols against unix.o" 102*1cb6af97Swnelson @(cd $(UNIX_DIR); pwd; \ 103*1cb6af97Swnelson PLAT_DIR=$(HERE) SYM_MOD=$(HERE)/$(SYM_MOD) $(MAKE) symcheck) 104*1cb6af97Swnelson 105*1cb6af97Swnelson# 106*1cb6af97Swnelson# Include common targets. 107*1cb6af97Swnelson# 108*1cb6af97Swnelsoninclude $(UTSBASE)/sun4u/schumacher/Makefile.targ 109