]> git.ipfire.org Git - thirdparty/openssl.git/blob - Makefile.org
MD4 implemented. Assar Westerlund provided the digest code itself and the test utili...
[thirdparty/openssl.git] / Makefile.org
1 ##
2 ## Makefile for OpenSSL
3 ##
4
5 VERSION=
6 MAJOR=
7 MINOR=
8 SHLIB_VERSION_NUMBER=
9 SHLIB_VERSION_HISTORY=
10 SHLIB_MAJOR=
11 SHLIB_MINOR=
12 PLATFORM=dist
13 OPTIONS=
14 SHLIB_TARGET=
15
16 # INSTALL_PREFIX is for package builders so that they can configure
17 # for, say, /usr/ and yet have everything installed to /tmp/somedir/usr/.
18 # Normally it is left empty.
19 INSTALL_PREFIX=
20 INSTALLTOP=/usr/local/ssl
21
22 # Do not edit this manually. Use Configure --openssldir=DIR do change this!
23 OPENSSLDIR=/usr/local/ssl
24
25 # RSAref - Define if we are to link with RSAref.
26 # NO_IDEA - Define to build without the IDEA algorithm
27 # NO_RC4 - Define to build without the RC4 algorithm
28 # NO_RC2 - Define to build without the RC2 algorithm
29 # THREADS - Define when building with threads, you will probably also need any
30 # system defines as well, i.e. _REENTERANT for Solaris 2.[34]
31 # TERMIO - Define the termio terminal subsystem, needed if sgtty is missing.
32 # TERMIOS - Define the termios terminal subsystem, Silicon Graphics.
33 # LONGCRYPT - Define to use HPUX 10.x's long password modification to crypt(3).
34 # DEVRANDOM - Give this the value of the 'random device' if your OS supports
35 # one. 32 bytes will be read from this when the random
36 # number generator is initalised.
37 # SSL_FORBID_ENULL - define if you want the server to be not able to use the
38 # NULL encryption ciphers.
39 #
40 # LOCK_DEBUG - turns on lots of lock debug output :-)
41 # REF_CHECK - turn on some xyz_free() assertions.
42 # REF_PRINT - prints some stuff on structure free.
43 # CRYPTO_MDEBUG - turns on my 'memory leak' detecting stuff
44 # MFUNC - Make all Malloc/Free/Realloc calls call
45 # CRYPTO_malloc/CRYPTO_free/CRYPTO_realloc which can be setup to
46 # call application defined callbacks via CRYPTO_set_mem_functions()
47 # MD5_ASM needs to be defined to use the x86 assembler for MD5
48 # SHA1_ASM needs to be defined to use the x86 assembler for SHA1
49 # RMD160_ASM needs to be defined to use the x86 assembler for RIPEMD160
50 # Do not define B_ENDIAN or L_ENDIAN if 'unsigned long' == 8. It must
51 # equal 4.
52 # PKCS1_CHECK - pkcs1 tests.
53
54 CC= gcc
55 #CFLAG= -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -m486 -Wall -Wuninitialized -DSHA1_ASM -DMD5_ASM -DRMD160_ASM
56 CFLAG= -DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -m486 -Wall -DSHA1_ASM -DMD5_ASM -DRMD160_ASM
57 DEPFLAG=
58 PEX_LIBS= -L. -L.. -L../.. -L../../..
59 EX_LIBS=
60 AR=ar r
61 RANLIB= ranlib
62 PERL= perl
63 TAR= tar
64 TARFLAGS= --norecurse
65
66 # Set BN_ASM to bn_asm.o if you want to use the C version
67 BN_ASM= bn_asm.o
68 #BN_ASM= bn_asm.o
69 #BN_ASM= asm/bn86-elf.o # elf, linux-elf
70 #BN_ASM= asm/bn86-sol.o # solaris
71 #BN_ASM= asm/bn86-out.o # a.out, FreeBSD
72 #BN_ASM= asm/bn86bsdi.o # bsdi
73 #BN_ASM= asm/alpha.o # DEC Alpha
74 #BN_ASM= asm/pa-risc2.o # HP-UX PA-RISC
75 #BN_ASM= asm/r3000.o # SGI MIPS cpu
76 #BN_ASM= asm/sparc.o # Sun solaris/SunOS
77 #BN_ASM= asm/bn-win32.o # Windows 95/NT
78 #BN_ASM= asm/x86w16.o # 16 bit code for Windows 3.1/DOS
79 #BN_ASM= asm/x86w32.o # 32 bit code for Windows 3.1
80
81 # For x86 assembler: Set PROCESSOR to 386 if you want to support
82 # the 80386.
83 PROCESSOR=
84
85 # Set DES_ENC to des_enc.o if you want to use the C version
86 #There are 4 x86 assember options.
87 DES_ENC= asm/dx86-out.o asm/yx86-out.o
88 #DES_ENC= des_enc.o fcrypt_b.o # C
89 #DES_ENC= asm/dx86-elf.o asm/yx86-elf.o # elf
90 #DES_ENC= asm/dx86-sol.o asm/yx86-sol.o # solaris
91 #DES_ENC= asm/dx86-out.o asm/yx86-out.o # a.out, FreeBSD
92 #DES_ENC= asm/dx86bsdi.o asm/yx86bsdi.o # bsdi
93
94 # Set BF_ENC to bf_enc.o if you want to use the C version
95 #There are 4 x86 assember options.
96 BF_ENC= asm/bx86-out.o
97 #BF_ENC= bf_enc.o
98 #BF_ENC= asm/bx86-elf.o # elf
99 #BF_ENC= asm/bx86-sol.o # solaris
100 #BF_ENC= asm/bx86-out.o # a.out, FreeBSD
101 #BF_ENC= asm/bx86bsdi.o # bsdi
102
103 # Set CAST_ENC to c_enc.o if you want to use the C version
104 #There are 4 x86 assember options.
105 CAST_ENC= asm/cx86-out.o
106 #CAST_ENC= c_enc.o
107 #CAST_ENC= asm/cx86-elf.o # elf
108 #CAST_ENC= asm/cx86-sol.o # solaris
109 #CAST_ENC= asm/cx86-out.o # a.out, FreeBSD
110 #CAST_ENC= asm/cx86bsdi.o # bsdi
111
112 # Set RC4_ENC to rc4_enc.o if you want to use the C version
113 #There are 4 x86 assember options.
114 RC4_ENC= asm/rx86-out.o
115 #RC4_ENC= rc4_enc.o
116 #RC4_ENC= asm/rx86-elf.o # elf
117 #RC4_ENC= asm/rx86-sol.o # solaris
118 #RC4_ENC= asm/rx86-out.o # a.out, FreeBSD
119 #RC4_ENC= asm/rx86bsdi.o # bsdi
120
121 # Set RC5_ENC to rc5_enc.o if you want to use the C version
122 #There are 4 x86 assember options.
123 RC5_ENC= asm/r586-out.o
124 #RC5_ENC= rc5_enc.o
125 #RC5_ENC= asm/r586-elf.o # elf
126 #RC5_ENC= asm/r586-sol.o # solaris
127 #RC5_ENC= asm/r586-out.o # a.out, FreeBSD
128 #RC5_ENC= asm/r586bsdi.o # bsdi
129
130 # Also need MD5_ASM defined
131 MD5_ASM_OBJ= asm/mx86-out.o
132 #MD5_ASM_OBJ= asm/mx86-elf.o # elf
133 #MD5_ASM_OBJ= asm/mx86-sol.o # solaris
134 #MD5_ASM_OBJ= asm/mx86-out.o # a.out, FreeBSD
135 #MD5_ASM_OBJ= asm/mx86bsdi.o # bsdi
136
137 # Also need SHA1_ASM defined
138 SHA1_ASM_OBJ= asm/sx86-out.o
139 #SHA1_ASM_OBJ= asm/sx86-elf.o # elf
140 #SHA1_ASM_OBJ= asm/sx86-sol.o # solaris
141 #SHA1_ASM_OBJ= asm/sx86-out.o # a.out, FreeBSD
142 #SHA1_ASM_OBJ= asm/sx86bsdi.o # bsdi
143
144 # Also need RMD160_ASM defined
145 RMD160_ASM_OBJ= asm/rm86-out.o
146 #RMD160_ASM_OBJ= asm/rm86-elf.o # elf
147 #RMD160_ASM_OBJ= asm/rm86-sol.o # solaris
148 #RMD160_ASM_OBJ= asm/rm86-out.o # a.out, FreeBSD
149 #RMD160_ASM_OBJ= asm/rm86bsdi.o # bsdi
150
151 # To do special treatment, use "directory names" starting with a period.
152 # When we're prepared to use shared libraries in the programs we link here
153 # we might have SHLIB_MARK1 get the value ".shlib." and SHLIB_MARK2 be empty,
154 # or have that configurable.
155 SHLIB_MARK1=.shlib-clean.
156 SHLIB_MARK2=.shlib.
157
158 DIRS= crypto ssl rsaref $(SHLIB_MARK1) apps test tools $(SHLIB_MARK2)
159 SHLIBDIRS= crypto ssl
160
161 # dirs in crypto to build
162 SDIRS= \
163 md2 md4 md5 sha mdc2 hmac ripemd \
164 des rc2 rc4 rc5 idea bf cast \
165 bn rsa dsa dh dso \
166 buffer bio stack lhash rand err objects \
167 evp asn1 pem x509 x509v3 conf txt_db pkcs7 pkcs12 comp
168
169 MAKEFILE= Makefile.ssl
170 MAKE= make -f Makefile.ssl
171
172 MANDIR=$(OPENSSLDIR)/man
173 MAN1=1
174 MAN3=3
175 SHELL=/bin/sh
176
177 TOP= .
178 ONEDIRS=out tmp
179 EDIRS= times doc bugs util include certs ms shlib mt demos perl sf dep VMS
180 WDIRS= windows
181 LIBS= libcrypto.a libssl.a
182 SHARED_LIBS=libcrypto.so libssl.so
183
184 GENERAL= Makefile
185 BASENAME= openssl
186 NAME= $(BASENAME)-$(VERSION)
187 TARFILE= $(NAME).tar
188 WTARFILE= $(NAME)-win.tar
189 EXHEADER= e_os.h e_os2.h
190 HEADER= e_os.h
191
192 all: Makefile.ssl
193 @need_shlib=true; \
194 for i in $(DIRS) ;\
195 do \
196 if [ "$$i" = ".shlib-clean." ]; then \
197 if [ "$(SHLIB_TARGET)" != "" ]; then \
198 $(MAKE) clean-shared; \
199 fi; \
200 elif [ "$$i" = ".shlib." ]; then \
201 if [ "$(SHLIB_TARGET)" != "" ]; then \
202 $(MAKE) $(SHARED_LIBS); \
203 fi; \
204 need_shlib=false; \
205 else \
206 (cd $$i && echo "making all in $$i..." && \
207 $(MAKE) CC='${CC}' PLATFORM='${PLATFORM}' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' BN_ASM='${BN_ASM}' DES_ENC='${DES_ENC}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' SDIRS='${SDIRS}' AR='${AR}' PROCESSOR='${PROCESSOR}' PERL='${PERL}' RANLIB='${RANLIB}' all ) || exit 1; \
208 fi; \
209 done; \
210 if $$need_shlib && [ "$(SHLIB_MARK1)" != "" -o "$(SHLIB_MARK1)" != "" ]; then \
211 $(MAKE) $(SHARED_LIBS); \
212 fi
213
214 sub_all:
215 @need_shlib=true; \
216 for i in $(DIRS) ;\
217 do \
218 if [ "$$i" = ".shlib-clean." ]; then \
219 if [ "$(SHLIB_TARGET)" != "" ]; then \
220 $(MAKE) clean-shared; \
221 fi; \
222 elif [ "$$i" = ".shlib." ]; then \
223 if [ "$(SHLIB_TARGET)" != "" ]; then \
224 $(MAKE) $(SHARED_LIBS); \
225 fi; \
226 need_shlib=false; \
227 else \
228 (cd $$i && echo "making all in $$i..." && \
229 $(MAKE) CC='${CC}' PLATFORM='${PLATFORM}' CFLAG='${CFLAG}' SDIRS='$(SDIRS)' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' BN_ASM='${BN_ASM}' DES_ENC='${DES_ENC}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' AR='${AR}' PROCESSOR='${PROCESSOR}' PERL='${PERL}' RANLIB='${RANLIB}' all ) || exit 1; \
230 fi; \
231 done; \
232 if $$need_shlib && [ "$(SHLIB_MARK1)" != "" -o "$(SHLIB_MARK1)" != "" ]; then \
233 $(MAKE) $(SHARED_LIBS); \
234 fi
235
236 libcrypto.so: libcrypto.a
237 @if [ "$(SHLIB_TARGET)" != "" ]; then \
238 $(MAKE) SHLIBDIRS=crypto $(SHLIB_TARGET); \
239 else \
240 echo "There's no support for shared libraries on this platform" >&2; \
241 fi
242 libssl.so: libcrypto.so libssl.a
243 @if [ "$(SHLIB_TARGET)" != "" ]; then \
244 $(MAKE) SHLIBDIRS=ssl SHLIBDEPS='-L. -lcrypto' $(SHLIB_TARGET); \
245 else \
246 echo "There's no support for shared libraries on this platform" >&2; \
247 fi
248
249 clean-shared:
250 for i in ${SHLIBDIRS}; do \
251 rm -f lib$$i.so \
252 lib$$i.so.${SHLIB_MAJOR} \
253 lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR}; \
254 done
255
256 linux-shared:
257 libs='${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
258 rm -f lib$$i.so \
259 lib$$i.so.${SHLIB_MAJOR} \
260 lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR}; \
261 ( set -x; ${CC} -shared -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
262 -Wl,-S,-soname=lib$$i.so.${SHLIB_MAJOR} \
263 -Wl,--whole-archive lib$$i.a \
264 -Wl,--no-whole-archive $$libs ${EX_LIBS} -lc ) || exit 1; \
265 libs="$$libs -L. -l$$i"; \
266 ( set -x; \
267 ln -s lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
268 lib$$i.so.${SHLIB_MAJOR}; \
269 ln -s lib$$i.so.${SHLIB_MAJOR} lib$$i.so ); \
270 done
271
272 # This assumes that GNU utilities are *not* used
273 true64-shared:
274 libs='${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
275 ( set -x; ${CC} -shared -no_archive -o lib$$i.so \
276 -set_version "${SHLIB_VERSION_HISTORY}${SHLIB_VERSION_NUMBER}" \
277 -all lib$$i.a -none $$libs ${EX_LIBS} -lc ) || exit 1; \
278 libs="$$libs -L. -l$$i"; \
279 done
280
281 # This assumes that GNU utilities are *not* used
282 solaris-shared:
283 libs='${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
284 rm -f lib$$i.so \
285 lib$$i.so.${SHLIB_MAJOR} \
286 lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR}; \
287 ( set -x; ${CC} -G -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
288 -h lib$$i.so.${SHLIB_MAJOR} \
289 -z allextract lib$$i.a $$libs ${EX_LIBS} -lc ) || exit 1; \
290 libs="$$libs -L. -l$$i"; \
291 ln -s lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
292 lib$$i.so.${SHLIB_MAJOR}; \
293 ln -s lib$$i.so.${SHLIB_MAJOR} lib$$i.so; \
294 done
295
296 Makefile.ssl: Makefile.org
297 @echo "Makefile.ssl is older than Makefile.org."
298 @echo "Reconfigure the source tree (via './config' or 'perl Configure'), please."
299 @false
300
301 libclean:
302 rm -f *.a */lib */*/lib
303
304 clean:
305 rm -f shlib/*.o *.o core a.out fluff *.map rehash.time testlog make.log cctest cctest.c
306 @for i in $(DIRS) ;\
307 do \
308 if echo "$$i" | grep -v '^\.'; then \
309 (cd $$i && echo "making clean in $$i..." && \
310 $(MAKE) SDIRS='${SDIRS}' clean ) || exit 1; \
311 rm -f $(LIBS); \
312 fi; \
313 done;
314 rm -f *.a *.o speed.* *.map *.so .pure core
315 rm -f $(TARFILE)
316 @for i in $(ONEDIRS) ;\
317 do \
318 rm -fr $$i/*; \
319 done
320
321 makefile.one: files
322 $(PERL) util/mk1mf.pl >makefile.one; \
323 sh util/do_ms.sh
324
325 files:
326 $(PERL) $(TOP)/util/files.pl Makefile.ssl > $(TOP)/MINFO
327 @for i in $(DIRS) ;\
328 do \
329 if echo "$$i" | grep -v '^\.'; then \
330 (cd $$i && echo "making 'files' in $$i..." && \
331 $(MAKE) SDIRS='${SDIRS}' PERL='${PERL}' files ) || exit 1; \
332 fi; \
333 done;
334
335 links:
336 @$(TOP)/util/point.sh Makefile.ssl Makefile
337 @$(PERL) $(TOP)/util/mkdir-p.pl include/openssl
338 @$(PERL) $(TOP)/util/mklink.pl include/openssl $(EXHEADER)
339 @for i in $(DIRS); do \
340 if echo "$$i" | grep -v '^\.'; then \
341 (cd $$i && echo "making links in $$i..." && \
342 $(MAKE) CC='${CC}' PLATFORM='${PLATFORM}' CFLAG='${CFLAG}' SDIRS='$(SDIRS)' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' BN_ASM='${BN_ASM}' DES_ENC='${DES_ENC}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' AR='${AR}' PERL='${PERL}' links ) || exit 1; \
343 fi; \
344 done;
345
346 dclean:
347 rm -f *.bak
348 @for i in $(DIRS) ;\
349 do \
350 if echo "$$i" | grep -v '^\.'; then \
351 (cd $$i && echo "making dclean in $$i..." && \
352 $(MAKE) SDIRS='${SDIRS}' PERL='${PERL}' dclean ) || exit 1; \
353 fi; \
354 done;
355
356 rehash: rehash.time
357 rehash.time: certs
358 @(OPENSSL="`pwd`/apps/openssl"; export OPENSSL; $(PERL) tools/c_rehash certs)
359 touch rehash.time
360
361 test: tests
362
363 tests: rehash
364 @(cd test && echo "testing..." && \
365 $(MAKE) CC='${CC}' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' BN_ASM='${BN_ASM}' DES_ENC='${DES_ENC}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' SDIRS='${SDIRS}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' AR='${AR}' tests );
366 @apps/openssl version -a
367
368 report:
369 @$(PERL) util/selftest.pl
370
371 depend:
372 @for i in $(DIRS) ;\
373 do \
374 if echo "$$i" | grep -v '^\.'; then \
375 (cd $$i && echo "making dependencies $$i..." && \
376 $(MAKE) SDIRS='${SDIRS}' DEPFLAG='${DEPFLAG}' depend ) || exit 1; \
377 fi; \
378 done;
379
380 lint:
381 @for i in $(DIRS) ;\
382 do \
383 if echo "$$i" | grep -v '^\.'; then \
384 (cd $$i && echo "making lint $$i..." && \
385 $(MAKE) SDIRS='${SDIRS}' lint ) || exit 1; \
386 fi; \
387 done;
388
389 tags:
390 @for i in $(DIRS) ;\
391 do \
392 if echo "$$i" | grep -v '^\.'; then \
393 (cd $$i && echo "making tags $$i..." && \
394 $(MAKE) SDIRS='${SDIRS}' tags ) || exit 1; \
395 fi; \
396 done;
397
398 errors:
399 perl util/mkerr.pl -recurse -write
400
401 stacks:
402 perl util/mkstack.pl -write
403
404 util/libeay.num::
405 perl util/mkdef.pl crypto update
406
407 util/ssleay.num::
408 perl util/mkdef.pl ssl update
409
410 crypto/objects/obj_dat.h: crypto/objects/obj_mac.h crypto/objects/obj_dat.pl
411 perl crypto/objects/obj_dat.pl crypto/objects/obj_mac.h crypto/objects/obj_dat.h
412 crypto/objects/obj_mac.h: crypto/objects/objects.pl crypto/objects/objects.txt
413 perl crypto/objects/objects.pl crypto/objects/objects.txt crypto/objects/obj_mac.num crypto/objects/obj_mac.h
414
415 TABLE: Configure
416 (echo 'Output of `Configure TABLE'"':"; \
417 perl Configure TABLE) > TABLE
418
419 update: depend errors stacks util/libeay.num util/ssleay.num crypto/objects/obj_dat.h TABLE
420
421 tar:
422 @$(TAR) $(TARFLAGS) -cvf - \
423 `find * \! -path CVS/\* \! -path \*/CVS/\* \! -name CVS \! -name .cvsignore \! -name STATUS \! -name TABLE | sort` |\
424 tardy --user_number=0 --user_name=openssl \
425 --group_number=0 --group_name=openssl \
426 --prefix=openssl-$(VERSION) - |\
427 gzip --best >../$(TARFILE).gz; \
428 ls -l ../$(TARFILE).gz
429
430 dist:
431 $(PERL) Configure dist
432 @$(MAKE) dist_pem_h
433 @$(MAKE) SDIRS='${SDIRS}' clean
434 @$(MAKE) tar
435
436 dist_pem_h:
437 (cd crypto/pem; $(MAKE) CC='${CC}' SDIRS='${SDIRS}' CFLAG='${CFLAG}' pem.h; $(MAKE) clean)
438
439 install: all install_docs
440 @$(PERL) $(TOP)/util/mkdir-p.pl $(INSTALL_PREFIX)$(INSTALLTOP)/bin \
441 $(INSTALL_PREFIX)$(INSTALLTOP)/lib \
442 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl \
443 $(INSTALL_PREFIX)$(OPENSSLDIR)/misc \
444 $(INSTALL_PREFIX)$(OPENSSLDIR)/certs \
445 $(INSTALL_PREFIX)$(OPENSSLDIR)/private \
446 $(INSTALL_PREFIX)$(OPENSSLDIR)/lib
447 @for i in $(EXHEADER) ;\
448 do \
449 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
450 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
451 done;
452 @for i in $(DIRS) ;\
453 do \
454 if echo "$$i" | grep -v '^\.'; then \
455 (cd $$i; echo "installing $$i..."; \
456 $(MAKE) CC='${CC}' CFLAG='${CFLAG}' INSTALL_PREFIX='${INSTALL_PREFIX}' INSTALLTOP='${INSTALLTOP}' OPENSSLDIR='${OPENSSLDIR}' EX_LIBS='${EX_LIBS}' SDIRS='${SDIRS}' RANLIB='${RANLIB}' install ); \
457 fi; \
458 done
459 @for i in $(LIBS) ;\
460 do \
461 if [ -f "$$i" ]; then \
462 ( echo installing $$i; \
463 cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/lib; \
464 $(RANLIB) $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i; \
465 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i ); \
466 fi \
467 done
468
469 install_docs:
470 @$(PERL) $(TOP)/util/mkdir-p.pl \
471 $(INSTALL_PREFIX)$(MANDIR)/man1 \
472 $(INSTALL_PREFIX)$(MANDIR)/man3 \
473 $(INSTALL_PREFIX)$(MANDIR)/man5 \
474 $(INSTALL_PREFIX)$(MANDIR)/man7
475 @echo installing man 1 and man 5
476 @for i in doc/apps/*.pod; do \
477 fn=`basename $$i .pod`; \
478 sec=`[ "$$fn" = "config" ] && echo 5 || echo 1`; \
479 (cd `dirname $$i`; \
480 $(PERL) ../../util/pod2man.pl --section=$$sec --center=OpenSSL \
481 --release=$(VERSION) `basename $$i`) \
482 > $(INSTALL_PREFIX)$(MANDIR)/man$$sec/`basename $$i .pod`.$$sec; \
483 done
484 @echo installing man 3 and man 7
485 @for i in doc/crypto/*.pod doc/ssl/*.pod; do \
486 fn=`basename $$i .pod`; \
487 sec=`[ "$$fn" = "des_modes" ] && echo 7 || echo 3`; \
488 (cd `dirname $$i`; \
489 $(PERL) ../../util/pod2man.pl --section=$$sec --center=OpenSSL \
490 --release=$(VERSION) `basename $$i`) \
491 > $(INSTALL_PREFIX)$(MANDIR)/man$$sec/`basename $$i .pod`.$$sec; \
492 done
493
494 shlib: all
495 if [ ! -d shlib_dir ] ; then mkdir shlib_dir ; else rm -f shlib_dir/* ; fi
496 cd shlib_dir ; ar -x ../libcrypto.a && $(CC) -shared ./*.o -Wl,-soname -Wl,libcrypto.so.0.9 \
497 -o ./libcrypto.so.0.9.4 && rm *.o
498 cd shlib_dir ; ar -x ../libssl.a && $(CC) -shared ./*.o -Wl,-soname -Wl,libssl.so.0.9 \
499 -o ./libssl.so.0.9.4 && rm *.o
500
501 # DO NOT DELETE THIS LINE -- make depend depends on it.