Makefile revision 4bac220845f606f60663ed6f3a2b88caa00ae87e
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# CDDL HEADER START
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# The contents of this file are subject to the terms of the
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# Common Development and Distribution License (the "License").
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# You may not use this file except in compliance with the License.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# or http://www.opensolaris.org/os/licensing.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# See the License for the specific language governing permissions
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# and limitations under the License.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# When distributing Covered Code, include this CDDL HEADER in each
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# If applicable, add the following below this CDDL HEADER, with the
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# fields enclosed by brackets "[]" replaced with your own identifying
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# information: Portions Copyright [yyyy] [name of copyright owner]
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# CDDL HEADER END
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
dc20a3024900c47dd2ee44b9707e6df38f7d62a5as#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# Use is subject to license terms.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# uts/sun4v/vds/Makefile
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#pragma ident "%Z%%M% %I% %E% SMI"
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# This makefile drives the production of the vds driver module.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# sun4v implementation architecture dependent
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# Path to the base of the uts directory tree (usually /usr/src/uts).
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwUTSBASE = ../..
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# Define the module and object file sets.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwMODULE = vds
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwOBJECTS = $(VDS_OBJS:%=$(OBJS_DIR)/%)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwLINTS = $(VDS_OBJS:%.o=$(LINTS_DIR)/%.ln)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# Include common rules.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwinclude $(UTSBASE)/sun4v/Makefile.sun4v
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# Override defaults to build a unique, local modstubs.o.
dc20a3024900c47dd2ee44b9707e6df38f7d62a5as#
dc20a3024900c47dd2ee44b9707e6df38f7d62a5asMODSTUBS_DIR = $(OBJS_DIR)
dc20a3024900c47dd2ee44b9707e6df38f7d62a5as
dc20a3024900c47dd2ee44b9707e6df38f7d62a5asCLEANFILES += $(MODSTUBS_O)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
dc20a3024900c47dd2ee44b9707e6df38f7d62a5as#
dc20a3024900c47dd2ee44b9707e6df38f7d62a5as# Define targets
dc20a3024900c47dd2ee44b9707e6df38f7d62a5as#
dc20a3024900c47dd2ee44b9707e6df38f7d62a5asALL_TARGET = $(BINARY)
dc20a3024900c47dd2ee44b9707e6df38f7d62a5asLINT_TARGET = $(MODULE).lint
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
dc20a3024900c47dd2ee44b9707e6df38f7d62a5as
dc20a3024900c47dd2ee44b9707e6df38f7d62a5as#
dc20a3024900c47dd2ee44b9707e6df38f7d62a5as# lint pass one enforcement
dc20a3024900c47dd2ee44b9707e6df38f7d62a5as#
dc20a3024900c47dd2ee44b9707e6df38f7d62a5asCFLAGS += $(CCVERBOSE)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCPPFLAGS += -D_SUN4V_VDS
dc20a3024900c47dd2ee44b9707e6df38f7d62a5as
dc20a3024900c47dd2ee44b9707e6df38f7d62a5as#
dc20a3024900c47dd2ee44b9707e6df38f7d62a5as# module dependencies
dc20a3024900c47dd2ee44b9707e6df38f7d62a5as#
dc20a3024900c47dd2ee44b9707e6df38f7d62a5asLDFLAGS += -dy -Nmisc/ldc -Nmisc/platsvc
dc20a3024900c47dd2ee44b9707e6df38f7d62a5as
dc20a3024900c47dd2ee44b9707e6df38f7d62a5as#
dc20a3024900c47dd2ee44b9707e6df38f7d62a5as# Manually turn on C99 compilation until the sync with snv_38 re-enables it
dc20a3024900c47dd2ee44b9707e6df38f7d62a5as#
dc20a3024900c47dd2ee44b9707e6df38f7d62a5asC99MODE = $(C99_ENABLE)
dc20a3024900c47dd2ee44b9707e6df38f7d62a5as
dc20a3024900c47dd2ee44b9707e6df38f7d62a5as#
dc20a3024900c47dd2ee44b9707e6df38f7d62a5as# Default build targets.
dc20a3024900c47dd2ee44b9707e6df38f7d62a5as#
dc20a3024900c47dd2ee44b9707e6df38f7d62a5as.KEEP_STATE:
dc20a3024900c47dd2ee44b9707e6df38f7d62a5as
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwdef: $(DEF_DEPS)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwall: $(ALL_DEPS)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwclean: $(CLEAN_DEPS)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwclobber: $(CLOBBER_DEPS)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwlint: $(LINT_DEPS)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwmodlintlib: $(MODLINTLIB_DEPS)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwclean.lint: $(CLEAN_LINT_DEPS)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwinstall: $(INSTALL_DEPS)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# Include common targets.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwinclude $(UTSBASE)/$(PLATFORM)/Makefile.targ
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw