usr/src/lib/libkmf/plugins/kmf_pkcs11/Makefile.com
author Keith M Wesolowski <wesolows@foobazco.org>
Wed, 17 Jul 2013 17:05:07 -0700
changeset 14225 20c0ad5cefdf
parent 13898 58bc6f85b799
permissions -rw-r--r--
3915 Add adjuncts support to the build Reviewed by: Robert Mustacchi <[email protected]> Reviewed by: Richard Lowe <[email protected]> Approved by: Dan McDonald <[email protected]>
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3089
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
     1
#
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
     2
# CDDL HEADER START
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
     3
#
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
     7
#
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    10
# See the License for the specific language governing permissions
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    11
# and limitations under the License.
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    12
#
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    18
#
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    19
# CDDL HEADER END
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    20
#
10028
2de34ea54ad5 6855407 kernel crypto module reports firmware version incorrectly
Wyllys Ingersoll <wyllys.ingersoll@sun.com>
parents: 8192
diff changeset
    21
# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
3089
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    22
# Use is subject to license terms.
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    23
#
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    24
# Makefile for KMF Plugins
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    25
#
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    26
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    27
LIBRARY=	kmf_pkcs11.a
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    28
VERS=		.1
5051
cbbb7c8b40a9 PSARC 2007/426 KMFAPI Interface Taxonomy Change
wyllys
parents: 3825
diff changeset
    29
cbbb7c8b40a9 PSARC 2007/426 KMFAPI Interface Taxonomy Change
wyllys
parents: 3825
diff changeset
    30
PKCS11_COBJECTS = pkcs11_spi.o
cbbb7c8b40a9 PSARC 2007/426 KMFAPI Interface Taxonomy Change
wyllys
parents: 3825
diff changeset
    31
BIGNUM_COBJECTS = bignumimpl.o
cbbb7c8b40a9 PSARC 2007/426 KMFAPI Interface Taxonomy Change
wyllys
parents: 3825
diff changeset
    32
OBJECTS = $(PKCS11_COBJECTS) $(BIGNUM_COBJECTS)
3089
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    33
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    34
include	$(SRC)/lib/Makefile.lib
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    35
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    36
LIBLINKS=	$(DYNLIB:.so.1=.so)
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    37
KMFINC=		-I../../../include -I../../../ber_der/inc
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    38
3825
3d0d37b7e5af 6531818 libkmf has too many dependencies on libpkcs11
wyllys
parents: 3089
diff changeset
    39
PKCS11LIBS=	-lkmf -lkmfberder -lmd -lpkcs11 -lcryptoutil -lc
3089
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    40
5051
cbbb7c8b40a9 PSARC 2007/426 KMFAPI Interface Taxonomy Change
wyllys
parents: 3825
diff changeset
    41
BIGNUMDIR=      $(SRC)/common/bignum
cbbb7c8b40a9 PSARC 2007/426 KMFAPI Interface Taxonomy Change
wyllys
parents: 3825
diff changeset
    42
3089
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    43
SRCDIR=		../common
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    44
INCDIR=		../../include
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    45
5051
cbbb7c8b40a9 PSARC 2007/426 KMFAPI Interface Taxonomy Change
wyllys
parents: 3825
diff changeset
    46
SRCS =  \
cbbb7c8b40a9 PSARC 2007/426 KMFAPI Interface Taxonomy Change
wyllys
parents: 3825
diff changeset
    47
        $(PKCS11_COBJECTS:%.o=$(SRCDIR)/%.c) \
cbbb7c8b40a9 PSARC 2007/426 KMFAPI Interface Taxonomy Change
wyllys
parents: 3825
diff changeset
    48
        $(BIGNUM_COBJECTS:%.o=$(BIGNUMDIR)/%.c)
cbbb7c8b40a9 PSARC 2007/426 KMFAPI Interface Taxonomy Change
wyllys
parents: 3825
diff changeset
    49
cbbb7c8b40a9 PSARC 2007/426 KMFAPI Interface Taxonomy Change
wyllys
parents: 3825
diff changeset
    50
3089
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    51
CFLAGS		+=	$(CCVERBOSE)
14225
20c0ad5cefdf 3915 Add adjuncts support to the build
Keith M Wesolowski <wesolows@foobazco.org>
parents: 13898
diff changeset
    52
CPPFLAGS	+=	-D_REENTRANT $(KMFINC) -I$(INCDIR) \
20c0ad5cefdf 3915 Add adjuncts support to the build
Keith M Wesolowski <wesolows@foobazco.org>
parents: 13898
diff changeset
    53
			-I$(ADJUNCT_PROTO)/usr/include/libxml2 -I$(BIGNUMDIR)
5069
a114332ed71c 6546405 KMF Interfaces need to be extensible (fix lint)
wyllys
parents: 5051
diff changeset
    54
LINTFLAGS64	+=	-errchk=longptr64
3089
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    55
13898
58bc6f85b799 2933 compiler warning gags need better granularity
Richard Lowe <richlowe@richlowe.net>
parents: 10028
diff changeset
    56
CERRWARN	+=	-_gcc=-Wno-unused-label
58bc6f85b799 2933 compiler warning gags need better granularity
Richard Lowe <richlowe@richlowe.net>
parents: 10028
diff changeset
    57
3089
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    58
PICS=	$(OBJECTS:%=pics/%)
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    59
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    60
LDLIBS	+=	$(PKCS11LIBS)
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    61
8192
1e71c4032126 6449514 move OpenSSL from /usr/sfw to /usr, /lib
John.Zolnowsky@Sun.COM
parents: 7291
diff changeset
    62
ROOTLIBDIR=	$(ROOTFS_LIBDIR)/crypto
1e71c4032126 6449514 move OpenSSL from /usr/sfw to /usr, /lib
John.Zolnowsky@Sun.COM
parents: 7291
diff changeset
    63
ROOTLIBDIR64=	$(ROOTFS_LIBDIR)/crypto/$(MACH64)
3089
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    64
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    65
.KEEP_STATE:
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    66
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    67
LIBS	=	$(DYNLIB)
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    68
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    69
all:	$(LIBS) $(LINTLIB)
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    70
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    71
lint: lintcheck
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    72
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    73
FRC:
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    74
5051
cbbb7c8b40a9 PSARC 2007/426 KMFAPI Interface Taxonomy Change
wyllys
parents: 3825
diff changeset
    75
pics/%.o:	$(BIGNUMDIR)/%.c
cbbb7c8b40a9 PSARC 2007/426 KMFAPI Interface Taxonomy Change
wyllys
parents: 3825
diff changeset
    76
	$(COMPILE.c) -o $@ $(BIGNUM_CFG) $<
cbbb7c8b40a9 PSARC 2007/426 KMFAPI Interface Taxonomy Change
wyllys
parents: 3825
diff changeset
    77
	$(POST_PROCESS_O)
cbbb7c8b40a9 PSARC 2007/426 KMFAPI Interface Taxonomy Change
wyllys
parents: 3825
diff changeset
    78
3089
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    79
include $(SRC)/lib/Makefile.targ