1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
1 |
### Generated automatically from Makefile.org by Configure.
|
2 |
||
3 |
##
|
|
4 |
## Makefile for OpenSSL
|
|
5 |
##
|
|
6 |
||
1.1.7
by Kurt Roeckx
Import upstream version 0.9.8k |
7 |
VERSION=0.9.8k |
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
8 |
MAJOR=0 |
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
9 |
MINOR=9.8 |
10 |
SHLIB_VERSION_NUMBER=0.9.8 |
|
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
11 |
SHLIB_VERSION_HISTORY= |
12 |
SHLIB_MAJOR=0 |
|
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
13 |
SHLIB_MINOR=9.8 |
3
by Christoph Martin
* really fix der_chop. The fix from -1 was not really included (closes: |
14 |
SHLIB_EXT=.so.$(SHLIB_MAJOR).$(SHLIB_MINOR) |
39
by Colin Watson
releasing version 0.9.8k-7ubuntu4 |
15 |
PLATFORM=debian-i386 |
35
by Marc Deslauriers
debian/patches/{disable-sslv2,Bsymbolic-functions}.patch: apply |
16 |
OPTIONS=--prefix=/usr --openssldir=/usr/lib/ssl enable-zlib enable-tlsext no-camellia no-capieng no-cms no-gmp no-idea no-jpake no-krb5 no-mdc2 no-montasm no-rc5 no-rfc3779 no-seed no-shared no-sslv2 no-zlib-dynamic |
39
by Colin Watson
releasing version 0.9.8k-7ubuntu4 |
17 |
CONFIGURE_ARGS=--prefix=/usr --openssldir=/usr/lib/ssl no-idea no-mdc2 no-rc5 zlib enable-tlsext no-sslv2 debian-i386 |
3
by Christoph Martin
* really fix der_chop. The fix from -1 was not really included (closes: |
18 |
SHLIB_TARGET=linux-shared |
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
19 |
|
20 |
# HERE indicates where this Makefile lives. This can be used to indicate
|
|
21 |
# where sub-Makefiles are expected to be. Currently has very limited usage,
|
|
22 |
# and should probably not be bothered with at all.
|
|
23 |
HERE=. |
|
24 |
||
25 |
# INSTALL_PREFIX is for package builders so that they can configure
|
|
26 |
# for, say, /usr/ and yet have everything installed to /tmp/somedir/usr/.
|
|
27 |
# Normally it is left empty.
|
|
28 |
INSTALL_PREFIX= |
|
3
by Christoph Martin
* really fix der_chop. The fix from -1 was not really included (closes: |
29 |
INSTALLTOP=/usr |
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
30 |
|
31 |
# Do not edit this manually. Use Configure --openssldir=DIR do change this!
|
|
3
by Christoph Martin
* really fix der_chop. The fix from -1 was not really included (closes: |
32 |
OPENSSLDIR=/usr/lib/ssl |
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
33 |
|
34 |
# NO_IDEA - Define to build without the IDEA algorithm
|
|
35 |
# NO_RC4 - Define to build without the RC4 algorithm
|
|
36 |
# NO_RC2 - Define to build without the RC2 algorithm
|
|
37 |
# THREADS - Define when building with threads, you will probably also need any
|
|
38 |
# system defines as well, i.e. _REENTERANT for Solaris 2.[34]
|
|
39 |
# TERMIO - Define the termio terminal subsystem, needed if sgtty is missing.
|
|
40 |
# TERMIOS - Define the termios terminal subsystem, Silicon Graphics.
|
|
41 |
# LONGCRYPT - Define to use HPUX 10.x's long password modification to crypt(3).
|
|
42 |
# DEVRANDOM - Give this the value of the 'random device' if your OS supports
|
|
43 |
# one. 32 bytes will be read from this when the random
|
|
44 |
# number generator is initalised.
|
|
45 |
# SSL_FORBID_ENULL - define if you want the server to be not able to use the
|
|
46 |
# NULL encryption ciphers.
|
|
47 |
#
|
|
48 |
# LOCK_DEBUG - turns on lots of lock debug output :-)
|
|
49 |
# REF_CHECK - turn on some xyz_free() assertions.
|
|
50 |
# REF_PRINT - prints some stuff on structure free.
|
|
51 |
# CRYPTO_MDEBUG - turns on my 'memory leak' detecting stuff
|
|
52 |
# MFUNC - Make all Malloc/Free/Realloc calls call
|
|
53 |
# CRYPTO_malloc/CRYPTO_free/CRYPTO_realloc which can be setup to
|
|
54 |
# call application defined callbacks via CRYPTO_set_mem_functions()
|
|
55 |
# MD5_ASM needs to be defined to use the x86 assembler for MD5
|
|
56 |
# SHA1_ASM needs to be defined to use the x86 assembler for SHA1
|
|
57 |
# RMD160_ASM needs to be defined to use the x86 assembler for RIPEMD160
|
|
58 |
# Do not define B_ENDIAN or L_ENDIAN if 'unsigned long' == 8. It must
|
|
59 |
# equal 4.
|
|
60 |
# PKCS1_CHECK - pkcs1 tests.
|
|
61 |
||
18
by Matthias Klose
* Merge with Debian; remaining changes: |
62 |
CC= gcc |
39
by Colin Watson
releasing version 0.9.8k-7ubuntu4 |
63 |
CFLAG= -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall |
35
by Marc Deslauriers
debian/patches/{disable-sslv2,Bsymbolic-functions}.patch: apply |
64 |
DEPFLAG= -DOPENSSL_NO_CAMELLIA -DOPENSSL_NO_CAPIENG -DOPENSSL_NO_CMS -DOPENSSL_NO_GMP -DOPENSSL_NO_IDEA -DOPENSSL_NO_JPAKE -DOPENSSL_NO_MDC2 -DOPENSSL_NO_RC5 -DOPENSSL_NO_RFC3779 -DOPENSSL_NO_SEED -DOPENSSL_NO_SSLV2 |
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
65 |
PEX_LIBS= |
35
by Marc Deslauriers
debian/patches/{disable-sslv2,Bsymbolic-functions}.patch: apply |
66 |
EX_LIBS= -ldl -Wl,-Bsymbolic-functions -lz |
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
67 |
EXE_EXT= |
68 |
ARFLAGS= |
|
69 |
AR=ar $(ARFLAGS) r |
|
1.1.7
by Kurt Roeckx
Import upstream version 0.9.8k |
70 |
ARD=ar $(ARFLAGS) d |
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
71 |
RANLIB= /usr/bin/ranlib |
1.1.5
by Kurt Roeckx
Import upstream version 0.9.8e |
72 |
PERL= /usr/bin/perl |
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
73 |
TAR= tar |
74 |
TARFLAGS= --no-recursion |
|
18
by Matthias Klose
* Merge with Debian; remaining changes: |
75 |
MAKEDEPPROG= gcc |
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
76 |
|
77 |
# We let the C compiler driver to take care of .s files. This is done in
|
|
78 |
# order to be excused from maintaining a separate set of architecture
|
|
79 |
# dependent assembler flags. E.g. if you throw -mcpu=ultrasparc at SPARC
|
|
80 |
# gcc, then the driver will automatically translate it to -xarch=v8plus
|
|
81 |
# and pass it down to assembler.
|
|
82 |
AS=$(CC) -c |
|
83 |
ASFLAG=$(CFLAG) |
|
84 |
||
85 |
# For x86 assembler: Set PROCESSOR to 386 if you want to support
|
|
86 |
# the 80386.
|
|
87 |
PROCESSOR= |
|
88 |
||
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
89 |
# CPUID module collects small commonly used assembler snippets
|
39
by Colin Watson
releasing version 0.9.8k-7ubuntu4 |
90 |
CPUID_OBJ= |
91 |
BN_ASM= bn_asm.o |
|
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
92 |
DES_ENC= des_enc.o fcrypt_b.o |
39
by Colin Watson
releasing version 0.9.8k-7ubuntu4 |
93 |
AES_ASM_OBJ= aes_core.o aes_cbc.o |
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
94 |
BF_ENC= bf_enc.o |
95 |
CAST_ENC= c_enc.o |
|
1.1.7
by Kurt Roeckx
Import upstream version 0.9.8k |
96 |
RC4_ENC= rc4_enc.o rc4_skey.o |
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
97 |
RC5_ENC= rc5_enc.o |
39
by Colin Watson
releasing version 0.9.8k-7ubuntu4 |
98 |
MD5_ASM_OBJ= |
99 |
SHA1_ASM_OBJ= |
|
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
100 |
RMD160_ASM_OBJ= |
101 |
||
102 |
# KRB5 stuff
|
|
103 |
KRB5_INCLUDES= |
|
104 |
LIBKRB5= |
|
105 |
||
1.1.3
by Kurt Roeckx
Import upstream version 0.9.8b |
106 |
# Zlib stuff
|
107 |
ZLIB_INCLUDE= |
|
108 |
LIBZLIB= |
|
109 |
||
1.1.7
by Kurt Roeckx
Import upstream version 0.9.8k |
110 |
# This is the location of fipscanister.o and friends.
|
111 |
# The FIPS module build will place it $(INSTALLTOP)/lib
|
|
112 |
# but since $(INSTALLTOP) can only take the default value
|
|
113 |
# when the module is built it will be in /usr/local/ssl/lib
|
|
114 |
# $(INSTALLTOP) for this build make be different so hard
|
|
115 |
# code the path.
|
|
116 |
||
117 |
FIPSLIBDIR=/usr/local/ssl/fips-1.0/lib/ |
|
118 |
||
119 |
# This is set to "y" if fipscanister.o is compiled internally as
|
|
120 |
# opposed to coming from an external validated location.
|
|
121 |
||
122 |
FIPSCANISTERINTERNAL=n |
|
123 |
||
124 |
# The location of the library which contains fipscanister.o
|
|
125 |
# normally it will be libcrypto unless fipsdso is set in which
|
|
126 |
# case it will be libfips. If not compiling in FIPS mode at all
|
|
127 |
# this is empty making it a useful test for a FIPS compile.
|
|
128 |
||
129 |
FIPSCANLIB= |
|
130 |
||
131 |
# Shared library base address. Currently only used on Windows.
|
|
132 |
#
|
|
133 |
||
134 |
BASEADDR=0xFB00000 |
|
135 |
||
4
by Kurt Roeckx
Stop ssh from crashing randomly on sparc (Closes: #335912) |
136 |
DIRS= crypto ssl engines apps tools |
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
137 |
SHLIBDIRS= crypto ssl |
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
138 |
|
139 |
# dirs in crypto to build
|
|
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
140 |
SDIRS= \ |
141 |
objects \
|
|
3
by Christoph Martin
* really fix der_chop. The fix from -1 was not really included (closes: |
142 |
md2 md4 md5 sha hmac ripemd \
|
4
by Kurt Roeckx
Stop ssh from crashing randomly on sparc (Closes: #335912) |
143 |
des aes rc2 rc4 bf cast \
|
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
144 |
bn ec rsa dsa ecdsa dh ecdh dso engine \
|
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
145 |
buffer bio stack lhash rand err \
|
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
146 |
evp asn1 pem x509 x509v3 conf txt_db pkcs7 pkcs12 comp ocsp ui krb5 \
|
147 |
store pqueue |
|
148 |
# keep in mind that the above list is adjusted by ./Configure
|
|
149 |
# according to no-xxx arguments...
|
|
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
150 |
|
151 |
# tests to perform. "alltests" is a special word indicating that all tests
|
|
152 |
# should be performed.
|
|
153 |
TESTS = alltests |
|
154 |
||
155 |
MAKEFILE= Makefile |
|
156 |
||
3
by Christoph Martin
* really fix der_chop. The fix from -1 was not really included (closes: |
157 |
MANDIR=/usr/share/man |
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
158 |
MAN1=1 |
159 |
MAN3=3 |
|
3
by Christoph Martin
* really fix der_chop. The fix from -1 was not really included (closes: |
160 |
MANSUFFIX=ssl |
6
by Kurt Roeckx
* Don't call gcc with -mcpu on i386, we already use -march, so no need for |
161 |
MANSECTION=SSL |
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
162 |
SHELL=/bin/sh |
163 |
||
164 |
TOP= . |
|
165 |
ONEDIRS=out tmp |
|
166 |
EDIRS= times doc bugs util include certs ms shlib mt demos perl sf dep VMS |
|
167 |
WDIRS= windows |
|
168 |
LIBS= libcrypto.a libssl.a |
|
169 |
SHARED_CRYPTO=libcrypto$(SHLIB_EXT) |
|
170 |
SHARED_SSL=libssl$(SHLIB_EXT) |
|
1.1.7
by Kurt Roeckx
Import upstream version 0.9.8k |
171 |
SHARED_FIPS= |
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
172 |
SHARED_LIBS= |
3
by Christoph Martin
* really fix der_chop. The fix from -1 was not really included (closes: |
173 |
SHARED_LIBS_LINK_EXTS=.so |
39
by Colin Watson
releasing version 0.9.8k-7ubuntu4 |
174 |
SHARED_LDFLAGS= -Wl,--version-script=openssl.ld |
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
175 |
|
176 |
GENERAL= Makefile |
|
177 |
BASENAME= openssl |
|
178 |
NAME= $(BASENAME)-$(VERSION) |
|
179 |
TARFILE= $(NAME).tar |
|
180 |
WTARFILE= $(NAME)-win.tar |
|
181 |
EXHEADER= e_os2.h |
|
182 |
HEADER= e_os.h |
|
183 |
||
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
184 |
all: Makefile build_all openssl.pc libssl.pc libcrypto.pc |
185 |
||
186 |
# as we stick to -e, CLEARENV ensures that local variables in lower
|
|
187 |
# Makefiles remain local and variable. $${VAR+VAR} is tribute to Korn
|
|
188 |
# shell, which [annoyingly enough] terminates unset with error if VAR
|
|
189 |
# is not present:-( TOP= && unset TOP is tribute to HP-UX /bin/sh,
|
|
190 |
# which terminates unset with error if no variable was present:-(
|
|
191 |
CLEARENV= TOP= && unset TOP $${LIB+LIB} $${LIBS+LIBS} \ |
|
192 |
$${INCLUDE+INCLUDE} $${INCLUDES+INCLUDES} \ |
|
193 |
$${DIR+DIR} $${DIRS+DIRS} $${SRC+SRC} \ |
|
194 |
$${LIBSRC+LIBSRC} $${LIBOBJ+LIBOBJ} $${ALL+ALL} \ |
|
195 |
$${EXHEADER+EXHEADER} $${HEADER+HEADER} \ |
|
196 |
$${GENERAL+GENERAL} $${CFLAGS+CFLAGS} \ |
|
197 |
$${ASFLAGS+ASFLAGS} $${AFLAGS+AFLAGS} \ |
|
198 |
$${LDCMD+LDCMD} $${LDFLAGS+LDFLAGS} \ |
|
199 |
$${SHAREDCMD+SHAREDCMD} $${SHAREDFLAGS+SHAREDFLAGS} \ |
|
200 |
$${SHARED_LIB+SHARED_LIB} $${LIBEXTRAS+LIBEXTRAS} |
|
201 |
||
202 |
BUILDENV= PLATFORM='${PLATFORM}' PROCESSOR='${PROCESSOR}' \ |
|
203 |
CC='${CC}' CFLAG='${CFLAG}' \ |
|
204 |
AS='${CC}' ASFLAG='${CFLAG} -c' \ |
|
205 |
AR='${AR}' PERL='${PERL}' RANLIB='${RANLIB}' \ |
|
206 |
SDIRS='${SDIRS}' LIBRPATH='${INSTALLTOP}/lib' \ |
|
207 |
INSTALL_PREFIX='${INSTALL_PREFIX}' \ |
|
208 |
INSTALLTOP='${INSTALLTOP}' OPENSSLDIR='${OPENSSLDIR}' \ |
|
209 |
MAKEDEPEND='$$$${TOP}/util/domd $$$${TOP} -MD ${MAKEDEPPROG}' \ |
|
210 |
DEPFLAG='-DOPENSSL_NO_DEPRECATED ${DEPFLAG}' \ |
|
211 |
MAKEDEPPROG='${MAKEDEPPROG}' \ |
|
212 |
SHARED_LDFLAGS='${SHARED_LDFLAGS}' \ |
|
213 |
KRB5_INCLUDES='${KRB5_INCLUDES}' LIBKRB5='${LIBKRB5}' \ |
|
214 |
EXE_EXT='${EXE_EXT}' SHARED_LIBS='${SHARED_LIBS}' \ |
|
215 |
SHLIB_EXT='${SHLIB_EXT}' SHLIB_TARGET='${SHLIB_TARGET}' \ |
|
216 |
PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' \ |
|
217 |
CPUID_OBJ='${CPUID_OBJ}' \ |
|
218 |
BN_ASM='${BN_ASM}' DES_ENC='${DES_ENC}' \ |
|
219 |
AES_ASM_OBJ='${AES_ASM_OBJ}' \ |
|
220 |
BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' \ |
|
221 |
RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' \ |
|
222 |
SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' \ |
|
223 |
MD5_ASM_OBJ='${MD5_ASM_OBJ}' \ |
|
224 |
RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' \ |
|
1.1.7
by Kurt Roeckx
Import upstream version 0.9.8k |
225 |
FIPSLIBDIR='${FIPSLIBDIR}' \ |
226 |
FIPSCANLIB="$${FIPSCANLIB:-$(FIPSCANLIB)}" \ |
|
227 |
FIPSCANISTERINTERNAL='${FIPSCANISTERINTERNAL}' \ |
|
228 |
FIPS_EX_OBJ='${FIPS_EX_OBJ}' \ |
|
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
229 |
THIS=$${THIS:-$@} MAKEFILE=Makefile MAKEOVERRIDES= |
230 |
# MAKEOVERRIDES= effectively "equalizes" GNU-ish and SysV-ish make flavors,
|
|
231 |
# which in turn eliminates ambiguities in variable treatment with -e.
|
|
232 |
||
1.1.3
by Kurt Roeckx
Import upstream version 0.9.8b |
233 |
# BUILD_CMD is a generic macro to build a given target in a given
|
234 |
# subdirectory. The target must be given through the shell variable
|
|
235 |
# `target' and the subdirectory to build in must be given through `dir'.
|
|
236 |
# This macro shouldn't be used directly, use RECURSIVE_BUILD_CMD or
|
|
237 |
# BUILD_ONE_CMD instead.
|
|
238 |
#
|
|
239 |
# BUILD_ONE_CMD is a macro to build a given target in a given
|
|
240 |
# subdirectory if that subdirectory is part of $(DIRS). It requires
|
|
241 |
# exactly the same shell variables as BUILD_CMD.
|
|
242 |
#
|
|
243 |
# RECURSIVE_BUILD_CMD is a macro to build a given target in all
|
|
244 |
# subdirectories defined in $(DIRS). It requires that the target
|
|
245 |
# is given through the shell variable `target'.
|
|
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
246 |
BUILD_CMD= if [ -d "$$dir" ]; then \ |
1.1.7
by Kurt Roeckx
Import upstream version 0.9.8k |
247 |
( [ $$target != all -a -z "$(FIPSCANLIB)" ] && FIPSCANLIB=/dev/null; \ |
248 |
cd $$dir && echo "making $$target in $$dir..." && \ |
|
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
249 |
$(CLEARENV) && $(MAKE) -e $(BUILDENV) TOP=.. DIR=$$dir $$target \ |
250 |
) || exit 1; \ |
|
251 |
fi
|
|
252 |
RECURSIVE_BUILD_CMD=for dir in $(DIRS); do $(BUILD_CMD); done |
|
1.1.3
by Kurt Roeckx
Import upstream version 0.9.8b |
253 |
BUILD_ONE_CMD=\ |
254 |
if echo " $(DIRS) " | grep " $$dir " >/dev/null 2>/dev/null; then \
|
|
255 |
$(BUILD_CMD); \
|
|
256 |
fi
|
|
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
257 |
|
258 |
reflect: |
|
259 |
@[ -n "$(THIS)" ] && $(CLEARENV) && $(MAKE) $(THIS) -e $(BUILDENV) |
|
260 |
||
1.1.7
by Kurt Roeckx
Import upstream version 0.9.8k |
261 |
FIPS_EX_OBJ= ../crypto/aes/aes_cfb.o \ |
262 |
../crypto/aes/aes_ecb.o \
|
|
263 |
../crypto/aes/aes_ofb.o \
|
|
264 |
../crypto/bn/bn_add.o \
|
|
265 |
../crypto/bn/bn_blind.o \
|
|
266 |
../crypto/bn/bn_ctx.o \
|
|
267 |
../crypto/bn/bn_div.o \
|
|
268 |
../crypto/bn/bn_exp2.o \
|
|
269 |
../crypto/bn/bn_exp.o \
|
|
270 |
../crypto/bn/bn_gcd.o \
|
|
271 |
../crypto/bn/bn_lib.o \
|
|
272 |
../crypto/bn/bn_mod.o \
|
|
273 |
../crypto/bn/bn_mont.o \
|
|
274 |
../crypto/bn/bn_mul.o \
|
|
275 |
../crypto/bn/bn_prime.o \
|
|
276 |
../crypto/bn/bn_rand.o \
|
|
277 |
../crypto/bn/bn_recp.o \
|
|
278 |
../crypto/bn/bn_shift.o \
|
|
279 |
../crypto/bn/bn_sqr.o \
|
|
280 |
../crypto/bn/bn_word.o \
|
|
281 |
../crypto/bn/bn_x931p.o \
|
|
282 |
../crypto/buffer/buf_str.o \
|
|
283 |
../crypto/cryptlib.o \
|
|
284 |
../crypto/des/cfb64ede.o \
|
|
285 |
../crypto/des/cfb64enc.o \
|
|
286 |
../crypto/des/cfb_enc.o \
|
|
287 |
../crypto/des/ecb3_enc.o \
|
|
288 |
../crypto/des/ecb_enc.o \
|
|
289 |
../crypto/des/ofb64ede.o \
|
|
290 |
../crypto/des/ofb64enc.o \
|
|
291 |
../crypto/des/fcrypt.o \
|
|
292 |
../crypto/des/set_key.o \
|
|
293 |
../crypto/dsa/dsa_utl.o \
|
|
294 |
../crypto/dsa/dsa_sign.o \
|
|
295 |
../crypto/dsa/dsa_vrf.o \
|
|
296 |
../crypto/err/err.o \
|
|
297 |
../crypto/evp/digest.o \
|
|
298 |
../crypto/evp/enc_min.o \
|
|
299 |
../crypto/evp/e_aes.o \
|
|
300 |
../crypto/evp/e_des3.o \
|
|
301 |
../crypto/evp/p_sign.o \
|
|
302 |
../crypto/evp/p_verify.o \
|
|
303 |
../crypto/mem_clr.o \
|
|
304 |
../crypto/mem.o \
|
|
305 |
../crypto/rand/md_rand.o \
|
|
306 |
../crypto/rand/rand_egd.o \
|
|
307 |
../crypto/rand/randfile.o \
|
|
308 |
../crypto/rand/rand_lib.o \
|
|
309 |
../crypto/rand/rand_os2.o \
|
|
310 |
../crypto/rand/rand_unix.o \
|
|
311 |
../crypto/rand/rand_win.o \
|
|
312 |
../crypto/rsa/rsa_lib.o \
|
|
313 |
../crypto/rsa/rsa_none.o \
|
|
314 |
../crypto/rsa/rsa_oaep.o \
|
|
315 |
../crypto/rsa/rsa_pk1.o \
|
|
316 |
../crypto/rsa/rsa_pss.o \
|
|
317 |
../crypto/rsa/rsa_ssl.o \
|
|
318 |
../crypto/rsa/rsa_x931.o \
|
|
319 |
../crypto/sha/sha1dgst.o \
|
|
320 |
../crypto/sha/sha256.o \
|
|
321 |
../crypto/sha/sha512.o \
|
|
322 |
../crypto/uid.o |
|
323 |
||
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
324 |
sub_all: build_all |
325 |
build_all: build_libs build_apps build_tests build_tools |
|
326 |
||
1.1.7
by Kurt Roeckx
Import upstream version 0.9.8k |
327 |
build_libs: build_crypto build_fips build_ssl build_shared build_engines |
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
328 |
|
329 |
build_crypto: |
|
1.1.7
by Kurt Roeckx
Import upstream version 0.9.8k |
330 |
if [ -n "$(FIPSCANLIB)" ]; then \
|
331 |
EXCL_OBJ='$(AES_ASM_OBJ) $(BN_ASM) $(DES_ENC) $(CPUID_OBJ) $(SHA1_ASM_OBJ) $(FIPS_EX_OBJ)' ; export EXCL_OBJ ; \
|
|
332 |
ARX='$(PERL) $${TOP}/util/arx.pl $(AR)' ; \
|
|
333 |
else \
|
|
334 |
ARX='${AR}' ; \
|
|
335 |
fi ; export ARX ; \
|
|
336 |
dir=crypto; target=all; $(BUILD_ONE_CMD)
|
|
337 |
build_fips: |
|
338 |
@dir=fips; target=all; [ -z "$(FIPSCANLIB)" ] || $(BUILD_ONE_CMD) |
|
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
339 |
build_ssl: |
1.1.3
by Kurt Roeckx
Import upstream version 0.9.8b |
340 |
@dir=ssl; target=all; $(BUILD_ONE_CMD) |
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
341 |
build_engines: |
1.1.3
by Kurt Roeckx
Import upstream version 0.9.8b |
342 |
@dir=engines; target=all; $(BUILD_ONE_CMD) |
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
343 |
build_apps: |
1.1.3
by Kurt Roeckx
Import upstream version 0.9.8b |
344 |
@dir=apps; target=all; $(BUILD_ONE_CMD) |
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
345 |
build_tests: |
1.1.3
by Kurt Roeckx
Import upstream version 0.9.8b |
346 |
@dir=test; target=all; $(BUILD_ONE_CMD) |
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
347 |
build_tools: |
1.1.3
by Kurt Roeckx
Import upstream version 0.9.8b |
348 |
@dir=tools; target=all; $(BUILD_ONE_CMD) |
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
349 |
|
350 |
all_testapps: build_libs build_testapps |
|
351 |
build_testapps: |
|
1.1.3
by Kurt Roeckx
Import upstream version 0.9.8b |
352 |
@dir=crypto; target=testapps; $(BUILD_ONE_CMD) |
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
353 |
|
1.1.7
by Kurt Roeckx
Import upstream version 0.9.8k |
354 |
build_shared: $(SHARED_LIBS) |
355 |
libcrypto$(SHLIB_EXT): libcrypto.a $(SHARED_FIPS) |
|
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
356 |
@if [ "$(SHLIB_TARGET)" != "" ]; then \ |
1.1.7
by Kurt Roeckx
Import upstream version 0.9.8k |
357 |
if [ "$(FIPSCANLIB)" = "libfips" ]; then \
|
358 |
$(ARD) libcrypto.a fipscanister.o ; \
|
|
359 |
$(MAKE) SHLIBDIRS='crypto' SHLIBDEPS='-lfips' build-shared; \
|
|
360 |
$(AR) libcrypto.a fips/fipscanister.o ; \
|
|
361 |
else \
|
|
362 |
if [ "$(FIPSCANLIB)" = "libcrypto" ]; then \
|
|
363 |
FIPSLD_CC=$(CC); CC=fips/fipsld; \
|
|
364 |
export CC FIPSLD_CC; \
|
|
365 |
fi; \
|
|
366 |
$(MAKE) -e SHLIBDIRS='crypto' build-shared; \
|
|
367 |
fi \
|
|
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
368 |
else \
|
369 |
echo "There's no support for shared libraries on this platform" >&2; \
|
|
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
370 |
exit 1; \
|
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
371 |
fi
|
372 |
||
373 |
libssl$(SHLIB_EXT): libcrypto$(SHLIB_EXT) libssl.a |
|
374 |
@if [ "$(SHLIB_TARGET)" != "" ]; then \ |
|
1.1.7
by Kurt Roeckx
Import upstream version 0.9.8k |
375 |
shlibdeps=-lcrypto; \ |
376 |
[ "$(FIPSCANLIB)" = "libfips" ] && shlibdeps="$$shlibdeps -lfips"; \ |
|
377 |
$(MAKE) SHLIBDIRS=ssl SHLIBDEPS="$$shlibdeps" build-shared; \ |
|
378 |
else \
|
|
379 |
echo "There's no support for shared libraries on this platform" >&2 ; \
|
|
380 |
exit 1; \
|
|
381 |
fi
|
|
382 |
||
383 |
fips/fipscanister.o: build_fips |
|
384 |
libfips$(SHLIB_EXT): fips/fipscanister.o |
|
385 |
@if [ "$(SHLIB_TARGET)" != "" ]; then \ |
|
386 |
FIPSLD_CC=$(CC); CC=fips/fipsld; export CC FIPSLD_CC; \ |
|
387 |
$(MAKE) -f Makefile.shared -e $(BUILDENV) \ |
|
388 |
CC=$${CC} LIBNAME=fips THIS=$@ \ |
|
389 |
LIBEXTRAS=fips/fipscanister.o \ |
|
390 |
LIBDEPS="$(EX_LIBS)" \ |
|
391 |
LIBVERSION=${SHLIB_MAJOR}.${SHLIB_MINOR} \ |
|
392 |
link_o.$(SHLIB_TARGET) || { rm -f $@; exit 1; } \ |
|
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
393 |
else \
|
394 |
echo "There's no support for shared libraries on this platform" >&2; \
|
|
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
395 |
exit 1; \
|
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
396 |
fi
|
397 |
||
1.1.7
by Kurt Roeckx
Import upstream version 0.9.8k |
398 |
libfips.a: |
399 |
dir=fips; target=all; $(BUILD_ONE_CMD) |
|
400 |
||
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
401 |
clean-shared: |
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
402 |
@set -e; for i in $(SHLIBDIRS); do \ |
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
403 |
if [ -n "$(SHARED_LIBS_LINK_EXTS)" ]; then \
|
404 |
tmp="$(SHARED_LIBS_LINK_EXTS)"; \
|
|
405 |
for j in $${tmp:-x}; do \
|
|
406 |
( set -x; rm -f lib$$i$$j ); \
|
|
407 |
done; \
|
|
408 |
fi; \
|
|
409 |
( set -x; rm -f lib$$i$(SHLIB_EXT) ); \
|
|
410 |
if [ "$(PLATFORM)" = "Cygwin" ]; then \
|
|
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
411 |
( set -x; rm -f cyg$$i$(SHLIB_EXT) lib$$i$(SHLIB_EXT).a ); \
|
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
412 |
fi; \
|
413 |
done
|
|
414 |
||
415 |
link-shared: |
|
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
416 |
@ set -e; for i in ${SHLIBDIRS}; do \ |
1.1.3
by Kurt Roeckx
Import upstream version 0.9.8b |
417 |
$(MAKE) -f $(HERE)/Makefile.shared -e $(BUILDENV) \ |
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
418 |
LIBNAME=$$i LIBVERSION=${SHLIB_MAJOR}.${SHLIB_MINOR} \ |
419 |
LIBCOMPATVERSIONS=";${SHLIB_VERSION_HISTORY}" \ |
|
420 |
symlink.$(SHLIB_TARGET); \ |
|
421 |
libs="$$libs -l$$i"; \ |
|
422 |
done
|
|
423 |
||
424 |
build-shared: do_$(SHLIB_TARGET) link-shared |
|
425 |
||
426 |
do_$(SHLIB_TARGET): |
|
427 |
@ set -e; libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \ |
|
428 |
if [ "${SHLIBDIRS}" = "ssl" -a -n "$(LIBKRB5)" ]; then \
|
|
429 |
libs="$(LIBKRB5) $$libs"; \
|
|
430 |
fi; \
|
|
431 |
$(CLEARENV) && $(MAKE) -f Makefile.shared -e $(BUILDENV) \
|
|
432 |
LIBNAME=$$i LIBVERSION=${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
|
433 |
LIBCOMPATVERSIONS=";${SHLIB_VERSION_HISTORY}" \
|
|
434 |
LIBDEPS="$$libs $(EX_LIBS)" \
|
|
435 |
link_a.$(SHLIB_TARGET); \
|
|
436 |
libs="-l$$i $$libs"; \
|
|
437 |
done
|
|
438 |
||
439 |
libcrypto.pc: Makefile |
|
440 |
@ ( echo 'prefix=$(INSTALLTOP)'; \ |
|
441 |
echo 'exec_prefix=$${prefix}'; \ |
|
442 |
echo 'libdir=$${exec_prefix}/lib'; \ |
|
443 |
echo 'includedir=$${prefix}/include'; \ |
|
444 |
echo ''; \ |
|
445 |
echo 'Name: OpenSSL-libcrypto'; \ |
|
446 |
echo 'Description: OpenSSL cryptography library'; \ |
|
447 |
echo 'Version: '$(VERSION); \ |
|
448 |
echo 'Requires: '; \ |
|
4
by Kurt Roeckx
Stop ssh from crashing randomly on sparc (Closes: #335912) |
449 |
echo 'Libs: -L$${libdir} -lcrypto'; \ |
450 |
echo 'Libs.private: $(EX_LIBS)'; \ |
|
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
451 |
echo 'Cflags: -I$${includedir} $(KRB5_INCLUDES)' ) > libcrypto.pc |
452 |
||
453 |
libssl.pc: Makefile |
|
454 |
@ ( echo 'prefix=$(INSTALLTOP)'; \ |
|
455 |
echo 'exec_prefix=$${prefix}'; \ |
|
456 |
echo 'libdir=$${exec_prefix}/lib'; \ |
|
457 |
echo 'includedir=$${prefix}/include'; \ |
|
458 |
echo ''; \ |
|
459 |
echo 'Name: OpenSSL'; \ |
|
460 |
echo 'Description: Secure Sockets Layer and cryptography libraries'; \ |
|
461 |
echo 'Version: '$(VERSION); \ |
|
462 |
echo 'Requires: '; \ |
|
4
by Kurt Roeckx
Stop ssh from crashing randomly on sparc (Closes: #335912) |
463 |
echo 'Libs: -L$${libdir} -lssl'; \ |
464 |
echo 'Libs.private: -lcrypto $(EX_LIBS)'; \ |
|
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
465 |
echo 'Cflags: -I$${includedir} $(KRB5_INCLUDES)' ) > libssl.pc |
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
466 |
|
467 |
openssl.pc: Makefile |
|
468 |
@ ( echo 'prefix=$(INSTALLTOP)'; \ |
|
469 |
echo 'exec_prefix=$${prefix}'; \ |
|
470 |
echo 'libdir=$${exec_prefix}/lib'; \ |
|
471 |
echo 'includedir=$${prefix}/include'; \ |
|
472 |
echo ''; \ |
|
473 |
echo 'Name: OpenSSL'; \ |
|
474 |
echo 'Description: Secure Sockets Layer and cryptography libraries and tools'; \ |
|
475 |
echo 'Version: '$(VERSION); \ |
|
476 |
echo 'Requires: '; \ |
|
4
by Kurt Roeckx
Stop ssh from crashing randomly on sparc (Closes: #335912) |
477 |
echo 'Libs: -L$${libdir} -lssl -lcrypto'; \ |
478 |
echo 'Libs.private: $(EX_LIBS)'; \ |
|
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
479 |
echo 'Cflags: -I$${includedir} $(KRB5_INCLUDES)' ) > openssl.pc |
480 |
||
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
481 |
Makefile: Makefile.org Configure config |
482 |
@echo "Makefile is older than Makefile.org, Configure or config."
|
|
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
483 |
@echo "Reconfigure the source tree (via './config' or 'perl Configure'), please."
|
484 |
@false |
|
485 |
||
486 |
libclean: |
|
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
487 |
rm -f *.map *.so *.so.* *.dll engines/*.so engines/*.dll *.a engines/*.a */lib */*/lib |
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
488 |
|
489 |
clean: libclean |
|
490 |
rm -f shlib/*.o *.o core a.out fluff rehash.time testlog make.log cctest cctest.c |
|
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
491 |
@set -e; target=clean; $(RECURSIVE_BUILD_CMD) |
492 |
rm -f $(LIBS) |
|
493 |
rm -f openssl.pc libssl.pc libcrypto.pc |
|
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
494 |
rm -f speed.* .pure |
495 |
rm -f $(TARFILE) |
|
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
496 |
@set -e; for i in $(ONEDIRS) ;\ |
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
497 |
do \ |
498 |
rm -fr $$i/*; \ |
|
499 |
done
|
|
500 |
||
501 |
makefile.one: files |
|
502 |
$(PERL) util/mk1mf.pl >makefile.one; \ |
|
503 |
sh util/do_ms.sh |
|
504 |
||
505 |
files: |
|
506 |
$(PERL) $(TOP)/util/files.pl Makefile > $(TOP)/MINFO |
|
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
507 |
@set -e; target=files; $(RECURSIVE_BUILD_CMD) |
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
508 |
|
509 |
links: |
|
510 |
@$(PERL) $(TOP)/util/mkdir-p.pl include/openssl |
|
511 |
@$(PERL) $(TOP)/util/mklink.pl include/openssl $(EXHEADER) |
|
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
512 |
@set -e; target=links; $(RECURSIVE_BUILD_CMD) |
1.1.7
by Kurt Roeckx
Import upstream version 0.9.8k |
513 |
@if [ -z "$(FIPSCANLIB)" ]; then \ |
514 |
set -e; target=links; dir=fips ; $(BUILD_CMD) ; \ |
|
515 |
fi
|
|
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
516 |
|
517 |
gentests: |
|
518 |
@(cd test && echo "generating dummy tests (if needed)..." && \ |
|
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
519 |
$(CLEARENV) && $(MAKE) -e $(BUILDENV) TESTS='${TESTS}' OPENSSL_DEBUG_MEMORY=on generate ); |
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
520 |
|
521 |
dclean: |
|
522 |
rm -f *.bak |
|
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
523 |
@set -e; target=dclean; $(RECURSIVE_BUILD_CMD) |
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
524 |
|
525 |
rehash: rehash.time |
|
526 |
rehash.time: certs |
|
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
527 |
@(OPENSSL="`pwd`/util/opensslwrap.sh"; \ |
528 |
OPENSSL_DEBUG_MEMORY=on; \ |
|
529 |
export OPENSSL OPENSSL_DEBUG_MEMORY; \ |
|
530 |
$(PERL) tools/c_rehash certs) |
|
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
531 |
touch rehash.time |
532 |
||
533 |
test: tests |
|
534 |
||
535 |
tests: rehash |
|
536 |
@(cd test && echo "testing..." && \ |
|
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
537 |
$(CLEARENV) && $(MAKE) -e $(BUILDENV) TOP=.. TESTS='${TESTS}' OPENSSL_DEBUG_MEMORY=on tests ); |
538 |
util/opensslwrap.sh version -a |
|
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
539 |
|
540 |
report: |
|
541 |
@$(PERL) util/selftest.pl |
|
542 |
||
543 |
depend: |
|
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
544 |
@set -e; target=depend; $(RECURSIVE_BUILD_CMD) |
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
545 |
|
546 |
lint: |
|
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
547 |
@set -e; target=lint; $(RECURSIVE_BUILD_CMD) |
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
548 |
|
549 |
tags: |
|
550 |
rm -f TAGS |
|
551 |
find . -name '[^.]*.[ch]' | xargs etags -a |
|
552 |
||
553 |
errors: |
|
554 |
$(PERL) util/mkerr.pl -recurse -write |
|
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
555 |
(cd engines; $(MAKE) PERL=$(PERL) errors) |
556 |
$(PERL) util/ck_errf.pl */*.c */*/*.c |
|
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
557 |
|
558 |
stacks: |
|
559 |
$(PERL) util/mkstack.pl -write |
|
560 |
||
561 |
util/libeay.num:: |
|
562 |
$(PERL) util/mkdef.pl crypto update |
|
563 |
||
564 |
util/ssleay.num:: |
|
565 |
$(PERL) util/mkdef.pl ssl update |
|
566 |
||
567 |
crypto/objects/obj_dat.h: crypto/objects/obj_dat.pl crypto/objects/obj_mac.h |
|
568 |
$(PERL) crypto/objects/obj_dat.pl crypto/objects/obj_mac.h crypto/objects/obj_dat.h |
|
569 |
crypto/objects/obj_mac.h: crypto/objects/objects.pl crypto/objects/objects.txt crypto/objects/obj_mac.num |
|
570 |
$(PERL) crypto/objects/objects.pl crypto/objects/objects.txt crypto/objects/obj_mac.num crypto/objects/obj_mac.h |
|
571 |
||
572 |
apps/openssl-vms.cnf: apps/openssl.cnf |
|
573 |
$(PERL) VMS/VMSify-conf.pl < apps/openssl.cnf > apps/openssl-vms.cnf |
|
574 |
||
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
575 |
crypto/bn/bn_prime.h: crypto/bn/bn_prime.pl |
576 |
$(PERL) crypto/bn/bn_prime.pl >crypto/bn/bn_prime.h |
|
577 |
||
578 |
||
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
579 |
TABLE: Configure |
580 |
(echo 'Output of `Configure TABLE'"':"; \ |
|
581 |
$(PERL) Configure TABLE) > TABLE |
|
582 |
||
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
583 |
update: errors stacks util/libeay.num util/ssleay.num crypto/objects/obj_dat.h apps/openssl-vms.cnf crypto/bn/bn_prime.h TABLE depend |
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
584 |
|
585 |
# Build distribution tar-file. As the list of files returned by "find" is
|
|
586 |
# pretty long, on several platforms a "too many arguments" error or similar
|
|
587 |
# would occur. Therefore the list of files is temporarily stored into a file
|
|
588 |
# and read directly, requiring GNU-Tar. Call "make TAR=gtar dist" if the normal
|
|
589 |
# tar does not support the --files-from option.
|
|
590 |
tar: |
|
591 |
find . -type d -print | xargs chmod 755 |
|
592 |
find . -type f -print | xargs chmod a+r
|
|
593 |
find . -type f -perm -0100 -print | xargs chmod a+x
|
|
594 |
find * \! -path CVS/\* \! -path \*/CVS/\* \! -name CVS \! -name .cvsignore \! -name STATUS \! -name TABLE | sort > ../$(TARFILE).list; \ |
|
595 |
$(TAR) $(TARFLAGS) --files-from ../$(TARFILE).list -cvf - | \ |
|
596 |
tardy --user_number=0 --user_name=openssl \ |
|
597 |
--group_number=0 --group_name=openssl \ |
|
598 |
--prefix=openssl-$(VERSION) - |\ |
|
599 |
gzip --best >../$(TARFILE).gz; \ |
|
600 |
rm -f ../$(TARFILE).list; \ |
|
601 |
ls -l ../$(TARFILE).gz |
|
602 |
||
603 |
tar-snap: |
|
604 |
@$(TAR) $(TARFLAGS) -cvf - \ |
|
605 |
`find * \! -path CVS/\* \! -path \*/CVS/\* \! -name CVS \! -name .cvsignore \! -name STATUS \! -name TABLE \! -name '*.o' \! -name '*.a' \! -name '*.so' \! -name '*.so.*' \! -name 'openssl' \! -name '*test' \! -name '.#*' \! -name '*~' | sort` |\ |
|
606 |
tardy --user_number=0 --user_name=openssl \ |
|
607 |
--group_number=0 --group_name=openssl \ |
|
608 |
--prefix=openssl-$(VERSION) - > ../$(TARFILE);\ |
|
609 |
ls -l ../$(TARFILE) |
|
610 |
||
611 |
dist: |
|
612 |
$(PERL) Configure dist |
|
613 |
@$(MAKE) dist_pem_h |
|
614 |
@$(MAKE) SDIRS='${SDIRS}' clean |
|
615 |
@$(MAKE) TAR='${TAR}' TARFLAGS='${TARFLAGS}' tar |
|
616 |
||
617 |
dist_pem_h: |
|
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
618 |
(cd crypto/pem; $(MAKE) -e $(BUILDENV) pem.h; $(MAKE) clean) |
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
619 |
|
620 |
install: all install_docs install_sw |
|
621 |
||
622 |
install_sw: |
|
623 |
@$(PERL) $(TOP)/util/mkdir-p.pl $(INSTALL_PREFIX)$(INSTALLTOP)/bin \ |
|
624 |
$(INSTALL_PREFIX)$(INSTALLTOP)/lib \ |
|
4
by Kurt Roeckx
Stop ssh from crashing randomly on sparc (Closes: #335912) |
625 |
$(INSTALL_PREFIX)$(INSTALLTOP)/lib/ssl/engines \ |
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
626 |
$(INSTALL_PREFIX)$(INSTALLTOP)/lib/pkgconfig \ |
627 |
$(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl \ |
|
628 |
$(INSTALL_PREFIX)$(OPENSSLDIR)/misc \ |
|
629 |
$(INSTALL_PREFIX)$(OPENSSLDIR)/certs \ |
|
630 |
$(INSTALL_PREFIX)$(OPENSSLDIR)/private |
|
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
631 |
@set -e; headerlist="$(EXHEADER)"; for i in $$headerlist;\ |
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
632 |
do \ |
633 |
(cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ |
|
634 |
chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ |
|
635 |
done; |
|
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
636 |
@set -e; target=install; $(RECURSIVE_BUILD_CMD) |
637 |
@set -e; for i in $(LIBS) ;\ |
|
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
638 |
do \ |
639 |
if [ -f "$$i" ]; then \
|
|
640 |
( echo installing $$i; \
|
|
641 |
cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.new; \
|
|
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
642 |
$(RANLIB) $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.new; \
|
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
643 |
chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.new; \
|
644 |
mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.new $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i ); \
|
|
645 |
fi; \
|
|
646 |
done;
|
|
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
647 |
@set -e; if [ -n "$(SHARED_LIBS)" ]; then \ |
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
648 |
tmp="$(SHARED_LIBS)"; \ |
649 |
for i in $${tmp:-x}; \ |
|
650 |
do \ |
|
651 |
if [ -f "$$i" -o -f "$$i.a" ]; then \
|
|
652 |
( echo installing $$i; \
|
|
653 |
if [ "$(PLATFORM)" != "Cygwin" ]; then \
|
|
654 |
cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.new; \
|
|
655 |
chmod 555 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.new; \
|
|
656 |
mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.new $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i; \
|
|
657 |
else \
|
|
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
658 |
c=`echo $$i | sed 's/^lib\(.*\)\.dll\.a/cyg\1-$(SHLIB_VERSION_NUMBER).dll/'`; \
|
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
659 |
cp $$c $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$c.new; \
|
660 |
chmod 755 $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$c.new; \
|
|
661 |
mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$c.new $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$c; \
|
|
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
662 |
cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.new; \
|
663 |
chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.new; \
|
|
664 |
mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.new $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i; \
|
|
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
665 |
fi ); \
|
666 |
fi; \
|
|
667 |
done; \
|
|
668 |
( here="`pwd`"; \
|
|
669 |
cd $(INSTALL_PREFIX)$(INSTALLTOP)/lib; \
|
|
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
670 |
$(MAKE) -f $$here/Makefile HERE="$$here" link-shared ); \
|
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
671 |
if [ "$(INSTALLTOP)" != "/usr" ]; then \
|
672 |
echo 'OpenSSL shared libraries have been installed in:'; \
|
|
673 |
echo ' $(INSTALLTOP)'; \
|
|
674 |
echo ''; \
|
|
675 |
sed -e '1,/^$$/d' doc/openssl-shared.txt; \
|
|
676 |
fi; \
|
|
677 |
fi
|
|
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
678 |
cp libcrypto.pc $(INSTALL_PREFIX)$(INSTALLTOP)/lib/pkgconfig |
679 |
chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/pkgconfig/libcrypto.pc |
|
680 |
cp libssl.pc $(INSTALL_PREFIX)$(INSTALLTOP)/lib/pkgconfig |
|
681 |
chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/pkgconfig/libssl.pc |
|
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
682 |
cp openssl.pc $(INSTALL_PREFIX)$(INSTALLTOP)/lib/pkgconfig |
683 |
chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/pkgconfig/openssl.pc |
|
684 |
||
685 |
install_docs: |
|
686 |
@$(PERL) $(TOP)/util/mkdir-p.pl \ |
|
687 |
$(INSTALL_PREFIX)$(MANDIR)/man1 \ |
|
688 |
$(INSTALL_PREFIX)$(MANDIR)/man3 \ |
|
689 |
$(INSTALL_PREFIX)$(MANDIR)/man5 \ |
|
690 |
$(INSTALL_PREFIX)$(MANDIR)/man7 |
|
691 |
@pod2man="`cd util; ./pod2mantest $(PERL)`"; \ |
|
692 |
here="`pwd`"; \ |
|
693 |
filecase=; \ |
|
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
694 |
if [ "$(PLATFORM)" = "DJGPP" -o "$(PLATFORM)" = "Cygwin" -o "$(PLATFORM)" = "mingw" ]; then \
|
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
695 |
filecase=-i; \
|
696 |
fi; \
|
|
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
697 |
set -e; for i in doc/apps/*.pod; do \
|
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
698 |
fn=`basename $$i .pod`; \
|
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
699 |
sec=`$(PERL) util/extract-section.pl 1 < $$i`; \
|
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
700 |
echo "installing man$$sec/$$fn.$${sec}$(MANSUFFIX)"; \
|
701 |
(cd `$(PERL) util/dirname.pl $$i`; \
|
|
702 |
sh -c "$$pod2man \
|
|
6
by Kurt Roeckx
* Don't call gcc with -mcpu on i386, we already use -march, so no need for |
703 |
--section=$${sec}$(MANSECTION) --center=OpenSSL \
|
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
704 |
--release=$(VERSION) `basename $$i`") \
|
705 |
> $(INSTALL_PREFIX)$(MANDIR)/man$$sec/$$fn.$${sec}$(MANSUFFIX); \
|
|
706 |
$(PERL) util/extract-names.pl < $$i | \
|
|
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
707 |
(grep -v $$filecase "^$$fn\$$"; true) | \
|
708 |
(grep -v "[ ]"; true) | \
|
|
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
709 |
(cd $(INSTALL_PREFIX)$(MANDIR)/man$$sec/; \
|
710 |
while read n; do \
|
|
711 |
$$here/util/point.sh $$fn.$${sec}$(MANSUFFIX) "$$n".$${sec}$(MANSUFFIX); \
|
|
712 |
done); \
|
|
713 |
done; \
|
|
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
714 |
set -e; for i in doc/crypto/*.pod doc/ssl/*.pod; do \
|
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
715 |
fn=`basename $$i .pod`; \
|
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
716 |
sec=`$(PERL) util/extract-section.pl 3 < $$i`; \
|
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
717 |
echo "installing man$$sec/$$fn.$${sec}$(MANSUFFIX)"; \
|
718 |
(cd `$(PERL) util/dirname.pl $$i`; \
|
|
719 |
sh -c "$$pod2man \
|
|
6
by Kurt Roeckx
* Don't call gcc with -mcpu on i386, we already use -march, so no need for |
720 |
--section=$${sec}$(MANSECTION) --center=OpenSSL \
|
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
721 |
--release=$(VERSION) `basename $$i`") \
|
722 |
> $(INSTALL_PREFIX)$(MANDIR)/man$$sec/$$fn.$${sec}$(MANSUFFIX); \
|
|
723 |
$(PERL) util/extract-names.pl < $$i | \
|
|
1.1.2
by Kurt Roeckx
Import upstream version 0.9.8a |
724 |
(grep -v $$filecase "^$$fn\$$"; true) | \
|
725 |
(grep -v "[ ]"; true) | \
|
|
1.1.1
by Christoph Martin
Import upstream version 0.9.7e |
726 |
(cd $(INSTALL_PREFIX)$(MANDIR)/man$$sec/; \
|
727 |
while read n; do \
|
|
728 |
$$here/util/point.sh $$fn.$${sec}$(MANSUFFIX) "$$n".$${sec}$(MANSUFFIX); \
|
|
729 |
done); \
|
|
730 |
done
|
|
731 |
||
732 |
# DO NOT DELETE THIS LINE -- make depend depends on it.
|