ef8846857fcf954444cdc77e72249afef48377d2rb#
ef8846857fcf954444cdc77e72249afef48377d2rb# CDDL HEADER START
ef8846857fcf954444cdc77e72249afef48377d2rb#
ef8846857fcf954444cdc77e72249afef48377d2rb# The contents of this file are subject to the terms of the
ef8846857fcf954444cdc77e72249afef48377d2rb# Common Development and Distribution License (the "License").
ef8846857fcf954444cdc77e72249afef48377d2rb# You may not use this file except in compliance with the License.
ef8846857fcf954444cdc77e72249afef48377d2rb#
ef8846857fcf954444cdc77e72249afef48377d2rb# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ef8846857fcf954444cdc77e72249afef48377d2rb# or http://www.opensolaris.org/os/licensing.
ef8846857fcf954444cdc77e72249afef48377d2rb# See the License for the specific language governing permissions
ef8846857fcf954444cdc77e72249afef48377d2rb# and limitations under the License.
ef8846857fcf954444cdc77e72249afef48377d2rb#
ef8846857fcf954444cdc77e72249afef48377d2rb# When distributing Covered Code, include this CDDL HEADER in each
ef8846857fcf954444cdc77e72249afef48377d2rb# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ef8846857fcf954444cdc77e72249afef48377d2rb# If applicable, add the following below this CDDL HEADER, with the
ef8846857fcf954444cdc77e72249afef48377d2rb# fields enclosed by brackets "[]" replaced with your own identifying
ef8846857fcf954444cdc77e72249afef48377d2rb# information: Portions Copyright [yyyy] [name of copyright owner]
ef8846857fcf954444cdc77e72249afef48377d2rb#
ef8846857fcf954444cdc77e72249afef48377d2rb# CDDL HEADER END
ef8846857fcf954444cdc77e72249afef48377d2rb#
ef8846857fcf954444cdc77e72249afef48377d2rb#
ef8846857fcf954444cdc77e72249afef48377d2rb# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
ef8846857fcf954444cdc77e72249afef48377d2rb# Use is subject to license terms.
ef8846857fcf954444cdc77e72249afef48377d2rb#
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
ef8846857fcf954444cdc77e72249afef48377d2rb#
ef8846857fcf954444cdc77e72249afef48377d2rb# This makefile drives the production of the pseudo device
ef8846857fcf954444cdc77e72249afef48377d2rb# to access the sun4v PRI
ef8846857fcf954444cdc77e72249afef48377d2rb#
ef8846857fcf954444cdc77e72249afef48377d2rb# sun4v implementation architecture dependent
ef8846857fcf954444cdc77e72249afef48377d2rb#
ef8846857fcf954444cdc77e72249afef48377d2rb
ef8846857fcf954444cdc77e72249afef48377d2rb#
ef8846857fcf954444cdc77e72249afef48377d2rb# Path to the base of the uts directory tree (usually /usr/src/uts).
ef8846857fcf954444cdc77e72249afef48377d2rb#
ef8846857fcf954444cdc77e72249afef48377d2rbUTSBASE = ../..
ef8846857fcf954444cdc77e72249afef48377d2rb
ef8846857fcf954444cdc77e72249afef48377d2rb#
ef8846857fcf954444cdc77e72249afef48377d2rb# Define the module and object file sets.
ef8846857fcf954444cdc77e72249afef48377d2rb#
ef8846857fcf954444cdc77e72249afef48377d2rbMODULE = ds_pri
ef8846857fcf954444cdc77e72249afef48377d2rbOBJECTS = $(DS_PRI_OBJS:%=$(OBJS_DIR)/%)
ef8846857fcf954444cdc77e72249afef48377d2rbLINTS = $(DS_PRI_OBJS:%.o=$(LINTS_DIR)/%.ln)
ef8846857fcf954444cdc77e72249afef48377d2rbROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE)
ef8846857fcf954444cdc77e72249afef48377d2rbCONF_SRCDIR = $(UTSBASE)/sun4v/io
ef8846857fcf954444cdc77e72249afef48377d2rb
ef8846857fcf954444cdc77e72249afef48377d2rb#
ef8846857fcf954444cdc77e72249afef48377d2rb# Include common rules.
ef8846857fcf954444cdc77e72249afef48377d2rb#
ef8846857fcf954444cdc77e72249afef48377d2rbinclude $(UTSBASE)/sun4v/Makefile.sun4v
ef8846857fcf954444cdc77e72249afef48377d2rb
ef8846857fcf954444cdc77e72249afef48377d2rb#
ef8846857fcf954444cdc77e72249afef48377d2rb# Override defaults to build a unique, local modstubs.o.
ef8846857fcf954444cdc77e72249afef48377d2rb#
ef8846857fcf954444cdc77e72249afef48377d2rbMODSTUBS_DIR = $(OBJS_DIR)
ef8846857fcf954444cdc77e72249afef48377d2rb
ef8846857fcf954444cdc77e72249afef48377d2rbCLEANFILES += $(MODSTUBS_O)
ef8846857fcf954444cdc77e72249afef48377d2rb
ef8846857fcf954444cdc77e72249afef48377d2rb#
ef8846857fcf954444cdc77e72249afef48377d2rb# Define targets
ef8846857fcf954444cdc77e72249afef48377d2rb#
ef8846857fcf954444cdc77e72249afef48377d2rbALL_TARGET = $(BINARY) $(SRC_CONFILE)
ef8846857fcf954444cdc77e72249afef48377d2rbLINT_TARGET = $(MODULE).lint
ef8846857fcf954444cdc77e72249afef48377d2rbINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
ef8846857fcf954444cdc77e72249afef48377d2rb
ef8846857fcf954444cdc77e72249afef48377d2rb#
ef8846857fcf954444cdc77e72249afef48377d2rb# lint pass one enforcement
ef8846857fcf954444cdc77e72249afef48377d2rb#
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCFLAGS += $(CCVERBOSE)
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-uninitialized
ef8846857fcf954444cdc77e72249afef48377d2rb
ef8846857fcf954444cdc77e72249afef48377d2rb#
ef8846857fcf954444cdc77e72249afef48377d2rb# Module Dependencies
ef8846857fcf954444cdc77e72249afef48377d2rbLDFLAGS += -dy -Nmisc/ds
ef8846857fcf954444cdc77e72249afef48377d2rb
ef8846857fcf954444cdc77e72249afef48377d2rb#
ef8846857fcf954444cdc77e72249afef48377d2rb# Default build targets.
ef8846857fcf954444cdc77e72249afef48377d2rb#
ef8846857fcf954444cdc77e72249afef48377d2rb.KEEP_STATE:
ef8846857fcf954444cdc77e72249afef48377d2rb
ef8846857fcf954444cdc77e72249afef48377d2rbdef: $(DEF_DEPS)
ef8846857fcf954444cdc77e72249afef48377d2rb
ef8846857fcf954444cdc77e72249afef48377d2rball: $(ALL_DEPS)
ef8846857fcf954444cdc77e72249afef48377d2rb
ef8846857fcf954444cdc77e72249afef48377d2rbclean: $(CLEAN_DEPS)
ef8846857fcf954444cdc77e72249afef48377d2rb
ef8846857fcf954444cdc77e72249afef48377d2rbclobber: $(CLOBBER_DEPS)
ef8846857fcf954444cdc77e72249afef48377d2rb
ef8846857fcf954444cdc77e72249afef48377d2rblint: $(LINT_DEPS)
ef8846857fcf954444cdc77e72249afef48377d2rb
ef8846857fcf954444cdc77e72249afef48377d2rbmodlintlib: $(MODLINTLIB_DEPS)
ef8846857fcf954444cdc77e72249afef48377d2rb
ef8846857fcf954444cdc77e72249afef48377d2rbclean.lint: $(CLEAN_LINT_DEPS)
ef8846857fcf954444cdc77e72249afef48377d2rb
ef8846857fcf954444cdc77e72249afef48377d2rbinstall: $(INSTALL_DEPS)
ef8846857fcf954444cdc77e72249afef48377d2rb
ef8846857fcf954444cdc77e72249afef48377d2rb#
ef8846857fcf954444cdc77e72249afef48377d2rb# Include common targets.
ef8846857fcf954444cdc77e72249afef48377d2rb#
ef8846857fcf954444cdc77e72249afef48377d2rbinclude $(UTSBASE)/$(PLATFORM)/Makefile.targ