Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023eh# CDDL HEADER START
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023eh# The contents of this file are subject to the terms of the
bb5e3b2f129cc39517b925419c22f69a378ec023eh# Common Development and Distribution License, Version 1.0 only
bb5e3b2f129cc39517b925419c22f69a378ec023eh# (the "License"). You may not use this file except in compliance
bb5e3b2f129cc39517b925419c22f69a378ec023eh# with the License.
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023eh# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
bb5e3b2f129cc39517b925419c22f69a378ec023eh# or http://www.opensolaris.org/os/licensing.
bb5e3b2f129cc39517b925419c22f69a378ec023eh# See the License for the specific language governing permissions
bb5e3b2f129cc39517b925419c22f69a378ec023eh# and limitations under the License.
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023eh# When distributing Covered Code, include this CDDL HEADER in each
bb5e3b2f129cc39517b925419c22f69a378ec023eh# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
bb5e3b2f129cc39517b925419c22f69a378ec023eh# If applicable, add the following below this CDDL HEADER, with the
bb5e3b2f129cc39517b925419c22f69a378ec023eh# fields enclosed by brackets "[]" replaced with your own identifying
bb5e3b2f129cc39517b925419c22f69a378ec023eh# information: Portions Copyright [yyyy] [name of copyright owner]
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023eh# CDDL HEADER END
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023eh# uts/sun4v/cpc/Makefile
bb5e3b2f129cc39517b925419c22f69a378ec023eh# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
bb5e3b2f129cc39517b925419c22f69a378ec023eh# Use is subject to license terms.
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023eh#ident "%Z%%M% %I% %E% SMI"
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023eh# This makefile drives the production of the cpc kernel module.
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023eh# sun4v implementation architecture dependent
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023eh
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023eh# Path to the base of the uts directory tree (usually /usr/src/uts).
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023ehUTSBASE = ../..
bb5e3b2f129cc39517b925419c22f69a378ec023eh
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023eh# Define the module and object file sets.
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023ehMODULE = cpc
bb5e3b2f129cc39517b925419c22f69a378ec023ehOBJECTS = $(CPC_OBJS:%=$(OBJS_DIR)/%)
bb5e3b2f129cc39517b925419c22f69a378ec023ehLINTS = $(CPC_OBJS:%.o=$(LINTS_DIR)/%.ln)
bb5e3b2f129cc39517b925419c22f69a378ec023ehROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE)
bb5e3b2f129cc39517b925419c22f69a378ec023ehROOTLINK = $(ROOT_PSM_SYS_DIR)/$(MODULE)
bb5e3b2f129cc39517b925419c22f69a378ec023ehCONF_SRCDIR = $(UTSBASE)/common/io
bb5e3b2f129cc39517b925419c22f69a378ec023eh
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023eh# Include common rules.
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023ehinclude $(UTSBASE)/sun4v/Makefile.sun4v
bb5e3b2f129cc39517b925419c22f69a378ec023eh
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023eh# Define targets
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023ehALL_TARGET = $(BINARY) $(SRC_CONFFILE)
bb5e3b2f129cc39517b925419c22f69a378ec023ehLINT_TARGET = $(MODULE).lint
bb5e3b2f129cc39517b925419c22f69a378ec023ehINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK) $(ROOT_CONFFILE)
bb5e3b2f129cc39517b925419c22f69a378ec023eh
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023eh# lint pass one enforcement
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023ehCFLAGS += $(CCVERBOSE)
bb5e3b2f129cc39517b925419c22f69a378ec023eh
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023eh# Default build targets.
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023eh.KEEP_STATE:
bb5e3b2f129cc39517b925419c22f69a378ec023eh
bb5e3b2f129cc39517b925419c22f69a378ec023ehdef: $(DEF_DEPS)
bb5e3b2f129cc39517b925419c22f69a378ec023eh
bb5e3b2f129cc39517b925419c22f69a378ec023ehall: $(ALL_DEPS)
bb5e3b2f129cc39517b925419c22f69a378ec023eh
bb5e3b2f129cc39517b925419c22f69a378ec023ehclean: $(CLEAN_DEPS)
bb5e3b2f129cc39517b925419c22f69a378ec023eh
bb5e3b2f129cc39517b925419c22f69a378ec023ehclobber: $(CLOBBER_DEPS)
bb5e3b2f129cc39517b925419c22f69a378ec023eh
bb5e3b2f129cc39517b925419c22f69a378ec023ehlint: $(LINT_DEPS)
bb5e3b2f129cc39517b925419c22f69a378ec023eh
bb5e3b2f129cc39517b925419c22f69a378ec023ehmodlintlib: $(MODLINTLIB_DEPS)
bb5e3b2f129cc39517b925419c22f69a378ec023eh
bb5e3b2f129cc39517b925419c22f69a378ec023ehclean.lint: $(CLEAN_LINT_DEPS)
bb5e3b2f129cc39517b925419c22f69a378ec023eh
bb5e3b2f129cc39517b925419c22f69a378ec023ehinstall: $(INSTALL_DEPS)
bb5e3b2f129cc39517b925419c22f69a378ec023eh
bb5e3b2f129cc39517b925419c22f69a378ec023eh$(ROOTLINK): $(ROOT_PSM_SYS_DIR) $(ROOTMODULE)
bb5e3b2f129cc39517b925419c22f69a378ec023eh -$(RM) $@; ln $(ROOTMODULE) $@
bb5e3b2f129cc39517b925419c22f69a378ec023eh
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023eh# Include common targets.
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023ehinclude $(UTSBASE)/$(PLATFORM)/Makefile.targ