13089Swyllys# 23089Swyllys# CDDL HEADER START 33089Swyllys# 43089Swyllys# The contents of this file are subject to the terms of the 53089Swyllys# Common Development and Distribution License (the "License"). 63089Swyllys# You may not use this file except in compliance with the License. 73089Swyllys# 83089Swyllys# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 93089Swyllys# or http://www.opensolaris.org/os/licensing. 103089Swyllys# See the License for the specific language governing permissions 113089Swyllys# and limitations under the License. 123089Swyllys# 133089Swyllys# When distributing Covered Code, include this CDDL HEADER in each 143089Swyllys# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 153089Swyllys# If applicable, add the following below this CDDL HEADER, with the 163089Swyllys# fields enclosed by brackets "[]" replaced with your own identifying 173089Swyllys# information: Portions Copyright [yyyy] [name of copyright owner] 183089Swyllys# 193089Swyllys# CDDL HEADER END 203089Swyllys# 21*10028Swyllys.ingersoll@sun.com# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 223089Swyllys# Use is subject to license terms. 233089Swyllys# 243089Swyllys# Makefile for KMF Plugins 253089Swyllys# 263089Swyllys 273089SwyllysLIBRARY= kmf_pkcs11.a 283089SwyllysVERS= .1 295051Swyllys 305051SwyllysPKCS11_COBJECTS = pkcs11_spi.o 315051SwyllysBIGNUM_COBJECTS = bignumimpl.o 325051SwyllysOBJECTS = $(PKCS11_COBJECTS) $(BIGNUM_COBJECTS) 333089Swyllys 343089Swyllysinclude $(SRC)/lib/Makefile.lib 353089Swyllys 363089SwyllysLIBLINKS= $(DYNLIB:.so.1=.so) 373089SwyllysKMFINC= -I../../../include -I../../../ber_der/inc 383089Swyllys 393825SwyllysPKCS11LIBS= -lkmf -lkmfberder -lmd -lpkcs11 -lcryptoutil -lc 403089Swyllys 415051SwyllysBIGNUMDIR= $(SRC)/common/bignum 425051Swyllys 433089SwyllysSRCDIR= ../common 443089SwyllysINCDIR= ../../include 453089Swyllys 465051SwyllysSRCS = \ 475051Swyllys $(PKCS11_COBJECTS:%.o=$(SRCDIR)/%.c) \ 485051Swyllys $(BIGNUM_COBJECTS:%.o=$(BIGNUMDIR)/%.c) 495051Swyllys 505051Swyllys 513089SwyllysCFLAGS += $(CCVERBOSE) 525051SwyllysCPPFLAGS += -D_REENTRANT $(KMFINC) -I$(INCDIR) -I/usr/include/libxml2 -I$(BIGNUMDIR) 535069SwyllysLINTFLAGS64 += -errchk=longptr64 543089Swyllys 553089SwyllysPICS= $(OBJECTS:%=pics/%) 563089Swyllys 573089SwyllysLDLIBS += $(PKCS11LIBS) 583089Swyllys 598192SJohn.Zolnowsky@Sun.COMROOTLIBDIR= $(ROOTFS_LIBDIR)/crypto 608192SJohn.Zolnowsky@Sun.COMROOTLIBDIR64= $(ROOTFS_LIBDIR)/crypto/$(MACH64) 613089Swyllys 623089Swyllys.KEEP_STATE: 633089Swyllys 643089SwyllysLIBS = $(DYNLIB) 653089Swyllys 663089Swyllysall: $(LIBS) $(LINTLIB) 673089Swyllys 683089Swyllyslint: lintcheck 693089Swyllys 703089SwyllysFRC: 713089Swyllys 725051Swyllyspics/%.o: $(BIGNUMDIR)/%.c 735051Swyllys $(COMPILE.c) -o $@ $(BIGNUM_CFG) $< 745051Swyllys $(POST_PROCESS_O) 755051Swyllys 763089Swyllysinclude $(SRC)/lib/Makefile.targ 77