cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# CDDL HEADER START
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# The contents of this file are subject to the terms of the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Common Development and Distribution License (the "License").
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# You may not use this file except in compliance with the License.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# or http://www.opensolaris.org/os/licensing.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# See the License for the specific language governing permissions
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# and limitations under the License.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# When distributing Covered Code, include this CDDL HEADER in each
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# If applicable, add the following below this CDDL HEADER, with the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# fields enclosed by brackets "[]" replaced with your own identifying
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# CDDL HEADER END
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Use is subject to license terms.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# uts/sun4v/ldc/Makefile
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# This makefile drives the production of the LDC transport kernel module.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# sun4v implementation architecture dependent
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Path to the base of the uts directory tree (usually /usr/src/uts).
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncUTSBASE = ../..
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Define the module and object file sets.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncMODULE = ldc
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncOBJECTS = $(LDC_OBJS:%=$(OBJS_DIR)/%)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncLINTS = $(LDC_OBJS:%.o=$(LINTS_DIR)/%.ln)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncROOTMODULE = $(ROOT_PSM_MISC_DIR)/$(MODULE)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Include common rules.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncinclude $(UTSBASE)/sun4v/Makefile.sun4v
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Override defaults to build a unique, local modstubs.o.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncMODSTUBS_DIR = $(OBJS_DIR)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCLEANFILES += $(MODSTUBS_O)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Define targets
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncALL_TARGET = $(BINARY)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncLINT_TARGET = $(MODULE).lint
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# lint pass one enforcement
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCFLAGS += $(CCVERBOSE)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# For now, disable these lint checks; maintainers should endeavor
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# to investigate and remove these for maximum lint coverage.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Please do not carry these forward to new Makefiles.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCERRWARN += -_gcc=-Wno-uninitialized
CERRWARN += -_gcc=-Wno-parentheses
#
# 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)
#
# Include common targets.
#
include $(UTSBASE)/$(PLATFORM)/Makefile.targ