927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy#
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy# CDDL HEADER START
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy#
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy# The contents of this file are subject to the terms of the
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy# Common Development and Distribution License (the "License").
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy# You may not use this file except in compliance with the License.
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy#
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy# or http://www.opensolaris.org/os/licensing.
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy# See the License for the specific language governing permissions
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy# and limitations under the License.
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy#
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy# When distributing Covered Code, include this CDDL HEADER in each
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy# If applicable, add the following below this CDDL HEADER, with the
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy# fields enclosed by brackets "[]" replaced with your own identifying
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy# information: Portions Copyright [yyyy] [name of copyright owner]
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy#
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy# CDDL HEADER END
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy#
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy#
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy# Use is subject to license terms.
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy#
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy# ident "%Z%%M% %I% %E% SMI"
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy#
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy# This makefile drives the production of the ntwdt driver module.
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy#
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy# sun4v implementation architecture dependent
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy#
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy#
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy# Path to the base of the uts directory tree (usually /usr/src/uts).
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy#
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoyUTSBASE = ../..
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy#
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy# Define the module and object file sets.
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy#
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoyMODULE = ntwdt
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoyOBJECTS = $(NTWDT_OBJS:%=$(OBJS_DIR)/%)
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoyLINTS = $(NTWDT_OBJS:%.o=$(LINTS_DIR)/%.ln)
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoyROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE)
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoyCONF_SRCDIR = $(UTSBASE)/sun4v/io
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy#
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy# Include common rules.
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy#
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoyinclude $(UTSBASE)/sun4v/Makefile.sun4v
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy#
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy# Override defaults to build a unique, local modstubs.o.
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy#
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoyMODSTUBS_DIR = $(OBJS_DIR)
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoyCLEANFILES += $(MODSTUBS_O)
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy#
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy# Define targets
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy#
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoyALL_TARGET = $(BINARY) $(SRC_CONFILE)
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoyLINT_TARGET = $(MODULE).lint
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoyINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy#
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy# lint pass one enforcement
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy#
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoyCFLAGS += -v
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy#
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy# Default build targets.
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy#
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy.KEEP_STATE:
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoydef: $(DEF_DEPS)
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoyall: $(ALL_DEPS)
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoyclean: $(CLEAN_DEPS)
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoyclobber: $(CLOBBER_DEPS)
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoylint: $(LINT_DEPS)
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoymodlintlib: $(MODLINTLIB_DEPS)
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoyclean.lint: $(CLEAN_LINT_DEPS)
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoyinstall: $(INSTALL_DEPS)
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy#
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy# Include common targets.
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoy#
927a453e165c072d45bd6aa2945b3db0fce17c56wentaoyinclude $(UTSBASE)/$(PLATFORM)/Makefile.targ