1*30588217SMike Christensen# 2*30588217SMike Christensen# CDDL HEADER START 3*30588217SMike Christensen# 4*30588217SMike Christensen# The contents of this file are subject to the terms of the 5*30588217SMike Christensen# Common Development and Distribution License (the "License"). 6*30588217SMike Christensen# You may not use this file except in compliance with the License. 7*30588217SMike Christensen# 8*30588217SMike Christensen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*30588217SMike Christensen# or http://www.opensolaris.org/os/licensing. 10*30588217SMike Christensen# See the License for the specific language governing permissions 11*30588217SMike Christensen# and limitations under the License. 12*30588217SMike Christensen# 13*30588217SMike Christensen# When distributing Covered Code, include this CDDL HEADER in each 14*30588217SMike Christensen# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*30588217SMike Christensen# If applicable, add the following below this CDDL HEADER, with the 16*30588217SMike Christensen# fields enclosed by brackets "[]" replaced with your own identifying 17*30588217SMike Christensen# information: Portions Copyright [yyyy] [name of copyright owner] 18*30588217SMike Christensen# 19*30588217SMike Christensen# CDDL HEADER END 20*30588217SMike Christensen# 21*30588217SMike Christensen# 22*30588217SMike Christensen# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 23*30588217SMike Christensen# Use is subject to license terms. 24*30588217SMike Christensen# 25*30588217SMike Christensen# 26*30588217SMike Christensen# This makefile drives the production of the pseudo device 27*30588217SMike Christensen# to access the sun4v PRI 28*30588217SMike Christensen# 29*30588217SMike Christensen# sun4v implementation architecture dependent 30*30588217SMike Christensen# 31*30588217SMike Christensen 32*30588217SMike Christensen# 33*30588217SMike Christensen# Path to the base of the uts directory tree (usually /usr/src/uts). 34*30588217SMike Christensen# 35*30588217SMike ChristensenUTSBASE = ../.. 36*30588217SMike Christensen 37*30588217SMike Christensen# 38*30588217SMike Christensen# Define the module and object file sets. 39*30588217SMike Christensen# 40*30588217SMike ChristensenMODULE = vlds 41*30588217SMike ChristensenOBJECTS = $(VLDS_OBJS:%=$(OBJS_DIR)/%) 42*30588217SMike ChristensenLINTS = $(VLDS_OBJS:%.o=$(LINTS_DIR)/%.ln) 43*30588217SMike ChristensenROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) 44*30588217SMike Christensen 45*30588217SMike Christensen# 46*30588217SMike Christensen# Include common rules. 47*30588217SMike Christensen# 48*30588217SMike Christenseninclude $(UTSBASE)/sun4v/Makefile.sun4v 49*30588217SMike Christensen 50*30588217SMike Christensen# 51*30588217SMike Christensen# Override defaults to build a unique, local modstubs.o. 52*30588217SMike Christensen# 53*30588217SMike ChristensenMODSTUBS_DIR = $(OBJS_DIR) 54*30588217SMike Christensen 55*30588217SMike ChristensenCLEANFILES += $(MODSTUBS_O) 56*30588217SMike Christensen 57*30588217SMike Christensen# 58*30588217SMike Christensen# Define targets 59*30588217SMike Christensen# 60*30588217SMike ChristensenALL_TARGET = $(BINARY) 61*30588217SMike ChristensenLINT_TARGET = $(MODULE).lint 62*30588217SMike ChristensenINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 63*30588217SMike Christensen 64*30588217SMike Christensen# 65*30588217SMike Christensen# lint pass one enforcement 66*30588217SMike Christensen# 67*30588217SMike ChristensenCFLAGS += -v 68*30588217SMike Christensen 69*30588217SMike Christensen# 70*30588217SMike Christensen# Module Dependencies 71*30588217SMike ChristensenLDFLAGS += -dy -Nmisc/ds -Nmisc/platsvc 72*30588217SMike Christensen 73*30588217SMike Christensen# 74*30588217SMike Christensen# Default build targets. 75*30588217SMike Christensen# 76*30588217SMike Christensen.KEEP_STATE: 77*30588217SMike Christensen 78*30588217SMike Christensendef: $(DEF_DEPS) 79*30588217SMike Christensen 80*30588217SMike Christensenall: $(ALL_DEPS) 81*30588217SMike Christensen 82*30588217SMike Christensenclean: $(CLEAN_DEPS) 83*30588217SMike Christensen 84*30588217SMike Christensenclobber: $(CLOBBER_DEPS) 85*30588217SMike Christensen 86*30588217SMike Christensenlint: $(LINT_DEPS) 87*30588217SMike Christensen 88*30588217SMike Christensenmodlintlib: $(MODLINTLIB_DEPS) 89*30588217SMike Christensen 90*30588217SMike Christensenclean.lint: $(CLEAN_LINT_DEPS) 91*30588217SMike Christensen 92*30588217SMike Christenseninstall: $(INSTALL_DEPS) 93*30588217SMike Christensen 94*30588217SMike Christensen# 95*30588217SMike Christensen# Include common targets. 96*30588217SMike Christensen# 97*30588217SMike Christenseninclude $(UTSBASE)/$(PLATFORM)/Makefile.targ 98