199ebb4caSwyllys# 299ebb4caSwyllys# CDDL HEADER START 399ebb4caSwyllys# 499ebb4caSwyllys# The contents of this file are subject to the terms of the 599ebb4caSwyllys# Common Development and Distribution License (the "License"). 699ebb4caSwyllys# You may not use this file except in compliance with the License. 799ebb4caSwyllys# 899ebb4caSwyllys# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 999ebb4caSwyllys# or http://www.opensolaris.org/os/licensing. 1099ebb4caSwyllys# See the License for the specific language governing permissions 1199ebb4caSwyllys# and limitations under the License. 1299ebb4caSwyllys# 1399ebb4caSwyllys# When distributing Covered Code, include this CDDL HEADER in each 1499ebb4caSwyllys# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1599ebb4caSwyllys# If applicable, add the following below this CDDL HEADER, with the 1699ebb4caSwyllys# fields enclosed by brackets "[]" replaced with your own identifying 1799ebb4caSwyllys# information: Portions Copyright [yyyy] [name of copyright owner] 1899ebb4caSwyllys# 1999ebb4caSwyllys# CDDL HEADER END 2099ebb4caSwyllys# 21a398035bSWyllys Ingersoll# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 2299ebb4caSwyllys# Use is subject to license terms. 2399ebb4caSwyllys# 2499ebb4caSwyllys# Makefile for KMF Plugins 2599ebb4caSwyllys# 2699ebb4caSwyllys 2799ebb4caSwyllysLIBRARY= kmf_pkcs11.a 2899ebb4caSwyllysVERS= .1 2930a5e8faSwyllys 3030a5e8faSwyllysPKCS11_COBJECTS = pkcs11_spi.o 3130a5e8faSwyllysBIGNUM_COBJECTS = bignumimpl.o 3230a5e8faSwyllysOBJECTS = $(PKCS11_COBJECTS) $(BIGNUM_COBJECTS) 3399ebb4caSwyllys 3499ebb4caSwyllysinclude $(SRC)/lib/Makefile.lib 3599ebb4caSwyllys 3699ebb4caSwyllysLIBLINKS= $(DYNLIB:.so.1=.so) 3799ebb4caSwyllysKMFINC= -I../../../include -I../../../ber_der/inc 3899ebb4caSwyllys 399b37d296SwyllysPKCS11LIBS= -lkmf -lkmfberder -lmd -lpkcs11 -lcryptoutil -lc 4099ebb4caSwyllys 4130a5e8faSwyllysBIGNUMDIR= $(SRC)/common/bignum 4230a5e8faSwyllys 4399ebb4caSwyllysSRCDIR= ../common 4499ebb4caSwyllysINCDIR= ../../include 4599ebb4caSwyllys 4630a5e8faSwyllysSRCS = \ 4730a5e8faSwyllys $(PKCS11_COBJECTS:%.o=$(SRCDIR)/%.c) \ 4830a5e8faSwyllys $(BIGNUM_COBJECTS:%.o=$(BIGNUMDIR)/%.c) 4930a5e8faSwyllys 5030a5e8faSwyllys 5199ebb4caSwyllysCFLAGS += $(CCVERBOSE) 52*494f7e12SKeith M WesolowskiCPPFLAGS += -D_REENTRANT $(KMFINC) -I$(INCDIR) \ 53*494f7e12SKeith M Wesolowski -I$(ADJUNCT_PROTO)/usr/include/libxml2 -I$(BIGNUMDIR) 5446d33f7eSwyllysLINTFLAGS64 += -errchk=longptr64 5599ebb4caSwyllys 567014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label 577014882cSRichard Lowe 5899ebb4caSwyllysPICS= $(OBJECTS:%=pics/%) 5999ebb4caSwyllys 6099ebb4caSwyllysLDLIBS += $(PKCS11LIBS) 6199ebb4caSwyllys 62257873cfSJohn.Zolnowsky@Sun.COMROOTLIBDIR= $(ROOTFS_LIBDIR)/crypto 63257873cfSJohn.Zolnowsky@Sun.COMROOTLIBDIR64= $(ROOTFS_LIBDIR)/crypto/$(MACH64) 6499ebb4caSwyllys 6599ebb4caSwyllys.KEEP_STATE: 6699ebb4caSwyllys 6799ebb4caSwyllysLIBS = $(DYNLIB) 6899ebb4caSwyllys 6999ebb4caSwyllysall: $(LIBS) $(LINTLIB) 7099ebb4caSwyllys 7199ebb4caSwyllyslint: lintcheck 7299ebb4caSwyllys 7399ebb4caSwyllysFRC: 7499ebb4caSwyllys 7530a5e8faSwyllyspics/%.o: $(BIGNUMDIR)/%.c 7630a5e8faSwyllys $(COMPILE.c) -o $@ $(BIGNUM_CFG) $< 7730a5e8faSwyllys $(POST_PROCESS_O) 7830a5e8faSwyllys 7999ebb4caSwyllysinclude $(SRC)/lib/Makefile.targ 80