147e946e7SWyllys Ingersoll# 247e946e7SWyllys Ingersoll# CDDL HEADER START 347e946e7SWyllys Ingersoll# 447e946e7SWyllys Ingersoll# The contents of this file are subject to the terms of the 547e946e7SWyllys Ingersoll# Common Development and Distribution License (the "License"). 647e946e7SWyllys Ingersoll# You may not use this file except in compliance with the License. 747e946e7SWyllys Ingersoll# 847e946e7SWyllys Ingersoll# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 947e946e7SWyllys Ingersoll# or http://www.opensolaris.org/os/licensing. 1047e946e7SWyllys Ingersoll# See the License for the specific language governing permissions 1147e946e7SWyllys Ingersoll# and limitations under the License. 1247e946e7SWyllys Ingersoll# 1347e946e7SWyllys Ingersoll# When distributing Covered Code, include this CDDL HEADER in each 1447e946e7SWyllys Ingersoll# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1547e946e7SWyllys Ingersoll# If applicable, add the following below this CDDL HEADER, with the 1647e946e7SWyllys Ingersoll# fields enclosed by brackets "[]" replaced with your own identifying 1747e946e7SWyllys Ingersoll# information: Portions Copyright [yyyy] [name of copyright owner] 1847e946e7SWyllys Ingersoll# 1947e946e7SWyllys Ingersoll# CDDL HEADER END 2047e946e7SWyllys Ingersoll# 2147e946e7SWyllys Ingersoll# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 2247e946e7SWyllys Ingersoll# Use is subject to license terms. 2347e946e7SWyllys Ingersoll# 24b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc. 25e9fe7b35SJason King# Copyright 2021 Jason King 2647e946e7SWyllys Ingersoll 27*d363b1b0SRichard LoweUTSBASE = ../.. 2847e946e7SWyllys Ingersoll 2947e946e7SWyllys Ingersoll# 3047e946e7SWyllys Ingersoll# Define the module and object file sets. 3147e946e7SWyllys Ingersoll# 3247e946e7SWyllys IngersollMODULE = tpm 3347e946e7SWyllys IngersollOBJECTS = $(TPM_OBJS:%=$(OBJS_DIR)/%) 3447e946e7SWyllys IngersollROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 3547e946e7SWyllys Ingersoll 3647e946e7SWyllys Ingersoll# 3747e946e7SWyllys Ingersoll# Include common rules. 3847e946e7SWyllys Ingersoll# 3947e946e7SWyllys Ingersoll# For now, TPM only delivers on x86/64 platforms, so only build 4047e946e7SWyllys Ingersoll# with the Intel rules. 4147e946e7SWyllys Ingersoll# 4247e946e7SWyllys Ingersollinclude $(UTSBASE)/intel/Makefile.intel 4347e946e7SWyllys Ingersoll 4447e946e7SWyllys Ingersoll# 4547e946e7SWyllys Ingersoll# Define targets 4647e946e7SWyllys Ingersoll# 47d25a0be9SWyllys IngersollALL_TARGET = $(BINARY) 48d25a0be9SWyllys IngersollINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 4947e946e7SWyllys Ingersoll 50d553bafdSWyllys Ingersoll# This is for everything except /usr/include/tss/ 51d553bafdSWyllys IngersollCPPFLAGS += -I$(ROOT)/usr/include 52d553bafdSWyllys Ingersoll 53d553bafdSWyllys Ingersoll# This is for /usr/include/tss/, which is not built in the ON consolidation 54494f7e12SKeith M WesolowskiCPPFLAGS += -I$(ADJUNCT_PROTO)/usr/include 5547e946e7SWyllys Ingersoll 567014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 577014882cSRichard Lowe 5847e946e7SWyllys Ingersoll# 5947e946e7SWyllys Ingersoll# Default build targets. 6047e946e7SWyllys Ingersoll# 6147e946e7SWyllys Ingersoll.KEEP_STATE: 6247e946e7SWyllys Ingersoll 6347e946e7SWyllys Ingersolldef: $(DEF_DEPS) 6447e946e7SWyllys Ingersoll 6547e946e7SWyllys Ingersollall: $(ALL_DEPS) 6647e946e7SWyllys Ingersoll 6747e946e7SWyllys Ingersollclean: $(CLEAN_DEPS) 6847e946e7SWyllys Ingersoll 6947e946e7SWyllys Ingersollclobber: $(CLOBBER_DEPS) 7047e946e7SWyllys Ingersoll 7147e946e7SWyllys Ingersollinstall: $(INSTALL_DEPS) 7247e946e7SWyllys Ingersoll 7347e946e7SWyllys Ingersollinclude $(UTSBASE)/intel/Makefile.targ 7447e946e7SWyllys Ingersoll 7547e946e7SWyllys Ingersoll$(OBJECTS): $(OBJS_DIR) 76