Makefile revision 47e946e784719ae402ace34695f67b0e6e76ae5c
cca4aeeead1985f503d175eb1fcad9ed66f2e25dLennart Poettering#
cca4aeeead1985f503d175eb1fcad9ed66f2e25dLennart Poettering# CDDL HEADER START
cca4aeeead1985f503d175eb1fcad9ed66f2e25dLennart Poettering#
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering# The contents of this file are subject to the terms of the
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering# Common Development and Distribution License (the "License").
cca4aeeead1985f503d175eb1fcad9ed66f2e25dLennart Poettering# You may not use this file except in compliance with the License.
cca4aeeead1985f503d175eb1fcad9ed66f2e25dLennart Poettering#
cca4aeeead1985f503d175eb1fcad9ed66f2e25dLennart Poettering# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
cca4aeeead1985f503d175eb1fcad9ed66f2e25dLennart Poettering# or http://www.opensolaris.org/os/licensing.
cca4aeeead1985f503d175eb1fcad9ed66f2e25dLennart Poettering# See the License for the specific language governing permissions
9261bb7c5058fd543e42020f72f5762349f92c65Tom Gundersen# and limitations under the License.
9261bb7c5058fd543e42020f72f5762349f92c65Tom Gundersen#
9261bb7c5058fd543e42020f72f5762349f92c65Tom Gundersen# When distributing Covered Code, include this CDDL HEADER in each
9261bb7c5058fd543e42020f72f5762349f92c65Tom Gundersen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9261bb7c5058fd543e42020f72f5762349f92c65Tom Gundersen# If applicable, add the following below this CDDL HEADER, with the
9261bb7c5058fd543e42020f72f5762349f92c65Tom Gundersen# fields enclosed by brackets "[]" replaced with your own identifying
9261bb7c5058fd543e42020f72f5762349f92c65Tom Gundersen# information: Portions Copyright [yyyy] [name of copyright owner]
9261bb7c5058fd543e42020f72f5762349f92c65Tom Gundersen#
9261bb7c5058fd543e42020f72f5762349f92c65Tom Gundersen# CDDL HEADER END
cca4aeeead1985f503d175eb1fcad9ed66f2e25dLennart Poettering#
cca4aeeead1985f503d175eb1fcad9ed66f2e25dLennart Poettering# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
cca4aeeead1985f503d175eb1fcad9ed66f2e25dLennart Poettering# Use is subject to license terms.
cca4aeeead1985f503d175eb1fcad9ed66f2e25dLennart Poettering#
cca4aeeead1985f503d175eb1fcad9ed66f2e25dLennart Poettering# This makefile drives the production of the TPM driver kernel
cca4aeeead1985f503d175eb1fcad9ed66f2e25dLennart Poettering# module.
cca4aeeead1985f503d175eb1fcad9ed66f2e25dLennart Poettering#
9261bb7c5058fd543e42020f72f5762349f92c65Tom Gundersen
9261bb7c5058fd543e42020f72f5762349f92c65Tom GundersenUTSBASE = $(SRC)/uts
9261bb7c5058fd543e42020f72f5762349f92c65Tom Gundersen
9261bb7c5058fd543e42020f72f5762349f92c65Tom Gundersen#
9261bb7c5058fd543e42020f72f5762349f92c65Tom Gundersen# Define the module and object file sets.
9261bb7c5058fd543e42020f72f5762349f92c65Tom Gundersen#
9261bb7c5058fd543e42020f72f5762349f92c65Tom GundersenMODULE = tpm
9261bb7c5058fd543e42020f72f5762349f92c65Tom GundersenOBJECTS = $(TPM_OBJS:%=$(OBJS_DIR)/%)
LINTS = $(TPM_OBJS:%.o=$(LINTS_DIR)/%.ln)
ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
CONF_SRCDIR = $(UTSBASE)/common/io/tpm
#
# Include common rules.
#
# For now, TPM only delivers on x86/64 platforms, so only build
# with the Intel rules.
#
include $(UTSBASE)/intel/Makefile.intel
#
# Define targets
#
ALL_TARGET = $(BINARY) $(SRC_CONFILE)
LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
#
# Dependency
#
LDFLAGS += -dy
CFLAGS += -xCC -I/usr/include
LINTFLAGS += -I/usr/include
#
# 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 $(UTSBASE)/intel/Makefile.targ
$(OBJECTS): $(OBJS_DIR)