2 ## Makefile for OpenSSL
18 # INSTALL_PREFIX is for package builders so that they can configure
19 # for, say, /usr/ and yet have everything installed to /tmp/somedir/usr/.
20 # Normally it is left empty.
22 INSTALLTOP=/usr/local/ssl
24 # Do not edit this manually. Use Configure --openssldir=DIR do change this!
25 OPENSSLDIR=/usr/local/ssl
27 # NO_IDEA - Define to build without the IDEA algorithm
28 # NO_RC4 - Define to build without the RC4 algorithm
29 # NO_RC2 - Define to build without the RC2 algorithm
30 # THREADS - Define when building with threads, you will probably also need any
31 # system defines as well, i.e. _REENTERANT for Solaris 2.[34]
32 # TERMIO - Define the termio terminal subsystem, needed if sgtty is missing.
33 # TERMIOS - Define the termios terminal subsystem, Silicon Graphics.
34 # LONGCRYPT - Define to use HPUX 10.x's long password modification to crypt(3).
35 # DEVRANDOM - Give this the value of the 'random device' if your OS supports
36 # one. 32 bytes will be read from this when the random
37 # number generator is initalised.
38 # SSL_FORBID_ENULL - define if you want the server to be not able to use the
39 # NULL encryption ciphers.
41 # LOCK_DEBUG - turns on lots of lock debug output :-)
42 # REF_CHECK - turn on some xyz_free() assertions.
43 # REF_PRINT - prints some stuff on structure free.
44 # CRYPTO_MDEBUG - turns on my 'memory leak' detecting stuff
45 # MFUNC - Make all Malloc/Free/Realloc calls call
46 # CRYPTO_malloc/CRYPTO_free/CRYPTO_realloc which can be setup to
47 # call application defined callbacks via CRYPTO_set_mem_functions()
48 # MD5_ASM needs to be defined to use the x86 assembler for MD5
49 # SHA1_ASM needs to be defined to use the x86 assembler for SHA1
50 # RMD160_ASM needs to be defined to use the x86 assembler for RIPEMD160
51 # Do not define B_ENDIAN or L_ENDIAN if 'unsigned long' == 8. It must
53 # PKCS1_CHECK - pkcs1 tests.
56 #CFLAG= -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -m486 -Wall -Wuninitialized -DSHA1_ASM -DMD5_ASM -DRMD160_ASM
57 CFLAG= -DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -m486 -Wall -DSHA1_ASM -DMD5_ASM -DRMD160_ASM
66 TARFLAGS= --no-recursion
67 MAKEDEPPROG=makedepend
69 # Set BN_ASM to bn_asm.o if you want to use the C version
72 #BN_ASM= asm/bn86-elf.o # elf, linux-elf
73 #BN_ASM= asm/bn86-sol.o # solaris
74 #BN_ASM= asm/bn86-out.o # a.out, FreeBSD
75 #BN_ASM= asm/bn86bsdi.o # bsdi
76 #BN_ASM= asm/alpha.o # DEC Alpha
77 #BN_ASM= asm/pa-risc2.o # HP-UX PA-RISC
78 #BN_ASM= asm/r3000.o # SGI MIPS cpu
79 #BN_ASM= asm/sparc.o # Sun solaris/SunOS
80 #BN_ASM= asm/bn-win32.o # Windows 95/NT
81 #BN_ASM= asm/x86w16.o # 16 bit code for Windows 3.1/DOS
82 #BN_ASM= asm/x86w32.o # 32 bit code for Windows 3.1
84 # For x86 assembler: Set PROCESSOR to 386 if you want to support
88 # Set DES_ENC to des_enc.o if you want to use the C version
89 #There are 4 x86 assember options.
90 DES_ENC= asm/dx86-out.o asm/yx86-out.o
91 #DES_ENC= des_enc.o fcrypt_b.o # C
92 #DES_ENC= asm/dx86-elf.o asm/yx86-elf.o # elf
93 #DES_ENC= asm/dx86-sol.o asm/yx86-sol.o # solaris
94 #DES_ENC= asm/dx86-out.o asm/yx86-out.o # a.out, FreeBSD
95 #DES_ENC= asm/dx86bsdi.o asm/yx86bsdi.o # bsdi
97 # Set BF_ENC to bf_enc.o if you want to use the C version
98 #There are 4 x86 assember options.
99 BF_ENC= asm/bx86-out.o
101 #BF_ENC= asm/bx86-elf.o # elf
102 #BF_ENC= asm/bx86-sol.o # solaris
103 #BF_ENC= asm/bx86-out.o # a.out, FreeBSD
104 #BF_ENC= asm/bx86bsdi.o # bsdi
106 # Set CAST_ENC to c_enc.o if you want to use the C version
107 #There are 4 x86 assember options.
108 CAST_ENC= asm/cx86-out.o
110 #CAST_ENC= asm/cx86-elf.o # elf
111 #CAST_ENC= asm/cx86-sol.o # solaris
112 #CAST_ENC= asm/cx86-out.o # a.out, FreeBSD
113 #CAST_ENC= asm/cx86bsdi.o # bsdi
115 # Set RC4_ENC to rc4_enc.o if you want to use the C version
116 #There are 4 x86 assember options.
117 RC4_ENC= asm/rx86-out.o
119 #RC4_ENC= asm/rx86-elf.o # elf
120 #RC4_ENC= asm/rx86-sol.o # solaris
121 #RC4_ENC= asm/rx86-out.o # a.out, FreeBSD
122 #RC4_ENC= asm/rx86bsdi.o # bsdi
124 # Set RC5_ENC to rc5_enc.o if you want to use the C version
125 #There are 4 x86 assember options.
126 RC5_ENC= asm/r586-out.o
128 #RC5_ENC= asm/r586-elf.o # elf
129 #RC5_ENC= asm/r586-sol.o # solaris
130 #RC5_ENC= asm/r586-out.o # a.out, FreeBSD
131 #RC5_ENC= asm/r586bsdi.o # bsdi
133 # Also need MD5_ASM defined
134 MD5_ASM_OBJ= asm/mx86-out.o
135 #MD5_ASM_OBJ= asm/mx86-elf.o # elf
136 #MD5_ASM_OBJ= asm/mx86-sol.o # solaris
137 #MD5_ASM_OBJ= asm/mx86-out.o # a.out, FreeBSD
138 #MD5_ASM_OBJ= asm/mx86bsdi.o # bsdi
140 # Also need SHA1_ASM defined
141 SHA1_ASM_OBJ= asm/sx86-out.o
142 #SHA1_ASM_OBJ= asm/sx86-elf.o # elf
143 #SHA1_ASM_OBJ= asm/sx86-sol.o # solaris
144 #SHA1_ASM_OBJ= asm/sx86-out.o # a.out, FreeBSD
145 #SHA1_ASM_OBJ= asm/sx86bsdi.o # bsdi
147 # Also need RMD160_ASM defined
148 RMD160_ASM_OBJ= asm/rm86-out.o
149 #RMD160_ASM_OBJ= asm/rm86-elf.o # elf
150 #RMD160_ASM_OBJ= asm/rm86-sol.o # solaris
151 #RMD160_ASM_OBJ= asm/rm86-out.o # a.out, FreeBSD
152 #RMD160_ASM_OBJ= asm/rm86bsdi.o # bsdi
158 # When we're prepared to use shared libraries in the programs we link here
159 # we might set SHLIB_MARK to '$(SHARED_LIBS)'.
162 DIRS= crypto ssl $(SHLIB_MARK) apps test tools
163 SHLIBDIRS= crypto ssl
165 # dirs in crypto to build
167 md2 md4 md5 sha mdc2 hmac ripemd \
168 des rc2 rc4 rc5 idea bf cast \
169 bn ec rsa dsa dh dso engine rijndael \
170 buffer bio stack lhash rand err objects \
171 evp asn1 pem x509 x509v3 conf txt_db pkcs7 pkcs12 comp ocsp ui krb5
173 # tests to perform. "alltests" is a special word indicating that all tests
174 # should be performed.
177 MAKEFILE= Makefile.ssl
178 MAKE= make -f Makefile.ssl
180 MANDIR=$(OPENSSLDIR)/man
187 EDIRS= times doc bugs util include certs ms shlib mt demos perl sf dep VMS
189 LIBS= libcrypto.a libssl.a
190 SHARED_CRYPTO=libcrypto$(SHLIB_EXT)
191 SHARED_SSL=libssl$(SHLIB_EXT)
193 SHARED_LIBS_LINK_EXTS=
197 NAME= $(BASENAME)-$(VERSION)
199 WTARFILE= $(NAME)-win.tar
203 # When we're prepared to use shared libraries in the programs we link here
204 # we might remove 'clean-shared' from the targets to perform at this stage
206 all: clean-shared Makefile.ssl sub_all
211 if [ -d "$$i" ]; then \
212 (cd $$i && echo "making all in $$i..." && \
213 $(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}' KRB5_INCLUDES='${KRB5_INCLUDES}' LIBKRB5='${LIBKRB5}' EXE_EXT='${EXE_EXT}' all ) || exit 1; \
218 if echo "$(DIRS)" | \
219 egrep '(^| )(crypto|ssl)( |$$)' > /dev/null 2>&1 && \
220 [ -n "$(SHARED_LIBS)" ]; then \
221 $(MAKE) $(SHARED_LIBS); \
224 libcrypto$(SHLIB_EXT): libcrypto.a
225 @if [ "$(SHLIB_TARGET)" != "" ]; then \
226 $(MAKE) SHLIBDIRS=crypto build-shared; \
228 echo "There's no support for shared libraries on this platform" >&2; \
230 libssl$(SHLIB_EXT): libcrypto$(SHLIB_EXT) libssl.a
231 @if [ "$(SHLIB_TARGET)" != "" ]; then \
232 $(MAKE) SHLIBDIRS=ssl SHLIBDEPS='-lcrypto' build-shared; \
234 echo "There's no support for shared libraries on this platform" >&2; \
238 @for i in $(SHLIBDIRS); do \
239 if [ -n "$(SHARED_LIBS_LINK_EXTS)" ]; then \
240 tmp="$(SHARED_LIBS_LINK_EXTS)"; \
241 for j in $${tmp:-x}; do \
242 ( set -x; rm -f lib$$i$$j ); \
245 ( set -x; rm -f lib$$i$(SHLIB_EXT) ); \
249 @for i in $(SHLIBDIRS); do \
250 prev=lib$$i$(SHLIB_EXT); \
251 if [ -n "$(SHARED_LIBS_LINK_EXTS)" ]; then \
252 tmp="$(SHARED_LIBS_LINK_EXTS)"; \
253 for j in $${tmp:-x}; do \
254 ( set -x; ln -f -s $$prev lib$$i$$j ); \
260 build-shared: clean-shared do_$(SHLIB_TARGET) link-shared
262 do_bsd-gcc-shared: do_gnu-shared
263 do_linux-shared: do_gnu-shared
265 libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
266 ( set -x; ${CC} -shared -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
267 -Wl,-soname=lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
268 -Wl,--whole-archive lib$$i.a \
269 -Wl,--no-whole-archive $$libs ${EX_LIBS} -lc ) || exit 1; \
270 libs="$$libs -l$$i"; \
273 # This assumes that GNU utilities are *not* used
275 libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
276 ( set -x; ${CC} -shared -o lib$$i.so \
277 -set_version "${SHLIB_VERSION_HISTORY}${SHLIB_VERSION_NUMBER}" \
278 -all lib$$i.a -none $$libs ${EX_LIBS} -lc ) || exit 1; \
279 libs="$$libs -l$$i"; \
282 # This assumes that GNU utilities are *not* used
284 libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
285 ( PATH=/usr/ccs/bin:$$PATH ; export PATH; \
286 set -x; ${CC} -G -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
287 -h lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
288 -z allextract lib$$i.a $$libs ${EX_LIBS} -lc ) || exit 1; \
289 libs="$$libs -l$$i"; \
292 # This assumes that GNU utilities are *not* used
294 libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
295 ( set -x; ${CC} -shared -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
296 -Wl,-soname,lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
297 -all lib$$i.a $$libs ${EX_LIBS} -lc) || exit 1; \
298 libs="$$libs -l$$i"; \
301 # This assumes that GNU utilities are *not* used
302 # HP-UX includes the full pathname of libs we depend on, so we would get
303 # ./libcrypto (with ./ as path information) compiled into libssl, hence
304 # we omit the SHLIBDEPS. Applications must be linked with -lssl -lcrypto
306 # The object modules are loaded from lib$i.a using the undocumented -Fl
309 # WARNING: Until DSO is fixed to support a search path, we support SHLIB_PATH
310 # by temporarily specifying "+s"!
313 for i in ${SHLIBDIRS}; do \
314 ( set -x; /usr/ccs/bin/ld +vnocompatwarnings \
316 -o lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR} \
317 +h lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR} \
318 -Fl lib$$i.a -ldld -lc ) || exit 1; \
321 # This assumes that GNU utilities are *not* used
322 # HP-UX includes the full pathname of libs we depend on, so we would get
323 # ./libcrypto (with ./ as path information) compiled into libssl, hence
324 # we omit the SHLIBDEPS. Applications must be linked with -lssl -lcrypto
327 # HP-UX in 64bit mode has "+s" enabled by default; it will search for
328 # shared libraries along LD_LIBRARY_PATH _and_ SHLIB_PATH.
331 for i in ${SHLIBDIRS}; do \
332 ( set -x; /usr/ccs/bin/ld -b -z \
333 -o lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR} \
334 +h lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR} \
335 +forceload lib$$i.a -ldl -lc ) || exit 1; \
338 # The following method is said to work on all platforms. Tests will
339 # determine if that's how it's gong to be used.
340 # This assumes that for all but GNU systems, GNU utilities are *not* used.
341 # ALLSYMSFLAGS would be:
342 # GNU systems: --whole-archive
344 # Solaris: -z allextract
347 # HP/UX-64bit: +forceload
349 # SHAREDFLAGS would be:
350 # GNU systems: -shared -Wl,-soname=lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
351 # Tru64 Unix: -shared \
352 # -set_version "${SHLIB_VERSION_HISTORY}${SHLIB_VERSION_NUMBER}"
353 # Solaris: -G -h lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
354 # Irix: -shared -Wl,-soname,lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
355 # HP/UX-32bit: +vnocompatwarnings -b -z +s \
356 # +h lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR}
357 # HP/UX-64bit: -b -z +h lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR}
358 # AIX: -G -bE:lib$$i.exp -bM:SRE
359 # SHAREDCMD would be:
364 # HP/UX-32bit: /usr/ccs/bin/ld
365 # HP/UX-64bit: /usr/ccs/bin/ld
368 SHAREDFLAGS=-G -bE:lib$$i.exp -bM:SRE
371 libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
373 ld -r -o $$i.o $(ALLSYMSFLAG) lib$$i.a && \
374 ( nm -Pg lib$$i.o | grep ' [BD] ' | cut -f1 -d' ' > lib$$i.exp; \
375 $(SHAREDCMD) $(SHAREDFLAG) -o lib$$i.so lib$$i.o \
376 $$libs ${EX_LIBS} ) ) \
378 libs="$$libs -l$$i"; \
381 Makefile.ssl: Makefile.org
382 @echo "Makefile.ssl is older than Makefile.org."
383 @echo "Reconfigure the source tree (via './config' or 'perl Configure'), please."
387 rm -f *.a */lib */*/lib
390 rm -f shlib/*.o *.o core a.out fluff *.map rehash.time testlog make.log cctest cctest.c
393 if [ -d "$$i" ]; then \
394 (cd $$i && echo "making clean in $$i..." && \
395 $(MAKE) SDIRS='${SDIRS}' clean ) || exit 1; \
399 rm -f *.a *.o speed.* *.map *.so .pure core
401 @for i in $(ONEDIRS) ;\
407 $(PERL) util/mk1mf.pl >makefile.one; \
411 $(PERL) $(TOP)/util/files.pl Makefile.ssl > $(TOP)/MINFO
414 if [ -d "$$i" ]; then \
415 (cd $$i && echo "making 'files' in $$i..." && \
416 $(MAKE) SDIRS='${SDIRS}' PERL='${PERL}' files ) || exit 1; \
421 @$(TOP)/util/point.sh Makefile.ssl Makefile
422 @$(PERL) $(TOP)/util/mkdir-p.pl include/openssl
423 @$(PERL) $(TOP)/util/mklink.pl include/openssl $(EXHEADER)
424 @for i in $(DIRS); do \
425 if [ -d "$$i" ]; then \
426 (cd $$i && echo "making links in $$i..." && \
427 $(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}' KRB5_INCLUDES='${KRB5_INCLUDES}' LIBKRB5='${LIBKRB5}' links ) || exit 1; \
435 if [ -d "$$i" ]; then \
436 (cd $$i && echo "making dclean in $$i..." && \
437 $(MAKE) SDIRS='${SDIRS}' PERL='${PERL}' dclean ) || exit 1; \
443 @(OPENSSL="`pwd`/apps/openssl"; OPENSSL_DEBUG_MEMORY=on; export OPENSSL OPENSSL_DEBUG_MEMORY; $(PERL) tools/c_rehash certs)
449 @(cd test && echo "testing..." && \
450 $(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}' PERL='${PERL}' TESTS='${TESTS}' KRB5_INCLUDES='${KRB5_INCLUDES}' LIBKRB5='${LIBKRB5}' EXE_EXT='${EXE_EXT}' OPENSSL_DEBUG_MEMORY=on tests );
451 @apps/openssl version -a
454 @$(PERL) util/selftest.pl
459 if [ -d "$$i" ]; then \
460 (cd $$i && echo "making dependencies $$i..." && \
461 $(MAKE) SDIRS='${SDIRS}' DEPFLAG='${DEPFLAG}' MAKEDEPPROG='${MAKEDEPPROG}' KRB5_INCLUDES='${KRB5_INCLUDES}' depend ) || exit 1; \
468 if [ -d "$$i" ]; then \
469 (cd $$i && echo "making lint $$i..." && \
470 $(MAKE) SDIRS='${SDIRS}' lint ) || exit 1; \
477 if [ -d "$$i" ]; then \
478 (cd $$i && echo "making tags $$i..." && \
479 $(MAKE) SDIRS='${SDIRS}' tags ) || exit 1; \
484 $(PERL) util/mkerr.pl -recurse -write
487 $(PERL) util/mkstack.pl -write
490 $(PERL) util/mkdef.pl crypto update
493 $(PERL) util/mkdef.pl ssl update
495 crypto/objects/obj_dat.h: crypto/objects/obj_dat.pl crypto/objects/obj_mac.h
496 $(PERL) crypto/objects/obj_dat.pl crypto/objects/obj_mac.h crypto/objects/obj_dat.h
497 crypto/objects/obj_mac.h: crypto/objects/objects.pl crypto/objects/objects.txt crypto/objects/obj_mac.num
498 $(PERL) crypto/objects/objects.pl crypto/objects/objects.txt crypto/objects/obj_mac.num crypto/objects/obj_mac.h
501 (echo 'Output of `Configure TABLE'"':"; \
502 $(PERL) Configure TABLE) > TABLE
504 update: depend errors stacks util/libeay.num util/ssleay.num crypto/objects/obj_dat.h TABLE
507 @$(TAR) $(TARFLAGS) -cvf - \
508 `find * \! -path CVS/\* \! -path \*/CVS/\* \! -name CVS \! -name .cvsignore \! -name STATUS \! -name TABLE | sort` |\
509 tardy --user_number=0 --user_name=openssl \
510 --group_number=0 --group_name=openssl \
511 --prefix=openssl-$(VERSION) - |\
512 gzip --best >../$(TARFILE).gz; \
513 ls -l ../$(TARFILE).gz
516 @$(TAR) $(TARFLAGS) -cvf - \
517 `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 '.#*' | sort` |\
518 tardy --user_number=0 --user_name=openssl \
519 --group_number=0 --group_name=openssl \
520 --prefix=openssl-$(VERSION) - > ../$(TARFILE);\
524 $(PERL) Configure dist
526 @$(MAKE) SDIRS='${SDIRS}' clean
530 (cd crypto/pem; $(MAKE) CC='${CC}' SDIRS='${SDIRS}' CFLAG='${CFLAG}' pem.h; $(MAKE) clean)
532 install: all install_docs
533 @$(PERL) $(TOP)/util/mkdir-p.pl $(INSTALL_PREFIX)$(INSTALLTOP)/bin \
534 $(INSTALL_PREFIX)$(INSTALLTOP)/lib \
535 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl \
536 $(INSTALL_PREFIX)$(OPENSSLDIR)/misc \
537 $(INSTALL_PREFIX)$(OPENSSLDIR)/certs \
538 $(INSTALL_PREFIX)$(OPENSSLDIR)/private \
539 $(INSTALL_PREFIX)$(OPENSSLDIR)/lib
540 @for i in $(EXHEADER) ;\
542 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
543 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
547 if [ -d "$$i" ]; then \
548 (cd $$i; echo "installing $$i..."; \
549 $(MAKE) CC='${CC}' CFLAG='${CFLAG}' INSTALL_PREFIX='${INSTALL_PREFIX}' INSTALLTOP='${INSTALLTOP}' OPENSSLDIR='${OPENSSLDIR}' EX_LIBS='${EX_LIBS}' SDIRS='${SDIRS}' RANLIB='${RANLIB}' EXE_EXT='${EXE_EXT}' install ); \
554 if [ -f "$$i" ]; then \
555 ( echo installing $$i; \
556 cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/lib; \
557 $(RANLIB) $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i; \
558 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i ); \
561 @if [ -n "$(SHARED_LIBS)" ]; then \
562 tmp="$(SHARED_LIBS)"; \
563 for i in $${tmp:-x}; \
565 if [ -f "$$i" ]; then \
566 ( echo installing $$i; \
567 cp -f $$i $(INSTALL_PREFIX)$(INSTALLTOP)/lib; \
568 chmod 555 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i ); \
572 cd $(INSTALL_PREFIX)$(INSTALLTOP)/lib; \
573 make -f $$here/Makefile link-shared ); \
577 @$(PERL) $(TOP)/util/mkdir-p.pl \
578 $(INSTALL_PREFIX)$(MANDIR)/man1 \
579 $(INSTALL_PREFIX)$(MANDIR)/man3 \
580 $(INSTALL_PREFIX)$(MANDIR)/man5 \
581 $(INSTALL_PREFIX)$(MANDIR)/man7
582 @for i in doc/apps/*.pod; do \
583 fn=`basename $$i .pod`; \
584 if [ "$$fn" = "config" ]; then sec=5; else sec=1; fi; \
585 echo "installing man$$sec/`basename $$i .pod`.$$sec"; \
587 $(PERL) ../../util/pod2man.pl --section=$$sec --center=OpenSSL \
588 --release=$(VERSION) `basename $$i`) \
589 > $(INSTALL_PREFIX)$(MANDIR)/man$$sec/`basename $$i .pod`.$$sec; \
591 @for i in doc/crypto/*.pod doc/ssl/*.pod; do \
592 fn=`basename $$i .pod`; \
593 if [ "$$fn" = "des_modes" ]; then sec=7; else sec=3; fi; \
594 echo "installing man$$sec/`basename $$i .pod`.$$sec"; \
596 $(PERL) ../../util/pod2man.pl --section=$$sec --center=OpenSSL \
597 --release=$(VERSION) `basename $$i`) \
598 > $(INSTALL_PREFIX)$(MANDIR)/man$$sec/`basename $$i .pod`.$$sec; \
601 # DO NOT DELETE THIS LINE -- make depend depends on it.