Makefile revision 494f7e12a62129ef191a15f9dfde6b7abe3bf510
146N/A#
146N/A# CDDL HEADER START
146N/A#
146N/A# The contents of this file are subject to the terms of the
146N/A# Common Development and Distribution License (the "License").
146N/A# You may not use this file except in compliance with the License.
146N/A#
146N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
146N/A# or http://www.opensolaris.org/os/licensing.
146N/A# See the License for the specific language governing permissions
146N/A# and limitations under the License.
146N/A#
146N/A# When distributing Covered Code, include this CDDL HEADER in each
146N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
146N/A# If applicable, add the following below this CDDL HEADER, with the
146N/A# fields enclosed by brackets "[]" replaced with your own identifying
146N/A# information: Portions Copyright [yyyy] [name of copyright owner]
146N/A#
146N/A# CDDL HEADER END
146N/A#
146N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
146N/A# Use is subject to license terms.
146N/A#
146N/A# This makefile drives the production of the TPM driver kernel
146N/A# module.
146N/A#
146N/A
614N/AUTSBASE = $(SRC)/uts
614N/A
614N/A#
614N/A# Define the module and object file sets.
614N/A#
614N/AMODULE = tpm
146N/AOBJECTS = $(TPM_OBJS:%=$(OBJS_DIR)/%)
146N/ALINTS = $(TPM_OBJS:%.o=$(LINTS_DIR)/%.ln)
146N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
146N/A
146N/A#
146N/A# Include common rules.
146N/A#
146N/A# For now, TPM only delivers on x86/64 platforms, so only build
146N/A# with the Intel rules.
146N/A#
146N/Ainclude $(UTSBASE)/intel/Makefile.intel
206N/A
206N/A#
146N/A# Define targets
146N/A#
206N/AALL_TARGET = $(BINARY)
146N/ALINT_TARGET = $(MODULE).lint
146N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
146N/A
146N/A#
146N/A# Dependency
146N/A#
146N/ALDFLAGS += -dy
146N/A
146N/ACFLAGS += -xCC
146N/A
146N/A# This is for everything except /usr/include/tss/
146N/ACPPFLAGS += -I$(ROOT)/usr/include
146N/A
146N/A# This is for /usr/include/tss/, which is not built in the ON consolidation
146N/ACPPFLAGS += -I$(ADJUNCT_PROTO)/usr/include
146N/A
146N/ACERRWARN += -_gcc=-Wno-parentheses
146N/A
146N/A#
181N/A# Default build targets.
146N/A#
146N/A.KEEP_STATE:
146N/A
146N/Adef: $(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 $(UTSBASE)/intel/Makefile.targ
$(OBJECTS): $(OBJS_DIR)