blob: 10113e89e1c6b62a910eb252cf051b706737d0d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
|
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
#
LIBRARY= libkmsagent.a
VERS= .1
LIB_C_OBJECTS= \
SYSCommon.o \
ieee80211_crypto.o \
k_setupssl.o
LIB_CPP_OBJECTS= \
KMSAgent.o \
KMSAgentChallenge.o \
KMSAgentCryptoUtilities.o \
KMSAgentDataUnitCache.o \
KMSAgentFatalState.o \
KMSAgentKeyCallout.o \
KMSAgentKnownAnswerTests.o \
KMSAgentLoadBalancer.o \
KMSAgentPKICert.o \
KMSAgentPKICertOpenSSL.o \
KMSAgentPKICommon.o \
KMSAgentPKIKey.o \
KMSAgentPKIKeyOpenSSL.o \
KMSAgentSoapUtilities.o \
KMSAgentStorage.o \
KMSAgentStringUtilities.o \
KMSAuditLogger.o \
KMSClientProfile.o
SOAP_OBJECTS =\
AgentServiceNamespace.o \
CAServiceNamespace.o \
CertificateServiceNamespace.o \
DiscoveryServiceNamespace.o \
KMS_AgentC.o \
KMS_AgentClient.o \
KMS_CAC.o \
KMS_CAClient.o \
KMS_CertificateC.o \
KMS_CertificateClient.o \
KMS_DiscoveryC.o \
KMS_DiscoveryClient.o \
envC.o \
stdsoap2.o
OBJECTS= \
$(LIB_C_OBJECTS) \
$(LIB_CPP_OBJECTS) \
$(SOAP_OBJECTS)
LIBSRCDIR= ../common
SOAPSRCDIR= ../common/SOAP
include $(SRC)/lib/Makefile.lib
SRCDIR=../common
CSRCS = $(LIB_C_OBJECTS:%.o=$(LIBSRCDIR)/%.c)
LIBSRCS = $(LIB_CPP_OBJECTS:%.o=$(LIBSRCDIR)/%.cpp) $(CSRCS)
SOAPSRCS= $(SOAP_OBJECTS:%.o=$(SOAPSRCDIR)/%.cpp)
CCOBJS = $(LIB_CPP_OBJECTS:%.o=pics/%.o) \
$(SOAP_OBJECTS:%.o=pics/%.o)
LIBS = $(DYNLIB)
LDLIBS += -lCstd -lCrun -lpam -lc -lsoftcrypto -lcrypto -lssl -lsocket
LDLIBS64 += -lCstd -lCrun -lpam -lc -lsoftcrypto -lcrypto -lssl -lsocket
DEFINES = -DKMSUSERPKCS12 -D_REENTRANT -DNOWCSICMP -DUNIX \
-DWITH_OPENSSL -DHAVE_OPENSSL_SSL_H \
-DWITH_IPV6 -D_POSIX_THREADS -DXML_STATIC \
-DHAVE_EXPAT_CONFIG_H -DK_SOLARIS_PLATFORM \
-DOPENSSL_NO_DEPRECATED \
-DKMS_AGENT_VERSION_STRING=\"KMSAgentLibraryVersion:Build1016\"
CFLAGS += $(CCVERBOSE)
#
# When building C++ objects, redefine CCFLAGS for 32-bit builds to
# use "compat=5" instead of "compat=4".
# The 64-bit CCFLAGS already use compat=5 option (see $SRC/Makefile.master)
#
$(CCOBJS) := i386_CCFLAGS = \
-compat=5 \
-Qoption ccfe -messages=no%anachronism \
-Qoption ccfe -features=no%conststrings \
$(CCERRWARN)
$(CCOBJS) := sparc_CCFLAGS = \
-cg92 -compat=5 \
-Qoption ccfe -messages=no%anachronism \
-Qoption ccfe -features=no%conststrings \
$(CCERRWARN)
CPPFLAGS += -I../common -I../common/SOAP -I$(SRC)/common/crypto/aes $(DEFINES)
COPTFLAG += -xCC
COPTFLAG64 += -xCC
pics/stdsoap2.o:= CPPFLAGS += -DWITH_NONAMESPACES
ROOTLIBDIR= $(ROOT)/usr/lib
ROOTLIBDIR64= $(ROOT)/usr/lib/$(MACH64)
.KEEP_STATE:
all: $(LIBS)
#
# Don't lint C++ code
#
lint:
#
# Need special rules here because the files are named ".cpp" instead
# of ".cc". The source comes from KMS, and we need to keep them in sync
# so we won't change the naming convention.
#
pics/%.o: $(LIBSRCDIR)/%.cpp
$(COMPILE.cc) -o $@ $<
$(POST_PROCESS_O)
pics/%.o: $(SOAPSRCDIR)/%.cpp
$(COMPILE.cc) -o $@ $<
$(POST_PROCESS_O)
.cpp:
$(LINK.cc) -o $@ $< $(LDLIBS)
$(POST_PROCESS)
.cpp.o:
$(COMPILE.cc) $(OUTPUT_OPTION) $<
$(POST_PROCESS_O)
include $(SRC)/lib/Makefile.targ
|