OLD | NEW |
1 ### Generated automatically from Makefile.org by Configure. | 1 ### Generated automatically from Makefile.org by Configure. |
2 | 2 |
3 ## | 3 ## |
4 ## Makefile for OpenSSL | 4 ## Makefile for OpenSSL |
5 ## | 5 ## |
6 | 6 |
7 VERSION=0.9.8o | 7 VERSION=1.0.0f |
8 MAJOR=0 | 8 MAJOR=1 |
9 MINOR=9.8 | 9 MINOR=0.0 |
10 SHLIB_VERSION_NUMBER=0.9.8 | 10 SHLIB_VERSION_NUMBER=1.0.0 |
11 SHLIB_VERSION_HISTORY= | 11 SHLIB_VERSION_HISTORY= |
12 SHLIB_MAJOR=0 | 12 SHLIB_MAJOR=1 |
13 SHLIB_MINOR=9.8 | 13 SHLIB_MINOR=0.0 |
14 SHLIB_EXT= | 14 SHLIB_EXT= |
15 PLATFORM=dist | 15 PLATFORM=dist |
16 OPTIONS= no-camellia no-capieng no-cms no-gmp no-jpake no-krb5 no-mdc2 no-montas
m no-rc5 no-rfc3779 no-seed no-shared no-zlib no-zlib-dynamic | 16 OPTIONS= no-gmp no-jpake no-krb5 no-md2 no-rc5 no-rfc3779 no-shared no-store no-
zlib no-zlib-dynamic static-engine |
17 CONFIGURE_ARGS=dist | 17 CONFIGURE_ARGS=dist |
18 SHLIB_TARGET= | 18 SHLIB_TARGET= |
19 | 19 |
20 # HERE indicates where this Makefile lives. This can be used to indicate | 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, | 21 # where sub-Makefiles are expected to be. Currently has very limited usage, |
22 # and should probably not be bothered with at all. | 22 # and should probably not be bothered with at all. |
23 HERE=. | 23 HERE=. |
24 | 24 |
25 # INSTALL_PREFIX is for package builders so that they can configure | 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/. | 26 # for, say, /usr/ and yet have everything installed to /tmp/somedir/usr/. |
(...skipping 27 matching lines...) Expand all Loading... |
54 # call application defined callbacks via CRYPTO_set_mem_functions() | 54 # call application defined callbacks via CRYPTO_set_mem_functions() |
55 # MD5_ASM needs to be defined to use the x86 assembler for MD5 | 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 | 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 | 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 | 58 # Do not define B_ENDIAN or L_ENDIAN if 'unsigned long' == 8. It must |
59 # equal 4. | 59 # equal 4. |
60 # PKCS1_CHECK - pkcs1 tests. | 60 # PKCS1_CHECK - pkcs1 tests. |
61 | 61 |
62 CC= cc | 62 CC= cc |
63 CFLAG= -O | 63 CFLAG= -O |
64 DEPFLAG= -DOPENSSL_NO_CAMELLIA -DOPENSSL_NO_CAPIENG -DOPENSSL_NO_CMS -DOPENSSL_N
O_GMP -DOPENSSL_NO_JPAKE -DOPENSSL_NO_MDC2 -DOPENSSL_NO_RC5 -DOPENSSL_NO_RFC3779
-DOPENSSL_NO_SEED | 64 DEPFLAG= -DOPENSSL_NO_GMP -DOPENSSL_NO_JPAKE -DOPENSSL_NO_MD2 -DOPENSSL_NO_RC5 -
DOPENSSL_NO_RFC3779 -DOPENSSL_NO_STORE |
65 PEX_LIBS= | 65 PEX_LIBS= |
66 EX_LIBS= | 66 EX_LIBS= |
67 EXE_EXT= | 67 EXE_EXT= |
68 ARFLAGS= | 68 ARFLAGS= |
69 AR= ar $(ARFLAGS) r | 69 AR= ar $(ARFLAGS) r |
70 ARD=ar $(ARFLAGS) d | |
71 RANLIB= /usr/bin/ranlib | 70 RANLIB= /usr/bin/ranlib |
| 71 NM= nm |
72 PERL= /usr/bin/perl | 72 PERL= /usr/bin/perl |
73 TAR= tar | 73 TAR= tar |
74 TARFLAGS= --no-recursion | 74 TARFLAGS= --no-recursion |
75 MAKEDEPPROG=makedepend | 75 MAKEDEPPROG=makedepend |
76 LIBDIR=lib | 76 LIBDIR=lib |
77 | 77 |
78 # We let the C compiler driver to take care of .s files. This is done in | 78 # We let the C compiler driver to take care of .s files. This is done in |
79 # order to be excused from maintaining a separate set of architecture | 79 # order to be excused from maintaining a separate set of architecture |
80 # dependent assembler flags. E.g. if you throw -mcpu=ultrasparc at SPARC | 80 # dependent assembler flags. E.g. if you throw -mcpu=ultrasparc at SPARC |
81 # gcc, then the driver will automatically translate it to -xarch=v8plus | 81 # gcc, then the driver will automatically translate it to -xarch=v8plus |
82 # and pass it down to assembler. | 82 # and pass it down to assembler. |
83 AS=$(CC) -c | 83 AS=$(CC) -c |
84 ASFLAG=$(CFLAG) | 84 ASFLAG=$(CFLAG) |
85 | 85 |
86 # For x86 assembler: Set PROCESSOR to 386 if you want to support | 86 # For x86 assembler: Set PROCESSOR to 386 if you want to support |
87 # the 80386. | 87 # the 80386. |
88 PROCESSOR= | 88 PROCESSOR= |
89 | 89 |
90 # CPUID module collects small commonly used assembler snippets | 90 # CPUID module collects small commonly used assembler snippets |
91 CPUID_OBJ= | 91 CPUID_OBJ= mem_clr.o |
92 BN_ASM= bn_asm.o | 92 BN_ASM= bn_asm.o |
93 DES_ENC= des_enc.o fcrypt_b.o | 93 DES_ENC= des_enc.o fcrypt_b.o |
94 AES_ASM_OBJ= aes_core.o aes_cbc.o | 94 AES_ENC= aes_core.o aes_cbc.o |
95 BF_ENC= bf_enc.o | 95 BF_ENC= bf_enc.o |
96 CAST_ENC= c_enc.o | 96 CAST_ENC= c_enc.o |
97 RC4_ENC= rc4_enc.o rc4_skey.o | 97 RC4_ENC= rc4_enc.o rc4_skey.o |
98 RC5_ENC= rc5_enc.o | 98 RC5_ENC= rc5_enc.o |
99 MD5_ASM_OBJ= | 99 MD5_ASM_OBJ= |
100 SHA1_ASM_OBJ= | 100 SHA1_ASM_OBJ= |
101 RMD160_ASM_OBJ= | 101 RMD160_ASM_OBJ= |
| 102 WP_ASM_OBJ= wp_block.o |
| 103 CMLL_ENC= camellia.o cmll_misc.o cmll_cbc.o |
| 104 PERLASM_SCHEME= |
102 | 105 |
103 # KRB5 stuff | 106 # KRB5 stuff |
104 KRB5_INCLUDES= | 107 KRB5_INCLUDES= |
105 LIBKRB5= | 108 LIBKRB5= |
106 | 109 |
107 # Zlib stuff | 110 # Zlib stuff |
108 ZLIB_INCLUDE= | 111 ZLIB_INCLUDE= |
109 LIBZLIB= | 112 LIBZLIB= |
110 | 113 |
111 # This is the location of fipscanister.o and friends. | |
112 # The FIPS module build will place it $(INSTALLTOP)/lib | |
113 # but since $(INSTALLTOP) can only take the default value | |
114 # when the module is built it will be in /usr/local/ssl/lib | |
115 # $(INSTALLTOP) for this build make be different so hard | |
116 # code the path. | |
117 | |
118 FIPSLIBDIR=/usr/local/ssl/fips-1.0/lib/ | |
119 | |
120 # This is set to "y" if fipscanister.o is compiled internally as | |
121 # opposed to coming from an external validated location. | |
122 | |
123 FIPSCANISTERINTERNAL=n | |
124 | |
125 # The location of the library which contains fipscanister.o | |
126 # normally it will be libcrypto unless fipsdso is set in which | |
127 # case it will be libfips. If not compiling in FIPS mode at all | |
128 # this is empty making it a useful test for a FIPS compile. | |
129 | |
130 FIPSCANLIB= | |
131 | |
132 # Shared library base address. Currently only used on Windows. | |
133 # | |
134 | |
135 BASEADDR=0xFB00000 | |
136 | |
137 DIRS= crypto ssl engines apps test tools | 114 DIRS= crypto ssl engines apps test tools |
| 115 ENGDIRS= ccgost |
138 SHLIBDIRS= crypto ssl | 116 SHLIBDIRS= crypto ssl |
139 | 117 |
140 # dirs in crypto to build | 118 # dirs in crypto to build |
141 SDIRS= \ | 119 SDIRS= \ |
142 objects \ | 120 objects \ |
143 » md2 md4 md5 sha hmac ripemd \ | 121 » md4 md5 sha mdc2 hmac ripemd whrlpool \ |
144 » des aes rc2 rc4 idea bf cast \ | 122 » des aes rc2 rc4 idea bf cast camellia seed modes \ |
145 bn ec rsa dsa ecdsa dh ecdh dso engine \ | 123 bn ec rsa dsa ecdsa dh ecdh dso engine \ |
146 buffer bio stack lhash rand err \ | 124 buffer bio stack lhash rand err \ |
147 evp asn1 pem x509 x509v3 conf txt_db pkcs7 pkcs12 comp ocsp ui krb5 \ | 125 evp asn1 pem x509 x509v3 conf txt_db pkcs7 pkcs12 comp ocsp ui krb5 \ |
148 » store pqueue | 126 » cms pqueue ts |
149 # keep in mind that the above list is adjusted by ./Configure | 127 # keep in mind that the above list is adjusted by ./Configure |
150 # according to no-xxx arguments... | 128 # according to no-xxx arguments... |
151 | 129 |
152 # tests to perform. "alltests" is a special word indicating that all tests | 130 # tests to perform. "alltests" is a special word indicating that all tests |
153 # should be performed. | 131 # should be performed. |
154 TESTS = alltests | 132 TESTS = alltests |
155 | 133 |
156 MAKEFILE= Makefile | 134 MAKEFILE= Makefile |
157 | 135 |
158 MANDIR=$(OPENSSLDIR)/man | 136 MANDIR=$(OPENSSLDIR)/man |
159 MAN1=1 | 137 MAN1=1 |
160 MAN3=3 | 138 MAN3=3 |
161 MANSUFFIX= | 139 MANSUFFIX= |
| 140 HTMLSUFFIX=html |
| 141 HTMLDIR=$(OPENSSLDIR)/html |
162 SHELL=/bin/sh | 142 SHELL=/bin/sh |
163 | 143 |
164 TOP= . | 144 TOP= . |
165 ONEDIRS=out tmp | 145 ONEDIRS=out tmp |
166 EDIRS= times doc bugs util include certs ms shlib mt demos perl sf dep VMS | 146 EDIRS= times doc bugs util include certs ms shlib mt demos perl sf dep VMS |
167 WDIRS= windows | 147 WDIRS= windows |
168 LIBS= libcrypto.a libssl.a | 148 LIBS= libcrypto.a libssl.a |
169 SHARED_CRYPTO=libcrypto$(SHLIB_EXT) | 149 SHARED_CRYPTO=libcrypto$(SHLIB_EXT) |
170 SHARED_SSL=libssl$(SHLIB_EXT) | 150 SHARED_SSL=libssl$(SHLIB_EXT) |
171 SHARED_FIPS= | |
172 SHARED_LIBS= | 151 SHARED_LIBS= |
173 SHARED_LIBS_LINK_EXTS= | 152 SHARED_LIBS_LINK_EXTS= |
174 SHARED_LDFLAGS= | 153 SHARED_LDFLAGS= |
175 | 154 |
176 GENERAL= Makefile | 155 GENERAL= Makefile |
177 BASENAME= openssl | 156 BASENAME= openssl |
178 NAME= $(BASENAME)-$(VERSION) | 157 NAME= $(BASENAME)-$(VERSION) |
179 TARFILE= $(NAME).tar | 158 TARFILE= $(NAME).tar |
180 WTARFILE= $(NAME)-win.tar | 159 WTARFILE= $(NAME)-win.tar |
181 EXHEADER= e_os2.h | 160 EXHEADER= e_os2.h |
(...skipping 10 matching lines...) Expand all Loading... |
192 $${INCLUDE+INCLUDE} $${INCLUDES+INCLUDES} \ | 171 $${INCLUDE+INCLUDE} $${INCLUDES+INCLUDES} \ |
193 $${DIR+DIR} $${DIRS+DIRS} $${SRC+SRC} \ | 172 $${DIR+DIR} $${DIRS+DIRS} $${SRC+SRC} \ |
194 $${LIBSRC+LIBSRC} $${LIBOBJ+LIBOBJ} $${ALL+ALL} \ | 173 $${LIBSRC+LIBSRC} $${LIBOBJ+LIBOBJ} $${ALL+ALL} \ |
195 $${EXHEADER+EXHEADER} $${HEADER+HEADER} \ | 174 $${EXHEADER+EXHEADER} $${HEADER+HEADER} \ |
196 $${GENERAL+GENERAL} $${CFLAGS+CFLAGS} \ | 175 $${GENERAL+GENERAL} $${CFLAGS+CFLAGS} \ |
197 $${ASFLAGS+ASFLAGS} $${AFLAGS+AFLAGS} \ | 176 $${ASFLAGS+ASFLAGS} $${AFLAGS+AFLAGS} \ |
198 $${LDCMD+LDCMD} $${LDFLAGS+LDFLAGS} \ | 177 $${LDCMD+LDCMD} $${LDFLAGS+LDFLAGS} \ |
199 $${SHAREDCMD+SHAREDCMD} $${SHAREDFLAGS+SHAREDFLAGS} \ | 178 $${SHAREDCMD+SHAREDCMD} $${SHAREDFLAGS+SHAREDFLAGS} \ |
200 $${SHARED_LIB+SHARED_LIB} $${LIBEXTRAS+LIBEXTRAS} | 179 $${SHARED_LIB+SHARED_LIB} $${LIBEXTRAS+LIBEXTRAS} |
201 | 180 |
202 BUILDENV=» PLATFORM='${PLATFORM}' PROCESSOR='${PROCESSOR}' \ | 181 BUILDENV=» PLATFORM='$(PLATFORM)' PROCESSOR='$(PROCESSOR)' \ |
203 » » CC='${CC}' CFLAG='${CFLAG}' » » » \ | 182 » » CC='$(CC)' CFLAG='$(CFLAG)' » » » \ |
204 » » AS='${CC}' ASFLAG='${CFLAG} -c'»» » \ | 183 » » AS='$(CC)' ASFLAG='$(CFLAG) -c'»» » \ |
205 » » AR='${AR}' PERL='${PERL}' RANLIB='${RANLIB}'» \ | 184 » » AR='$(AR)' NM='$(NM)' RANLIB='$(RANLIB)'» \ |
206 » » SDIRS='${SDIRS}' LIBRPATH='${INSTALLTOP}/$(LIBDIR)'» \ | 185 » » CROSS_COMPILE='$(CROSS_COMPILE)'» \ |
207 » » INSTALL_PREFIX='${INSTALL_PREFIX}'» » \ | 186 » » PERL='$(PERL)' ENGDIRS='$(ENGDIRS)'» » \ |
208 » » INSTALLTOP='${INSTALLTOP}' OPENSSLDIR='${OPENSSLDIR}'» \ | 187 » » SDIRS='$(SDIRS)' LIBRPATH='$(INSTALLTOP)/$(LIBDIR)'» \ |
209 » » LIBDIR='${LIBDIR}' \ | 188 » » INSTALL_PREFIX='$(INSTALL_PREFIX)'» » \ |
210 » » MAKEDEPEND='$$$${TOP}/util/domd $$$${TOP} -MD ${MAKEDEPPROG}' \ | 189 » » INSTALLTOP='$(INSTALLTOP)' OPENSSLDIR='$(OPENSSLDIR)'» \ |
211 » » DEPFLAG='-DOPENSSL_NO_DEPRECATED ${DEPFLAG}'» \ | 190 » » LIBDIR='$(LIBDIR)'» » » » \ |
212 » » MAKEDEPPROG='${MAKEDEPPROG}'» » » \ | 191 » » MAKEDEPEND='$$$${TOP}/util/domd $$$${TOP} -MD $(MAKEDEPPROG)' \ |
213 » » SHARED_LDFLAGS='${SHARED_LDFLAGS}'» » \ | 192 » » DEPFLAG='-DOPENSSL_NO_DEPRECATED $(DEPFLAG)'» \ |
214 » » KRB5_INCLUDES='${KRB5_INCLUDES}' LIBKRB5='${LIBKRB5}'» \ | 193 » » MAKEDEPPROG='$(MAKEDEPPROG)'» » » \ |
215 » » EXE_EXT='${EXE_EXT}' SHARED_LIBS='${SHARED_LIBS}'» \ | 194 » » SHARED_LDFLAGS='$(SHARED_LDFLAGS)'» » \ |
216 » » SHLIB_EXT='${SHLIB_EXT}' SHLIB_TARGET='${SHLIB_TARGET}'»\ | 195 » » KRB5_INCLUDES='$(KRB5_INCLUDES)' LIBKRB5='$(LIBKRB5)'» \ |
217 » » PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}'» \ | 196 » » ZLIB_INCLUDE='$(ZLIB_INCLUDE)' LIBZLIB='$(LIBZLIB)'» \ |
218 » » CPUID_OBJ='${CPUID_OBJ}'» » » \ | 197 » » EXE_EXT='$(EXE_EXT)' SHARED_LIBS='$(SHARED_LIBS)'» \ |
219 » » BN_ASM='${BN_ASM}' DES_ENC='${DES_ENC}' » \ | 198 » » SHLIB_EXT='$(SHLIB_EXT)' SHLIB_TARGET='$(SHLIB_TARGET)'»\ |
220 » » AES_ASM_OBJ='${AES_ASM_OBJ}'» » » \ | 199 » » PEX_LIBS='$(PEX_LIBS)' EX_LIBS='$(EX_LIBS)'» \ |
221 » » BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}'» \ | 200 » » CPUID_OBJ='$(CPUID_OBJ)'» » » \ |
222 » » RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}'» \ | 201 » » BN_ASM='$(BN_ASM)' DES_ENC='$(DES_ENC)' » \ |
223 » » SHA1_ASM_OBJ='${SHA1_ASM_OBJ}'» » » \ | 202 » » AES_ENC='$(AES_ENC)' CMLL_ENC='$(CMLL_ENC)'» \ |
224 » » MD5_ASM_OBJ='${MD5_ASM_OBJ}'» » » \ | 203 » » BF_ENC='$(BF_ENC)' CAST_ENC='$(CAST_ENC)'» \ |
225 » » RMD160_ASM_OBJ='${RMD160_ASM_OBJ}'» » \ | 204 » » RC4_ENC='$(RC4_ENC)' RC5_ENC='$(RC5_ENC)'» \ |
226 » » FIPSLIBDIR='${FIPSLIBDIR}'» » » \ | 205 » » SHA1_ASM_OBJ='$(SHA1_ASM_OBJ)'» » » \ |
227 » » FIPSCANLIB="$${FIPSCANLIB:-$(FIPSCANLIB)}"» \ | 206 » » MD5_ASM_OBJ='$(MD5_ASM_OBJ)'» » » \ |
228 » » FIPSCANISTERINTERNAL='${FIPSCANISTERINTERNAL}'» \ | 207 » » RMD160_ASM_OBJ='$(RMD160_ASM_OBJ)'» » \ |
229 » » FIPS_EX_OBJ='${FIPS_EX_OBJ}'» \ | 208 » » WP_ASM_OBJ='$(WP_ASM_OBJ)'» » » \ |
| 209 » » PERLASM_SCHEME='$(PERLASM_SCHEME)'» » \ |
230 THIS=$${THIS:-$@} MAKEFILE=Makefile MAKEOVERRIDES= | 210 THIS=$${THIS:-$@} MAKEFILE=Makefile MAKEOVERRIDES= |
231 # MAKEOVERRIDES= effectively "equalizes" GNU-ish and SysV-ish make flavors, | 211 # MAKEOVERRIDES= effectively "equalizes" GNU-ish and SysV-ish make flavors, |
232 # which in turn eliminates ambiguities in variable treatment with -e. | 212 # which in turn eliminates ambiguities in variable treatment with -e. |
233 | 213 |
234 # BUILD_CMD is a generic macro to build a given target in a given | 214 # BUILD_CMD is a generic macro to build a given target in a given |
235 # subdirectory. The target must be given through the shell variable | 215 # subdirectory. The target must be given through the shell variable |
236 # `target' and the subdirectory to build in must be given through `dir'. | 216 # `target' and the subdirectory to build in must be given through `dir'. |
237 # This macro shouldn't be used directly, use RECURSIVE_BUILD_CMD or | 217 # This macro shouldn't be used directly, use RECURSIVE_BUILD_CMD or |
238 # BUILD_ONE_CMD instead. | 218 # BUILD_ONE_CMD instead. |
239 # | 219 # |
240 # BUILD_ONE_CMD is a macro to build a given target in a given | 220 # BUILD_ONE_CMD is a macro to build a given target in a given |
241 # subdirectory if that subdirectory is part of $(DIRS). It requires | 221 # subdirectory if that subdirectory is part of $(DIRS). It requires |
242 # exactly the same shell variables as BUILD_CMD. | 222 # exactly the same shell variables as BUILD_CMD. |
243 # | 223 # |
244 # RECURSIVE_BUILD_CMD is a macro to build a given target in all | 224 # RECURSIVE_BUILD_CMD is a macro to build a given target in all |
245 # subdirectories defined in $(DIRS). It requires that the target | 225 # subdirectories defined in $(DIRS). It requires that the target |
246 # is given through the shell variable `target'. | 226 # is given through the shell variable `target'. |
247 BUILD_CMD= if [ -d "$$dir" ]; then \ | 227 BUILD_CMD= if [ -d "$$dir" ]; then \ |
248 » (» [ $$target != all -a -z "$(FIPSCANLIB)" ] && FIPSCANLIB=/dev/nul
l; \ | 228 » (» cd $$dir && echo "making $$target in $$dir..." && \ |
249 » » cd $$dir && echo "making $$target in $$dir..." && \ | |
250 $(CLEARENV) && $(MAKE) -e $(BUILDENV) TOP=.. DIR=$$dir $$target
\ | 229 $(CLEARENV) && $(MAKE) -e $(BUILDENV) TOP=.. DIR=$$dir $$target
\ |
251 ) || exit 1; \ | 230 ) || exit 1; \ |
252 fi | 231 fi |
253 RECURSIVE_BUILD_CMD=for dir in $(DIRS); do $(BUILD_CMD); done | 232 RECURSIVE_BUILD_CMD=for dir in $(DIRS); do $(BUILD_CMD); done |
254 BUILD_ONE_CMD=\ | 233 BUILD_ONE_CMD=\ |
255 » if echo " $(DIRS) " | grep " $$dir " >/dev/null 2>/dev/null; then \ | 234 » if expr " $(DIRS) " : ".* $$dir " >/dev/null 2>&1; then \ |
256 $(BUILD_CMD); \ | 235 $(BUILD_CMD); \ |
257 fi | 236 fi |
258 | 237 |
259 reflect: | 238 reflect: |
260 @[ -n "$(THIS)" ] && $(CLEARENV) && $(MAKE) $(THIS) -e $(BUILDENV) | 239 @[ -n "$(THIS)" ] && $(CLEARENV) && $(MAKE) $(THIS) -e $(BUILDENV) |
261 | 240 |
262 FIPS_EX_OBJ= ../crypto/aes/aes_cfb.o \ | |
263 ../crypto/aes/aes_ecb.o \ | |
264 ../crypto/aes/aes_ofb.o \ | |
265 ../crypto/bn/bn_add.o \ | |
266 ../crypto/bn/bn_blind.o \ | |
267 ../crypto/bn/bn_ctx.o \ | |
268 ../crypto/bn/bn_div.o \ | |
269 ../crypto/bn/bn_exp2.o \ | |
270 ../crypto/bn/bn_exp.o \ | |
271 ../crypto/bn/bn_gcd.o \ | |
272 ../crypto/bn/bn_lib.o \ | |
273 ../crypto/bn/bn_mod.o \ | |
274 ../crypto/bn/bn_mont.o \ | |
275 ../crypto/bn/bn_mul.o \ | |
276 ../crypto/bn/bn_prime.o \ | |
277 ../crypto/bn/bn_rand.o \ | |
278 ../crypto/bn/bn_recp.o \ | |
279 ../crypto/bn/bn_shift.o \ | |
280 ../crypto/bn/bn_sqr.o \ | |
281 ../crypto/bn/bn_word.o \ | |
282 ../crypto/bn/bn_x931p.o \ | |
283 ../crypto/buffer/buf_str.o \ | |
284 ../crypto/cryptlib.o \ | |
285 ../crypto/des/cfb64ede.o \ | |
286 ../crypto/des/cfb64enc.o \ | |
287 ../crypto/des/cfb_enc.o \ | |
288 ../crypto/des/ecb3_enc.o \ | |
289 ../crypto/des/ecb_enc.o \ | |
290 ../crypto/des/ofb64ede.o \ | |
291 ../crypto/des/ofb64enc.o \ | |
292 ../crypto/des/fcrypt.o \ | |
293 ../crypto/des/set_key.o \ | |
294 ../crypto/dsa/dsa_utl.o \ | |
295 ../crypto/dsa/dsa_sign.o \ | |
296 ../crypto/dsa/dsa_vrf.o \ | |
297 ../crypto/err/err.o \ | |
298 ../crypto/evp/digest.o \ | |
299 ../crypto/evp/enc_min.o \ | |
300 ../crypto/evp/e_aes.o \ | |
301 ../crypto/evp/e_des3.o \ | |
302 ../crypto/evp/p_sign.o \ | |
303 ../crypto/evp/p_verify.o \ | |
304 ../crypto/mem_clr.o \ | |
305 ../crypto/mem.o \ | |
306 ../crypto/rand/md_rand.o \ | |
307 ../crypto/rand/rand_egd.o \ | |
308 ../crypto/rand/randfile.o \ | |
309 ../crypto/rand/rand_lib.o \ | |
310 ../crypto/rand/rand_os2.o \ | |
311 ../crypto/rand/rand_unix.o \ | |
312 ../crypto/rand/rand_win.o \ | |
313 ../crypto/rsa/rsa_lib.o \ | |
314 ../crypto/rsa/rsa_none.o \ | |
315 ../crypto/rsa/rsa_oaep.o \ | |
316 ../crypto/rsa/rsa_pk1.o \ | |
317 ../crypto/rsa/rsa_pss.o \ | |
318 ../crypto/rsa/rsa_ssl.o \ | |
319 ../crypto/rsa/rsa_x931.o \ | |
320 ../crypto/sha/sha1dgst.o \ | |
321 ../crypto/sha/sha256.o \ | |
322 ../crypto/sha/sha512.o \ | |
323 ../crypto/uid.o | |
324 | |
325 sub_all: build_all | 241 sub_all: build_all |
326 build_all: build_libs build_apps build_tests build_tools | 242 build_all: build_libs build_apps build_tests build_tools |
327 | 243 |
328 build_libs: build_crypto build_fips build_ssl build_shared build_engines | 244 build_libs: build_crypto build_ssl build_engines |
329 | 245 |
330 build_crypto: | 246 build_crypto: |
331 » if [ -n "$(FIPSCANLIB)" ]; then \ | 247 » @dir=crypto; target=all; $(BUILD_ONE_CMD) |
332 » » EXCL_OBJ='$(AES_ASM_OBJ) $(BN_ASM) $(DES_ENC) $(CPUID_OBJ) $(SHA
1_ASM_OBJ) $(FIPS_EX_OBJ)' ; export EXCL_OBJ ; \ | 248 build_ssl: |
333 » » ARX='$(PERL) $${TOP}/util/arx.pl $(AR)' ; \ | |
334 » else \ | |
335 » » ARX='${AR}' ; \ | |
336 » fi ; export ARX ; \ | |
337 » » dir=crypto; target=all; $(BUILD_ONE_CMD) | |
338 build_fips: | |
339 » @dir=fips; target=all; [ -z "$(FIPSCANLIB)" ] || $(BUILD_ONE_CMD) | |
340 build_ssl: build_crypto | |
341 @dir=ssl; target=all; $(BUILD_ONE_CMD) | 249 @dir=ssl; target=all; $(BUILD_ONE_CMD) |
342 build_engines: build_crypto | 250 build_engines: |
343 @dir=engines; target=all; $(BUILD_ONE_CMD) | 251 @dir=engines; target=all; $(BUILD_ONE_CMD) |
344 build_apps: build_libs | 252 build_apps: |
345 @dir=apps; target=all; $(BUILD_ONE_CMD) | 253 @dir=apps; target=all; $(BUILD_ONE_CMD) |
346 build_tests: build_libs | 254 build_tests: |
347 @dir=test; target=all; $(BUILD_ONE_CMD) | 255 @dir=test; target=all; $(BUILD_ONE_CMD) |
348 build_tools: build_libs | 256 build_tools: |
349 @dir=tools; target=all; $(BUILD_ONE_CMD) | 257 @dir=tools; target=all; $(BUILD_ONE_CMD) |
350 | 258 |
351 all_testapps: build_libs build_testapps | 259 all_testapps: build_libs build_testapps |
352 build_testapps: | 260 build_testapps: |
353 @dir=crypto; target=testapps; $(BUILD_ONE_CMD) | 261 @dir=crypto; target=testapps; $(BUILD_ONE_CMD) |
354 | 262 |
355 build_shared:» $(SHARED_LIBS) | 263 libcrypto$(SHLIB_EXT): libcrypto.a |
356 libcrypto$(SHLIB_EXT): libcrypto.a $(SHARED_FIPS) | |
357 @if [ "$(SHLIB_TARGET)" != "" ]; then \ | 264 @if [ "$(SHLIB_TARGET)" != "" ]; then \ |
358 » » if [ "$(FIPSCANLIB)" = "libfips" ]; then \ | 265 » » $(MAKE) SHLIBDIRS=crypto build-shared; \ |
359 » » » $(ARD) libcrypto.a fipscanister.o ; \ | |
360 » » » $(MAKE) SHLIBDIRS='crypto' SHLIBDEPS='-lfips' build-shar
ed; \ | |
361 » » » $(AR) libcrypto.a fips/fipscanister.o ; \ | |
362 » » else \ | |
363 » » » if [ "$(FIPSCANLIB)" = "libcrypto" ]; then \ | |
364 » » » » FIPSLD_CC="$(CC)"; CC=fips/fipsld; \ | |
365 » » » » export CC FIPSLD_CC; \ | |
366 » » » fi; \ | |
367 » » » $(MAKE) -e SHLIBDIRS='crypto' build-shared; \ | |
368 » » fi \ | |
369 else \ | 266 else \ |
370 echo "There's no support for shared libraries on this platform"
>&2; \ | 267 echo "There's no support for shared libraries on this platform"
>&2; \ |
371 exit 1; \ | 268 exit 1; \ |
372 fi | 269 fi |
373 | 270 |
374 libssl$(SHLIB_EXT): libcrypto$(SHLIB_EXT) libssl.a | 271 libssl$(SHLIB_EXT): libcrypto$(SHLIB_EXT) libssl.a |
375 @if [ "$(SHLIB_TARGET)" != "" ]; then \ | 272 @if [ "$(SHLIB_TARGET)" != "" ]; then \ |
376 » » shlibdeps=-lcrypto; \ | 273 » » $(MAKE) SHLIBDIRS=ssl SHLIBDEPS='-lcrypto' build-shared; \ |
377 » » [ "$(FIPSCANLIB)" = "libfips" ] && shlibdeps="$$shlibdeps -lfips
"; \ | |
378 » » $(MAKE) SHLIBDIRS=ssl SHLIBDEPS="$$shlibdeps" build-shared; \ | |
379 » else \ | |
380 » » echo "There's no support for shared libraries on this platform"
>&2 ; \ | |
381 » » exit 1; \ | |
382 » fi | |
383 | |
384 fips/fipscanister.o:» build_fips | |
385 libfips$(SHLIB_EXT):» » fips/fipscanister.o | |
386 » @if [ "$(SHLIB_TARGET)" != "" ]; then \ | |
387 » » FIPSLD_CC="$(CC)"; CC=fips/fipsld; export CC FIPSLD_CC; \ | |
388 » » $(MAKE) -f Makefile.shared -e $(BUILDENV) \ | |
389 » » » CC=$${CC} LIBNAME=fips THIS=$@ \ | |
390 » » » LIBEXTRAS=fips/fipscanister.o \ | |
391 » » » LIBDEPS="$(EX_LIBS)" \ | |
392 » » » LIBVERSION=${SHLIB_MAJOR}.${SHLIB_MINOR} \ | |
393 » » » link_o.$(SHLIB_TARGET) || { rm -f $@; exit 1; } \ | |
394 else \ | 274 else \ |
395 echo "There's no support for shared libraries on this platform"
>&2; \ | 275 echo "There's no support for shared libraries on this platform"
>&2; \ |
396 exit 1; \ | 276 exit 1; \ |
397 fi | 277 fi |
398 | 278 |
399 libfips.a: | |
400 dir=fips; target=all; $(BUILD_ONE_CMD) | |
401 | |
402 clean-shared: | 279 clean-shared: |
403 @set -e; for i in $(SHLIBDIRS); do \ | 280 @set -e; for i in $(SHLIBDIRS); do \ |
404 if [ -n "$(SHARED_LIBS_LINK_EXTS)" ]; then \ | 281 if [ -n "$(SHARED_LIBS_LINK_EXTS)" ]; then \ |
405 tmp="$(SHARED_LIBS_LINK_EXTS)"; \ | 282 tmp="$(SHARED_LIBS_LINK_EXTS)"; \ |
406 for j in $${tmp:-x}; do \ | 283 for j in $${tmp:-x}; do \ |
407 ( set -x; rm -f lib$$i$$j ); \ | 284 ( set -x; rm -f lib$$i$$j ); \ |
408 done; \ | 285 done; \ |
409 fi; \ | 286 fi; \ |
410 ( set -x; rm -f lib$$i$(SHLIB_EXT) ); \ | 287 ( set -x; rm -f lib$$i$(SHLIB_EXT) ); \ |
411 if [ "$(PLATFORM)" = "Cygwin" ]; then \ | 288 if [ "$(PLATFORM)" = "Cygwin" ]; then \ |
412 ( set -x; rm -f cyg$$i$(SHLIB_EXT) lib$$i$(SHLIB_EXT).a
); \ | 289 ( set -x; rm -f cyg$$i$(SHLIB_EXT) lib$$i$(SHLIB_EXT).a
); \ |
413 fi; \ | 290 fi; \ |
414 done | 291 done |
415 | 292 |
416 link-shared: | 293 link-shared: |
417 » @ set -e; for i in ${SHLIBDIRS}; do \ | 294 » @ set -e; for i in $(SHLIBDIRS); do \ |
418 $(MAKE) -f $(HERE)/Makefile.shared -e $(BUILDENV) \ | 295 $(MAKE) -f $(HERE)/Makefile.shared -e $(BUILDENV) \ |
419 » » » LIBNAME=$$i LIBVERSION=${SHLIB_MAJOR}.${SHLIB_MINOR} \ | 296 » » » LIBNAME=$$i LIBVERSION=$(SHLIB_MAJOR).$(SHLIB_MINOR) \ |
420 » » » LIBCOMPATVERSIONS=";${SHLIB_VERSION_HISTORY}" \ | 297 » » » LIBCOMPATVERSIONS=";$(SHLIB_VERSION_HISTORY)" \ |
421 symlink.$(SHLIB_TARGET); \ | 298 symlink.$(SHLIB_TARGET); \ |
422 libs="$$libs -l$$i"; \ | 299 libs="$$libs -l$$i"; \ |
423 done | 300 done |
424 | 301 |
425 build-shared: do_$(SHLIB_TARGET) link-shared | 302 build-shared: do_$(SHLIB_TARGET) link-shared |
426 | 303 |
427 do_$(SHLIB_TARGET): | 304 do_$(SHLIB_TARGET): |
428 » @ set -e; libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \ | 305 » @ set -e; libs='-L. $(SHLIBDEPS)'; for i in $(SHLIBDIRS); do \ |
429 » » if [ "${SHLIBDIRS}" = "ssl" -a -n "$(LIBKRB5)" ]; then \ | 306 » » if [ "$$i" = "ssl" -a -n "$(LIBKRB5)" ]; then \ |
430 libs="$(LIBKRB5) $$libs"; \ | 307 libs="$(LIBKRB5) $$libs"; \ |
431 fi; \ | 308 fi; \ |
432 $(CLEARENV) && $(MAKE) -f Makefile.shared -e $(BUILDENV) \ | 309 $(CLEARENV) && $(MAKE) -f Makefile.shared -e $(BUILDENV) \ |
433 » » » LIBNAME=$$i LIBVERSION=${SHLIB_MAJOR}.${SHLIB_MINOR} \ | 310 » » » LIBNAME=$$i LIBVERSION=$(SHLIB_MAJOR).$(SHLIB_MINOR) \ |
434 » » » LIBCOMPATVERSIONS=";${SHLIB_VERSION_HISTORY}" \ | 311 » » » LIBCOMPATVERSIONS=";$(SHLIB_VERSION_HISTORY)" \ |
435 LIBDEPS="$$libs $(EX_LIBS)" \ | 312 LIBDEPS="$$libs $(EX_LIBS)" \ |
436 link_a.$(SHLIB_TARGET); \ | 313 link_a.$(SHLIB_TARGET); \ |
437 libs="-l$$i $$libs"; \ | 314 libs="-l$$i $$libs"; \ |
438 done | 315 done |
439 | 316 |
440 libcrypto.pc: Makefile | 317 libcrypto.pc: Makefile |
441 @ ( echo 'prefix=$(INSTALLTOP)'; \ | 318 @ ( echo 'prefix=$(INSTALLTOP)'; \ |
442 echo 'exec_prefix=$${prefix}'; \ | 319 echo 'exec_prefix=$${prefix}'; \ |
443 echo 'libdir=$${exec_prefix}/$(LIBDIR)'; \ | 320 echo 'libdir=$${exec_prefix}/$(LIBDIR)'; \ |
444 echo 'includedir=$${prefix}/include'; \ | 321 echo 'includedir=$${prefix}/include'; \ |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
501 sh util/do_ms.sh | 378 sh util/do_ms.sh |
502 | 379 |
503 files: | 380 files: |
504 $(PERL) $(TOP)/util/files.pl Makefile > $(TOP)/MINFO | 381 $(PERL) $(TOP)/util/files.pl Makefile > $(TOP)/MINFO |
505 @set -e; target=files; $(RECURSIVE_BUILD_CMD) | 382 @set -e; target=files; $(RECURSIVE_BUILD_CMD) |
506 | 383 |
507 links: | 384 links: |
508 @$(PERL) $(TOP)/util/mkdir-p.pl include/openssl | 385 @$(PERL) $(TOP)/util/mkdir-p.pl include/openssl |
509 @$(PERL) $(TOP)/util/mklink.pl include/openssl $(EXHEADER) | 386 @$(PERL) $(TOP)/util/mklink.pl include/openssl $(EXHEADER) |
510 @set -e; target=links; $(RECURSIVE_BUILD_CMD) | 387 @set -e; target=links; $(RECURSIVE_BUILD_CMD) |
511 @if [ -z "$(FIPSCANLIB)" ]; then \ | |
512 set -e; target=links; dir=fips ; $(BUILD_CMD) ; \ | |
513 fi | |
514 | 388 |
515 gentests: | 389 gentests: |
516 @(cd test && echo "generating dummy tests (if needed)..." && \ | 390 @(cd test && echo "generating dummy tests (if needed)..." && \ |
517 » $(CLEARENV) && $(MAKE) -e $(BUILDENV) TESTS='${TESTS}' OPENSSL_DEBUG_MEM
ORY=on generate ); | 391 » $(CLEARENV) && $(MAKE) -e $(BUILDENV) TESTS='$(TESTS)' OPENSSL_DEBUG_MEM
ORY=on generate ); |
518 | 392 |
519 dclean: | 393 dclean: |
520 » rm -f *.bak | 394 » rm -rf *.bak include/openssl certs/.0 |
521 @set -e; target=dclean; $(RECURSIVE_BUILD_CMD) | 395 @set -e; target=dclean; $(RECURSIVE_BUILD_CMD) |
522 | 396 |
523 rehash: rehash.time | 397 rehash: rehash.time |
524 rehash.time: certs apps | 398 rehash.time: certs apps |
525 @if [ -z "$(CROSS_COMPILE)" ]; then \ | 399 @if [ -z "$(CROSS_COMPILE)" ]; then \ |
526 (OPENSSL="`pwd`/util/opensslwrap.sh"; \ | 400 (OPENSSL="`pwd`/util/opensslwrap.sh"; \ |
| 401 [ -x "apps/openssl.exe" ] && OPENSSL="apps/openssl.exe" || :; \ |
527 OPENSSL_DEBUG_MEMORY=on; \ | 402 OPENSSL_DEBUG_MEMORY=on; \ |
528 export OPENSSL OPENSSL_DEBUG_MEMORY; \ | 403 export OPENSSL OPENSSL_DEBUG_MEMORY; \ |
529 $(PERL) tools/c_rehash certs) && \ | 404 $(PERL) tools/c_rehash certs) && \ |
530 touch rehash.time; \ | 405 touch rehash.time; \ |
531 » fi | 406 » else :; fi |
532 | 407 |
533 test: tests | 408 test: tests |
534 | 409 |
535 tests: rehash | 410 tests: rehash |
536 @(cd test && echo "testing..." && \ | 411 @(cd test && echo "testing..." && \ |
537 » $(CLEARENV) && $(MAKE) -e $(BUILDENV) TOP=.. TESTS='${TESTS}' OPENSSL_DE
BUG_MEMORY=on tests ); | 412 » $(CLEARENV) && $(MAKE) -e $(BUILDENV) TOP=.. TESTS='$(TESTS)' OPENSSL_DE
BUG_MEMORY=on OPENSSL_CONF=../apps/openssl.cnf tests ); |
538 » util/opensslwrap.sh version -a | 413 » OPENSSL_CONF=apps/openssl.cnf util/opensslwrap.sh version -a |
539 | 414 |
540 report: | 415 report: |
541 @$(PERL) util/selftest.pl | 416 @$(PERL) util/selftest.pl |
542 | 417 |
543 depend: | 418 depend: |
544 @set -e; target=depend; $(RECURSIVE_BUILD_CMD) | 419 @set -e; target=depend; $(RECURSIVE_BUILD_CMD) |
545 | 420 |
546 lint: | 421 lint: |
547 @set -e; target=lint; $(RECURSIVE_BUILD_CMD) | 422 @set -e; target=lint; $(RECURSIVE_BUILD_CMD) |
548 | 423 |
(...skipping 12 matching lines...) Expand all Loading... |
561 util/libeay.num:: | 436 util/libeay.num:: |
562 $(PERL) util/mkdef.pl crypto update | 437 $(PERL) util/mkdef.pl crypto update |
563 | 438 |
564 util/ssleay.num:: | 439 util/ssleay.num:: |
565 $(PERL) util/mkdef.pl ssl update | 440 $(PERL) util/mkdef.pl ssl update |
566 | 441 |
567 crypto/objects/obj_dat.h: crypto/objects/obj_dat.pl crypto/objects/obj_mac.h | 442 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/object
s/obj_dat.h | 443 $(PERL) crypto/objects/obj_dat.pl crypto/objects/obj_mac.h crypto/object
s/obj_dat.h |
569 crypto/objects/obj_mac.h: crypto/objects/objects.pl crypto/objects/objects.txt c
rypto/objects/obj_mac.num | 444 crypto/objects/obj_mac.h: crypto/objects/objects.pl crypto/objects/objects.txt c
rypto/objects/obj_mac.num |
570 $(PERL) crypto/objects/objects.pl crypto/objects/objects.txt crypto/obje
cts/obj_mac.num crypto/objects/obj_mac.h | 445 $(PERL) crypto/objects/objects.pl crypto/objects/objects.txt crypto/obje
cts/obj_mac.num crypto/objects/obj_mac.h |
| 446 crypto/objects/obj_xref.h: crypto/objects/objxref.pl crypto/objects/obj_xref.txt
crypto/objects/obj_mac.num |
| 447 $(PERL) crypto/objects/objxref.pl crypto/objects/obj_mac.num crypto/obje
cts/obj_xref.txt >crypto/objects/obj_xref.h |
571 | 448 |
572 apps/openssl-vms.cnf: apps/openssl.cnf | 449 apps/openssl-vms.cnf: apps/openssl.cnf |
573 $(PERL) VMS/VMSify-conf.pl < apps/openssl.cnf > apps/openssl-vms.cnf | 450 $(PERL) VMS/VMSify-conf.pl < apps/openssl.cnf > apps/openssl-vms.cnf |
574 | 451 |
575 crypto/bn/bn_prime.h: crypto/bn/bn_prime.pl | 452 crypto/bn/bn_prime.h: crypto/bn/bn_prime.pl |
576 $(PERL) crypto/bn/bn_prime.pl >crypto/bn/bn_prime.h | 453 $(PERL) crypto/bn/bn_prime.pl >crypto/bn/bn_prime.h |
577 | 454 |
578 | 455 |
579 TABLE: Configure | 456 TABLE: Configure |
580 (echo 'Output of `Configure TABLE'"':"; \ | 457 (echo 'Output of `Configure TABLE'"':"; \ |
581 $(PERL) Configure TABLE) > TABLE | 458 $(PERL) Configure TABLE) > TABLE |
582 | 459 |
583 update: errors stacks util/libeay.num util/ssleay.num crypto/objects/obj_dat.h a
pps/openssl-vms.cnf crypto/bn/bn_prime.h TABLE depend | 460 update: errors stacks util/libeay.num util/ssleay.num crypto/objects/obj_dat.h c
rypto/objects/obj_xref.h apps/openssl-vms.cnf crypto/bn/bn_prime.h TABLE depend |
584 | 461 |
585 # Build distribution tar-file. As the list of files returned by "find" is | 462 # 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 | 463 # 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 | 464 # 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 | 465 # and read directly, requiring GNU-Tar. Call "make TAR=gtar dist" if the normal |
589 # tar does not support the --files-from option. | 466 # tar does not support the --files-from option. |
590 tar: | 467 tar: |
591 find . -type d -print | xargs chmod 755 | 468 find . -type d -print | xargs chmod 755 |
592 find . -type f -print | xargs chmod a+r | 469 find . -type f -print | xargs chmod a+r |
593 find . -type f -perm -0100 -print | xargs chmod a+x | 470 find . -type f -perm -0100 -print | xargs chmod a+x |
(...skipping 10 matching lines...) Expand all Loading... |
604 @$(TAR) $(TARFLAGS) -cvf - \ | 481 @$(TAR) $(TARFLAGS) -cvf - \ |
605 `find * \! -path CVS/\* \! -path \*/CVS/\* \! -name CVS \! -name
.cvsignore \! -name STATUS \! -name TABLE \! -name '*.o' \! -name '*.a' \! -nam
e '*.so' \! -name '*.so.*' \! -name 'openssl' \! -name '*test' \! -name '.#*' \
! -name '*~' | sort` |\ | 482 `find * \! -path CVS/\* \! -path \*/CVS/\* \! -name CVS \! -name
.cvsignore \! -name STATUS \! -name TABLE \! -name '*.o' \! -name '*.a' \! -nam
e '*.so' \! -name '*.so.*' \! -name 'openssl' \! -name '*test' \! -name '.#*' \
! -name '*~' | sort` |\ |
606 tardy --user_number=0 --user_name=openssl \ | 483 tardy --user_number=0 --user_name=openssl \ |
607 --group_number=0 --group_name=openssl \ | 484 --group_number=0 --group_name=openssl \ |
608 --prefix=openssl-$(VERSION) - > ../$(TARFILE);\ | 485 --prefix=openssl-$(VERSION) - > ../$(TARFILE);\ |
609 ls -l ../$(TARFILE) | 486 ls -l ../$(TARFILE) |
610 | 487 |
611 dist: | 488 dist: |
612 $(PERL) Configure dist | 489 $(PERL) Configure dist |
613 @$(MAKE) dist_pem_h | 490 @$(MAKE) dist_pem_h |
614 » @$(MAKE) SDIRS='${SDIRS}' clean | 491 » @$(MAKE) SDIRS='$(SDIRS)' clean |
615 » @$(MAKE) TAR='${TAR}' TARFLAGS='${TARFLAGS}' tar | 492 » @$(MAKE) TAR='$(TAR)' TARFLAGS='$(TARFLAGS)' tar |
616 | 493 |
617 dist_pem_h: | 494 dist_pem_h: |
618 (cd crypto/pem; $(MAKE) -e $(BUILDENV) pem.h; $(MAKE) clean) | 495 (cd crypto/pem; $(MAKE) -e $(BUILDENV) pem.h; $(MAKE) clean) |
619 | 496 |
620 install: all install_docs install_sw | 497 install: all install_docs install_sw |
621 | 498 |
622 install_sw: | 499 install_sw: |
623 @$(PERL) $(TOP)/util/mkdir-p.pl $(INSTALL_PREFIX)$(INSTALLTOP)/bin \ | 500 @$(PERL) $(TOP)/util/mkdir-p.pl $(INSTALL_PREFIX)$(INSTALLTOP)/bin \ |
624 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR) \ | 501 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR) \ |
625 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines \ | 502 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines \ |
(...skipping 30 matching lines...) Expand all Loading... |
656 mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/$(L
IBDIR)/$$i.new $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/$$i; \ | 533 mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/$(L
IBDIR)/$$i.new $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/$$i; \ |
657 else \ | 534 else \ |
658 c=`echo $$i | sed 's/^lib\(.*\)\.dll\.a/
cyg\1-$(SHLIB_VERSION_NUMBER).dll/'`; \ | 535 c=`echo $$i | sed 's/^lib\(.*\)\.dll\.a/
cyg\1-$(SHLIB_VERSION_NUMBER).dll/'`; \ |
659 cp $$c $(INSTALL_PREFIX)$(INSTALLTOP)/bi
n/$$c.new; \ | 536 cp $$c $(INSTALL_PREFIX)$(INSTALLTOP)/bi
n/$$c.new; \ |
660 chmod 755 $(INSTALL_PREFIX)$(INSTALLTOP)
/bin/$$c.new; \ | 537 chmod 755 $(INSTALL_PREFIX)$(INSTALLTOP)
/bin/$$c.new; \ |
661 mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/bin
/$$c.new $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$c; \ | 538 mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/bin
/$$c.new $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$c; \ |
662 cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/$(
LIBDIR)/$$i.new; \ | 539 cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/$(
LIBDIR)/$$i.new; \ |
663 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)
/$(LIBDIR)/$$i.new; \ | 540 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)
/$(LIBDIR)/$$i.new; \ |
664 mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/$(L
IBDIR)/$$i.new $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/$$i; \ | 541 mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/$(L
IBDIR)/$$i.new $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/$$i; \ |
665 fi ); \ | 542 fi ); \ |
| 543 if expr $(PLATFORM) : 'mingw' > /dev/null; then
\ |
| 544 ( case $$i in \ |
| 545 *crypto*) i=libeay32.dll;; \ |
| 546 *ssl*) i=ssleay32.dll;; \ |
| 547 esac; \ |
| 548 echo installing $$i; \ |
| 549 cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/bi
n/$$i.new; \ |
| 550 chmod 755 $(INSTALL_PREFIX)$(INSTALLTOP)
/bin/$$i.new; \ |
| 551 mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/bin
/$$i.new $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i ); \ |
| 552 fi; \ |
666 fi; \ | 553 fi; \ |
667 done; \ | 554 done; \ |
668 ( here="`pwd`"; \ | 555 ( here="`pwd`"; \ |
669 cd $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR); \ | 556 cd $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR); \ |
670 $(MAKE) -f $$here/Makefile HERE="$$here" link-shared );
\ | 557 $(MAKE) -f $$here/Makefile HERE="$$here" link-shared );
\ |
671 if [ "$(INSTALLTOP)" != "/usr" ]; then \ | 558 if [ "$(INSTALLTOP)" != "/usr" ]; then \ |
672 echo 'OpenSSL shared libraries have been installed in:';
\ | 559 echo 'OpenSSL shared libraries have been installed in:';
\ |
673 echo ' $(INSTALLTOP)'; \ | 560 echo ' $(INSTALLTOP)'; \ |
674 echo ''; \ | 561 echo ''; \ |
675 sed -e '1,/^$$/d' doc/openssl-shared.txt; \ | 562 sed -e '1,/^$$/d' doc/openssl-shared.txt; \ |
676 fi; \ | 563 fi; \ |
677 fi | 564 fi |
678 cp libcrypto.pc $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/pkgconfig | 565 cp libcrypto.pc $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/pkgconfig |
679 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/pkgconfig/libcrypto.p
c | 566 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/pkgconfig/libcrypto.p
c |
680 cp libssl.pc $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/pkgconfig | 567 cp libssl.pc $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/pkgconfig |
681 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/pkgconfig/libssl.pc | 568 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/pkgconfig/libssl.pc |
682 cp openssl.pc $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/pkgconfig | 569 cp openssl.pc $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/pkgconfig |
683 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/pkgconfig/openssl.pc | 570 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/pkgconfig/openssl.pc |
684 | 571 |
| 572 install_html_docs: |
| 573 here="`pwd`"; \ |
| 574 for subdir in apps crypto ssl; do \ |
| 575 mkdir -p $(INSTALL_PREFIX)$(HTMLDIR)/$$subdir; \ |
| 576 for i in doc/$$subdir/*.pod; do \ |
| 577 fn=`basename $$i .pod`; \ |
| 578 echo "installing html/$$fn.$(HTMLSUFFIX)"; \ |
| 579 cat $$i \ |
| 580 | sed -r 's/L<([^)]*)(\([0-9]\))?\|([^)]*)(\([0-9]\))?>/
L<\1|\3>/g' \ |
| 581 | pod2html --podroot=doc --htmlroot=.. --podpath=apps:cr
ypto:ssl \ |
| 582 | sed -r 's/<!DOCTYPE.*//g' \ |
| 583 > $(INSTALL_PREFIX)$(HTMLDIR)/$$subdir/$$fn.$(HTMLSUFFIX
); \ |
| 584 $(PERL) util/extract-names.pl < $$i | \ |
| 585 grep -v $$filecase "^$$fn\$$" | \ |
| 586 (cd $(INSTALL_PREFIX)$(HTMLDIR)/$$subdir; \ |
| 587 while read n; do \ |
| 588 PLATFORM=$(PLATFORM) $$here/util/point.s
h $$fn.$(HTMLSUFFIX) "$$n".$(HTMLSUFFIX); \ |
| 589 done); \ |
| 590 done; \ |
| 591 done |
| 592 |
685 install_docs: | 593 install_docs: |
686 @$(PERL) $(TOP)/util/mkdir-p.pl \ | 594 @$(PERL) $(TOP)/util/mkdir-p.pl \ |
687 $(INSTALL_PREFIX)$(MANDIR)/man1 \ | 595 $(INSTALL_PREFIX)$(MANDIR)/man1 \ |
688 $(INSTALL_PREFIX)$(MANDIR)/man3 \ | 596 $(INSTALL_PREFIX)$(MANDIR)/man3 \ |
689 $(INSTALL_PREFIX)$(MANDIR)/man5 \ | 597 $(INSTALL_PREFIX)$(MANDIR)/man5 \ |
690 $(INSTALL_PREFIX)$(MANDIR)/man7 | 598 $(INSTALL_PREFIX)$(MANDIR)/man7 |
691 @pod2man="`cd ./util; ./pod2mantest $(PERL)`"; \ | 599 @pod2man="`cd ./util; ./pod2mantest $(PERL)`"; \ |
692 here="`pwd`"; \ | 600 here="`pwd`"; \ |
693 filecase=; \ | 601 filecase=; \ |
694 if [ "$(PLATFORM)" = "DJGPP" -o "$(PLATFORM)" = "Cygwin" -o "$(PLATFORM)
" = "mingw" ]; then \ | 602 if [ "$(PLATFORM)" = "DJGPP" -o "$(PLATFORM)" = "Cygwin" -o "$(PLATFORM)
" = "mingw" ]; then \ |
695 filecase=-i; \ | 603 filecase=-i; \ |
696 fi; \ | 604 fi; \ |
697 set -e; for i in doc/apps/*.pod; do \ | 605 set -e; for i in doc/apps/*.pod; do \ |
698 fn=`basename $$i .pod`; \ | 606 fn=`basename $$i .pod`; \ |
699 sec=`$(PERL) util/extract-section.pl 1 < $$i`; \ | 607 sec=`$(PERL) util/extract-section.pl 1 < $$i`; \ |
700 echo "installing man$$sec/$$fn.$${sec}$(MANSUFFIX)"; \ | 608 echo "installing man$$sec/$$fn.$${sec}$(MANSUFFIX)"; \ |
701 (cd `$(PERL) util/dirname.pl $$i`; \ | 609 (cd `$(PERL) util/dirname.pl $$i`; \ |
702 sh -c "$$pod2man \ | 610 sh -c "$$pod2man \ |
703 --section=$$sec --center=OpenSSL \ | 611 --section=$$sec --center=OpenSSL \ |
704 --release=$(VERSION) `basename $$i`") \ | 612 --release=$(VERSION) `basename $$i`") \ |
705 > $(INSTALL_PREFIX)$(MANDIR)/man$$sec/$$fn.$${sec}$(MAN
SUFFIX); \ | 613 > $(INSTALL_PREFIX)$(MANDIR)/man$$sec/$$fn.$${sec}$(MAN
SUFFIX); \ |
706 $(PERL) util/extract-names.pl < $$i | \ | 614 $(PERL) util/extract-names.pl < $$i | \ |
707 (grep -v $$filecase "^$$fn\$$"; true) | \ | 615 (grep -v $$filecase "^$$fn\$$"; true) | \ |
708 (grep -v "[ ]"; true) | \ | 616 (grep -v "[ ]"; true) | \ |
709 (cd $(INSTALL_PREFIX)$(MANDIR)/man$$sec/; \ | 617 (cd $(INSTALL_PREFIX)$(MANDIR)/man$$sec/; \ |
710 while read n; do \ | 618 while read n; do \ |
711 » » » » $$here/util/point.sh $$fn.$${sec}$(MANSUFFIX) "$
$n".$${sec}$(MANSUFFIX); \ | 619 » » » » PLATFORM=$(PLATFORM) $$here/util/point.sh $$fn.$
${sec}$(MANSUFFIX) "$$n".$${sec}$(MANSUFFIX); \ |
712 done); \ | 620 done); \ |
713 done; \ | 621 done; \ |
714 set -e; for i in doc/crypto/*.pod doc/ssl/*.pod; do \ | 622 set -e; for i in doc/crypto/*.pod doc/ssl/*.pod; do \ |
715 fn=`basename $$i .pod`; \ | 623 fn=`basename $$i .pod`; \ |
716 sec=`$(PERL) util/extract-section.pl 3 < $$i`; \ | 624 sec=`$(PERL) util/extract-section.pl 3 < $$i`; \ |
717 echo "installing man$$sec/$$fn.$${sec}$(MANSUFFIX)"; \ | 625 echo "installing man$$sec/$$fn.$${sec}$(MANSUFFIX)"; \ |
718 (cd `$(PERL) util/dirname.pl $$i`; \ | 626 (cd `$(PERL) util/dirname.pl $$i`; \ |
719 sh -c "$$pod2man \ | 627 sh -c "$$pod2man \ |
720 --section=$$sec --center=OpenSSL \ | 628 --section=$$sec --center=OpenSSL \ |
721 --release=$(VERSION) `basename $$i`") \ | 629 --release=$(VERSION) `basename $$i`") \ |
722 > $(INSTALL_PREFIX)$(MANDIR)/man$$sec/$$fn.$${sec}$(MAN
SUFFIX); \ | 630 > $(INSTALL_PREFIX)$(MANDIR)/man$$sec/$$fn.$${sec}$(MAN
SUFFIX); \ |
723 $(PERL) util/extract-names.pl < $$i | \ | 631 $(PERL) util/extract-names.pl < $$i | \ |
724 (grep -v $$filecase "^$$fn\$$"; true) | \ | 632 (grep -v $$filecase "^$$fn\$$"; true) | \ |
725 (grep -v "[ ]"; true) | \ | 633 (grep -v "[ ]"; true) | \ |
726 (cd $(INSTALL_PREFIX)$(MANDIR)/man$$sec/; \ | 634 (cd $(INSTALL_PREFIX)$(MANDIR)/man$$sec/; \ |
727 while read n; do \ | 635 while read n; do \ |
728 » » » » $$here/util/point.sh $$fn.$${sec}$(MANSUFFIX) "$
$n".$${sec}$(MANSUFFIX); \ | 636 » » » » PLATFORM=$(PLATFORM) $$here/util/point.sh $$fn.$
${sec}$(MANSUFFIX) "$$n".$${sec}$(MANSUFFIX); \ |
729 done); \ | 637 done); \ |
730 done | 638 done |
731 | 639 |
732 # DO NOT DELETE THIS LINE -- make depend depends on it. | 640 # DO NOT DELETE THIS LINE -- make depend depends on it. |
OLD | NEW |