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
59 PEX_LIBS= -L. -L.. -L../.. -L../../..
65 TARFLAGS= --no-recursion
66 MAKEDEPPROG=makedepend
68 # Set BN_ASM to bn_asm.o if you want to use the C version
71 #BN_ASM= asm/bn86-elf.o # elf, linux-elf
72 #BN_ASM= asm/bn86-sol.o # solaris
73 #BN_ASM= asm/bn86-out.o # a.out, FreeBSD
74 #BN_ASM= asm/bn86bsdi.o # bsdi
75 #BN_ASM= asm/alpha.o # DEC Alpha
76 #BN_ASM= asm/pa-risc2.o # HP-UX PA-RISC
77 #BN_ASM= asm/r3000.o # SGI MIPS cpu
78 #BN_ASM= asm/sparc.o # Sun solaris/SunOS
79 #BN_ASM= asm/bn-win32.o # Windows 95/NT
80 #BN_ASM= asm/x86w16.o # 16 bit code for Windows 3.1/DOS
81 #BN_ASM= asm/x86w32.o # 32 bit code for Windows 3.1
83 # For x86 assembler: Set PROCESSOR to 386 if you want to support
87 # Set DES_ENC to des_enc.o if you want to use the C version
88 #There are 4 x86 assember options.
89 DES_ENC= asm/dx86-out.o asm/yx86-out.o
90 #DES_ENC= des_enc.o fcrypt_b.o # C
91 #DES_ENC= asm/dx86-elf.o asm/yx86-elf.o # elf
92 #DES_ENC= asm/dx86-sol.o asm/yx86-sol.o # solaris
93 #DES_ENC= asm/dx86-out.o asm/yx86-out.o # a.out, FreeBSD
94 #DES_ENC= asm/dx86bsdi.o asm/yx86bsdi.o # bsdi
96 # Set BF_ENC to bf_enc.o if you want to use the C version
97 #There are 4 x86 assember options.
98 BF_ENC= asm/bx86-out.o
100 #BF_ENC= asm/bx86-elf.o # elf
101 #BF_ENC= asm/bx86-sol.o # solaris
102 #BF_ENC= asm/bx86-out.o # a.out, FreeBSD
103 #BF_ENC= asm/bx86bsdi.o # bsdi
105 # Set CAST_ENC to c_enc.o if you want to use the C version
106 #There are 4 x86 assember options.
107 CAST_ENC= asm/cx86-out.o
109 #CAST_ENC= asm/cx86-elf.o # elf
110 #CAST_ENC= asm/cx86-sol.o # solaris
111 #CAST_ENC= asm/cx86-out.o # a.out, FreeBSD
112 #CAST_ENC= asm/cx86bsdi.o # bsdi
114 # Set RC4_ENC to rc4_enc.o if you want to use the C version
115 #There are 4 x86 assember options.
116 RC4_ENC= asm/rx86-out.o
118 #RC4_ENC= asm/rx86-elf.o # elf
119 #RC4_ENC= asm/rx86-sol.o # solaris
120 #RC4_ENC= asm/rx86-out.o # a.out, FreeBSD
121 #RC4_ENC= asm/rx86bsdi.o # bsdi
123 # Set RC5_ENC to rc5_enc.o if you want to use the C version
124 #There are 4 x86 assember options.
125 RC5_ENC= asm/r586-out.o
127 #RC5_ENC= asm/r586-elf.o # elf
128 #RC5_ENC= asm/r586-sol.o # solaris
129 #RC5_ENC= asm/r586-out.o # a.out, FreeBSD
130 #RC5_ENC= asm/r586bsdi.o # bsdi
132 # Also need MD5_ASM defined
133 MD5_ASM_OBJ= asm/mx86-out.o
134 #MD5_ASM_OBJ= asm/mx86-elf.o # elf
135 #MD5_ASM_OBJ= asm/mx86-sol.o # solaris
136 #MD5_ASM_OBJ= asm/mx86-out.o # a.out, FreeBSD
137 #MD5_ASM_OBJ= asm/mx86bsdi.o # bsdi
139 # Also need SHA1_ASM defined
140 SHA1_ASM_OBJ= asm/sx86-out.o
141 #SHA1_ASM_OBJ= asm/sx86-elf.o # elf
142 #SHA1_ASM_OBJ= asm/sx86-sol.o # solaris
143 #SHA1_ASM_OBJ= asm/sx86-out.o # a.out, FreeBSD
144 #SHA1_ASM_OBJ= asm/sx86bsdi.o # bsdi
146 # Also need RMD160_ASM defined
147 RMD160_ASM_OBJ= asm/rm86-out.o
148 #RMD160_ASM_OBJ= asm/rm86-elf.o # elf
149 #RMD160_ASM_OBJ= asm/rm86-sol.o # solaris
150 #RMD160_ASM_OBJ= asm/rm86-out.o # a.out, FreeBSD
151 #RMD160_ASM_OBJ= asm/rm86bsdi.o # bsdi
157 # When we're prepared to use shared libraries in the programs we link here
158 # we might set SHLIB_MARK to '$(SHARED_LIBS)'.
161 DIRS= crypto ssl $(SHLIB_MARK) apps test tools
162 SHLIBDIRS= crypto ssl
164 # dirs in crypto to build
166 md2 md4 md5 sha mdc2 hmac ripemd \
167 des rc2 rc4 rc5 idea bf cast \
168 bn ec rsa dsa dh dso engine rijndael \
169 buffer bio stack lhash rand err objects \
170 evp asn1 pem x509 x509v3 conf txt_db pkcs7 pkcs12 comp ocsp
172 # tests to perform. "alltests" is a special word indicating that all tests
173 # should be performed.
176 MAKEFILE= Makefile.ssl
177 MAKE= make -f Makefile.ssl
179 MANDIR=$(OPENSSLDIR)/man
186 EDIRS= times doc bugs util include certs ms shlib mt demos perl sf dep VMS
188 LIBS= libcrypto.a libssl.a
189 SHARED_CRYPTO=libcrypto$(SHLIB_EXT)
190 SHARED_SSL=libssl$(SHLIB_EXT)
192 SHARED_LIBS_LINK_EXTS=
196 NAME= $(BASENAME)-$(VERSION)
198 WTARFILE= $(NAME)-win.tar
202 # When we're prepared to use shared libraries in the programs we link here
203 # we might remove 'clean-shared' from the targets to perform at this stage
205 all: clean-shared Makefile.ssl sub_all
210 if [ -d "$$i" ]; then \
211 (cd $$i && echo "making all in $$i..." && \
212 $(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}' all ) || exit 1; \
217 if echo "$(DIRS)" | \
218 egrep '(^| )(crypto|ssl)( |$$)' > /dev/null 2>&1 && \
219 [ -n "$(SHARED_LIBS)" ]; then \
220 $(MAKE) $(SHARED_LIBS); \
223 libcrypto$(SHLIB_EXT): libcrypto.a
224 @if [ "$(SHLIB_TARGET)" != "" ]; then \
225 $(MAKE) SHLIBDIRS=crypto build-shared; \
227 echo "There's no support for shared libraries on this platform" >&2; \
229 libssl$(SHLIB_EXT): libcrypto$(SHLIB_EXT) libssl.a
230 @if [ "$(SHLIB_TARGET)" != "" ]; then \
231 $(MAKE) SHLIBDIRS=ssl SHLIBDEPS='-lcrypto' build-shared; \
233 echo "There's no support for shared libraries on this platform" >&2; \
237 @for i in $(SHLIBDIRS); do \
238 if [ -n "$(SHARED_LIBS_LINK_EXTS)" ]; then \
239 tmp="$(SHARED_LIBS_LINK_EXTS)"; \
240 for j in $${tmp:-x}; do \
241 ( set -x; rm -f lib$$i$$j ); \
244 ( set -x; rm -f lib$$i$(SHLIB_EXT) ); \
248 @for i in $(SHLIBDIRS); do \
249 prev=lib$$i$(SHLIB_EXT); \
250 if [ -n "$(SHARED_LIBS_LINK_EXTS)" ]; then \
251 tmp="$(SHARED_LIBS_LINK_EXTS)"; \
252 for j in $${tmp:-x}; do \
253 ( set -x; ln -s -f $$prev lib$$i$$j ); \
259 build-shared: clean-shared do_$(SHLIB_TARGET) link-shared
261 do_bsd-gcc-shared: linux-shared
263 libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
264 ( set -x; ${CC} -shared -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
265 -Wl,-S,-soname=lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
266 -Wl,--whole-archive lib$$i.a \
267 -Wl,--no-whole-archive $$libs ${EX_LIBS} -lc ) || exit 1; \
268 libs="$$libs -l$$i"; \
271 # This assumes that GNU utilities are *not* used
273 libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
274 ( set -x; ${CC} -shared -no_archive -o lib$$i.so \
275 -set_version "${SHLIB_VERSION_HISTORY}${SHLIB_VERSION_NUMBER}" \
276 -all lib$$i.a -none $$libs ${EX_LIBS} -lc ) || exit 1; \
277 libs="$$libs -l$$i"; \
280 # This assumes that GNU utilities are *not* used
282 libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
283 ( set -x; ${CC} -G -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
284 -h lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
285 -z allextract lib$$i.a $$libs ${EX_LIBS} -lc ) || exit 1; \
286 libs="$$libs -l$$i"; \
289 # This assumes that GNU utilities are *not* used
291 libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
292 ( set -x; ${CC} -shared -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
293 -Wl,-soname,lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
294 -all lib$$i.a $$libs ${EX_LIBS} -lc) || exit 1; \
295 libs="$$libs -l$$i"; \
298 # This assumes that GNU utilities are *not* used
299 # HP-UX includes the full pathname of libs we depend on, so we would get
300 # ./libcrypto (with ./ as path information) compiled into libssl, hence
301 # we omit the SHLIBDEPS. Applications must be linked with -lssl -lcrypto
303 # The object modules are loaded from lib$i.a using the undocumented -Fl
306 # WARNING: Until DSO is fixed to support a search path, we support SHLIB_PATH
307 # by temporarily specifying "+s"!
310 for i in ${SHLIBDIRS}; do \
311 ( set -x; /usr/ccs/bin/ld +vnocompatwarnings \
313 -o lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR} \
314 +h lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR} \
315 -Fl lib$$i.a -ldld -lc ) || exit 1; \
318 # This assumes that GNU utilities are *not* used
319 # HP-UX includes the full pathname of libs we depend on, so we would get
320 # ./libcrypto (with ./ as path information) compiled into libssl, hence
321 # we omit the SHLIBDEPS. Applications must be linked with -lssl -lcrypto
324 # HP-UX in 64bit mode has "+s" enabled by default; it will search for
325 # shared libraries along LD_LIBRARY_PATH _and_ SHLIB_PATH.
328 for i in ${SHLIBDIRS}; do \
329 ( set -x; /usr/ccs/bin/ld -b -z \
330 -o lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR} \
331 +h lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR} \
332 +forceload lib$$i.a -ldl -lc ) || exit 1; \
335 Makefile.ssl: Makefile.org
336 @echo "Makefile.ssl is older than Makefile.org."
337 @echo "Reconfigure the source tree (via './config' or 'perl Configure'), please."
341 rm -f *.a */lib */*/lib
344 rm -f shlib/*.o *.o core a.out fluff *.map rehash.time testlog make.log cctest cctest.c
347 if [ -d "$$i" ]; then \
348 (cd $$i && echo "making clean in $$i..." && \
349 $(MAKE) SDIRS='${SDIRS}' clean ) || exit 1; \
353 rm -f *.a *.o speed.* *.map *.so .pure core
355 @for i in $(ONEDIRS) ;\
361 $(PERL) util/mk1mf.pl >makefile.one; \
365 $(PERL) $(TOP)/util/files.pl Makefile.ssl > $(TOP)/MINFO
368 if [ -d "$$i" ]; then \
369 (cd $$i && echo "making 'files' in $$i..." && \
370 $(MAKE) SDIRS='${SDIRS}' PERL='${PERL}' files ) || exit 1; \
375 @$(TOP)/util/point.sh Makefile.ssl Makefile
376 @$(PERL) $(TOP)/util/mkdir-p.pl include/openssl
377 @$(PERL) $(TOP)/util/mklink.pl include/openssl $(EXHEADER)
378 @for i in $(DIRS); do \
379 if [ -d "$$i" ]; then \
380 (cd $$i && echo "making links in $$i..." && \
381 $(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; \
389 if [ -d "$$i" ]; then \
390 (cd $$i && echo "making dclean in $$i..." && \
391 $(MAKE) SDIRS='${SDIRS}' PERL='${PERL}' dclean ) || exit 1; \
397 @(OPENSSL="`pwd`/apps/openssl"; OPENSSL_DEBUG_MEMORY=on; export OPENSSL OPENSSL_DEBUG_MEMORY; $(PERL) tools/c_rehash certs)
403 @(cd test && echo "testing..." && \
404 $(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}' OPENSSL_DEBUG_MEMORY=on tests );
405 @apps/openssl version -a
408 @$(PERL) util/selftest.pl
413 if [ -d "$$i" ]; then \
414 (cd $$i && echo "making dependencies $$i..." && \
415 $(MAKE) SDIRS='${SDIRS}' DEPFLAG='${DEPFLAG}' MAKEDEPPROG='${MAKEDEPPROG}' depend ) || exit 1; \
422 if [ -d "$$i" ]; then \
423 (cd $$i && echo "making lint $$i..." && \
424 $(MAKE) SDIRS='${SDIRS}' lint ) || exit 1; \
431 if [ -d "$$i" ]; then \
432 (cd $$i && echo "making tags $$i..." && \
433 $(MAKE) SDIRS='${SDIRS}' tags ) || exit 1; \
438 $(PERL) util/mkerr.pl -recurse -write
441 $(PERL) util/mkstack.pl -write
444 $(PERL) util/mkdef.pl crypto update
447 $(PERL) util/mkdef.pl ssl update
449 crypto/objects/obj_dat.h: crypto/objects/obj_dat.pl crypto/objects/obj_mac.h
450 $(PERL) crypto/objects/obj_dat.pl crypto/objects/obj_mac.h crypto/objects/obj_dat.h
451 crypto/objects/obj_mac.h: crypto/objects/objects.pl crypto/objects/objects.txt crypto/objects/obj_mac.num
452 $(PERL) crypto/objects/objects.pl crypto/objects/objects.txt crypto/objects/obj_mac.num crypto/objects/obj_mac.h
455 (echo 'Output of `Configure TABLE'"':"; \
456 $(PERL) Configure TABLE) > TABLE
458 update: depend errors stacks util/libeay.num util/ssleay.num crypto/objects/obj_dat.h TABLE
461 @$(TAR) $(TARFLAGS) -cvf - \
462 `find * \! -path CVS/\* \! -path \*/CVS/\* \! -name CVS \! -name .cvsignore \! -name STATUS \! -name TABLE | sort` |\
463 tardy --user_number=0 --user_name=openssl \
464 --group_number=0 --group_name=openssl \
465 --prefix=openssl-$(VERSION) - |\
466 gzip --best >../$(TARFILE).gz; \
467 ls -l ../$(TARFILE).gz
470 @$(TAR) $(TARFLAGS) -cvf - \
471 `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` |\
472 tardy --user_number=0 --user_name=openssl \
473 --group_number=0 --group_name=openssl \
474 --prefix=openssl-$(VERSION) - > ../$(TARFILE);\
478 $(PERL) Configure dist
480 @$(MAKE) SDIRS='${SDIRS}' clean
484 (cd crypto/pem; $(MAKE) CC='${CC}' SDIRS='${SDIRS}' CFLAG='${CFLAG}' pem.h; $(MAKE) clean)
486 install: all install_docs
487 @$(PERL) $(TOP)/util/mkdir-p.pl $(INSTALL_PREFIX)$(INSTALLTOP)/bin \
488 $(INSTALL_PREFIX)$(INSTALLTOP)/lib \
489 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl \
490 $(INSTALL_PREFIX)$(OPENSSLDIR)/misc \
491 $(INSTALL_PREFIX)$(OPENSSLDIR)/certs \
492 $(INSTALL_PREFIX)$(OPENSSLDIR)/private \
493 $(INSTALL_PREFIX)$(OPENSSLDIR)/lib
494 @for i in $(EXHEADER) ;\
496 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
497 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
501 if [ -d "$$i" ]; then \
502 (cd $$i; echo "installing $$i..."; \
503 $(MAKE) CC='${CC}' CFLAG='${CFLAG}' INSTALL_PREFIX='${INSTALL_PREFIX}' INSTALLTOP='${INSTALLTOP}' OPENSSLDIR='${OPENSSLDIR}' EX_LIBS='${EX_LIBS}' SDIRS='${SDIRS}' RANLIB='${RANLIB}' install ); \
508 if [ -f "$$i" ]; then \
509 ( echo installing $$i; \
510 cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/lib; \
511 $(RANLIB) $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i; \
512 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i ); \
515 @if [ -n "$(SHARED_LIBS)" ]; then \
516 tmp="$(SHARED_LIBS)"; \
517 for i in $${tmp:-x}; \
519 if [ -f "$$i" ]; then \
520 ( echo installing $$i; \
521 cp -f $$i $(INSTALL_PREFIX)$(INSTALLTOP)/lib; \
522 chmod 555 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i ); \
526 cd $(INSTALL_PREFIX)$(INSTALLTOP)/lib; \
527 make -f $$here/Makefile link-shared ); \
531 @$(PERL) $(TOP)/util/mkdir-p.pl \
532 $(INSTALL_PREFIX)$(MANDIR)/man1 \
533 $(INSTALL_PREFIX)$(MANDIR)/man3 \
534 $(INSTALL_PREFIX)$(MANDIR)/man5 \
535 $(INSTALL_PREFIX)$(MANDIR)/man7
536 @for i in doc/apps/*.pod; do \
537 fn=`basename $$i .pod`; \
538 sec=`[ "$$fn" = "config" ] && echo 5 || echo 1`; \
539 echo "installing man$$sec/`basename $$i .pod`.$$sec"; \
541 $(PERL) ../../util/pod2man.pl --section=$$sec --center=OpenSSL \
542 --release=$(VERSION) `basename $$i`) \
543 > $(INSTALL_PREFIX)$(MANDIR)/man$$sec/`basename $$i .pod`.$$sec; \
545 @for i in doc/crypto/*.pod doc/ssl/*.pod; do \
546 fn=`basename $$i .pod`; \
547 sec=`[ "$$fn" = "des_modes" ] && echo 7 || echo 3`; \
548 echo "installing man$$sec/`basename $$i .pod`.$$sec"; \
550 $(PERL) ../../util/pod2man.pl --section=$$sec --center=OpenSSL \
551 --release=$(VERSION) `basename $$i`) \
552 > $(INSTALL_PREFIX)$(MANDIR)/man$$sec/`basename $$i .pod`.$$sec; \
555 # DO NOT DELETE THIS LINE -- make depend depends on it.