Makefile revision 1029
9N/A#
9N/A# CDDL HEADER START
9N/A#
9N/A# The contents of this file are subject to the terms of the
9N/A# Common Development and Distribution License, Version 1.0 only
9N/A# (the "License"). You may not use this file except in compliance
9N/A# with the License.
9N/A#
9N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9N/A# or http://www.opensolaris.org/os/licensing.
9N/A# See the License for the specific language governing permissions
9N/A# and limitations under the License.
9N/A#
9N/A# When distributing Covered Code, include this CDDL HEADER in each
9N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9N/A# If applicable, add the following below this CDDL HEADER, with the
9N/A# fields enclosed by brackets "[]" replaced with your own identifying
9N/A# information: Portions Copyright [yyyy] [name of copyright owner]
9N/A#
9N/A# CDDL HEADER END
2321N/A#
9N/A#
9N/A# uts/sun4v/cpc/Makefile
9N/A# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
9N/A# Use is subject to license terms.
814N/A#
1470N/A#ident "%Z%%M% %I% %E% SMI"
814N/A#
814N/A# This makefile drives the production of the cpc kernel module.
814N/A#
814N/A# sun4v implementation architecture dependent
814N/A#
2321N/A
2321N/A#
2321N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
814N/A#
1845N/AUTSBASE = ../..
814N/A
1845N/A#
1845N/A# Define the module and object file sets.
1845N/A#
1845N/AMODULE = cpc
1845N/AOBJECTS = $(CPC_OBJS:%=$(OBJS_DIR)/%)
2321N/ALINTS = $(CPC_OBJS:%.o=$(LINTS_DIR)/%.ln)
2321N/AROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE)
1845N/AROOTLINK = $(ROOT_PSM_SYS_DIR)/$(MODULE)
1845N/ACONF_SRCDIR = $(UTSBASE)/common/io
1845N/A
814N/A#
2051N/A# Include common rules.
2051N/A#
2051N/Ainclude $(UTSBASE)/sun4v/Makefile.sun4v
2051N/A
2051N/A#
2051N/A# Define targets
2051N/A#
2051N/AALL_TARGET = $(BINARY) $(SRC_CONFFILE)
814N/ALINT_TARGET = $(MODULE).lint
1470N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK) $(ROOT_CONFFILE)
1470N/A
1470N/A#
1470N/A# lint pass one enforcement
1470N/A#
1470N/ACFLAGS += $(CCVERBOSE)
1470N/A
16N/A#
16N/A# Default build targets.
16N/A#
16N/A.KEEP_STATE:
16N/A
1470N/Adef: $(DEF_DEPS)
9N/A
16N/Aall: $(ALL_DEPS)
1470N/A
16N/Aclean: $(CLEAN_DEPS)
16N/A
1470N/Aclobber: $(CLOBBER_DEPS)
1470N/A
16N/Alint: $(LINT_DEPS)
16N/A
1470N/Amodlintlib: $(MODLINTLIB_DEPS)
2051N/A
814N/Aclean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
$(ROOTLINK): $(ROOT_PSM_SYS_DIR) $(ROOTMODULE)
-$(RM) $@; ln $(ROOTMODULE) $@
#
# Include common targets.
#
include $(UTSBASE)/$(PLATFORM)/Makefile.targ