Makefile revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
1029N/A#
1029N/A# CDDL HEADER START
1356N/A#
1029N/A# The contents of this file are subject to the terms of the
1552N/A# Common Development and Distribution License (the "License").
1029N/A# You may not use this file except in compliance with the License.
1029N/A#
1123N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1123N/A# or http://www.opensolaris.org/os/licensing.
1123N/A# See the License for the specific language governing permissions
1123N/A# and limitations under the License.
1123N/A#
1123N/A# When distributing Covered Code, include this CDDL HEADER in each
1123N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1123N/A# If applicable, add the following below this CDDL HEADER, with the
1123N/A# fields enclosed by brackets "[]" replaced with your own identifying
1123N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1123N/A#
1123N/A# CDDL HEADER END
1123N/A#
1123N/A#
1123N/A# uts/sun4v/cpc/Makefile
1123N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
1123N/A# Use is subject to license terms.
1029N/A#
1029N/A#ident "%Z%%M% %I% %E% SMI"
1029N/A#
1029N/A# This makefile drives the production of the cpc kernel module.
1029N/A#
1029N/A# sun4v implementation architecture dependent
1552N/A#
1029N/A
1029N/A#
1552N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
1552N/A#
1552N/AUTSBASE = ../..
1029N/A
1029N/A#
1029N/A# Define the module and object file sets.
1123N/A#
1029N/AMODULE = cpc
1356N/AOBJECTS = $(CPC_OBJS:%=$(OBJS_DIR)/%)
1123N/ALINTS = $(CPC_OBJS:%.o=$(LINTS_DIR)/%.ln)
1123N/AROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE)
1552N/AROOTLINK = $(ROOT_PSM_SYS_DIR)/$(MODULE)
1392N/ACONF_SRCDIR = $(UTSBASE)/common/io
1029N/A
1029N/A#
1123N/A# Include common rules.
1029N/A#
1029N/Ainclude $(UTSBASE)/sun4v/Makefile.sun4v
1029N/A
1029N/A#
1029N/A# Define targets
1029N/A#
1029N/AALL_TARGET = $(BINARY) $(SRC_CONFFILE)
1029N/ALINT_TARGET = $(MODULE).lint
1418N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK) $(ROOT_CONFFILE)
1418N/A
1418N/A#
1123N/A# lint pass one enforcement
1029N/A#
1029N/ACFLAGS += $(CCVERBOSE)
1029N/A
1029N/A#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
#
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
#
# Default build targets.
#
.KEEP_STATE:
def: $(DEF_DEPS)
all: $(ALL_DEPS)
clean: $(CLEAN_DEPS)
clobber: $(CLOBBER_DEPS)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
$(ROOTLINK): $(ROOT_PSM_SYS_DIR) $(ROOTMODULE)
-$(RM) $@; ln $(ROOTMODULE) $@
#
# Include common targets.
#
include $(UTSBASE)/$(PLATFORM)/Makefile.targ