Makefile revision 494f7e12a62129ef191a15f9dfde6b7abe3bf510
347N/A#
347N/A# CDDL HEADER START
347N/A#
347N/A# The contents of this file are subject to the terms of the
347N/A# Common Development and Distribution License (the "License").
347N/A# You may not use this file except in compliance with the License.
347N/A#
347N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
347N/A# or http://www.opensolaris.org/os/licensing.
347N/A# See the License for the specific language governing permissions
347N/A# and limitations under the License.
347N/A#
347N/A# When distributing Covered Code, include this CDDL HEADER in each
347N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
347N/A# If applicable, add the following below this CDDL HEADER, with the
347N/A# fields enclosed by brackets "[]" replaced with your own identifying
347N/A# information: Portions Copyright [yyyy] [name of copyright owner]
347N/A#
347N/A# CDDL HEADER END
347N/A#
347N/A#
347N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
347N/A# Use is subject to license terms.
347N/A#
347N/A#
347N/A# This makefile drives the production of the sun4v physical tpm
347N/A# kernel module.
347N/A#
347N/A# sun4v implementation architecture dependent
347N/A#
347N/A
347N/A#
347N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
347N/A#
347N/AUTSBASE = ../..
347N/A
347N/A#
347N/A# Define the module and object file sets.
347N/A#
347N/AMODULE = tpm
347N/AOBJECTS = $(TPM_OBJS:%=$(OBJS_DIR)/%)
347N/ALINTS = $(TPM_OBJS:%.o=$(LINTS_DIR)/%.ln)
347N/AROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE)
347N/A
347N/A#
347N/A# Include common rules.
347N/A#
347N/Ainclude $(UTSBASE)/sun4v/Makefile.sun4v
347N/A
347N/A#
347N/A# Override defaults to build a unique, local modstubs.o.
347N/A#
MODSTUBS_DIR = $(OBJS_DIR)
CLEANFILES += $(MODSTUBS_O)
#
# Define targets
#
ALL_TARGET = $(BINARY)
LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
#
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
CFLAGS += -xCC
# This is for everything except /usr/include/tss
CPPFLAGS += -I$(ROOT)/usr/include
# This is for /usr/include/tss/, which is not built in the ON consolidation
CPPFLAGS += -I$(ADJUNCT_PROTO)/usr/include
LDFLAGS += -dy -Nmisc/kcf
#
# 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_BAD_PTR_CAST_ALIGN
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
#
# 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