1ef884685Srb144127# 2ef884685Srb144127# CDDL HEADER START 3ef884685Srb144127# 4ef884685Srb144127# The contents of this file are subject to the terms of the 5ef884685Srb144127# Common Development and Distribution License (the "License"). 6ef884685Srb144127# You may not use this file except in compliance with the License. 7ef884685Srb144127# 8ef884685Srb144127# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9ef884685Srb144127# or http://www.opensolaris.org/os/licensing. 10ef884685Srb144127# See the License for the specific language governing permissions 11ef884685Srb144127# and limitations under the License. 12ef884685Srb144127# 13ef884685Srb144127# When distributing Covered Code, include this CDDL HEADER in each 14ef884685Srb144127# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15ef884685Srb144127# If applicable, add the following below this CDDL HEADER, with the 16ef884685Srb144127# fields enclosed by brackets "[]" replaced with your own identifying 17ef884685Srb144127# information: Portions Copyright [yyyy] [name of copyright owner] 18ef884685Srb144127# 19ef884685Srb144127# CDDL HEADER END 20ef884685Srb144127# 21ef884685Srb144127# 22ef884685Srb144127# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 23ef884685Srb144127# Use is subject to license terms. 24ef884685Srb144127# 25*7014882cSRichard Lowe 26ef884685Srb144127# 27ef884685Srb144127# This makefile drives the production of the pseudo device 28ef884685Srb144127# to access the sun4v PRI 29ef884685Srb144127# 30ef884685Srb144127# sun4v implementation architecture dependent 31ef884685Srb144127# 32ef884685Srb144127 33ef884685Srb144127# 34ef884685Srb144127# Path to the base of the uts directory tree (usually /usr/src/uts). 35ef884685Srb144127# 36ef884685Srb144127UTSBASE = ../.. 37ef884685Srb144127 38ef884685Srb144127# 39ef884685Srb144127# Define the module and object file sets. 40ef884685Srb144127# 41ef884685Srb144127MODULE = ds_pri 42ef884685Srb144127OBJECTS = $(DS_PRI_OBJS:%=$(OBJS_DIR)/%) 43ef884685Srb144127LINTS = $(DS_PRI_OBJS:%.o=$(LINTS_DIR)/%.ln) 44ef884685Srb144127ROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) 45ef884685Srb144127CONF_SRCDIR = $(UTSBASE)/sun4v/io 46ef884685Srb144127 47ef884685Srb144127# 48ef884685Srb144127# Include common rules. 49ef884685Srb144127# 50ef884685Srb144127include $(UTSBASE)/sun4v/Makefile.sun4v 51ef884685Srb144127 52ef884685Srb144127# 53ef884685Srb144127# Override defaults to build a unique, local modstubs.o. 54ef884685Srb144127# 55ef884685Srb144127MODSTUBS_DIR = $(OBJS_DIR) 56ef884685Srb144127 57ef884685Srb144127CLEANFILES += $(MODSTUBS_O) 58ef884685Srb144127 59ef884685Srb144127# 60ef884685Srb144127# Define targets 61ef884685Srb144127# 62ef884685Srb144127ALL_TARGET = $(BINARY) $(SRC_CONFILE) 63ef884685Srb144127LINT_TARGET = $(MODULE).lint 64ef884685Srb144127INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 65ef884685Srb144127 66ef884685Srb144127# 67ef884685Srb144127# lint pass one enforcement 68ef884685Srb144127# 69*7014882cSRichard LoweCFLAGS += $(CCVERBOSE) 70*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 71ef884685Srb144127 72ef884685Srb144127# 73ef884685Srb144127# Module Dependencies 74ef884685Srb144127LDFLAGS += -dy -Nmisc/ds 75ef884685Srb144127 76ef884685Srb144127# 77ef884685Srb144127# Default build targets. 78ef884685Srb144127# 79ef884685Srb144127.KEEP_STATE: 80ef884685Srb144127 81ef884685Srb144127def: $(DEF_DEPS) 82ef884685Srb144127 83ef884685Srb144127all: $(ALL_DEPS) 84ef884685Srb144127 85ef884685Srb144127clean: $(CLEAN_DEPS) 86ef884685Srb144127 87ef884685Srb144127clobber: $(CLOBBER_DEPS) 88ef884685Srb144127 89ef884685Srb144127lint: $(LINT_DEPS) 90ef884685Srb144127 91ef884685Srb144127modlintlib: $(MODLINTLIB_DEPS) 92ef884685Srb144127 93ef884685Srb144127clean.lint: $(CLEAN_LINT_DEPS) 94ef884685Srb144127 95ef884685Srb144127install: $(INSTALL_DEPS) 96ef884685Srb144127 97ef884685Srb144127# 98ef884685Srb144127# Include common targets. 99ef884685Srb144127# 100ef884685Srb144127include $(UTSBASE)/$(PLATFORM)/Makefile.targ 101