7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# CDDL HEADER START
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# The contents of this file are subject to the terms of the
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# Common Development and Distribution License (the "License").
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# You may not use this file except in compliance with the License.
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# or http://www.opensolaris.org/os/licensing.
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# See the License for the specific language governing permissions
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# and limitations under the License.
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# When distributing Covered Code, include this CDDL HEADER in each
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# If applicable, add the following below this CDDL HEADER, with the
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# fields enclosed by brackets "[]" replaced with your own identifying
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# information: Portions Copyright [yyyy] [name of copyright owner]
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# CDDL HEADER END
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# Use is subject to license terms.
7b1019a6d29ccb7999dc76cba3dde1c627e8e609Jerry Jelinek#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# uts/sun4v/vds/Makefile
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# This makefile drives the production of the vds driver module.
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# sun4v implementation architecture dependent
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# Path to the base of the uts directory tree (usually /usr/src/uts).
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy VetayasesUTSBASE = ../..
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# Define the module and object file sets.
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy VetayasesMODULE = vds
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy VetayasesOBJECTS = $(VDS_OBJS:%=$(OBJS_DIR)/%)
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy VetayasesLINTS = $(VDS_OBJS:%.o=$(LINTS_DIR)/%.ln)
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy VetayasesROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE)
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# Include common rules.
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayasesinclude $(UTSBASE)/sun4v/Makefile.sun4v
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# Override defaults to build a unique, local modstubs.o.
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy VetayasesMODSTUBS_DIR = $(OBJS_DIR)
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy VetayasesCLEANFILES += $(MODSTUBS_O)
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# Define targets
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy VetayasesALL_TARGET = $(BINARY)
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy VetayasesLINT_TARGET = $(MODULE).lint
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy VetayasesINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy VetayasesCFLAGS += $(CCVERBOSE)
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCFLAGS += -D_EXTVTOC
7b1019a6d29ccb7999dc76cba3dde1c627e8e609Jerry Jelinek
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-uninitialized
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# module dependencies
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy VetayasesLDFLAGS += -dy -Nmisc/ldc -Nmisc/platsvc
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# Default build targets.
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases#
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases.KEEP_STATE:
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayasesdef: $(DEF_DEPS)
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayasesall: $(ALL_DEPS)
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayasesclean: $(CLEAN_DEPS)
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayasesclobber: $(CLOBBER_DEPS)
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayaseslint: $(LINT_DEPS)
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayasesmodlintlib: $(MODLINTLIB_DEPS)
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayasesclean.lint: $(CLEAN_LINT_DEPS)
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayasesinstall: $(INSTALL_DEPS)
#
# Include common targets.
#
include $(UTSBASE)/$(PLATFORM)/Makefile.targ