usr/src/lib/libkmf/libkmf/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
#
12611
d9f75b73c5fd PSARC/2010/177 KMF Certificate Name mapping extensions
Jan Pechanec <Jan.Pechanec@Sun.COM>
parents: 11973
diff changeset
    21
# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
3089
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    22
#
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
LIBRARY= libkmf.a
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    25
VERS= .1
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
OBJECTS= \
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    28
	algoid.o \
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    29
	certgetsetop.o \
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    30
	certop.o \
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    31
	client.o \
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    32
	csrcrlop.o \
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    33
	generalop.o \
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    34
	keyop.o \
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    35
	kmfoids.o \
12611
d9f75b73c5fd PSARC/2010/177 KMF Certificate Name mapping extensions
Jan Pechanec <Jan.Pechanec@Sun.COM>
parents: 11973
diff changeset
    36
	mapping.o \
3089
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    37
	pem_encode.o \
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    38
	pk11tokens.o \
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    39
	policy.o \
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    40
	pk11keys.o \
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    41
	rdn_parser.o
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    42
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    43
BERDERLIB=      -lkmfberder
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    44
BERDERLIB64=    -lkmfberder
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    45
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    46
CRYPTOUTILLIB=	 -lcryptoutil
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    47
CRYPTOUTILLIB64= -lcryptoutil
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    48
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    49
include $(SRC)/lib/Makefile.lib
8192
1e71c4032126 6449514 move OpenSSL from /usr/sfw to /usr, /lib
John.Zolnowsky@Sun.COM
parents: 7291
diff changeset
    50
include $(SRC)/lib/Makefile.rootfs
3089
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    51
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    52
SRCDIR=	../common
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    53
INCDIR=	../../include
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    54
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    55
LIBS=	$(DYNLIB) $(LINTLIB)
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    56
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    57
$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    58
6543
465433824d87 6683064 check_rtime could do with some spring cleaning
rie
parents: 5301
diff changeset
    59
LDLIBS	+=	$(BERDERLIB) $(CRYPTOUTILLIB) -lmd -lpkcs11 -lnsl -lsocket -lc 
465433824d87 6683064 check_rtime could do with some spring cleaning
rie
parents: 5301
diff changeset
    60
LDLIBS6	+=	$(BERDERLIB64) $(CRYPTOUTILLIB64) -lmd -lpkcs11 -lnsl -lsocket -lc 
3089
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    61
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    62
# DYNLIB libraries do not have lint libs and are not linted
6543
465433824d87 6683064 check_rtime could do with some spring cleaning
rie
parents: 5301
diff changeset
    63
$(DYNLIB) :=    LDLIBS += -lxml2
465433824d87 6683064 check_rtime could do with some spring cleaning
rie
parents: 5301
diff changeset
    64
$(DYNLIB64) :=  LDLIBS64 += -lxml2
3089
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    65
14225
20c0ad5cefdf 3915 Add adjuncts support to the build
Keith M Wesolowski <wesolows@foobazco.org>
parents: 13898
diff changeset
    66
CPPFLAGS	+=	-I$(INCDIR) -I$(ADJUNCT_PROTO)/usr/include/libxml2 \
20c0ad5cefdf 3915 Add adjuncts support to the build
Keith M Wesolowski <wesolows@foobazco.org>
parents: 13898
diff changeset
    67
			-I../../ber_der/inc -I$(SRCDIR)
3089
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    68
13898
58bc6f85b799 2933 compiler warning gags need better granularity
Richard Lowe <richlowe@richlowe.net>
parents: 12611
diff changeset
    69
CERRWARN	+=	-_gcc=-Wno-parentheses
58bc6f85b799 2933 compiler warning gags need better granularity
Richard Lowe <richlowe@richlowe.net>
parents: 12611
diff changeset
    70
CERRWARN	+=	-_gcc=-Wno-switch
58bc6f85b799 2933 compiler warning gags need better granularity
Richard Lowe <richlowe@richlowe.net>
parents: 12611
diff changeset
    71
CERRWARN	+=	-_gcc=-Wno-type-limits
58bc6f85b799 2933 compiler warning gags need better granularity
Richard Lowe <richlowe@richlowe.net>
parents: 12611
diff changeset
    72
CERRWARN	+=	-_gcc=-Wno-uninitialized
58bc6f85b799 2933 compiler warning gags need better granularity
Richard Lowe <richlowe@richlowe.net>
parents: 12611
diff changeset
    73
3089
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    74
.KEEP_STATE:
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    75
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    76
all:    $(LIBS)
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    77
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    78
lint:	lintcheck
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    79
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    80
include $(SRC)/lib/Makefile.targ