1*47e946e7SWyllys Ingersoll# 2*47e946e7SWyllys Ingersoll# CDDL HEADER START 3*47e946e7SWyllys Ingersoll# 4*47e946e7SWyllys Ingersoll# The contents of this file are subject to the terms of the 5*47e946e7SWyllys Ingersoll# Common Development and Distribution License (the "License"). 6*47e946e7SWyllys Ingersoll# You may not use this file except in compliance with the License. 7*47e946e7SWyllys Ingersoll# 8*47e946e7SWyllys Ingersoll# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*47e946e7SWyllys Ingersoll# or http://www.opensolaris.org/os/licensing. 10*47e946e7SWyllys Ingersoll# See the License for the specific language governing permissions 11*47e946e7SWyllys Ingersoll# and limitations under the License. 12*47e946e7SWyllys Ingersoll# 13*47e946e7SWyllys Ingersoll# When distributing Covered Code, include this CDDL HEADER in each 14*47e946e7SWyllys Ingersoll# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*47e946e7SWyllys Ingersoll# If applicable, add the following below this CDDL HEADER, with the 16*47e946e7SWyllys Ingersoll# fields enclosed by brackets "[]" replaced with your own identifying 17*47e946e7SWyllys Ingersoll# information: Portions Copyright [yyyy] [name of copyright owner] 18*47e946e7SWyllys Ingersoll# 19*47e946e7SWyllys Ingersoll# CDDL HEADER END 20*47e946e7SWyllys Ingersoll# 21*47e946e7SWyllys Ingersoll# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 22*47e946e7SWyllys Ingersoll# Use is subject to license terms. 23*47e946e7SWyllys Ingersoll# 24*47e946e7SWyllys Ingersoll# This makefile drives the production of the TPM driver kernel 25*47e946e7SWyllys Ingersoll# module. 26*47e946e7SWyllys Ingersoll# 27*47e946e7SWyllys Ingersoll 28*47e946e7SWyllys IngersollUTSBASE = $(SRC)/uts 29*47e946e7SWyllys Ingersoll 30*47e946e7SWyllys Ingersoll# 31*47e946e7SWyllys Ingersoll# Define the module and object file sets. 32*47e946e7SWyllys Ingersoll# 33*47e946e7SWyllys IngersollMODULE = tpm 34*47e946e7SWyllys IngersollOBJECTS = $(TPM_OBJS:%=$(OBJS_DIR)/%) 35*47e946e7SWyllys IngersollLINTS = $(TPM_OBJS:%.o=$(LINTS_DIR)/%.ln) 36*47e946e7SWyllys IngersollROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 37*47e946e7SWyllys IngersollCONF_SRCDIR = $(UTSBASE)/common/io/tpm 38*47e946e7SWyllys Ingersoll 39*47e946e7SWyllys Ingersoll# 40*47e946e7SWyllys Ingersoll# Include common rules. 41*47e946e7SWyllys Ingersoll# 42*47e946e7SWyllys Ingersoll# For now, TPM only delivers on x86/64 platforms, so only build 43*47e946e7SWyllys Ingersoll# with the Intel rules. 44*47e946e7SWyllys Ingersoll# 45*47e946e7SWyllys Ingersollinclude $(UTSBASE)/intel/Makefile.intel 46*47e946e7SWyllys Ingersoll 47*47e946e7SWyllys Ingersoll# 48*47e946e7SWyllys Ingersoll# Define targets 49*47e946e7SWyllys Ingersoll# 50*47e946e7SWyllys IngersollALL_TARGET = $(BINARY) $(SRC_CONFILE) 51*47e946e7SWyllys IngersollLINT_TARGET = $(MODULE).lint 52*47e946e7SWyllys IngersollINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 53*47e946e7SWyllys Ingersoll 54*47e946e7SWyllys Ingersoll# 55*47e946e7SWyllys Ingersoll# Dependency 56*47e946e7SWyllys Ingersoll# 57*47e946e7SWyllys IngersollLDFLAGS += -dy 58*47e946e7SWyllys Ingersoll 59*47e946e7SWyllys IngersollCFLAGS += -xCC -I/usr/include 60*47e946e7SWyllys IngersollLINTFLAGS += -I/usr/include 61*47e946e7SWyllys Ingersoll 62*47e946e7SWyllys Ingersoll# 63*47e946e7SWyllys Ingersoll# Default build targets. 64*47e946e7SWyllys Ingersoll# 65*47e946e7SWyllys Ingersoll.KEEP_STATE: 66*47e946e7SWyllys Ingersoll 67*47e946e7SWyllys Ingersolldef: $(DEF_DEPS) 68*47e946e7SWyllys Ingersoll 69*47e946e7SWyllys Ingersollall: $(ALL_DEPS) 70*47e946e7SWyllys Ingersoll 71*47e946e7SWyllys Ingersollclean: $(CLEAN_DEPS) 72*47e946e7SWyllys Ingersoll 73*47e946e7SWyllys Ingersollclobber: $(CLOBBER_DEPS) 74*47e946e7SWyllys Ingersoll 75*47e946e7SWyllys Ingersolllint: $(LINT_DEPS) 76*47e946e7SWyllys Ingersoll 77*47e946e7SWyllys Ingersollmodlintlib: $(MODLINTLIB_DEPS) 78*47e946e7SWyllys Ingersoll 79*47e946e7SWyllys Ingersollclean.lint: $(CLEAN_LINT_DEPS) 80*47e946e7SWyllys Ingersoll 81*47e946e7SWyllys Ingersollinstall: $(INSTALL_DEPS) 82*47e946e7SWyllys Ingersoll 83*47e946e7SWyllys Ingersollinclude $(UTSBASE)/intel/Makefile.targ 84*47e946e7SWyllys Ingersoll 85*47e946e7SWyllys Ingersoll$(OBJECTS): $(OBJS_DIR) 86