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# 2447e946e7SWyllys IngersollLIBRARY = pkcs11_tpm.a 2547e946e7SWyllys IngersollVERS = .1 2647e946e7SWyllys Ingersoll 2747e946e7SWyllys IngersollOBJECTS= api_interface.o \ 2847e946e7SWyllys Ingersoll apiutil.o \ 2947e946e7SWyllys Ingersoll asn1.o \ 3047e946e7SWyllys Ingersoll cert.o \ 3147e946e7SWyllys Ingersoll data_obj.o \ 3247e946e7SWyllys Ingersoll decr_mgr.o \ 3347e946e7SWyllys Ingersoll dig_mgr.o \ 3447e946e7SWyllys Ingersoll encr_mgr.o \ 3547e946e7SWyllys Ingersoll globals.o \ 3647e946e7SWyllys Ingersoll hwf_obj.o \ 3747e946e7SWyllys Ingersoll key.o \ 3847e946e7SWyllys Ingersoll key_mgr.o \ 3947e946e7SWyllys Ingersoll loadsave.o \ 4047e946e7SWyllys Ingersoll log.o \ 4147e946e7SWyllys Ingersoll mech_md5.o \ 4247e946e7SWyllys Ingersoll mech_rsa.o \ 4347e946e7SWyllys Ingersoll mech_sha.o \ 4447e946e7SWyllys Ingersoll new_host.o \ 4547e946e7SWyllys Ingersoll obj_mgr.o \ 4647e946e7SWyllys Ingersoll object.o \ 4747e946e7SWyllys Ingersoll sess_mgr.o \ 4847e946e7SWyllys Ingersoll sign_mgr.o \ 4947e946e7SWyllys Ingersoll template.o \ 5047e946e7SWyllys Ingersoll tpm_specific.o \ 5147e946e7SWyllys Ingersoll utility.o \ 5247e946e7SWyllys Ingersoll verify_mgr.o 5347e946e7SWyllys Ingersoll 5447e946e7SWyllys Ingersoll 5547e946e7SWyllys Ingersollinclude $(SRC)/lib/Makefile.lib 5647e946e7SWyllys Ingersoll 5747e946e7SWyllys IngersollSRCDIR= ../common 5847e946e7SWyllys Ingersoll 5947e946e7SWyllys IngersollSRCS= $(OBJECTS:%.o=$(SRCDIR)/%.c) 6047e946e7SWyllys Ingersoll 6147e946e7SWyllys Ingersoll# set signing mode 6247e946e7SWyllys IngersollPOST_PROCESS_SO += ; $(ELFSIGN_CRYPTO) 6347e946e7SWyllys Ingersoll 6447e946e7SWyllys IngersollROOTLIBDIR=$(ROOT)/usr/lib/security 6547e946e7SWyllys IngersollROOTLIBDIR64=$(ROOT)/usr/lib/security/$(MACH64) 6647e946e7SWyllys Ingersoll 6747e946e7SWyllys IngersollLIBS=$(DYNLIB) $(DYNLIB64) 6847e946e7SWyllys Ingersoll 69494f7e12SKeith M WesolowskiTSSROOT=$(ADJUNCT_PROTO) 7047e946e7SWyllys IngersollTSPILIBDIR=$(TSSROOT)/usr/lib 7147e946e7SWyllys IngersollTSPIINCDIR=$(TSSROOT)/usr/include 7247e946e7SWyllys IngersollTSSLIB=-L$(TSPILIBDIR) 7347e946e7SWyllys IngersollTSSLIB64=-L$(TSPILIBDIR)/$(MACH64) 7447e946e7SWyllys IngersollTSSINC=-I$(TSPIINCDIR) 7547e946e7SWyllys Ingersoll 76*d7141854SRobert MustacchiLDLIBS += $(TSSLIB) -L$(ADJUNCT_PROTO)/lib -lc -luuid -lmd -ltspi -lcrypto 7747e946e7SWyllys IngersollCPPFLAGS += -xCC -D_POSIX_PTHREAD_SEMANTICS $(TSSINC) 7847e946e7SWyllys IngersollCPPFLAGS64 += $(CPPFLAGS) 7947e946e7SWyllys IngersollC99MODE= $(C99_ENABLE) 8047e946e7SWyllys Ingersoll 817014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 827014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label 837014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 847014882cSRichard Lowe 8547e946e7SWyllys IngersollLINTSRC= $(OBJECTS:%.o=$(SRCDIR)/%.c) 8647e946e7SWyllys Ingersoll 8747e946e7SWyllys Ingersoll$(LINTLIB):= SRCS = $(SRCDIR)/$(LINTSRC) 8847e946e7SWyllys IngersollLINTSRC= $(SRCS) 8947e946e7SWyllys Ingersoll 90b6805bf7SGordon RossCLOBBERFILES += C.ln 91b6805bf7SGordon Ross 9247e946e7SWyllys Ingersoll.KEEP_STATE: 9347e946e7SWyllys Ingersoll 9447e946e7SWyllys Ingersollall: $(LIBS) 9547e946e7SWyllys Ingersoll 9647e946e7SWyllys Ingersolllint: $$(LINTSRC) 9747e946e7SWyllys Ingersoll $(LINT.c) $(LINTCHECKFLAGS) $(LINTSRC) $(LDLIBS) 9847e946e7SWyllys Ingersoll 9947e946e7SWyllys Ingersollpics/%.o: $(SRCDIR)/%.c 10047e946e7SWyllys Ingersoll $(COMPILE.c) -o $@ $< 10147e946e7SWyllys Ingersoll $(POST_PROCESS_O) 10247e946e7SWyllys Ingersoll 10347e946e7SWyllys Ingersollinclude $(SRC)/lib/Makefile.targ 104